Kaynağa Gözat

[编辑][修改]:编辑修改 富茂客官开发 2.2.5

tags/2.2.5
meo 6 yıl önce
ebeveyn
işleme
631e75c3ae
4 değiştirilmiş dosya ile 23 ekleme ve 6 silme
  1. +2
    -2
      pages/edit/edit.js
  2. +3
    -3
      pages/edit/edit.wxml
  3. +16
    -0
      pages/edit/edit.wxss
  4. +2
    -1
      pages/user/index.wxml

+ 2
- 2
pages/edit/edit.js Dosyayı Görüntüle

@@ -52,7 +52,7 @@ Page({
success: function (res) {
console.log(res);
that.setData({
name: res.name,
name: res.name+'('+res.address+')',
address: JSON.stringify(res),
})
},
@@ -153,7 +153,7 @@ Page({
if (res.data.address && JSON.parse(res.data.address).name) {
that.setData({
address: res.data.address,
name: JSON.parse(res.data.address).name,
name: JSON.parse(res.data.address).name +'('+JSON.parse(res.data.address).address+')',
})
}
if (!JSON.parse(res.data.address).name) {


+ 3
- 3
pages/edit/edit.wxml Dosyayı Görüntüle

@@ -19,10 +19,10 @@
</radio>
</radio-group>
</view>
<view class='section' bindtap='address'>
<view class='address' bindtap='address'>
<text>住址</text>
<input wx:if="{{name}}" type="text" placeholder='{{name}}' disabled/>
<input wx:if="{{!name}}" type="text" placeholder='请输入地址' disabled/>
<view class='names' wx:if="{{name}}">{{name}}</view>
<view class='names' wx:if="{{!name}}">请输入地址</view>
</view>
<button class='btn' formType="submit" hover-class='active'>修改会员资料</button>
</form>

+ 16
- 0
pages/edit/edit.wxss Dosyayı Görüntüle

@@ -17,6 +17,12 @@ input {
margin: 0 auto;
border-bottom: 1px solid #eee;
}
.address{
width: 710rpx;
margin: 0 auto;
border-bottom: 1px solid #eee;
padding-bottom: 10rpx;
}
.radio{
margin-right: 30rpx;
}
@@ -39,6 +45,11 @@ radio {
display: inline-block;
margin-right: 20rpx;
}
.address > text:nth-of-type(1) {
font-size: 32rpx;
display: inline-block;
margin-right: 20rpx;
}
.btn{
width: 400rpx;
color: #fff;
@@ -64,4 +75,9 @@ radio {
bottom: 0;
margin: auto;
background: #fff;
}
.names{
font-size: 26rpx;
line-height: 46rpx;
color: #999;
}

+ 2
- 1
pages/user/index.wxml Dosyayı Görüntüle

@@ -70,10 +70,11 @@
<view class="margin"></view>
<!-- <button bindtap="navigateTo" class="user-out-btn">退出登陆</button> -->
<view bindlongtap='showVersion' class='version'>
<view wx:if="{{flag=='show'}}">版本号:2.1.9</view>
<view wx:if="{{flag=='show'}}">版本号:2.2.5</view>
<view wx:if="{{flag=='hidden'}}"></view>
</view>
</view>
<view class='of'>
<official-account wx:if="{{canIUse}}" class="gzh"></official-account>
</view>

Yükleniyor…
İptal
Kaydet