|
@@ -500,10 +500,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()
|
|
@@ -553,10 +554,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
|
|
@@ -570,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
|
|
@@ -912,18 +915,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()
|
|
@@ -936,10 +941,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
|
|
|
|
+ });
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
|
|
@@ -997,15 +1003,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()
|
|
@@ -1031,15 +1039,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 {
|
|
@@ -1070,10 +1080,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)
|
|
@@ -1101,10 +1112,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:'全部分类'
|
|
@@ -1118,10 +1130,11 @@
|
|
receiveId: uni.getStorageSync("userInfo").id,
|
|
receiveId: 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 => {
|
|
this.noticeList = res.data.items
|
|
this.noticeList = res.data.items
|
|
if (this.noticeList.length > 0) {
|
|
if (this.noticeList.length > 0) {
|
|
@@ -1145,10 +1158,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)
|
|
@@ -1158,10 +1172,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是错误码
|
|
}
|
|
}
|