dxz1228 лет назад: 2
Родитель
Сommit
c05df8d1a2

+ 0 - 1
components.d.ts

@@ -48,7 +48,6 @@ declare module '@vue/runtime-core' {
48
     NutCell: typeof import('nutui-uniapp/components/cell/cell.vue')['default']
48
     NutCell: typeof import('nutui-uniapp/components/cell/cell.vue')['default']
49
     NutCellGroup: typeof import('nutui-uniapp/components/cellgroup/cellgroup.vue')['default']
49
     NutCellGroup: typeof import('nutui-uniapp/components/cellgroup/cellgroup.vue')['default']
50
     NutCheckbox: typeof import('nutui-uniapp/components/checkbox/checkbox.vue')['default']
50
     NutCheckbox: typeof import('nutui-uniapp/components/checkbox/checkbox.vue')['default']
51
-    NutCountdown: typeof import('nutui-uniapp/components/countdown/countdown.vue')['default']
52
     NutDatePicker: typeof import('nutui-uniapp/components/datepicker/datepicker.vue')['default']
51
     NutDatePicker: typeof import('nutui-uniapp/components/datepicker/datepicker.vue')['default']
53
     NutDialog: typeof import('nutui-uniapp/components/dialog/dialog.vue')['default']
52
     NutDialog: typeof import('nutui-uniapp/components/dialog/dialog.vue')['default']
54
     NutForm: typeof import('nutui-uniapp/components/form/form.vue')['default']
53
     NutForm: typeof import('nutui-uniapp/components/form/form.vue')['default']

+ 3 - 3
src/pages/annuity/index.vue

@@ -197,20 +197,20 @@ const ImgType = computed(() => {
197
         <div class="flex-1 flex flex-col justify-between items-center py-4 gap-4">
197
         <div class="flex-1 flex flex-col justify-between items-center py-4 gap-4">
198
           <div class="flex flex-col justify-center items-center">
198
           <div class="flex flex-col justify-center items-center">
199
             <div class="text-xs">总养老金</div>
199
             <div class="text-xs">总养老金</div>
200
-            <div class="text-[#F94032] font-bold text-[28px]" v-if="yanglaoStatistics">¥{{ yanglaoStatistics.all_yanglao
200
+            <div class="text-[#F94032] font-bold text-[28px]" v-if="yanglaoStatistics">¥{{parseFloat(Number( yanglaoStatistics.all_yanglao)).toFixed(2).replace(/\.?0+$/, '')
201
             }}
201
             }}
202
             </div>
202
             </div>
203
           </div>
203
           </div>
204
           <div class=" flex justify-around w-full">
204
           <div class=" flex justify-around w-full">
205
             <div class="flex flex-col justify-center items-center " v-if="yanglaoStatistics">
205
             <div class="flex flex-col justify-center items-center " v-if="yanglaoStatistics">
206
               <div class="font-bold">
206
               <div class="font-bold">
207
-                ¥ {{ (yanglaoStatistics.all_yanglao - yanglaoStatistics.all_yanglao_a).toFixed(2) }}
207
+                ¥ {{ parseFloat(Number(yanglaoStatistics.all_yanglao - yanglaoStatistics.all_yanglao_a)).toFixed(2).replace(/\.?0+$/, '') }}
208
               </div>
208
               </div>
209
               <div class="text-xs text-gray-400">预估养老金</div>
209
               <div class="text-xs text-gray-400">预估养老金</div>
210
             </div>
210
             </div>
211
 
211
 
212
             <div class="flex flex-col justify-center items-center pl-3" v-if="yanglaoStatistics">
212
             <div class="flex flex-col justify-center items-center pl-3" v-if="yanglaoStatistics">
213
-              <div>¥ {{ (yanglaoStatistics.all_yanglao_a).toFixed(2) }}</div>
213
+              <div>¥ {{parseFloat(Number(yanglaoStatistics.all_yanglao_a)).toFixed(2).replace(/\.?0+$/, '') }}</div>
214
               <div class="text-xs text-gray-400">已结算</div>
214
               <div class="text-xs text-gray-400">已结算</div>
215
             </div>
215
             </div>
216
             <div @tap="handleToCitic" class="flex flex-col justify-center items-center pl-3">
216
             <div @tap="handleToCitic" class="flex flex-col justify-center items-center pl-3">

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

@@ -237,7 +237,9 @@ function getCountdown() {
237
     clearInterval(timer);
237
     clearInterval(timer);
238
     //加载秒杀数据
238
     //加载秒杀数据
239
     console.log('自动关闭');
239
     console.log('自动关闭');
240
-    loadList('reload')
240
+    uni.switchTab({
241
+      url:'pages/home/index'
242
+    })
241
   }
243
   }
242
 }
244
 }
