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

+ 0 - 1
components.d.ts

@@ -48,7 +48,6 @@ declare module '@vue/runtime-core' {
48 48
     NutCell: typeof import('nutui-uniapp/components/cell/cell.vue')['default']
49 49
     NutCellGroup: typeof import('nutui-uniapp/components/cellgroup/cellgroup.vue')['default']
50 50
     NutCheckbox: typeof import('nutui-uniapp/components/checkbox/checkbox.vue')['default']
51
-    NutCountdown: typeof import('nutui-uniapp/components/countdown/countdown.vue')['default']
52 51
     NutDatePicker: typeof import('nutui-uniapp/components/datepicker/datepicker.vue')['default']
53 52
     NutDialog: typeof import('nutui-uniapp/components/dialog/dialog.vue')['default']
54 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 197
         <div class="flex-1 flex flex-col justify-between items-center py-4 gap-4">
198 198
           <div class="flex flex-col justify-center items-center">
199 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 202
             </div>
203 203
           </div>
204 204
           <div class=" flex justify-around w-full">
205 205
             <div class="flex flex-col justify-center items-center " v-if="yanglaoStatistics">
206 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 208
               </div>
209 209
               <div class="text-xs text-gray-400">预估养老金</div>
210 210
             </div>
211 211
 
212 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 214
               <div class="text-xs text-gray-400">已结算</div>
215 215
             </div>
216 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 237
     clearInterval(timer);
238 238
     //加载秒杀数据
239 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 149
       <div class="flex justify-around">
150 150
         <div class="flex-1 flex flex-col justify-center items-center gap-2">
151 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 154
         </div>
155 155
         <!-- {
156 156
                 title: '去提现',

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

@@ -368,7 +368,7 @@ function handleShowDetail(orderItem: any) {
368 368
                 <div class="flex">
369 369
                   {{ productItem.cart_info.product.store_name }}
370 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 372
               </div>
373 373
 
374 374
 
@@ -387,13 +387,16 @@ function handleShowDetail(orderItem: any) {
387 387
         <div class="flex justify-end gap-2 " v-if="detail.status == -1">
388 388
           <nut-button size="small" type="default" plain @tap.stop="handleShowDetail(detail)">售后详情</nut-button>
389 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 391
           <nut-button size="small" type="default" plain @tap.stop="handleShowDetail(detail)">售后详情</nut-button>
392 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 394
           <nut-button size="small" type="default" plain @tap.stop="handeRefund">申请售后</nut-button>
395 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 400
           <nut-button size="small" plain type="default" @tap.stop="handeRefund">申请售后</nut-button>
398 401
         </div>
399 402
         <!--          <div class="flex justify-end" v-if="detail.status == 0">-->
@@ -418,9 +421,12 @@ function handleShowDetail(orderItem: any) {
418 421
 
419 422
           <div>实付款</div>
420 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 430
           </div>
425 431
         </div>
426 432
 

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

@@ -715,7 +715,7 @@ const Buttonshow = ref(null)
715 715
 const showButtons = (goodItem) => {
716 716
   // 设置当前项的 showButtons 为 true,显示按钮
717 717
   Buttonshow.value = goodItem;
718
-  goodItem.check=true
718
+  goodItem.check = true
719 719
 };
720 720
 
721 721
 function handlePageClick() {
@@ -728,7 +728,7 @@ function handlePageClick() {
728 728
 }
729 729
 </script>
730 730
 <template>
731
-  <div @tap="handlePageClick" >
731
+  <div @tap="handlePageClick">
732 732
     <div class="">
733 733
       <CXBBackTop :Scroll_X="Scroll_X" :isCss="1" />
734 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 762
             </div>
763 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 767
                 <div class="flex">
767 768
                   <nut-checkbox v-model="goodItem.check" @change="handleGoodsItemCheck" label="单选"
@@ -812,7 +813,7 @@ function handlePageClick() {
812 813
         </div>
813 814
       </div>
814 815
 
815
-      <div class="pb-12" v-if="!hasShopping">
816
+      <div class="pb-12" >
816 817
         <div class="flex flex-row justify-center items-center gap-3 font-bold text-sm p-3 ">
817 818
           <image :src="like_adorn_220628Image" mode="widthFix" class="w-6 h-6"></image>
818 819
           <div>
@@ -853,8 +854,8 @@ function handlePageClick() {
853 854
 
854 855
         <div class="flex justify-center items-center gap-2 pr-3">
855 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 859
           </div>
859 860
           <button v-if="!state.isManage" @click="handleromoveCollect"
860 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 31
   params: {},
32 32
   // priceType: NaN,
33 33
   is_best: NaN,
34
- 
34
+
35 35
   searchValue: '',
36 36
   options: [{
37 37
     text: '全部',
@@ -159,17 +159,17 @@ function handleProductTypeChange(typeValue: any) {
159 159
   // }
160 160
   loadList('reload')
161 161
 }
162
-function handleOrderChange(priceType:any) {
162
+function handleOrderChange(priceType: any) {
163 163
   console.log(priceType)
164 164
   state.currentSelected = NaN
165 165
   state.order = true
166
-  if (priceType ==0) {
166
+  if (priceType == 0) {
167 167
     state.priceType = 1
168 168
   } else {
169 169
     state.priceType = 0
170 170
   }
171 171
   state.params = {
172
-    priceType:state.priceType,
172
+    priceType: state.priceType,
173 173
   }
174 174
   // reset
175 175
   // state.sales = NaN
@@ -184,6 +184,9 @@ function loadList(action: 'page' | 'reload', callback?: (items) => void) {
184 184
     pageNum: state.currentPage,
185 185
     pageSize: state.pageSize,
186 186
   }
187
+  if (state.searchValue) {
188
+    params.mer_keyword = state.searchValue
189
+  }
187 190
   // if (state.type) {
188 191
   //   params.type = state.type
189 192
   // }

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

@@ -822,7 +822,7 @@ onUnload(() => {
822 822
       </div>
823 823
 
824 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 826
           <div v-if="is148Merchant && detail.price" class="flex justify-end items-end gap-2">
827 827
             <div class="!text-[24px]">{{ Number.parseFloat(detail.price * 30) }} </div>
828 828
             <div class="text-sm">积分</div>