From d9a89d83c2048a964f16ca179feb2b7f21b9d33a Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期一, 29 七月 2024 16:28:47 +0800
Subject: [PATCH] 提交
---
wechat_staff/pages/userinfo/index.wxml | 55 +++++++++++++++++++++++++++++++++----------------------
1 files changed, 33 insertions(+), 22 deletions(-)
diff --git a/wechat_staff/pages/userinfo/index.wxml b/wechat_staff/pages/userinfo/index.wxml
index 812d76a..5c83bc9 100644
--- a/wechat_staff/pages/userinfo/index.wxml
+++ b/wechat_staff/pages/userinfo/index.wxml
@@ -1,63 +1,74 @@
<view class="container">
- <image class="avatar" src="" mode="widthFix"></image>
- <view bindtap="selMedia" class="avatar_btn">鏇存崲澶村儚</view>
+ <image class="avatar" src="{{ userInfo.imgurlFull ? userInfo.imgurlFull : '../../static/images/default_avatar.png' }}" mode="widthFix"></image>
+ <!-- <button open-type="chooseAvatar" bindchooseavatar="getBindchooseavatar" class="avatar_btn">鏇存崲澶村儚</button> -->
+ <button bind:tap="selMedia3" class="avatar_btn">鏇存崲澶村儚</button>
<view class="list">
<view class="line">
<view class="label">濮撳悕</view>
- <van-field type="text" border="{{false}}" class="input" model:value="{{ name }}" maxlength="{{ 18 }}" clearable />
+ <view class="input">{{ userInfo.name }}</view>
</view>
<view class="line">
<view class="label">鐢佃瘽</view>
- <van-field type="number" border="{{false}}" class="input" model:value="{{ name }}" maxlength="{{ 11 }}" clearable />
+ <view class="input">{{ userInfo.phone }}</view>
</view>
<view class="line">
<view class="label">绛惧悕</view>
- <van-field type="text" border="{{false}}" class="input" model:value="{{ endDate }}" maxlength="{{ 18 }}" clearable />
+ <van-field wx:if="{{ editFalg }}" type="text" border="{{false}}" class="input" model:value="{{ slogans }}" maxlength="{{ 50 }}" clearable />
+ <view wx:else class="input">{{ slogans }}</view>
</view>
<view class="line">
<view class="label">浠庝笟骞撮檺</view>
<view class="val">
- <view class="input">
- <picker mode="date" value="{{date}}" fields="year" start="1970-09-01" end="{{endDate}}" bindchange="bindDateChange">
- <view class="picker">
- 褰撳墠閫夋嫨: {{endDate}}
+ <view wx:if="{{ editFalg }}" class="input">
+ <van-field type="number" wx:if="{{ editFalg }}" border="{{false}}" class="input" model:value="{{ jobDate }}" maxlength="{{ 5 }}" clearable />
+ <view wx:else class="input">{{ jobDate || '0'}}骞�</view>
+ <!-- <picker class="picker" mode="date" value="{{date}}" fields="year" start="1970-09-01" end="{{endDate}}" bindchange="bindDateChange">
+ <view class="picker_wrap">
+ <view>{{ userInfo.jobDate }} <text wx:if="{{ userInfo.jobDate || userInfo.jobDate == 0 }}">骞�</text></view>
+ <image class="icon" src="../../static/icon/home_ar@2x.png" mode="widthFix"></image>
</view>
- </picker>
+ </picker> -->
</view>
- <image class="icon" src="../../static/icon/home_ar@2x.png" mode="widthFix"></image>
+ <view wx:else class="input"><text>{{ userInfo.jobDate || '0' }} 骞�</text></view>
</view>
</view>
<view class="line">
<view class="label">鏈嶅姟瀹㈡埛</view>
- <van-field type="text" border="{{false}}" class="input" model:value="{{ name }}" maxlength="{{ 5 }}" clearable />
+ <van-field wx:if="{{ editFalg }}" type="number" border="{{false}}" class="input" model:value="{{ costomerNum }}" maxlength="{{ 5 }}" clearable />
+ <view wx:else class="input">{{ costomerNum }}</view>
</view>
<view class="line">
<view class="label">闂ㄥ簵鍚嶇О</view>
- <view class="input">鍚嶇О</view>
+ <view class="input">{{ userInfo.shopName || '' }}</view>
</view>
<view class="line">
<view class="label">闂ㄥ簵鍩庡競</view>
- <view class="input">鍚嶇О</view>
+ <view class="input">{{ userInfo.shopCity || '' }}</view>
</view>
<view class="line">
<view class="label">闂ㄥ簵鍦板潃</view>
- <view class="input">鍚嶇О</view>
+ <view class="input">{{ userInfo.shopAddress || '' }}</view>
</view>
<view class="line">
<view class="label">寰俊浜岀淮鐮�</view>
- <view class="val" bindtap="changeAddr">
- <view class="input">{{ address }}</view>
- <image class="icon" src="../../static/icon/home_ar@2x.png" mode="widthFix"></image>
+ <view class="val" bindtap="selMedia">
+ <view class="input"></view>
+ <image wx:if="qrcodeImgFull !=null &&qrcodeImgFull !='' " class="qrcode" mode="widthFix" src="{{qrcodeImgFull}}"></image>
+ <image wx:else="" class="qrcode" mode="widthFix" src="../../static/icon/mingpian_erweima@2x.png"></image>
+ <image wx:if="{{ editFalg }}" class="icon" src="../../static/icon/home_ar@2x.png" mode="widthFix"></image>
</view>
</view>
<view class="line">
<view class="label">浼佷笟寰俊浜岀淮鐮�</view>
- <view class="val" bindtap="changeAddr">
- <view class="input">{{ address }}</view>
- <image class="icon" src="../../static/icon/home_ar@2x.png" mode="widthFix"></image>
+ <view class="val" bindtap="selMedia2">
+ <view class="input"></view>
+ <image wx:if="companyQrcodeImgFull !=null && companyQrcodeImgFull !='' " class="qrcode" mode="widthFix" src="{{companyQrcodeImgFull}}"></image>
+ <image wx:else="" class="qrcode" mode="widthFix" src="../../static/icon/mingpian_erweima@2x.png"></image>
+ <image wx:if="{{ editFalg }}" class="icon" src="../../static/icon/home_ar@2x.png" mode="widthFix"></image>
</view>
</view>
- <view bindtap="onSubmit" class="save">淇濆瓨</view>
+ <view wx:if="{{ !editFalg }}" bindtap="startEdit" class="save">缂栬緫</view>
+ <view wx:else bindtap="onSubmit" class="save">淇濆瓨</view>
</view>
<!-- -->
</view>
\ No newline at end of file
--
Gitblit v1.9.3