243
 
245
 

+ 2 - 2
src/pages/my-invitation/index.vue

@@ -149,8 +149,8 @@ function handleShowAgreement() {
149
       <div class="flex justify-around">
149
       <div class="flex justify-around">
150
         <div class="flex-1 flex flex-col justify-center items-center gap-2">
150
         <div class="flex-1 flex flex-col justify-center items-center gap-2">
151
           <div class="text-xs text-gray">未结算(元)</div>
151
           <div class="text-xs text-gray">未结算(元)</div>
152
-          <div class="font-bold text-red">{{ userInviteProfit.UserUnsettledInviteProfit ?
153
-            userInviteProfit.UserUnsettledInviteProfit : '0.00' }}</div>
152
+          <div class="font-bold">{{ userInviteProfit.UserUnsettledInviteProfit ?
153
+            userInviteProfit.UserUnsettledInviteProfit : '0' }}</div>
154
         </div>
154
         </div>
155
         <!-- {
155
         <!-- {
156
                 title: '去提现',
156
                 title: '去提现',

+ 13 - 7
src/pages/order/detail.vue

@@ -368,7 +368,7 @@ function handleShowDetail(orderItem: any) {
368
                 <div class="flex">
368
                 <div class="flex">
369
                   {{ productItem.cart_info.product.store_name }}
369
                   {{ productItem.cart_info.product.store_name }}
370
                 </div>
370
                 </div>
371
-                <div class="flex">¥{{ productItem.product_price }}</div>
371
+                <div class="flex">¥{{  parseFloat(Number(productItem.product_price)).toFixed(2).replace(/\.?0+$/, '')}}</div>
372
               </div>
372
               </div>
373
 
373
 
374
 
374
 
@@ -387,13 +387,16 @@ function handleShowDetail(orderItem: any) {
387
         <div class="flex justify-end gap-2 " v-if="detail.status == -1">
387
         <div class="flex justify-end gap-2 " v-if="detail.status == -1">
388
           <nut-button size="small" type="default" plain @tap.stop="handleShowDetail(detail)">售后详情</nut-button>
388
           <nut-button size="small" type="default" plain @tap.stop="handleShowDetail(detail)">售后详情</nut-button>
389
         </div>
389
         </div>
390
-        <div class="flex justify-end gap-2 " v-if="detail.status == 0 && detail.refund_order_id">
390
+        <div class="flex justify-end gap-2 " v-if="detail.status == 0 && detail.refund_order_id ">
391
           <nut-button size="small" type="default" plain @tap.stop="handleShowDetail(detail)">售后详情</nut-button>
391
           <nut-button size="small" type="default" plain @tap.stop="handleShowDetail(detail)">售后详情</nut-button>
392
         </div>
392
         </div>
393
-        <div class="flex justify-end gap-2 " v-if="detail.status == 0 && !detail.refund_order_id">
393
+        <div class="flex justify-end gap-2 " v-if="detail.status == 0 && !detail.refund_order_id &&detail.pay_type!=5">
394
           <nut-button size="small" type="default" plain @tap.stop="handeRefund">申请售后</nut-button>
394
           <nut-button size="small" type="default" plain @tap.stop="handeRefund">申请售后</nut-button>
395
         </div>
395
         </div>
396
-        <div class="flex justify-end" v-if="detail.status == 1 || detail.status == 2">
396
+        <div class="flex justify-end" v-if="detail.status == 1 &&detail.pay_type!=5">
397
+          <nut-button size="small" plain type="default" @tap.stop="handeRefund">申请售后</nut-button>
398
+        </div>
399
+        <div class="flex justify-end" v-if="detail.status == 2&&detail.pay_type!=5">
397
           <nut-button size="small" plain type="default" @tap.stop="handeRefund">申请售后</nut-button>
400
           <nut-button size="small" plain type="default" @tap.stop="handeRefund">申请售后</nut-button>
398
         </div>
401
         </div>
399
         <!--          <div class="flex justify-end" v-if="detail.status == 0">-->
402
         <!--          <div class="flex justify-end" v-if="detail.status == 0">-->
@@ -418,9 +421,12 @@ function handleShowDetail(orderItem: any) {
418
 
421
 
419
           <div>实付款</div>
422
           <div>实付款</div>
420
           <div class="text-gray">
423
           <div class="text-gray">
421
-            <FPrice :price="detail.pay_price" ex-class="font-bold text-xl" symbol="积分" v-if="detail.pay_type == 5">
422
-            </FPrice>
423
-            <FPrice :price="detail.pay_price" ex-class="font-bold text-xl" v-else></FPrice>
424
+            <div style="color: red;" class="font-bold text-xl"  v-if="detail.pay_type == 5">
425
+              积分{{ parseFloat(Number(detail.pay_price)).toFixed(2).replace(/\.?0+$/, '') }}
426
+            </div>
427
+            <div  style="color: red;" class="font-bold text-xl" v-else>
428
+           ¥ {{ parseFloat(Number(detail.pay_price)).toFixed(2).replace(/\.?0+$/, '') }}
429
+            </div>
424
           </div>
430
           </div>
425
         </div>
431
         </div>
426
 
432
 

+ 7 - 6
src/pages/order_addcart/index.vue

@@ -715,7 +715,7 @@ const Buttonshow = ref(null)
715
 const showButtons = (goodItem) => {
715
 const showButtons = (goodItem) => {
716
   // 设置当前项的 showButtons 为 true,显示按钮
716
   // 设置当前项的 showButtons 为 true,显示按钮
717
   Buttonshow.value = goodItem;
717
   Buttonshow.value = goodItem;
718
-  goodItem.check=true
718
+  goodItem.check = true
719
 };
719
 };
720
 
720
 
721
 function handlePageClick() {
721
 function handlePageClick() {
@@ -728,7 +728,7 @@ function handlePageClick() {
728
 }
728
 }
729
 </script>
729
 </script>
730
 <template>
730
 <template>
731
-  <div @tap="handlePageClick" >
731
+  <div @tap="handlePageClick">
732
     <div class="">
732
     <div class="">
733
       <CXBBackTop :Scroll_X="Scroll_X" :isCss="1" />
733
       <CXBBackTop :Scroll_X="Scroll_X" :isCss="1" />
734
       <div v-if="hasShopping" class="bg-white h-10 fixed top-0 w-full z-1 flex justify-end ">
734
       <div v-if="hasShopping" class="bg-white h-10 fixed top-0 w-full z-1 flex justify-end ">
@@ -761,7 +761,8 @@ function handlePageClick() {
761
 
761
 
762
             </div>
762
             </div>
763
             <div v-for="(goodItem, goodIndex) in shopItem.list" :key="goodIndex">
763
             <div v-for="(goodItem, goodIndex) in shopItem.list" :key="goodIndex">
764
-              <div @longpress="showButtons(goodItem)" class="flex f-hairline-bottom p-3 gap-2" :style="Buttonshow === goodItem ? { backgroundColor: '#919191' } : {}">
764
+              <div @longpress="showButtons(goodItem)" class="flex f-hairline-bottom p-3 gap-2"
765
+                :style="Buttonshow === goodItem ? { backgroundColor: '#919191' } : {}">
765
 
766
 
766
                 <div class="flex">
767
                 <div class="flex">
767
                   <nut-checkbox v-model="goodItem.check" @change="handleGoodsItemCheck" label="单选"
768
                   <nut-checkbox v-model="goodItem.check" @change="handleGoodsItemCheck" label="单选"
@@ -812,7 +813,7 @@ function handlePageClick() {
812
         </div>
813
         </div>
813
       </div>
814
       </div>
814
 
815
 
815
-      <div class="pb-12" v-if="!hasShopping">
816
+      <div class="pb-12" >
816
         <div class="flex flex-row justify-center items-center gap-3 font-bold text-sm p-3 ">
817
         <div class="flex flex-row justify-center items-center gap-3 font-bold text-sm p-3 ">
817
           <image :src="like_adorn_220628Image" mode="widthFix" class="w-6 h-6"></image>
818
           <image :src="like_adorn_220628Image" mode="widthFix" class="w-6 h-6"></image>
818
           <div>
819
           <div>
@@ -853,8 +854,8 @@ function handlePageClick() {
853
 
854
 
854
         <div class="flex justify-center items-center gap-2 pr-3">
855
         <div class="flex justify-center items-center gap-2 pr-3">
855
           <div class="flex text-[12px]" v-if="state.isManage">
856
           <div class="flex text-[12px]" v-if="state.isManage">
856
-            <span v-if="state.totalNum != 0 && state.isManage">已选{{ state.totalNum }}件,</span>合计:<FPrice
857
-              :price="state.totalPrice"></FPrice>
857
+            <span v-if="state.totalNum != 0 && state.isManage">已选{{ state.totalNum }}件,</span>合计:<span
858
+              style="color: red;">¥{{ parseFloat(Number(state.totalPrice)).toFixed(2).replace(/\.?0+$/, '') }}</span>
858
           </div>
859
           </div>
859
           <button v-if="!state.isManage" @click="handleromoveCollect"
860
           <button v-if="!state.isManage" @click="handleromoveCollect"
860
             class="['rounded-full', '!text-[14px]', 'text-black',remove_sc]">
861
             class="['rounded-full', '!text-[14px]', 'text-black',remove_sc]">

+ 7 - 4
src/pages/store/home/search.vue

@@ -31,7 +31,7 @@ const state = reactive({
31
   params: {},
31
   params: {},
32
   // priceType: NaN,
32
   // priceType: NaN,
33
   is_best: NaN,
33
   is_best: NaN,
34
- 
34
+
35
   searchValue: '',
35
   searchValue: '',
36
   options: [{
36
   options: [{
37
     text: '全部',
37
     text: '全部',
@@ -159,17 +159,17 @@ function handleProductTypeChange(typeValue: any) {
159
   // }
159
   // }
160
   loadList('reload')
160
   loadList('reload')
161
 }
161
 }
162
-function handleOrderChange(priceType:any) {
162
+function handleOrderChange(priceType: any) {
163
   console.log(priceType)
163
   console.log(priceType)
164
   state.currentSelected = NaN
164
   state.currentSelected = NaN
165
   state.order = true
165
   state.order = true
166
-  if (priceType ==0) {
166
+  if (priceType == 0) {
167
     state.priceType = 1
167
     state.priceType = 1
168
   } else {
168
   } else {
169
     state.priceType = 0
169
     state.priceType = 0
170
   }
170
   }
171
   state.params = {
171
   state.params = {
172
-    priceType:state.priceType,
172
+    priceType: state.priceType,
173
   }
173
   }
174
   // reset
174
   // reset
175
   // state.sales = NaN
175
   // state.sales = NaN
@@ -184,6 +184,9 @@ function loadList(action: 'page' | 'reload', callback?: (items) => void) {
184
     pageNum: state.currentPage,
184
     pageNum: state.currentPage,
185
     pageSize: state.pageSize,
185
     pageSize: state.pageSize,
186
   }
186
   }
187
+  if (state.searchValue) {
188
+    params.mer_keyword = state.searchValue
189
+  }
187
   // if (state.type) {
190
   // if (state.type) {
188
   //   params.type = state.type
191
   //   params.type = state.type
189
   // }
192
   // }

+ 1 - 1
src/pages/store/product/detail.vue

@@ -822,7 +822,7 @@ onUnload(() => {
822
       </div>
822
       </div>
823
 
823
 
824
       <div class="flex flex-col p-3 gap-3">
824
       <div class="flex flex-col p-3 gap-3">
825
-        <div class="flex flex-row  items-center text-[#FE0032] font-bold text-lg gap-2">
825
+        <div v-if="detail.seckill_s == 0" class="flex flex-row  items-center text-[#FE0032] font-bold text-lg gap-2">
826
           <div v-if="is148Merchant && detail.price" class="flex justify-end items-end gap-2">
826
           <div v-if="is148Merchant && detail.price" class="flex justify-end items-end gap-2">
827
             <div class="!text-[24px]">{{ Number.parseFloat(detail.price * 30) }} </div>
827
             <div class="!text-[24px]">{{ Number.parseFloat(detail.price * 30) }} </div>
828
             <div class="text-sm">积分</div>
828
             <div class="text-sm">积分</div>