diff --git a/commons/css/custom/customIcon.wxss b/commons/css/custom/customIcon.wxss index f2b556c..d94d625 100644 --- a/commons/css/custom/customIcon.wxss +++ b/commons/css/custom/customIcon.wxss @@ -3,6 +3,7 @@ background-size: 100% 100%; background-repeat: no-repeat; background-position: center; + display: inline-block; } .custom-icon-filtersearch{ width: 32rpx; @@ -15,7 +16,7 @@ background-image: url('https://img.liche.cn/lichebao/icon-logout.png'); } .custom-icon-scancode{ - width: 32rpx; - height: 32rpx; + width: 24rpx; + height: 24rpx; background-image: url('https://img.liche.cn/lichebao/icon-scancode.png'); } \ No newline at end of file diff --git a/pages/mine/index.js b/pages/mine/index.js index 4181985..eea3b17 100644 --- a/pages/mine/index.js +++ b/pages/mine/index.js @@ -62,9 +62,26 @@ Page({ // } ] } + // 20250624 + let mock_data = [{ + icon:'https://img.liche.cn/lichebao/menu-1.png', + title:'积分余额', + tip:'7999', + url:'/pages/customer/score/index' + },{ + icon:'https://img.liche.cn/lichebao/menu-2.png', + title:'核销记录', + url:'/pages/customer/score/exchange' + },{ + icon:'https://img.liche.cn/lichebao/menu-3.png', + title:'联系客服', + type:1, + url:'13455556666' + }] + let menu_list = mock_data.concat(list) this.setData({ - list: list, + list: menu_list, }) this.getUserInfo() @@ -134,7 +151,12 @@ Page({ //推送链接-敬请期待 pushLinkMsg(e) { - if (e.currentTarget.dataset.url) { + // 20250624 + if(e.currentTarget.dataset.type == 1){ + wx.makePhoneCall({ + phoneNumber: e.currentTarget.dataset.url, + }) + }else if (e.currentTarget.dataset.url) { _.$router.openUrlScheme(e.currentTarget.dataset.url) } else { wx.showToast({ @@ -175,4 +197,12 @@ Page({ }) }, + //20250624 扫码 + bindScanCode(){ + wx.scanCode({ + success(res) { + console.log(res) + } + }) + } }) \ No newline at end of file diff --git a/pages/mine/index.wxml b/pages/mine/index.wxml index 6767352..2913da2 100644 --- a/pages/mine/index.wxml +++ b/pages/mine/index.wxml @@ -14,7 +14,11 @@ {{userInfo.biz_name}} - + + + + 扫码 + 切换角色 @@ -29,16 +33,18 @@ - + {{item.title}} + {{item.tip}} - + {{item.title}} + {{item.tip}} diff --git a/project.private.config.json b/project.private.config.json index 8717dfd..820e661 100644 --- a/project.private.config.json +++ b/project.private.config.json @@ -6,9 +6,23 @@ { "name": "pages/customer/index", "pathName": "pages/customer/score/exchange", - "query": "", + "query": "source=shop", "scene": null, "launchMode": "default" + }, + { + "name": "pages/mine/index", + "pathName": "pages/mine/index", + "query": "source=shop", + "launchMode": "default", + "scene": null + }, + { + "name": "pages/mine/index", + "pathName": "pages/mine/index", + "query": "", + "launchMode": "default", + "scene": null } ] }