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

修改余额不足弹窗

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