1
0

3 کامیت‌ها 897037ef0f ... b40c0f8d59

نویسنده SHA1 پیام تاریخ
  zouzexu b40c0f8d59 ``` 4 روز پیش
  zouzexu 498d91b4ed Merge branch 'master' into zzx 1 هفته پیش
  zouzexu cae1ce8bea ``` 1 هفته پیش

+ 1 - 0
src/api/globals.d.ts

@@ -924,6 +924,7 @@ declare global {
           data: {
           data: {
             pageNum?: number;
             pageNum?: number;
             pageSize?: number;
             pageSize?: number;
+            productName?: string;
           }
           }
         }
         }
       >(
       >(

+ 1 - 0
src/components.d.ts

@@ -40,6 +40,7 @@ declare module 'vue' {
     WdRadio: typeof import('wot-design-uni/components/wd-radio/wd-radio.vue')['default']
     WdRadio: typeof import('wot-design-uni/components/wd-radio/wd-radio.vue')['default']
     WdRadioGroup: typeof import('wot-design-uni/components/wd-radio-group/wd-radio-group.vue')['default']
     WdRadioGroup: typeof import('wot-design-uni/components/wd-radio-group/wd-radio-group.vue')['default']
     WdRate: typeof import('wot-design-uni/components/wd-rate/wd-rate.vue')['default']
     WdRate: typeof import('wot-design-uni/components/wd-rate/wd-rate.vue')['default']
+    WdSearch: typeof import('wot-design-uni/components/wd-search/wd-search.vue')['default']
     WdSkeleton: typeof import('wot-design-uni/components/wd-skeleton/wd-skeleton.vue')['default']
     WdSkeleton: typeof import('wot-design-uni/components/wd-skeleton/wd-skeleton.vue')['default']
     WdSortButton: typeof import('wot-design-uni/components/wd-sort-button/wd-sort-button.vue')['default']
     WdSortButton: typeof import('wot-design-uni/components/wd-sort-button/wd-sort-button.vue')['default']
     WdStatusTip: typeof import('wot-design-uni/components/wd-status-tip/wd-status-tip.vue')['default']
     WdStatusTip: typeof import('wot-design-uni/components/wd-status-tip/wd-status-tip.vue')['default']

+ 3 - 3
src/config/index.ts

@@ -7,9 +7,9 @@ const mapEnvVersion = {
   // develop: 'http://192.168.0.157:8080',
   // develop: 'http://192.168.0.157:8080',
   // develop: 'http://192.168.1.253:8080',
   // develop: 'http://192.168.1.253:8080',
   // develop: 'http://192.168.0.19:8080',
   // develop: 'http://192.168.0.19:8080',
-  // develop: 'http://192.168.0.217:8080', // 黄
-  develop: 'http://192.168.1.89:8080', // 田
-  // develop: 'http://192.168.0.11:8080', // 王S
+  develop: 'http://192.168.0.217:8080', // 黄
+  // develop: 'http://192.168.0.11:8080', // 王
+  // develop: 'http://192.168.1.89:8080', // 田
   // develop: 'http://74949mkfh190.vicp.fun', // 付
   // develop: 'http://74949mkfh190.vicp.fun', // 付
   // develop: 'http://47.109.84.152:8081',
   // develop: 'http://47.109.84.152:8081',
   // develop: 'https://5ed0f7cc.r9.vip.cpolar.cn',
   // develop: 'https://5ed0f7cc.r9.vip.cpolar.cn',

+ 21 - 0
src/pages.json

@@ -576,6 +576,27 @@
           }
           }
         }
         }
       ]
       ]
+    },
+    {
+      "root": "subPack-refueling",
+      "pages": [
+        {
+          "path": "commonTab/index",
+          "name": "refueling-tabbar",
+          "islogin": false,
+          "style": {
+            "navigationBarTitleText": "加油"
+          }
+        },
+        {
+          "path": "webView/index",
+          "name": "refueling-webview",
+          "islogin": false,
+          "style": {
+            "navigationBarTitleText": "支付"
+          }
+        }
+      ]
     }
     }
   ]
   ]
 }
 }

+ 1 - 1
src/pages/index/index.vue

