Files
lcb/pages/mine/index.wxml
T
maclien 4c18892e9a feat(我的页面): 添加扫码功能和积分余额显示
- 在页面顶部添加扫码按钮及处理逻辑
- 新增积分余额显示在菜单项右侧
- 扩展菜单数据包含积分余额、核销记录和联系客服
- 修改图标样式和尺寸
- 更新路由配置添加来源参数
2025-06-28 18:15:31 +08:00

75 lines
4.1 KiB
Plaintext

<view class="container">
<view class="inner30 img-top-cover" style="background-image:url({{imgUrl}}mine/mine-bg2.png);">
<view class="wp100 pt5 pb5 bg-fff img-fill-cover box-shadow-000-10-10 ulib-r10" style="background-image:url({{imgUrl}}mine/theme.jpg);">
<view class="relative inner40">
<image class='img-135x135 bds-1-eb ulib-r750 overflowhidden' mode="aspectFill" src="{{userInfo.headimg||'https://img.liche.cn/spacestation/c-logo.png?v=20240526'}}" lazy-load="{{true}}"></image>
<view class="absolute top-0 bottom-0 left-0 right-0 opacity-0 mt50 mr150 z-index-4">
<lcb-auth type="userinfo" isShowProfile="{{isShowProfile}}" bind:onSuccess="getUserInfo"></lcb-auth>
</view>
<view class="absolute left-0 right-0 box-middle pl200">
<view class="text-bold font-48">
{{userInfo.uname}}
<text class="font-22 color-666" wx:if="{{userInfo.group_name}}"> {{userInfo.group_name}}</text>
</view>
<view class="mt10 font-22 color-666">{{userInfo.biz_name}}</view>
</view>
<view class="absolute right-0 box-middle p240" >
<!-- 20250624 -->
<view class="bg-f6 mb25 pt10 pb10 pl20 pr15 font-22 color-666 ulib-rl750 fn-flex fn-flex-middle" bindtap="bindScanCode" wx:if="{{userInfo.group_name_arr.length>0}}">
<i class="custom-icon custom-icon-scancode mr10"></i><text>扫码</text>
</view>
<view class="bg-f6 mb25 pt10 pb10 pl20 pr15 font-22 color-666 ulib-rl750" bindtap="switchingRoles" wx:if="{{userInfo.group_name_arr.length>0}}">
<i class="iconfont icon-cheliangfenpei mr10"></i>切换角色
</view>
<view class="bg-f6 pt10 pb10 pl20 pr20 font-22 color-666 ulib-rl750" bindtap="logout">
<i class="iconfont icon-tuichu mr10"></i>退出
</view>
</view>
</view>
</view>
</view>
<view class="pl40 pr40">
<block wx:for="{{list}}" wx:key="index">
<block wx:if="{{item.title == '账户设置'}}">
<view class="relative pt30 pb30 pl60 font-32" bindtap="pushLinkMsg" data-type="{{item.type}}" data-url="{{item.url}}?source={{source}}">
<image class='absolute left-0 box-middle img-50x50' mode="aspectFill" src='{{item.icon}}' lazy-load="{{true}}"></image>
<text>{{item.title}}</text>
<text wx:if="{{item.tip}}" class="absolute right-0 mr40 box-middle color-ff0000">{{item.tip}}</text>
<i class="absolute right-0 box-middle iconfont icon-gengduo"></i>
</view>
</block>
<block wx:else>
<view class="relative pt30 pb30 pl60 font-32" bindtap="pushLinkMsg" data-type="{{item.type}}" data-url="{{item.url}}">
<image class='absolute left-0 box-middle img-50x50' mode="aspectFill" src='{{item.icon}}' lazy-load="{{true}}"></image>
<text>{{item.title}}</text>
<text wx:if="{{item.tip}}" class="absolute right-0 mr40 box-middle color-ff0000">{{item.tip}}</text>
<i class="absolute right-0 box-middle iconfont icon-gengduo"></i>
</view>
</block>
</block>
</view>
</view>
<!-- <lcb-footer></lcb-footer> -->
<lcb-backChannel isShow='{{source=="shop"?true:false}}'></lcb-backChannel>
<lcb-channelTabBarNav currentIndex='2' wx:if="{{source=='channel'}}"></lcb-channelTabBarNav>
<lcb-shopTabBarNav currentIndex='3' wx:if="{{source=='shop'}}"></lcb-shopTabBarNav>
<lcb-msg isShow="{{isShowSwitchingRoles}}" isHasClose="{{true}}">
<view slot="content">
<view class="pt50 font-28 text-center">
当前角色:
<!-- <block wx:for='{{userInfo.group_name_arr}}' wx:key='index' wx:if="{{item.group_id == userInfo.group_id}}">
{{item.geoup_name}}
</block> -->
{{userInfo.group_name}}
</view>
<view class="pb40 mt30 text-center font-32 color-666">
<button bindtap="putAppResetgroupid" data-key="{{item.group_id}}" class="inline-block btn-36afa2 pt5 pb5 font-28 color-fff ulib-r750" wx:for='{{userInfo.group_name_arr}}' wx:key='index' wx:if="{{item.group_id != userInfo.group_id}}">
{{item.geoup_name}}
</button>
</view>
</view>
</lcb-msg>