Kaynağa Gözat

fix(activityCenter): 修正优惠券金额单位和样式问题

- 调整优惠券抵扣金额和满减金额单位,去除除以100的操作
- 修复优惠券规则列表样式,去掉项目符号前的点
- 首页商品列表切换标签时,使用reload替换send函数以刷新数据
zhangtao 22 saat önce
ebeveyn
işleme
23bbc0bf6b

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

@@ -27,8 +27,8 @@ onLoad((options: any) => {
 const discountText = computed(() => {
   if (!couponInfo.value)
     return ''
-  const discount = (couponInfo.value.discountMoney || 0) / 100
-  const amount = (couponInfo.value.amountMoney || 0) / 100
+  const discount = (couponInfo.value.discountMoney || 0)
+  const amount = (couponInfo.value.amountMoney || 0)
   return `抵扣${discount}元(满${amount}元可用)`
 })
 
@@ -131,7 +131,7 @@ function handleClaim() {
           {{ rule.title }}
         </view>
         <view v-for="(item, idx) in rule.items" :key="idx" class="mt12rpx text-26rpx text-#666">
-          · {{ item }}
+          {{ item }}
         </view>
       </view>
     </view>

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

@@ -15,7 +15,7 @@ const tabList = ref([
   { label: '价格从低到高', value: 1 },
 ])
 const currentTab = ref(0)
-const { data, send, isLastPage, page } = usePagination((pageNum, pageSize) =>
+const { data, send, isLastPage, page, reload } = usePagination((pageNum, pageSize) =>
   Apis.general.post_smqjh_pms_app_api_v1_product_oil_page(
     { data: { pageNum, pageSize, lat: useUserStore().lat, lon: useUserStore().lng, sort: currentTab.value } },
   ), {
@@ -58,7 +58,7 @@ onReachBottom(() => {
   }
 })
 watch(() => currentTab.value, () => {
-  send()
+  reload()
 })
 </script>