作者 sgj

修改屏蔽弹窗

... ... @@ -112,12 +112,28 @@ Page({
// 姓名
setname(e) {
let that = this;
this.setData({
name: e.detail.value
})
wx.setStorageSync('name', e.detail.value)
},
setUserName(e){
console.log(e)
let that = this;
let url = '/index/member_center/editUserNickname';
let params = {
'name': e.detail.value
};
let head = {
'XX-Token': wx.getStorageSync('token')
}
app.post(url, params, head).then((res) => {
})
},
// 昵称
setnickname(e) {
... ...
<view bindtap="getpop" class="pingbi1" wx:if="{{status==2}}">
</view>
<view class='avator_box' wx:if="{{!page_type}}">
<view class='upimg' bindtap='uploadImages' data-tem='1'>
<image src='{{photo}}' wx:if='{{photo}}' mode="aspectFill"></image>
... ... @@ -17,11 +20,13 @@
<view class='apply_item'>
<view>昵称</view>
<view class='apply_item_input'>
<input placeholder='未填写' placeholder-class='input_p' bindinput='setnickname' value='{{nickname}}'
disabled="{{status==2}}"></input>
<input placeholder='未填写' bindblur="setUserName" placeholder-class='input_p' bindinput='setnickname' value='{{nickname}}'
></input>
</view>
</view>
<view bindtap="getpop" class="pingbi" wx:if="{{status==2}}">
</view>
<picker bindchange="bindsex" range="{{arraysex}}" disabled="{{status==2}}">
<view class='apply_item'>
<view>性别</view>
... ... @@ -269,6 +274,7 @@
<view wx:for="{{countryarr}}" wx:key style="line-height: 40px" class='column_view'>{{item.country_name}}</view>
</picker-view-column>
</picker-view>
<view class='apply_vold_btn' wx:if="{{!page_type}}">
<view class='applybtn' catchtap='setno'>取消</view>
<view class='applybtn yes_applybtn' catchtap='setyes'>确定</view>
... ...
... ... @@ -297,3 +297,15 @@
justify-content: center;
align-items: center;
}
.pingbi{
width: 100%;
height: 3300rpx;
z-index: 100;
position: absolute;
}
.pingbi1{
width: 100%;
height: 300rpx;
z-index: 100;
position: absolute;
}
\ No newline at end of file
... ...
... ... @@ -111,11 +111,8 @@ Page({
icon: 'none',
})
setTimeout(function () {
wx.reLaunch({
url: '/pages/myaddress/myaddress'
})
wx.navigateBack({})
}, 1000)
})
}
console.log('用户点击确定')
... ...
... ... @@ -103,11 +103,19 @@ Page({
console.log(e)
let index = e.currentTarget.dataset.index;
wx.setStorageSync('tempAdress', this.data.list[index])
let pages = getCurrentPages()
let prePage = pages[pages.length - 2]
prePage.setData({
address: e.currentTarget.dataset.address,
address_id: e.currentTarget.dataset.id,
onshowGetAddressList: false,
haveAddress: true,
})
wx.navigateBack({
delta: 0,
})
},
... ...
<view class="itemAddress displayB" wx:for="{{list}}" data-item="{{list}}">
<view class="add_left" bindtap="getchoose" data-index='{{index}}'>
<view class="add_left" bindtap="getchoose" style data-index='{{index}}'>
<view class="add_user display">
<!-- <view class="user_name">{{item.name}}</view>
<view class="user_phone">{{item.phone}}</view>
... ...
... ... @@ -75,4 +75,7 @@ page {
bottom: 0;
left: 0;
right: 0;
}
.add_left{
width: 80%;
}
\ No newline at end of file
... ...