Commit 6b3f08cd authored by 罗林杰's avatar 罗林杰

修改金币不足

parent 0d944462
...@@ -80,6 +80,11 @@ ...@@ -80,6 +80,11 @@
this.isConfirm = true; this.isConfirm = true;
this.tipMsg = "发送成功"; this.tipMsg = "发送成功";
this.$refs.elm.showDialog(); this.$refs.elm.showDialog();
}else {
uni.showToast({
title: res.data.message,
icon: 'none'
})
} }
}) })
} else if (res.cancel) { } else if (res.cancel) {
......
...@@ -446,13 +446,14 @@ import {getDict} from "../api/system/dict/data"; ...@@ -446,13 +446,14 @@ import {getDict} from "../api/system/dict/data";
wxOpenid: uni.getStorageSync('userInfo').wxOpenid, wxOpenid: uni.getStorageSync('userInfo').wxOpenid,
isPay:'1',//1花费 0不花费 isPay:'1',//1花费 0不花费
} }
likeUser(form).then(res=>{
if (res.data.code == 200) {
this.animUrl = url; this.animUrl = url;
this.showAnima = true; this.showAnima = true;
setTimeout(() => { setTimeout(() => {
this.showAnima = false; this.showAnima = false;
}, 500) }, 500)
likeUser(form).then(res=>{ } else {
if (res.data.code != 200) {
uni.showToast({ uni.showToast({
title: res.data.message, title: res.data.message,
icon: 'none' icon: 'none'
......
...@@ -112,8 +112,18 @@ export default { ...@@ -112,8 +112,18 @@ export default {
} }
if (e === 1){ if (e === 1){
//要微信 //要微信
uni.showModal({
title: '提示',
content: '是否花费'+ this.payCount +'金币,向对方发起请求',
success: (res) => {
if (res.confirm) {
console.log('11111111')
} else if (res.cancel) {
} }
}
});
}
}, },
//获取留言字典配置 //获取留言字典配置
getLeaveMessageDict(){ getLeaveMessageDict(){
...@@ -210,6 +220,11 @@ export default { ...@@ -210,6 +220,11 @@ export default {
if (res.data.code == 200){ if (res.data.code == 200){
this.$refs.paging.reload(); this.$refs.paging.reload();
this.inputTemp = '' this.inputTemp = ''
} else {
uni.showToast({
title: res.data.message,
icon: 'none'
})
} }
}) })
} else if (res.cancel) { } else if (res.cancel) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment