|
@@ -330,11 +330,11 @@
|
|
<u-form :model="userInfo" ref="uForm">
|
|
<u-form :model="userInfo" ref="uForm">
|
|
<u-form-item label="头像">
|
|
<u-form-item label="头像">
|
|
<button class="avatar-wrapper" open-type="chooseAvatar" @chooseavatar="onChooseAvatar" slot="right">
|
|
<button class="avatar-wrapper" open-type="chooseAvatar" @chooseavatar="onChooseAvatar" slot="right">
|
|
- <image class="avatar" style="height: auto;" :src="userInfo.head?userInfo.head:'https://mmbiz.qpic.cn/mmbiz/icTdbqWNOwNRna42FI242Lcia07jQodd2FJGIYQfG0LAJGFxM4FbnQP6yfMxBgJ0F3YRqJCJ1aPAK2dQagdusBZg/0'"></image>
|
|
|
|
|
|
+ <image class="avatar" :src="userInfo.head?userInfo.head:'https://mmbiz.qpic.cn/mmbiz/icTdbqWNOwNRna42FI242Lcia07jQodd2FJGIYQfG0LAJGFxM4FbnQP6yfMxBgJ0F3YRqJCJ1aPAK2dQagdusBZg/0'"></image>
|
|
</button>
|
|
</button>
|
|
</u-form-item>
|
|
</u-form-item>
|
|
<u-form-item label="昵称">
|
|
<u-form-item label="昵称">
|
|
- <u-input v-model="userInfo.nickname" class="weui-input" @blur="userNameInput" placeholder="请输入昵称" border="false"/>
|
|
|
|
|
|
+ <u-input inputAlign='right' v-model="userInfo.nickname" class="weui-input" @blur="userNameInput" placeholder="请输入昵称" border="false"/>
|
|
<!-- <input type="nickname" :value="userInfo.nickname" class="weui-input" @blur="userNameInput" placeholder="请输入昵称"/> -->
|
|
<!-- <input type="nickname" :value="userInfo.nickname" class="weui-input" @blur="userNameInput" placeholder="请输入昵称"/> -->
|
|
</u-form-item>
|
|
</u-form-item>
|
|
</u-form>
|
|
</u-form>
|
|
@@ -518,10 +518,11 @@
|
|
},
|
|
},
|
|
authUser(){
|
|
authUser(){
|
|
if(this.userInfo.nickname==''){
|
|
if(this.userInfo.nickname==''){
|
|
- that.$refs.uToast.show({
|
|
|
|
- type: 'error',
|
|
|
|
- message: "请输入您的昵称",
|
|
|
|
- })
|
|
|
|
|
|
+ uni.showToast({
|
|
|
|
+ icon:"none",
|
|
|
|
+ title: '请输入您的昵称',
|
|
|
|
+ duration: 2000
|
|
|
|
+ });
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
this.getTokenAsync1()
|
|
this.getTokenAsync1()
|
|
@@ -571,10 +572,11 @@
|
|
that.$request.baseRequest('commonUserApp', 'edit', {
|
|
that.$request.baseRequest('commonUserApp', 'edit', {
|
|
commonUserInfo: JSON.stringify(that.userInfo)
|
|
commonUserInfo: JSON.stringify(that.userInfo)
|
|
}, failres => {
|
|
}, failres => {
|
|
- that.$refs.uToast.show({
|
|
|
|
- type: 'error',
|
|
|
|
- message: failres.errmsg,
|
|
|
|
- })
|
|
|
|
|
|
+ uni.showToast({
|
|
|
|
+ icon:"none",
|
|
|
|
+ title: failres.errmsg,
|
|
|
|
+ duration: 3000
|
|
|
|
+ });
|
|
uni.hideLoading()
|
|
uni.hideLoading()
|
|
}).then(res1 => {
|
|
}).then(res1 => {
|
|
that.userInfo = res1.data
|
|
that.userInfo = res1.data
|
|
@@ -588,10 +590,11 @@
|
|
that.$request.baseRequest('commonUserApp', 'edit', {
|
|
that.$request.baseRequest('commonUserApp', 'edit', {
|
|
commonUserInfo: JSON.stringify(that.userInfo)
|
|
commonUserInfo: JSON.stringify(that.userInfo)
|
|
}, failres => {
|
|
}, failres => {
|
|
- that.$refs.uToast.show({
|
|
|
|
- type: 'error',
|
|
|
|
- message: failres.errmsg,
|
|
|
|
- })
|
|
|
|
|
|
+ uni.showToast({
|
|
|
|
+ icon:"none",
|
|
|
|
+ title: failres.errmsg,
|
|
|
|
+ duration: 3000
|
|
|
|
+ });
|
|
uni.hideLoading()
|
|
uni.hideLoading()
|
|
}).then(res1 => {
|
|
}).then(res1 => {
|
|
that.userInfo = res1.data
|
|
that.userInfo = res1.data
|
|
@@ -930,18 +933,20 @@
|
|
id: this.checkedList[i].data.id,
|
|
id: this.checkedList[i].data.id,
|
|
}, failres => {
|
|
}, failres => {
|
|
console.log('res+++++', failres.errmsg)
|
|
console.log('res+++++', failres.errmsg)
|
|
- this.$refs.uToast.show({
|
|
|
|
- type: 'error',
|
|
|
|
- message: failres.errmsg,
|
|
|
|
- })
|
|
|
|
|
|
+ uni.showToast({
|
|
|
|
+ icon:"none",
|
|
|
|
+ title: failres.errmsg,
|
|
|
|
+ duration: 3000
|
|
|
|
+ });
|
|
}).then(res => {
|
|
}).then(res => {
|
|
console.log(i, this.checkedList.length - 1)
|
|
console.log(i, this.checkedList.length - 1)
|
|
if (i == this.checkedList.length - 1) {
|
|
if (i == this.checkedList.length - 1) {
|
|
uni.hideLoading()
|
|
uni.hideLoading()
|
|
- this.$refs.uToast.show({
|
|
|
|
- type: 'success',
|
|
|
|
- message: '删除成功',
|
|
|
|
- })
|
|
|
|
|
|
+ uni.showToast({
|
|
|
|
+ icon:"success",
|
|
|
|
+ title: '删除成功!',
|
|
|
|
+ duration: 2000
|
|
|
|
+ });
|
|
this.delShow = false
|
|
this.delShow = false
|
|
this.islongPress = false
|
|
this.islongPress = false
|
|
this.mescroll.resetUpScroll()
|
|
this.mescroll.resetUpScroll()
|
|
@@ -954,10 +959,11 @@
|
|
if (this.checkedList.length > 0) {
|
|
if (this.checkedList.length > 0) {
|
|
this.delShow = true
|
|
this.delShow = true
|
|
} else {
|
|
} else {
|
|
- this.$refs.uToast.show({
|
|
|
|
- type: 'error',
|
|
|
|
- message: '请勾选后再进行删除!',
|
|
|
|
- })
|
|
|
|
|
|
+ uni.showToast({
|
|
|
|
+ icon:"none",
|
|
|
|
+ title: '请勾选后再进行删除',
|
|
|
|
+ duration: 2000
|
|
|
|
+ });
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
|
|
@@ -1015,15 +1021,17 @@
|
|
cardHolderInfo: JSON.stringify(this.currectData),
|
|
cardHolderInfo: JSON.stringify(this.currectData),
|
|
}, failres => {
|
|
}, failres => {
|
|
console.log('res+++++', failres.errmsg)
|
|
console.log('res+++++', failres.errmsg)
|
|
- this.$refs.uToast.show({
|
|
|
|
- type: 'error',
|
|
|
|
- message: failres.errmsg,
|
|
|
|
- })
|
|
|
|
|
|
+ uni.showToast({
|
|
|
|
+ icon:"none",
|
|
|
|
+ title: failres.errmsg,
|
|
|
|
+ duration: 3000
|
|
|
|
+ });
|
|
}).then(res => {
|
|
}).then(res => {
|
|
- this.$refs.uToast.show({
|
|
|
|
- type: 'success',
|
|
|
|
- message: '修改备注成功',
|
|
|
|
- })
|
|
|
|
|
|
+ uni.showToast({
|
|
|
|
+ icon:"success",
|
|
|
|
+ title: '修改备注成功!',
|
|
|
|
+ duration: 2000
|
|
|
|
+ });
|
|
this.remark=''
|
|
this.remark=''
|
|
this.modalShow = false
|
|
this.modalShow = false
|
|
this.mescroll.resetUpScroll()
|
|
this.mescroll.resetUpScroll()
|
|
@@ -1049,15 +1057,17 @@
|
|
cardHolderInfo: JSON.stringify(this.currectData),
|
|
cardHolderInfo: JSON.stringify(this.currectData),
|
|
}, failres => {
|
|
}, failres => {
|
|
console.log('res+++++', failres.errmsg)
|
|
console.log('res+++++', failres.errmsg)
|
|
- this.$refs.uToast.show({
|
|
|
|
- type: 'error',
|
|
|
|
- message: failres.errmsg,
|
|
|
|
- })
|
|
|
|
|
|
+ uni.showToast({
|
|
|
|
+ icon:"none",
|
|
|
|
+ title: failres.errmsg,
|
|
|
|
+ duration: 3000
|
|
|
|
+ });
|
|
}).then(res => {
|
|
}).then(res => {
|
|
- this.$refs.uToast.show({
|
|
|
|
- type: 'success',
|
|
|
|
- message: '修改分类成功',
|
|
|
|
- })
|
|
|
|
|
|
+ uni.showToast({
|
|
|
|
+ icon:"success",
|
|
|
|
+ title: '修改分类成功!',
|
|
|
|
+ duration: 2000
|
|
|
|
+ });
|
|
this.mescroll.resetUpScroll()
|
|
this.mescroll.resetUpScroll()
|
|
})
|
|
})
|
|
} else {
|
|
} else {
|
|
@@ -1088,10 +1098,11 @@
|
|
classify:this.typeName
|
|
classify:this.typeName
|
|
}, failres => {
|
|
}, failres => {
|
|
console.log('res+++++', failres.errmsg)
|
|
console.log('res+++++', failres.errmsg)
|
|
- this.$refs.uToast.show({
|
|
|
|
- type: 'error',
|
|
|
|
- message: failres.errmsg,
|
|
|
|
- })
|
|
|
|
|
|
+ uni.showToast({
|
|
|
|
+ icon:"none",
|
|
|
|
+ title: failres.errmsg,
|
|
|
|
+ duration: 3000
|
|
|
|
+ });
|
|
uni.hideLoading()
|
|
uni.hideLoading()
|
|
}).then(res => {
|
|
}).then(res => {
|
|
console.log(res)
|
|
console.log(res)
|
|
@@ -1119,10 +1130,11 @@
|
|
commonId: uni.getStorageSync("userInfo").id
|
|
commonId: uni.getStorageSync("userInfo").id
|
|
}, failres => {
|
|
}, failres => {
|
|
console.log('res+++++', failres.errmsg)
|
|
console.log('res+++++', failres.errmsg)
|
|
- this.$refs.uToast.show({
|
|
|
|
- type: 'error',
|
|
|
|
- message: failres.errmsg,
|
|
|
|
- })
|
|
|
|
|
|
+ uni.showToast({
|
|
|
|
+ icon:"none",
|
|
|
|
+ title: failres.errmsg,
|
|
|
|
+ duration: 3000
|
|
|
|
+ });
|
|
}).then(res => {
|
|
}).then(res => {
|
|
res.data.items.unshift({
|
|
res.data.items.unshift({
|
|
circleName:'全部分类'
|
|
circleName:'全部分类'
|
|
@@ -1131,6 +1143,26 @@
|
|
|
|
|
|
console.log(this.typeColumns)
|
|
console.log(this.typeColumns)
|
|
})
|
|
})
|
|
|
|
+
|
|
|
|
+ // await this.$request.baseRequest('admin.unimall.cardNewsInfo', 'list', {
|
|
|
|
+ // receiveId: uni.getStorageSync("userInfo").id,
|
|
|
|
+ // }, failres => {
|
|
|
|
+ // console.log('res+++++', failres.errmsg)
|
|
|
|
+ // uni.showToast({
|
|
|
|
+ // icon:"none",
|
|
|
|
+ // title: failres.errmsg,
|
|
|
|
+ // duration: 3000
|
|
|
|
+ // });
|
|
|
|
+ // }).then(res => {
|
|
|
|
+ // this.noticeList = res.data.items
|
|
|
|
+ // if (this.noticeList.length > 0) {
|
|
|
|
+ // var data = this.noticeList.filter((item) => {
|
|
|
|
+ // return item.newsFlag == 0
|
|
|
|
+ // })
|
|
|
|
+ // this.unread = data ? data.length : 0
|
|
|
|
+ // }
|
|
|
|
+ // console.log(this.unread)
|
|
|
|
+ // })
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
@@ -1144,10 +1176,11 @@
|
|
loginType: 1,
|
|
loginType: 1,
|
|
raw: JSON.stringify(wxres)
|
|
raw: JSON.stringify(wxres)
|
|
}, failres => {
|
|
}, failres => {
|
|
- that.$refs.uToast.show({
|
|
|
|
- type: 'error',
|
|
|
|
- message: failres.errmsg,
|
|
|
|
- })
|
|
|
|
|
|
+ uni.showToast({
|
|
|
|
+ icon:"none",
|
|
|
|
+ title: failres.errmsg,
|
|
|
|
+ duration: 3000
|
|
|
|
+ });
|
|
uni.hideLoading()
|
|
uni.hideLoading()
|
|
}).then(res => {
|
|
}).then(res => {
|
|
console.log(res.data)
|
|
console.log(res.data)
|
|
@@ -1157,10 +1190,11 @@
|
|
})
|
|
})
|
|
},
|
|
},
|
|
fail: function(err) {
|
|
fail: function(err) {
|
|
- that.$refs.uToast.show({
|
|
|
|
- type: 'error',
|
|
|
|
- message: err.code,
|
|
|
|
- })
|
|
|
|
|
|
+ uni.showToast({
|
|
|
|
+ icon:"none",
|
|
|
|
+ title: err.code,
|
|
|
|
+ duration: 3000
|
|
|
|
+ });
|
|
// 登录授权失败
|
|
// 登录授权失败
|
|
// err.code是错误码
|
|
// err.code是错误码
|
|
}
|
|
}
|
|
@@ -1648,13 +1682,11 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.avatar-wrapper{
|
|
.avatar-wrapper{
|
|
- width: 150rpx;
|
|
|
|
- height: 100rpx;
|
|
|
|
color: #333 !important;
|
|
color: #333 !important;
|
|
- text-align: center !important;
|
|
|
|
border: none !important;
|
|
border: none !important;
|
|
border-radius:0 !important;
|
|
border-radius:0 !important;
|
|
background-color:transparent !important;
|
|
background-color:transparent !important;
|
|
|
|
+ padding: 0;
|
|
}
|
|
}
|
|
.avatar-wrapper::after {
|
|
.avatar-wrapper::after {
|
|
border: none !important;
|
|
border: none !important;
|