bug
This commit is contained in:
@@ -70,7 +70,7 @@
|
|||||||
onLoad () {
|
onLoad () {
|
||||||
this.statusBarHeight = uni.getSystemInfoSync().statusBarHeight
|
this.statusBarHeight = uni.getSystemInfoSync().statusBarHeight
|
||||||
uni.setNavigationBarColor({
|
uni.setNavigationBarColor({
|
||||||
frontColor: '#000000'
|
frontColor: 'black'
|
||||||
})
|
})
|
||||||
this.getList()
|
this.getList()
|
||||||
|
|
||||||
|
|||||||
@@ -120,7 +120,7 @@ export default {
|
|||||||
|
|
||||||
uploadFile (img, total, type) {
|
uploadFile (img, total, type) {
|
||||||
uni.uploadFile({
|
uni.uploadFile({
|
||||||
url: this.$instance.defaults.baseURL + '/api/file/add',
|
url: this.$instance.defaults.baseURL + '/file/add',
|
||||||
filePath: img,
|
filePath: img,
|
||||||
name: 'file',
|
name: 'file',
|
||||||
header: {
|
header: {
|
||||||
@@ -162,7 +162,7 @@ export default {
|
|||||||
getList () {
|
getList () {
|
||||||
if (this.isMore) return
|
if (this.isMore) return
|
||||||
|
|
||||||
this.$instance.post(`/appwechatescalation/list`, null, {
|
this.$instance.post(`/api/appwechatescalation/list`, null, {
|
||||||
params: {
|
params: {
|
||||||
current: this.current,
|
current: this.current,
|
||||||
size: 10,
|
size: 10,
|
||||||
|
|||||||
@@ -118,7 +118,7 @@
|
|||||||
|
|
||||||
uploadFile (img, total) {
|
uploadFile (img, total) {
|
||||||
uni.uploadFile({
|
uni.uploadFile({
|
||||||
url: this.$instance.defaults.baseURL + '/api/file/add',
|
url: this.$instance.defaults.baseURL + '/file/add',
|
||||||
filePath: img,
|
filePath: img,
|
||||||
name: 'file',
|
name: 'file',
|
||||||
header: {
|
header: {
|
||||||
|
|||||||
@@ -70,6 +70,10 @@
|
|||||||
this.getUserInfo()
|
this.getUserInfo()
|
||||||
this.getList()
|
this.getList()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
uni.$on('updateUserInfo', () => {
|
||||||
|
this.getUserInfo()
|
||||||
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
@@ -100,7 +104,8 @@
|
|||||||
this.$instance.post(`/api/appwechatintegraldetail/list`, null, {
|
this.$instance.post(`/api/appwechatintegraldetail/list`, null, {
|
||||||
params: {
|
params: {
|
||||||
current: this.current,
|
current: this.current,
|
||||||
size: 10
|
size: 10,
|
||||||
|
openId: this.user.openId
|
||||||
}
|
}
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
@@ -161,12 +166,12 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
p {
|
p {
|
||||||
|
margin-top: 18px;
|
||||||
color: #8891A1;
|
color: #8891A1;
|
||||||
font-size: 26px;
|
font-size: 26px;
|
||||||
}
|
}
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
margin-bottom: 18px;
|
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
font-size: 34px;
|
font-size: 34px;
|
||||||
color: #1D2229;
|
color: #1D2229;
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="btn-wrapper">
|
<div class="btn-wrapper">
|
||||||
<div class="btn" hover-class="text-hover">保存</div>
|
<div class="btn" hover-class="text-hover" @click="save">保存</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -57,10 +57,37 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
save () {
|
||||||
|
if (!this.userInfo.avatarUrl) {
|
||||||
|
return this.$toast('请上传头像')
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!this.userInfo.nickName) {
|
||||||
|
return this.$toast('请输入昵称')
|
||||||
|
}
|
||||||
|
|
||||||
|
this.$loading()
|
||||||
|
this.$instance.post('/api/appwechatuser/update-nickName', null, {
|
||||||
|
params: {
|
||||||
|
...this.userInfo
|
||||||
|
}
|
||||||
|
}).then(res => {
|
||||||
|
if (res.code === 0) {
|
||||||
|
this.$toast('保存成功')
|
||||||
|
|
||||||
|
uni.$emit('updateUserInfo')
|
||||||
|
|
||||||
|
setTimeout(() => {
|
||||||
|
wx.navigateBack()
|
||||||
|
}, 600)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
onChooseAvatar (e) {
|
onChooseAvatar (e) {
|
||||||
this.$loading()
|
this.$loading()
|
||||||
uni.uploadFile({
|
uni.uploadFile({
|
||||||
url: this.$instance.defaults.baseURL + '/api/file/add',
|
url: this.$instance.defaults.baseURL + '/file/add',
|
||||||
filePath: e.detail.avatarUrl,
|
filePath: e.detail.avatarUrl,
|
||||||
name: 'file',
|
name: 'file',
|
||||||
header: {
|
header: {
|
||||||
@@ -92,19 +119,6 @@
|
|||||||
success: res => {
|
success: res => {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
|
||||||
|
|
||||||
save () {
|
|
||||||
this.$loading()
|
|
||||||
this.$http.post('/app/editUserInfo', null, {
|
|
||||||
params: {
|
|
||||||
...this.userInfo
|
|
||||||
}
|
|
||||||
}).then(res => {
|
|
||||||
if (res.code === 0) {
|
|
||||||
this.$toast('保存成功')
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user