Commit fe0692b4 authored by 罗林杰's avatar 罗林杰

修改余额不足弹窗

parent 252e9252
......@@ -8,6 +8,7 @@
发送
</view>
<ELM ref="elm" :msg="tipMsg" :isConfirm="isConfirm" @confirm="confirm"></ELM>
<ELM ref="elm" :msg="tipMsg" :isConfirm="isMessageConfirm" @confirm="messageConfirm"></ELM>
</view>
</template>
<script>
......@@ -23,6 +24,7 @@
type: 0,
tipMsg: '',
isConfirm: false,
isMessageConfirm: false,
//金币支付金额
payCount: 0
}
......@@ -81,10 +83,9 @@
this.tipMsg = "发送成功";
this.$refs.elm.showDialog();
}else {
uni.showToast({
title: res.data.message,
icon: 'none'
})
this.isMessageConfirm = true;
this.tipMsg = res.data.message;
this.$refs.elm.showDialog();
}
})
} else if (res.cancel) {
......@@ -116,6 +117,12 @@
delta: 1
})
},
messageConfirm(){
this.isMessageConfirm = false;
uni.navigateTo({
url: "/pagesme/goldCoin/recharge"
})
},
}
}
</script>
......
......@@ -201,6 +201,7 @@
</view>
<ELM ref="elm" :msg="tipMsg" :isConfirm="isConfirm" @confirm="confirm"></ELM>
<ELM ref="elm" :msg="tipMsg" :isConfirm="isCoinConfirm" @confirm="coinConfirm"></ELM>
</view>
</template>
......@@ -249,6 +250,7 @@ import ELM from '@/components/elm-toast/index.vue';
showTabbar: true,
tipMsg: '',
isConfirm: false,
isCoinConfirm: false,
scrollTop: 0,
data: [],
};
......@@ -395,7 +397,7 @@ import ELM from '@/components/elm-toast/index.vue';
if (res.data.code == 200){
this.getIsFollowed();
} else {
this.tipMsg = "对方还未回应请求";
this.tipMsg = res.data.message;
this.isConfirm = true;
this.$refs.elm.showDialog();
}
......@@ -464,10 +466,9 @@ import ELM from '@/components/elm-toast/index.vue';
this.showAnima = false;
}, 500)
} else {
uni.showToast({
title: res.data.message,
icon: 'none'
})
this.tipMsg = res.data.message;
this.isCoinConfirm = true;
this.$refs.elm.showDialog();
}
})
}
......@@ -497,6 +498,12 @@ import ELM from '@/components/elm-toast/index.vue';
this.isConfirm = false;
this.backbar()
},
coinConfirm(){
this.isCoinConfirm = false;
uni.navigateTo({
url: "/pagesme/goldCoin/recharge"
})
},
//返回按钮
backbar() {
uni.navigateBack({
......
......@@ -83,6 +83,7 @@
</u-popup>
<ELM ref="elm" :msg="tipMsg" :isConfirm="isConfirm" @confirm="confirm"></ELM>
<ELM ref="elm" :msg="tipMsg" :isConfirm="isMessageConfirm" @confirm="messageConfirm"></ELM>
</view>
</template>
......@@ -117,6 +118,7 @@ export default {
payCount: 0,
tipMsg: '',
isConfirm: false,
isMessageConfirm: false,
applyWxPayment:0,
acceptWxPayment:0,
wxTask:[]
......@@ -295,10 +297,9 @@ export default {
this.$refs.paging.reload();
this.inputTemp = ''
} else {
uni.showToast({
title: res.data.message,
icon: 'none'
})
this.isMessageConfirm = true;
this.tipMsg = res.data.message;
this.$refs.elm.showDialog();
}
})
} else if (res.cancel) {
......@@ -364,10 +365,9 @@ export default {
icon: 'none'
})
} else {
uni.showToast({
title: res.data.message,
icon: 'none'
})
this.isMessageConfirm = true;
this.tipMsg = res.data.message;
this.$refs.elm.showDialog();
}
})
}
......@@ -407,11 +407,10 @@ export default {
})
this.showApply = false
} else {
uni.showToast({
title: res.data.message,
icon: 'none'
})
this.showApply = false
this.isMessageConfirm = true;
this.tipMsg = res.data.message;
this.$refs.elm.showDialog();
}
})
}
......@@ -439,11 +438,10 @@ export default {
})
this.showApply = false
} else {
uni.showToast({
title: res.data.message,
icon: 'none'
})
this.showApply = false
this.isMessageConfirm = true;
this.tipMsg = res.data.message;
this.$refs.elm.showDialog();
}
})
}
......@@ -463,6 +461,12 @@ export default {
confirm() {
this.isConfirm = false;
},
messageConfirm(){
this.isMessageConfirm = false;
uni.navigateTo({
url: "/pagesme/goldCoin/recharge"
})
},
backbar() {
uni.navigateBack({
delta: 1, // 返回层数,2则上上页
......
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