[本时生活小程序-线上备份]
This commit is contained in:
171
pages/user/user.wxml
Normal file
171
pages/user/user.wxml
Normal file
@@ -0,0 +1,171 @@
|
||||
<!-- 个人中心 -->
|
||||
<block wx:if="{{isUser}}">
|
||||
<view class="userHead">
|
||||
<view class="userHead-img">
|
||||
<image src="{{infos.avatar}}" mode="aspectFill"></image>
|
||||
<view class="userHead-tips {{infos.identity.identity_id == 0 ? '' : 'active'}}">{{infos.identity.identity_id == 0 ? '普通用户':'惠生活会员'}}</view>
|
||||
</view>
|
||||
<view class="userHead-text">
|
||||
<view class="userHead-name">
|
||||
{{infos.nickname}}
|
||||
</view>
|
||||
<view class="userHead-tel">
|
||||
{{infos.username}}
|
||||
</view>
|
||||
</view>
|
||||
<view class="userHead-switch" bindtap="switchParty">
|
||||
<image src="/static/icon/switch.png"></image>
|
||||
切换账号
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
<block wx:else>
|
||||
<view class="userHead" bindtap="userLogin">
|
||||
<image class="userHead-img no-userHead" src="/static/img/default_cover.png" mode="aspectFill"></image>
|
||||
<view class="userHead-text">
|
||||
<view class="userHead-login">
|
||||
去登录
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
|
||||
<!-- 我的会员卡 -->
|
||||
<view class="userCard">
|
||||
<view class="userCard-title">我的会员卡</view>
|
||||
<view class="userCard-cont">
|
||||
<view class="userCard-clip">
|
||||
<swiper class="userCard-swiper" autoplay="{{swiper.autoplay}}" interval="{{swiper.interval}}" duration="{{swiper.duration}}" current="{{currentId}}">
|
||||
<swiper-item class="userCard-item" bindtap="userNav" data-url="/pages/account/account?type={{item.type}}" wx:for="{{swiper.imgUrls}}" wx:key="swiper">
|
||||
<image class="userCard-img" src="{{item.src}}" mode="scaleToFill" bindtap="bannerTap" data-id="{{item.id}}"></image>
|
||||
<view class="userCard-parice" style="color:{{item.color}}" wx:if="{{isUser}}"><text>可用余额:</text>
|
||||
<block wx:if="{{item.id == 0}}">{{account.silver}}</block>
|
||||
<block wx:if="{{item.id == 1}}">{{account.gold}}</block>
|
||||
<block wx:if="{{item.id == 2}}">{{account.drill}}</block>
|
||||
<!-- 0.00 -->
|
||||
</view>
|
||||
</swiper-item>
|
||||
<!-- <swiper-item class="userCard-item" bindtap="userNav" data-url="">
|
||||
<image class="userCard-img" src="/static/img/user_card_01.png" mode="scaleToFill" bindtap="bannerTap" data-id="{{item.goods_id}}"></image>
|
||||
<view class="userCard-parice" style="color: #f79210" wx:if="{{isUser}}"><text>余额:</text>{{infos.account.gold}}</view>
|
||||
</swiper-item>
|
||||
<swiper-item class="userCard-item" bindtap="userNav" data-url="">
|
||||
<image class="userCard-img" src="/static/img/user_card_02.png" mode="scaleToFill" bindtap="bannerTap" data-id="{{item.goods_id}}"></image>
|
||||
<view class="userCard-parice" style="color: #192b4c" wx:if="{{isUser}}"><text>余额:</text>{{infos.account.drill}}</view>
|
||||
</swiper-item> -->
|
||||
</swiper>
|
||||
</view>
|
||||
<image src="/static/icon/arrow_left.png" class='userCard-arrow-left' bindtap='nextImg'></image>
|
||||
<image src="/static/icon/arrow_right.png" class='userCard-arrow-right' bindtap='prevImg'></image>
|
||||
</view>
|
||||
<view class="userCard-tips">
|
||||
滑动切换,查看更多权益
|
||||
<image src="/static/icon/arrow_tips.png"></image>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 我的服务 -->
|
||||
<view class="userCard">
|
||||
<view class="userCard-title">我的服务</view>
|
||||
<view class="userOrder">
|
||||
<view class="userOrder-label" bindtap="userNav" data-url="/pages/coupon/coupon">
|
||||
<view class="userOrder-icon active">
|
||||
<image src="/static/img/userCoupon.png"></image>
|
||||
</view>
|
||||
<text>我的卡券</text>
|
||||
</view>
|
||||
<view class="userOrder-label" bindtap="userNav" data-url="/pages/packet/packet">
|
||||
<view class="userOrder-icon active">
|
||||
<image src="/static/img/userOrder_06.png"></image>
|
||||
</view>
|
||||
<text>红包领取</text>
|
||||
</view>
|
||||
<!-- <view class="userOrder-label" bindtap="userNav" data-url="/pages/activityOrder/activityOrder">
|
||||
<view class="userOrder-icon active">
|
||||
<image src="/static/img/userOrder_04.png"></image>
|
||||
</view>
|
||||
<text>活动订单</text>
|
||||
</view> -->
|
||||
<view class="userOrder-label" bindtap="userNav" data-url="/pages/address/address">
|
||||
<view class="userOrder-icon active">
|
||||
<image src="/static/img/userSite.png"></image>
|
||||
</view>
|
||||
<text>收货地址</text>
|
||||
</view>
|
||||
<view class="userOrder-label" bindtap="userNav" data-url="/pages/activate/activate">
|
||||
<view class="userOrder-icon active">
|
||||
<image src="/static/img/userOrder_05.png"></image>
|
||||
</view>
|
||||
<text>实体卡激活</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 我的订单 -->
|
||||
<view class="userCard">
|
||||
<view class="userCard-title">兑换订单</view>
|
||||
<!-- <view class="userOrder">
|
||||
<view class="userOrder-label" bindtap="await">
|
||||
<view class="userOrder-icon">
|
||||
<image src="/static/img/userOrder_00.png"></image>
|
||||
</view>
|
||||
<text>所有订单</text>
|
||||
</view>
|
||||
<view class="userOrder-label" bindtap="await">
|
||||
<view class="userOrder-icon">
|
||||
<image src="/static/img/userOrder_01.png"></image>
|
||||
</view>
|
||||
<text>待付款</text>
|
||||
</view>
|
||||
<view class="userOrder-label" bindtap="await">
|
||||
<view class="userOrder-icon">
|
||||
<image src="/static/img/userOrder_02.png"></image>
|
||||
</view>
|
||||
<text>待发货</text>
|
||||
</view>
|
||||
<view class="userOrder-label" bindtap="await">
|
||||
<view class="userOrder-icon">
|
||||
<image src="/static/img/userOrder_03.png"></image>
|
||||
</view>
|
||||
<text>已发货</text>
|
||||
</view>
|
||||
</view> -->
|
||||
<view class="userOrder userOrder-label-new">
|
||||
<!-- <view class="userOrder-label" bindtap="userNav" data-url="/pages/activityOrder/activityOrder">
|
||||
<view class="userOrder-icon">
|
||||
<image src="/static/img/userOrder_04.png"></image>
|
||||
</view>
|
||||
<text>活动订单</text>
|
||||
</view> -->
|
||||
<view class="userOrder-label" bindtap="userNav" data-url="/pages/order/order?stateType=all">
|
||||
<view class="userOrder-icon">
|
||||
<image src="/static/img/userOrder_00.png"></image>
|
||||
</view>
|
||||
<text>所有订单</text>
|
||||
</view>
|
||||
<view class="userOrder-label" bindtap="userNav" data-url="/pages/order/order?stateType=unpay">
|
||||
<view class="userOrder-icon">
|
||||
<image src="/static/img/userOrder_01.png"></image>
|
||||
</view>
|
||||
<text>待支付</text>
|
||||
</view>
|
||||
<view class="userOrder-label" bindtap="userNav" data-url="/pages/order/order?stateType=paid">
|
||||
<view class="userOrder-icon">
|
||||
<image src="/static/img/userOrder_02.png"></image>
|
||||
</view>
|
||||
<text>待发货</text>
|
||||
</view>
|
||||
<view class="userOrder-label" bindtap="userNav" data-url="/pages/order/order?stateType=delivered">
|
||||
<view class="userOrder-icon">
|
||||
<image src="/static/img/userOrder_03.png"></image>
|
||||
</view>
|
||||
<text>已发货</text>
|
||||
</view>
|
||||
<!-- <view class="userOrder-label" bindtap="userNav" data-url="/pages/rights/rights?type=web&rightsId=39">
|
||||
<view class="userOrder-icon">
|
||||
<image src="/static/img/userOrder_03.png"></image>
|
||||
</view>
|
||||
<text>券领取</text>
|
||||
</view> -->
|
||||
</view>
|
||||
</view>
|
||||
Reference in New Issue
Block a user