dm-wechat-mini/pages/my/index/index.wxml
2025-03-28 18:36:40 +08:00

88 lines
3.3 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<scroll-view scroll-y refresher-enabled class="user-info-scroll-view"
bindrefresherrefresh="getUserInfo" refresher-triggered="{{refresherTriggered}}"
bindrefresherpulling="scrollViewPulling" bindrefresherrestore="scrollViewPullingOver"
refresher-background="var(--main-color)" enhanced show-scrollbar="{{false}}">
<view class="user-info">
<view class="content">
<view bind:tap="navToSetting">
<image class="avatar" src="{{userInfo.optimized_avatar||'/assets/icon/my/avatar.png'}}"/>
</view>
<view class="name">{{userInfo.nickname}}</view>
<image src="/assets/icon/help/qrcode.png" class="qrcode" bind:tap="showQRCode"
wx:if="{{userInfo.userid}}"/>
</view>
</view>
<view class="page-container property">
<view class="item" bind:tap="goToCouponList">
<view class="value">{{userInfo.coupon_count||0}}</view>
<view class="key">优惠券(张)</view>
</view>
<view class="item" bind:tap="goToMoney">
<view class="value">{{userInfo.points||0}}</view>
<view class="key">蜂蜜(克)</view>
</view>
</view>
<!-- <view class="cells cells-access">
<navigator url="" class="cell invite-cell" hover-class="cell-active">
<view class="cell-hd">
<image class="icon" src="/assets/icon/my/share@2x.png"></image>
</view>
<view class="cell-bd">
<view>
<view>邀请好友下单</view>
<view class="spec">邀请好友领券下单自己再得1张跑腿券</view>
</view>
</view>
<view class="cell-ft"></view>
</navigator>
</view> -->
<button class="invite-cell" bind:tap="shareFriend" open-type="share">
<view class="title">
<image class="icon" src="/assets/icon/my/share@2x.png"></image>
<view class="text">{{appConfig.share_button_title}}</view>
<view class="right-arrow"></view>
</view>
<view class="sub-title">{{appConfig.share_button_desc}}</view>
</button>
<view class="cells cells-access">
<navigator url="/pages/my/firend/index" class="cell" hover-class="cell-active">
<view class="cell-hd">
<image class="icon" src="/assets/icon/my/firend@2x.png"></image>
</view>
<view class="cell-bd">
<view>我的蜜友</view>
</view>
<view class="cell-ft"></view>
</navigator>
<button class="cell is-button" hover-class="cell-active" open-type="contact">
<view class="cell-hd">
<image class="icon" src="/assets/icon/my/cs@2x.png"></image>
</view>
<view class="cell-bd">
<view>在线客服</view>
</view>
<view class="cell-ft"></view>
</button>
</view>
<view class="cells cells-access">
<view class="cell" bind:tap="applyPartnert">
<view class="cell-hd">
<image class="icon" src="/assets/icon/my/partner-community.png"></image>
</view>
<view class="cell-bd">
<view>成为合伙人</view>
</view>
<view class="cell-ft"></view>
</view>
</view>
<view class="scroll-view-dispatch"></view>
</scroll-view>
<modal-view show="{{isShowQRCode}}" isShowCancel="{{false}}" isShowOk="{{false}}" class="modal-view-qrcode" width="256px">
<image class="qrcode" src="{{shareQRCodeUrl}}" show-menu-by-longpress/>
<view class="weui-loading" wx:if="{{!shareQRCodeUrl}}"></view>
<view class="tips">邀请好友丨扫码体验</view>
</modal-view>