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

修改金币不足

parent 0d944462
......@@ -80,6 +80,11 @@
this.isConfirm = true;
this.tipMsg = "发送成功";
this.$refs.elm.showDialog();
}else {
uni.showToast({
title: res.data.message,
icon: 'none'
})
}
})
} else if (res.cancel) {
......
......@@ -446,13 +446,14 @@ import {getDict} from "../api/system/dict/data";
wxOpenid: uni.getStorageSync('userInfo').wxOpenid,
isPay:'1',//1花费 0不花费
}
this.animUrl = url;
this.showAnima = true;
setTimeout(() => {
this.showAnima = false;
}, 500)
likeUser(form).then(res=>{
if (res.data.code != 200) {
if (res.data.code == 200) {
this.animUrl = url;
this.showAnima = true;
setTimeout(() => {
this.showAnima = false;
}, 500)
} else {
uni.showToast({
title: res.data.message,
icon: 'none'
......
......@@ -112,7 +112,17 @@ export default {
}
if (e === 1){
//要微信
uni.showModal({
title: '提示',
content: '是否花费'+ this.payCount +'金币,向对方发起请求',
success: (res) => {
if (res.confirm) {
console.log('11111111')
} else if (res.cancel) {
}
}
});
}
},
//获取留言字典配置
......@@ -210,6 +220,11 @@ export default {
if (res.data.code == 200){
this.$refs.paging.reload();
this.inputTemp = ''
} else {
uni.showToast({
title: res.data.message,
icon: 'none'
})
}
})
} 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