pages/index/index.vue
@@ -20,10 +20,18 @@ if(res.data.userInfo.waterCardNumber){ let res1 = await getVipInfoApi() vipInfo.value = res1.data isVip.value = false isVip.value = true }else{ isVip.value = false } } /** * 扫码取水相关 */ function toScan(){ uni.navigateTo({ url:'/pages/scanWater/index' }) } /** * 功能列表相关 @@ -117,7 +125,7 @@ 充值 </view> </view> <view class="box1-bg box1-three"> <view class="box1-bg box1-three" @click="toScan()"> <image src="../../static/images/index/icon23.png" alt=""></image> <view>扫码取水</view> </view>