@@ -60,7 +60,7 @@ const navList = computed(() => {
     { icon: `${StaticUrl}/smqjh-sp.png`, title: '电影演出', name: 'film-index', show: true },
     { icon: `${StaticUrl}/smqjh-sp.png`, title: '电影演出', name: 'film-index', show: true },
     { icon: `${StaticUrl}/smqjh-vip.png`, title: '视频权益', name: 'video-rights-tabbar', show: true },
     { icon: `${StaticUrl}/smqjh-vip.png`, title: '视频权益', name: 'video-rights-tabbar', show: true },
     { icon: `${StaticUrl}/smqjh-diancan.png`, title: '大牌点餐', name: '', show: !isOnlineAudit.value },
     { icon: `${StaticUrl}/smqjh-diancan.png`, title: '大牌点餐', name: '', show: !isOnlineAudit.value },
-    { icon: `${StaticUrl}/smqjh-jiayou.png`, title: '加油', name: '', show: !isOnlineAudit.value },
+    { icon: `${StaticUrl}/smqjh-jiayou.png`, title: '加油', name: 'refueling-tabbar', show: true },
     { icon: `${StaticUrl}/smqjh-jiudian.png`, title: '酒店民宿', name: '', show: !isOnlineAudit.value },
     { icon: `${StaticUrl}/smqjh-jiudian.png`, title: '酒店民宿', name: '', show: !isOnlineAudit.value },
     { icon: `${StaticUrl}/smqjh-daijia.png`, title: '代驾', name: '', show: !isOnlineAudit.value },
     { icon: `${StaticUrl}/smqjh-daijia.png`, title: '代驾', name: '', show: !isOnlineAudit.value },
     { icon: `${StaticUrl}/smqjh-djk.png`, title: '大健康', name: 'djk-homeTabbar', show: true },
     { icon: `${StaticUrl}/smqjh-djk.png`, title: '大健康', name: 'djk-homeTabbar', show: true },

+ 29 - 0
src/subPack-refueling/commonTab/index.vue

@@ -0,0 +1,29 @@
+<script setup lang="ts">
+definePage({
+  name: 'refueling-tabbar',
+  islogin: false,
+  style: {
+    navigationBarTitleText: '加油',
+  },
+})
+
+function refuelingPay() {
+  console.log('触发跳转')
+  // router.push({ name: 'refueling-webview' })
+  uni.navigateToMiniProgram({
+    appId: 'wx0d252f6ed9755862', // 滴滴加油小程序appId
+    path: 'packageA/pages/open-energy-pay/index?orderId=&tradeId=&appId=wx43b5b906cc30ed0b&path=/pages/index/index&envVersion=小程序回跳环境', // 滴滴加油收银台页面地址,需要拼接orderId和tradeId
+    envVersion: 'release', // 固定release
+  })
+}
+</script>
+
+<template>
+  <view class="">
+    <wd-button @click="refuelingPay">
+      加油充值
+    </wd-button>
+  </view>
+</template>
+
+<style lang="scss" scoped></style>

+ 18 - 0
src/subPack-refueling/webView/index.vue

@@ -0,0 +1,18 @@
+<script setup lang="ts">
+definePage({
+  name: 'refueling-webview',
+  islogin: false,
+  style: {
+    navigationBarTitleText: '支付',
+  },
+})
+const url = ref('https://static.am.xiaojukeji.com/cf-terminal/oil/thanos-fe-oil/pages/open-energy-h5-pay/index.html?orderId=3521815090950710849&tradeId=20260130e21328dee081108086896a3c4e630e9926408709&redirectUrl=')
+</script>
+
+<template>
+  <view class="">
+    <web-view :src="url" />
+  </view>
+</template>
+
+<style lang="scss" scoped></style>

+ 16 - 2
src/subPack-videoRights/commonTab/components/home.vue

@@ -7,8 +7,9 @@ const { statusBarHeight, MenuButtonHeight } = storeToRefs(useSysStore())
 /**
 /**
  * 获取视频权益列表
  * 获取视频权益列表
  */
  */
-const { data: videoDataList, isLastPage, page, refresh } = usePagination((pageNum, pageSize) =>
-  Apis.videoRight.findAppByPage({ data: { pageNum, pageSize } }), {
+const productName = ref('')
+const { data: videoDataList, isLastPage, page, reload, error, refresh } = usePagination((pageNum, pageSize) =>
+  Apis.videoRight.findAppByPage({ data: { pageNum, pageSize, productName: productName.value } }), {
   data: (resp) => {
   data: (resp) => {
     return resp.data?.list
     return resp.data?.list
   },
   },
@@ -19,6 +20,9 @@ const { data: videoDataList, isLastPage, page, refresh } = usePagination((pageNu
   immediate: true,
   immediate: true,
   middleware: createGlobalLoadingMiddleware(),
   middleware: createGlobalLoadingMiddleware(),
 })
 })
+const state = computed(() => {
+  return error.value ? 'error' : !isLastPage.value ? 'loading' : 'finished'
+})
 onShow(() => {
 onShow(() => {
   refresh()
   refresh()
 })
 })
@@ -27,6 +31,14 @@ onReachBottom(() => {
     page.value++
     page.value++
   }
   }
 })
 })
