123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131 |
- <view class="wrapper">
- <view
- class="portrait">
- <view class="van-uploader-wrap">
- <van-uploader
- file-list="{{ user_head_img_url }}"
- max-count="1"
- accept="image"
- deletable="{{false}}"
- preview-size="169rpx"
- data-formkey="user_head_img_url"
- preview-full-image="{{false}}"
- disabled="{{!sessionId}}"
- image-fit="aspectFill"
- bind:click-preview="uploadImg"
- bind:after-read="afterRead"
- bind:delete="delete"
- bind:tap="handleFormItemClick">
- <image
- class="no-login"
- src="../../image/common/no_login_head_img_url.png"></image>
- </van-uploader>
- </view>
- </view>
- <view class="nickname-wrap">
- <block
- wx:if="{{form.user_nickname.length > 0 && !booNickname}}">
- <text
- bind:tap="editNickname">{{form.user_nickname}}</text>
- <image
- src="../../image/mine/edit.png"
- bind:tap="editNickname"></image>
- </block>
- <block wx:else>
- <input value="{{user_nickname}}"
- bindinput="bindInput"
- bindblur="bindblur"
- class="nickname"
- type="nickname"
- focus="{{isAutoFocus}}"
- placeholder="请输入昵称"
- cursor-spacing="{{52}}"
- data-formkey="user_nickname"
- disabled="{{!sessionId}}"
- placeholder-class="app_header-search-placeholder"
- bind:tap="handleFormItemClick"/>
- </block>
- </view>
- <view
- class="account"
- style="visibility: {{form.user_phone ? 'visible' : 'hidden'}};">账号:{{form.user_phone}}
- </view>
- <view class="main">
- <view
- class="business-account"
- wx:if="{{userInfo.shop_status === 1}}">
- <image src="../../image/mine/bg.png"></image>
- <view>
- <view class="describe">已有商家账号</view>
- <view class="box">
- <view class="business-account-name-wrap">
- <view class="business-account-name">{{userInfo.shop_name}}</view>
- <view class="dashboard">
- <view>商品数量:{{userInfo.product_total}}</view>
- <view>预售商品数量:{{userInfo.sale_product_total}}</view>
- </view>
- </view>
- <button
- class="btn"
- type="default"
- data-page="businessHome"
- bind:tap="handleSubscribeMessage">商户管理
- </button>
- </view>
- </view>
- </view>
- <view
- class="list"
- wx:if="{{userInfo.shop_status !== 1}}"
- data-page="businessApply"
- bind:tap="handleSubscribeMessage">
- <image class="label" src="../../image/mine/user.png"></image>
- <text class="value">申请入住(成为农户)</text>
- </view>
- <view
- class="list"
- data-page="collection"
- bind:tap="jump">
- <image class="label" src="../../image/mine/star.png"></image>
- <text class="value">收藏</text>
- </view>
- <view
- class="list"
- bind:tap="call">
- <image class="label" src="../../image/mine/phone.png"></image>
- <text class="value">客服电话</text>
- </view>
- <view
- class="list"
- bind:tap="showLogout"
- wx:if="{{sessionId}}">
- <image class="label" src="../../image/mine/tuichu.png"></image>
- <text class="value">退出</text>
- </view>
- </view>
- </view>
- <!--自定义tabbar页面被遮挡-->
- <view style="padding-bottom:25%;"></view>
- <!-- 弹窗:退出登录二次确认 -->
- <van-popup
- custom-class="customer-van-model"
- show="{{ booLogout }}"
- bind:close="hideLogout">
- <view class="customer-van-model_body">
- <view class="content">确认退出登录?</view>
- </view>
- <view class="customer-van-model_footer">
- <button class="customer-van-model_cancel"
- hover-class="none"
- type="default"
- bind:tap="hideLogout">取消
- </button>
- <button class="customer-van-model_confirm"
- hover-class="none"
- type="primary"
- disabled="{{booLock}}"
- bind:tap="confirmLogout">确定
- </button>
- </view>
- </van-popup>
|