diff --git a/src/project/tianfuxing/AppHome/AddMerchants.vue b/src/project/tianfuxing/AppHome/AddMerchants.vue index 2908a61..2b02169 100644 --- a/src/project/tianfuxing/AppHome/AddMerchants.vue +++ b/src/project/tianfuxing/AppHome/AddMerchants.vue @@ -118,7 +118,6 @@ }, success: (res) => { const data = JSON.parse(res.data) - console.log(data) if (data.code === 0) { this.photoUrl = data.data[0].split(';')[0] diff --git a/src/project/tianfuxing/AppMy/UserInfo.vue b/src/project/tianfuxing/AppMy/UserInfo.vue index 54c56bc..38a7ce4 100644 --- a/src/project/tianfuxing/AppMy/UserInfo.vue +++ b/src/project/tianfuxing/AppMy/UserInfo.vue @@ -6,36 +6,36 @@

头像

昵称

- +

手机号

- +

所在社区

- +
- {{ user.sssq ? user.sssq : '请输入所在社区' }} + {{ userInfo.sssq ? userInfo.sssq : '请输入所在社区' }}

所在小区

- +
- {{ user.szxq ? user.szxq : '请输入所在小区' }} + {{ userInfo.szxq ? userInfo.szxq : '请输入所在小区' }}
@@ -77,29 +77,29 @@ methods: { save () { - if (!this.user.avatarUrl) { + if (!this.userInfo.avatarUrl) { return this.$toast('请上传头像') } - if (!this.user.nickName) { + if (!this.userInfo.nickName) { return this.$toast('请输入昵称') } - if (!this.user.phone) { + if (!this.userInfo.phone) { return this.$toast('请输入手机号') } - if (!this.user.sssq) { + if (!this.userInfo.sssq) { return this.$toast('请选择所在社区') } - if (!this.user.szxq) { + if (!this.userInfo.szxq) { return this.$toast('请选择所在小区') } this.$loading() this.$instance.post('/api/appwechatuser/update-nickName', null, { params: { - ...this.user + ...this.userInfo } }).then(res => { if (res.code === 0) { diff --git a/src/project/tianfuxing/AppSquare/AppSquare.vue b/src/project/tianfuxing/AppSquare/AppSquare.vue index 4a782dd..7ffe853 100644 --- a/src/project/tianfuxing/AppSquare/AppSquare.vue +++ b/src/project/tianfuxing/AppSquare/AppSquare.vue @@ -20,6 +20,7 @@ export default { appName: '文明广场', name: 'AppSquare', + enablePullDownRefresh: true, data () { return { @@ -58,7 +59,10 @@ }, getList () { - if (this.isMore) return + if (this.isMore) { + uni.stopPullDownRefresh() + return + } this.$loading() this.$instance.post(`/api/appwechatescalation/list`, null, { @@ -72,6 +76,7 @@ }).then(res => { if (res.code === 0) { this.$hideLoading() + uni.stopPullDownRefresh() if (this.current > 1) { this.list = [...this.list, ...res.data.records] } else { @@ -89,6 +94,7 @@ this.isMore = true } }).catch(() => { + uni.stopPullDownRefresh() this.$hideLoading() }) } @@ -96,7 +102,13 @@ onReachBottom () { this.getList() - } + }, + + onPullDownRefresh() { + this.isMore = false + this.current = 1 + this.getList() + }, }