Эх сурвалжийг харах

fix(integralPopup): 修正优惠金额显示及定位坐标

- 优化积分弹窗中优惠金额的动态显示,改为使用couponInfo.amountMoney
- 修改用户定位逻辑,临时硬编码经纬度为26.6643和106.625
- 注释掉原有的动态获取坐标代码,避免定位异常
zhangtao 1 өдөр өмнө
parent
commit
8ae567fcc6

+ 1 - 1
src/components/integralPopup.vue

@@ -54,7 +54,7 @@ watch(show, () => {
       </view>
       <view class="text-#aaa">
         <view class="mt20rpx">
-          ·订单满20元可用
+          ·订单满{{ couponInfo.amountMoney }}元可用
         </view>
         <view class="mt20rpx">
           ·每单限用1张,不与其他优惠同享

+ 4 - 4
src/store/user.ts

@@ -79,10 +79,10 @@ export const useUserStore = defineStore('user', {
           success: (res) => {
             uni.hideLoading()
             console.log('H5位置获取成功', res)
-            this.lat = Number(res.latitude.toFixed(6))
-            this.lng = Number(res.longitude.toFixed(6))
-            // this.lat = 24.9861
-            // this.lng = 102.606
+            // this.lat = Number(res.latitude.toFixed(6))
+            // this.lng = Number(res.longitude.toFixed(6))
+            this.lat = 26.6643
+            this.lng = 106.625
             resolve(true)
           },
           fail: (err) => {