From 0560eed4a389f806dc3254a526e929e8476c868a Mon Sep 17 00:00:00 2001 From: Liuyi <candymxq888@outlook.com> Date: 星期日, 29 九月 2024 18:52:51 +0800 Subject: [PATCH] 完成地址管理新增、删除、编辑、设置默认地址,修改navbar组件 --- pages/index/index.vue | 22 ++++++++++++---------- 1 files changed, 12 insertions(+), 10 deletions(-) diff --git a/pages/index/index.vue b/pages/index/index.vue index d8fad38..3665b00 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -25,24 +25,26 @@ 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){ @@ -85,7 +87,7 @@ <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> @@ -109,7 +111,7 @@ </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> @@ -119,13 +121,13 @@ <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"> -- Gitblit v1.9.3