|
@@ -4,30 +4,39 @@
|
|
|
<view slot="body" class="personal flex-column">
|
|
|
<!-- 首部个人信息 -->
|
|
|
|
|
|
- <!-- <button class="avatar-wrapper" open-type="chooseAvatar" bind:chooseavatar="onChooseAvatar">
|
|
|
- <image class="avatar" src="{{avatarUrl}}" style="height: 100rpx;width: 100rpx;"></image>
|
|
|
- </button>
|
|
|
- <input type="nickname" class="weui-input" placeholder="请输入昵称"/> -->
|
|
|
<view class="head flex-column">
|
|
|
- <view class="head-personal flex-row">
|
|
|
-
|
|
|
- <image class="head-personal-logo" src="/images/welfareMall/head-portrait.png" />
|
|
|
+ <view class="head-personal flex-row" wx:if="{{hasUserInfo}}">
|
|
|
+
|
|
|
<!-- 获取用户头像 -->
|
|
|
- <view class="hat" wx:if="{{isLogin}}"></view>
|
|
|
- <!-- <open-data wx:if="{{isLogin}}" class="head-personal-logo" type="userAvatarUrl"></open-data> -->
|
|
|
- <view class="head-personal-nl flex-column" wx:if="{{isLogin}}">
|
|
|
+ <!-- <view class="hat"></view> -->
|
|
|
+ <image class="head-personal-logo" src="{{userInfo.avatarUrl}}"> </image>
|
|
|
+ <view class="head-personal-nl flex-column">
|
|
|
+ <!-- 获取用户微信昵称 -->
|
|
|
+ <view class="head-personal-name">{{userInfo.nickName}}</view>
|
|
|
+ <view class="flex-row">
|
|
|
+ <view class="head-personal-name" wx:if="{{isLogin}}">{{phone.toHide(mobileTop)}}</view>
|
|
|
+ <button class="head-personal-login" style="background-color: transparent;" wx:if="{{!isLogin}}" open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber">授权手机号</button>
|
|
|
+ <view class="logout" wx:if="{{isLogin}}" bindtap="logout">重新授权</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view class="head-personal flex-row" wx:else>
|
|
|
+ <image class="head-personal-logo" src="/images/welfareMall/head-portrait.png"> </image>
|
|
|
+ <view class="head-personal-nl flex-column">
|
|
|
<!-- 获取用户微信昵称 -->
|
|
|
- <!-- <open-data class="head-personal-name" type="userNickName" lang="zh_CN"></open-data> -->
|
|
|
- <view class="head-personal-login">{{phone.toHide(mobileTop)}}</view>
|
|
|
+ <button class="personal-isLogin" wx:if="{{isLogin}}" bindtap="getUserProfile">头像/昵称</button>
|
|
|
+ <view class="flex-row">
|
|
|
+ <view class="head-personal-name" wx:if="{{isLogin}}">{{phone.toHide(mobileTop)}}</view>
|
|
|
+ <button class="personal-isLogin" wx:if="{{!isLogin}}" open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber">登录/注册</button>
|
|
|
+ <view class="logout" wx:if="{{isLogin}}" bindtap="logout">重新授权</view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
|
|
|
- <button class="personal-isLogin" wx:if="{{!isLogin}}" open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber">登录/注册</button>
|
|
|
- <view class="logout" wx:if="{{isLogin}}" bindtap="logout">退出登录</view>
|
|
|
- <!-- <image wx:if="{{isLogin}}" src="/images/welfareMall/logout.png" style="height: 30px;width: 30px;margin-left: 90px;" bindtap="logout"></image> -->
|
|
|
</view>
|
|
|
<view>
|
|
|
- <button class="wx-isLogin-card" wx:if="{{!isLogin}}" open-type="getPhoneNumber" bindgetphonenumber="getPathCoupon"></button>
|
|
|
-
|
|
|
+
|
|
|
<view class="head-card flex-row" catchtap="{{couponPath?'getCouponPath':''}}">
|
|
|
<view class="head-card-coupon">我的优惠券</view>
|
|
|
<view class="head-card-nt flex-row">
|