+
+function submitSearch() {
+  refresh()
+}
+
+function clearSearch() {
+  refresh()
+}
 </script>
 </script>
 
 
 <template>
 <template>
@@ -36,6 +48,7 @@ onReachBottom(() => {
       safe-area-inset-top left-arrow fixed @click-left="router.back()"
       safe-area-inset-top left-arrow fixed @click-left="router.back()"
     />
     />
     <view :style="{ paddingTop: `${(Number(statusBarHeight) || 44) + MenuButtonHeight + 12}px` }" />
     <view :style="{ paddingTop: `${(Number(statusBarHeight) || 44) + MenuButtonHeight + 12}px` }" />
+    <wd-search v-model="productName" placeholder="请输入名称" cancel-txt="搜索" @cancel="submitSearch" @clear="clearSearch" />
     <view class="box-border px24rpx">
     <view class="box-border px24rpx">
       <scroll-view scroll-y type="custom">
       <scroll-view scroll-y type="custom">
         <grid-view type="masonry" cross-axis-count="2" main-axis-gap="10" cross-axis-gap="10">
         <grid-view type="masonry" cross-axis-count="2" main-axis-gap="10" cross-axis-gap="10">
@@ -68,6 +81,7 @@ onReachBottom(() => {
         </grid-view>
         </grid-view>
         <StatusTip v-if="!videoDataList.length" tip="暂无内容" />
         <StatusTip v-if="!videoDataList.length" tip="暂无内容" />
       </scroll-view>
       </scroll-view>
+      <wd-loadmore :state="state" :loading-props="{ color: '#9ED605', size: 20 }" @reload="reload" />
     </view>
     </view>
   </view>
   </view>
 </template>
 </template>

+ 1 - 1
src/subPack-xsb/commonTab/components/classfiy.vue

@@ -652,7 +652,7 @@ function handlePay() {
       <template #footer>
       <template #footer>
         <view class="box-border w-full flex items-center justify-between py20rpx">
         <view class="box-border w-full flex items-center justify-between py20rpx">
           <view class="w-48%">
           <view class="w-48%">
-            <wd-button hairline plain block @click="selectGoods = false">
+            <wd-button plain hairline block @click="selectGoods = false">
               取消
               取消
             </wd-button>
             </wd-button>
           </view>
           </view>

+ 1 - 1
src/subPack-xsb/commonTab/components/index.vue

@@ -107,7 +107,7 @@ function handleChangeSwiper(e: UniHelper.SwiperOnChangeEvent) {
     </wd-navbar>
     </wd-navbar>
     <scroll-view
     <scroll-view
       :lower-threshold="80"
       :lower-threshold="80"
-      scroll-y enable-passive scroll-anchoring :scroll-top="scrollTop" class="content ios" @scroll="handleScroll" @scrolltolower="emit('scrollBottom')"
+      scroll-y enable-passive scroll-anchoring :scroll-top="scrollTop" class="ios content" @scroll="handleScroll" @scrolltolower="emit('scrollBottom')"
     >
     >
       <view
       <view
         class="header-linear h320rpx px24rpx"
         class="header-linear h320rpx px24rpx"

+ 3 - 1
src/uni-pages.d.ts

@@ -54,7 +54,9 @@ interface NavigateToOptions {
        "/subPack-djk/goodsinfo/index" |
        "/subPack-djk/goodsinfo/index" |
        "/subPack-djk/orderDetaile/index" |
        "/subPack-djk/orderDetaile/index" |
        "/subPack-djk/shopinfo/index" |
        "/subPack-djk/shopinfo/index" |
-       "/subPack-djk/welfare/index";
+       "/subPack-djk/welfare/index" |
+       "/subPack-refueling/commonTab/index" |
+       "/subPack-refueling/webView/index";
 }
 }
 interface RedirectToOptions extends NavigateToOptions {}
 interface RedirectToOptions extends NavigateToOptions {}
 
 

+ 1 - 0
vite.config.ts

@@ -33,6 +33,7 @@ export default async () => {
           'subPack-charge',
           'subPack-charge',
           'subPack-videoRights',
           'subPack-videoRights',
           'subPack-djk',
           'subPack-djk',
+          'subPack-refueling',
         ],
         ],
         /**
         /**
          * 排除的页面,相对于 dir 和 subPackages
          * 排除的页面,相对于 dir 和 subPackages