@@ -78,8 +78,7 @@ | |||||
"pages/siteAdd/siteAdd", | "pages/siteAdd/siteAdd", | ||||
"pages/fillIndent/fillIndent", | "pages/fillIndent/fillIndent", | ||||
"pages/coupon/childDetail/childDetail", | "pages/coupon/childDetail/childDetail", | ||||
"pages/theme/index1/index", | |||||
"pages/setUserInfo/index" | |||||
"pages/theme/index1/index" | |||||
], | ], | ||||
"subpackages": [ | "subpackages": [ | ||||
{ | { | ||||
@@ -90,6 +89,13 @@ | |||||
"live/livelist/index", | "live/livelist/index", | ||||
"fengMap/fengMap" | "fengMap/fengMap" | ||||
] | ] | ||||
}, | |||||
{ | |||||
"root": "pages3", | |||||
"name": "pages3", | |||||
"pages": [ | |||||
"setUserInfo/index" | |||||
] | |||||
} | } | ||||
], | ], | ||||
"navigateToMiniProgramAppIdList": [ | "navigateToMiniProgramAppIdList": [ | ||||
@@ -132,7 +132,7 @@ Page({ | |||||
// 手机号已授权 | // 手机号已授权 | ||||
} else { | } else { | ||||
wx.navigateTo({ | wx.navigateTo({ | ||||
url: '/pages/setUserInfo/index', | |||||
url: '/pages3/setUserInfo/index', | |||||
}) | }) | ||||
} | } | ||||
}, | }, | ||||
@@ -23,7 +23,7 @@ | |||||
<view class="user-data fl" bindtap='gotoChengzhangzhi' style="{{typeLsit.sy_xxb.styleClass}}"> | <view class="user-data fl" bindtap='gotoChengzhangzhi' style="{{typeLsit.sy_xxb.styleClass}}"> | ||||
<view class='nameBox'> | <view class='nameBox'> | ||||
<!-- <open-data type="userNickName" style="{{typeLsit.sy_xxb_nf.styleClass}}"></open-data> --> | <!-- <open-data type="userNickName" style="{{typeLsit.sy_xxb_nf.styleClass}}"></open-data> --> | ||||
<p style="font-size: 28rpx;color:#292723;float: left;">{{userName}}</p> | |||||
<p class="userName">{{userName}}</p> | |||||
<view class='chengzhangBox' style='background:{{chengzhangBox}}'> | <view class='chengzhangBox' style='background:{{chengzhangBox}}'> | ||||
<text class='chengzhang'>{{levelName}}</text> | <text class='chengzhang'>{{levelName}}</text> | ||||
</view> | </view> | ||||
@@ -10,6 +10,16 @@ page { | |||||
background-color: darkcyan | background-color: darkcyan | ||||
} | } | ||||
.userName { | |||||
max-width: 200rpx; | |||||
font-size: 28rpx; | |||||
color: #292723; | |||||
float: left; | |||||
overflow: hidden; | |||||
white-space: nowrap; | |||||
text-overflow: ellipsis; | |||||
} | |||||
.xia { | .xia { | ||||
width: 24rpx; | width: 24rpx; | ||||
height: 14rpx; | height: 14rpx; | ||||
@@ -164,7 +164,7 @@ Page({ | |||||
// this.checkUserStatus(); | // this.checkUserStatus(); | ||||
console.log('goSetAvatar'); | console.log('goSetAvatar'); | ||||
wx.navigateTo({ | wx.navigateTo({ | ||||
url: '/pages/setUserInfo/index' | |||||
url: '/pages3/setUserInfo/index' | |||||
}) | }) | ||||
}, | }, | ||||
onLoad() { | onLoad() { | ||||
@@ -119,7 +119,7 @@ | |||||
<view class="particulars_go">></view> | <view class="particulars_go">></view> | ||||
</view> | </view> | ||||
</navigator> | </navigator> | ||||
<navigator url="/pages/setUserInfo/index" open-type="navigate"> | |||||
<navigator url="/pages3/setUserInfo/index" open-type="navigate"> | |||||
<view class="particulars_list"> | <view class="particulars_list"> | ||||
<view class="particulars_name">完善个人信息</view> | <view class="particulars_name">完善个人信息</view> | ||||
<view class="particulars_go">></view> | <view class="particulars_go">></view> | ||||
@@ -238,7 +238,7 @@ Page({ | |||||
} else { | } else { | ||||
if (that.data.paramData.go) { | if (that.data.paramData.go) { | ||||
wx.navigateTo({ | wx.navigateTo({ | ||||
url: '/pages/setUserInfo/index', | |||||
url: '/pages3/setUserInfo/index', | |||||
}) | }) | ||||
} else { | } else { | ||||
wx.switchTab({ | wx.switchTab({ | ||||
@@ -158,7 +158,7 @@ Page({ | |||||
// 手机号已授权 | // 手机号已授权 | ||||
} else { | } else { | ||||
wx.navigateTo({ | wx.navigateTo({ | ||||
url: '/pages/setUserInfo/index', | |||||
url: '/pages3/setUserInfo/index', | |||||
}) | }) | ||||
} | } | ||||
}, | }, | ||||
@@ -23,7 +23,7 @@ | |||||
<view class='nameBox' bindtap="goIntegralmall"> | <view class='nameBox' bindtap="goIntegralmall"> | ||||
<!-- <open-data type="userNickName" style="{{typeLsit.sy_xxb_nf.styleClass}}"></open-data> --> | <!-- <open-data type="userNickName" style="{{typeLsit.sy_xxb_nf.styleClass}}"></open-data> --> | ||||
<!-- <open-data type="userNickName" style="font-size: 26rpx;color:#292723;"></open-data> --> | <!-- <open-data type="userNickName" style="font-size: 26rpx;color:#292723;"></open-data> --> | ||||
<p style="font-size: 28rpx;color:#292723;float: left;">{{userName}}</p> | |||||
<p class="userName">{{userName}}</p> | |||||
<!-- <image src="{{huanlechengImgurl+'home_ic_vip.png'}}" mode='widthFix'></image> --> | <!-- <image src="{{huanlechengImgurl+'home_ic_vip.png'}}" mode='widthFix'></image> --> | ||||
<view class="vgrade">{{levelName}}</view> | <view class="vgrade">{{levelName}}</view> | ||||
<view class="integralNum">积分:{{credit}}</view> | <view class="integralNum">积分:{{credit}}</view> | ||||
@@ -67,6 +67,16 @@ page { | |||||
float: right; | float: right; | ||||
} | } | ||||
.userName { | |||||
max-width: 200rpx; | |||||
font-size: 28rpx; | |||||
color: #292723; | |||||
float: left; | |||||
overflow: hidden; | |||||
white-space: nowrap; | |||||
text-overflow: ellipsis; | |||||
} | |||||
.vgrade { | .vgrade { | ||||
/* width: 40rpx; */ | /* width: 40rpx; */ | ||||
height: 26rpx; | height: 26rpx; | ||||
@@ -151,7 +151,7 @@ Page({ | |||||
const data = { | const data = { | ||||
avatarUrl: that.data.avatarUrl, | avatarUrl: that.data.avatarUrl, | ||||
nickName: e.detail.value.nickname, | |||||
nickName: e.detail.value.nickname.trim(), | |||||
name: e.detail.value.username, | name: e.detail.value.username, | ||||
sex: 1 * that.data.gender + 1, | sex: 1 * that.data.gender + 1, | ||||
birthdate: birthdate, | birthdate: birthdate, | ||||
@@ -172,6 +172,12 @@ Page({ | |||||
icon: 'error', | icon: 'error', | ||||
duration: 2000 | duration: 2000 | ||||
}) | }) | ||||
} else if (data.nickName.length > 16) { | |||||
wx.showToast({ | |||||
title: '昵称上限为16字符', | |||||
icon: 'none', | |||||
duration: 2000 | |||||
}) | |||||
} else { | } else { | ||||
Http.post({ | Http.post({ | ||||
url: "/user/updateUserInfo", | url: "/user/updateUserInfo", |