| | |
| | | isVip.value = false |
| | | } |
| | | } |
| | | function navToAddCard(){ |
| | | /** |
| | | * 扫码取水相关 |
| | | */ |
| | | function toScan(){ |
| | | uni.navigateTo({ |
| | | url:'/pages/addCard/index' |
| | | url:'/pages/scanWater/index' |
| | | }) |
| | | } |
| | | /** |
| | | * 功能列表相关 |
| | | */ |
| | | |
| | | const functionList = ref([ |
| | | {text:'余额记录',icon:'../../static/images/index/icon31.png',url:''}, |
| | | {text:'余额记录',icon:'../../static/images/index/icon31.png',url:'/pages/balanceRecord/index'}, |
| | | {text:'消费记录',icon:'../../static/images/index/icon32.png',url:''}, |
| | | {text:'充值记录',icon:'../../static/images/index/icon33.png',url:''}, |
| | | {text:'账户共享',icon:'../../static/images/index/icon34.png',url:''}, |
| | | {text:'优惠卷',icon:'../../static/images/index/icon35.png',url:''}, |
| | | {text:'电子发票',icon:'../../static/images/index/icon36.png',url:''}, |
| | | {text:'联系客服',icon:'../../static/images/index/icon37.png',url:''}, |
| | | {text:'推广分佣',icon:'../../static/images/index/icon38.png',url:'/pages/login/index'}, |
| | | {text:'推广分佣',icon:'../../static/images/index/icon38.png',url:''}, |
| | | ]) |
| | | function navTo(itemUrl){ |
| | | if(itemUrl){ |
| | |
| | | <image src="../../static/images/index/code1.png" alt=""></image> |
| | | </view> |
| | | <view v-else class="card-add"> |
| | | <view @click="navToAddCard()"> |
| | | <view @click="navTo('/pages/addCard/index')"> |
| | | <image src="../../static/images/index/vip-add.png" alt=""></image> |
| | | <text>添加会员卡</text> |
| | | </view> |
| | |
| | | </view> |
| | | </view> |
| | | <view class="function-box1"> |
| | | <view class="box1-bg box1-one"> |
| | | <view class="box1-bg box1-one" @click="navTo('/pages/sendWater/index')"> |
| | | <image src="../../static/images/index/home21.png" alt=""></image> |
| | | <view>送水到家</view> |
| | | </view> |
| | |
| | | <text>¥</text> |
| | | <text>120.00</text> |
| | | </view> |
| | | <view> |
| | | <view @click="navTo('/pages/recharge/index')"> |
| | | 充值 |
| | | </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>扫码取水</view> |
| | | </view> |
| | | </view> |
| | | <view class="function-box2"> |