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

修改弹窗

parent c5aa9606
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,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="elmMessage" :msg="tipMsg" :isConfirm="isMessageConfirm" @confirm="messageConfirm"></ELM> <ELM ref="elmMessage" :msg="tipMsg" :isConfirm="isMessageConfirm" @confirm="messageConfirm"></ELM>
<ELM ref="elmMessage" :msg="tipMsg" :isConfirm="isPayConfirm" @confirm="payConfirm"></ELM> <ELM ref="elmPay" :msg="tipMsg" :isConfirm="isPayConfirm" @confirm="payConfirm"></ELM>
</view> </view>
</template> </template>
<script> <script>
...@@ -70,6 +70,7 @@ ...@@ -70,6 +70,7 @@
//留言超出限制 是否采用金币进行留言 //留言超出限制 是否采用金币进行留言
this.isPayConfirm = true; this.isPayConfirm = true;
this.tipMsg = "已超出留言次数,是否花费"+ this.payCount +"金币再进行留言"; this.tipMsg = "已超出留言次数,是否花费"+ this.payCount +"金币再进行留言";
this.$refs.elmPay.showDialog();
this.inputTemp = '' this.inputTemp = ''
} else if(res.data.code === 1002){ } else if(res.data.code === 1002){
uni.showToast({ uni.showToast({
...@@ -110,7 +111,7 @@ ...@@ -110,7 +111,7 @@
}else { }else {
this.isMessageConfirm = true; this.isMessageConfirm = true;
this.tipMsg = res.data.message; this.tipMsg = res.data.message;
this.$refs.elm.showDialog(); this.$refs.elmMessage.showDialog();
} }
}) })
}, },
......
...@@ -172,7 +172,6 @@ ...@@ -172,7 +172,6 @@
<view class="fe"> <view class="fe">
<view class="" style="height: 40rpx;display: flex;align-items: center;margin-top: 26rpx;"> <view class="" style="height: 40rpx;display: flex;align-items: center;margin-top: 26rpx;">
<view class="line"></view> <view class="line"></view>
<view class="text">IP属地:{{ userData.city != null ? userData.city : '-' }}</view>
<view class="line"></view> <view class="line"></view>
</view> </view>
</view> </view>
...@@ -202,7 +201,7 @@ ...@@ -202,7 +201,7 @@
<ELM ref="elm" :msg="tipMsg" :isConfirm="isConfirm" @confirm="confirm"></ELM> <ELM ref="elm" :msg="tipMsg" :isConfirm="isConfirm" @confirm="confirm"></ELM>
<ELM ref="elmCoin" :msg="tipMsg" :isConfirm="isCoinConfirm" @confirm="coinConfirm"></ELM> <ELM ref="elmCoin" :msg="tipMsg" :isConfirm="isCoinConfirm" @confirm="coinConfirm"></ELM>
<ELM ref="elm" :msg="tipMsg" :isConfirm="isLikeConfirm" @confirm="likeConfirm"></ELM> <ELM ref="elmLike" :msg="tipMsg" :isConfirm="isLikeConfirm" @confirm="likeConfirm"></ELM>
</view> </view>
</template> </template>
...@@ -452,7 +451,7 @@ ...@@ -452,7 +451,7 @@
//当天对该用户的次数已用完 选择付费点赞 //当天对该用户的次数已用完 选择付费点赞
this.isLikeConfirm = true; this.isLikeConfirm = true;
this.tipMsg = '今日已超出对该用户的点赞次数,是否花费'+ this.payCount +'金币再进行点赞'; this.tipMsg = '今日已超出对该用户的点赞次数,是否花费'+ this.payCount +'金币再进行点赞';
this.$refs.elm.showDialog(); this.$refs.elmLike.showDialog();
} else { } else {
uni.showToast({ uni.showToast({
title: res.data.message, title: res.data.message,
...@@ -499,7 +498,7 @@ ...@@ -499,7 +498,7 @@
} else { } else {
this.tipMsg = res.data.message; this.tipMsg = res.data.message;
this.isCoinConfirm = true; this.isCoinConfirm = true;
this.$refs.elm.showDialog(); this.$refs.elmCoin.showDialog();
} }
}) })
}, },
......
...@@ -87,9 +87,10 @@ ...@@ -87,9 +87,10 @@
}) })
updateUser(data).then(res => { updateUser(data).then(res => {
if (res.data.code == 200) { if (res.data.code == 200) {
this.isConfirm = true; uni.showToast({
this.tipMsg = "保存成功"; title: "保存成功",
this.$refs.elm.showDialog(); icon: 'none'
})
} else { } else {
this.tipMsg = res.data.msg; this.tipMsg = res.data.msg;
this.$refs.elm.showDialog(); this.$refs.elm.showDialog();
......
...@@ -712,9 +712,10 @@ export default { ...@@ -712,9 +712,10 @@ export default {
this.userInfo.wxOpenid= uni.getStorageSync('userInfo').wxOpenid this.userInfo.wxOpenid= uni.getStorageSync('userInfo').wxOpenid
updateUser(this.userInfo).then(response => { updateUser(this.userInfo).then(response => {
if (response.data.code == 200) { if (response.data.code == 200) {
this.isConfirm = true; uni.showToast({
this.tipMsg = "修改成功"; title: "保存成功",
this.$refs.elm.showDialog(); icon: 'none'
})
} else { } else {
this.tipMsg = res.data.msg; this.tipMsg = res.data.msg;
this.$refs.elm.showDialog(); this.$refs.elm.showDialog();
......
...@@ -68,13 +68,13 @@ ...@@ -68,13 +68,13 @@
</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="showApply" @confirm="apply" @cancel="refuse"></ELM> <ELM ref="elmShowApply" :msg='tipMsg' :isConfirm="showApply" @confirm="apply" @cancel="refuse"></ELM>
<ELM ref="elmMessage" :msg="tipMsg" :isConfirm="isMessageConfirm" @confirm="messageConfirm"></ELM> <ELM ref="elmMessage" :msg="tipMsg" :isConfirm="isMessageConfirm" @confirm="messageConfirm"></ELM>
<ELM ref="elm" :msg='tipMsg' :isConfirm="isBlackConfirm" @confirm="blackConfirm"></ELM> <ELM ref="elmBlack" :msg='tipMsg' :isConfirm="isBlackConfirm" @confirm="blackConfirm"></ELM>
<ELM ref="elm" :msg='tipMsg' :isConfirm="isMessagePayConfirm" @confirm="messagePayConfirm"></ELM> <ELM ref="elmMessagePay" :msg='tipMsg' :isConfirm="isMessagePayConfirm" @confirm="messagePayConfirm"></ELM>
<ELM ref="elm" :msg='tipMsg' :isConfirm="isApplyPayConfirm" @confirm="applyPayConfirm"></ELM> <ELM ref="elmApplyPay" :msg='tipMsg' :isConfirm="isApplyPayConfirm" @confirm="applyPayConfirm"></ELM>
<ELM ref="elm" :msg='tipMsg' :isConfirm="isAcceptPayConfirm" @confirm="acceptPayConfirm"></ELM> <ELM ref="elmAcceptPay" :msg='tipMsg' :isConfirm="isAcceptPayConfirm" @confirm="acceptPayConfirm"></ELM>
<ELM ref="elm" :msg='tipMsg' :isConfirm="isRefuseConfirm" @confirm="refuseConfirm"></ELM> <ELM ref="elmRefuse" :msg='tipMsg' :isConfirm="isRefuseConfirm" @confirm="refuseConfirm"></ELM>
</view> </view>
</template> </template>
...@@ -237,7 +237,7 @@ export default { ...@@ -237,7 +237,7 @@ export default {
addBlack() { addBlack() {
this.isBlackConfirm = true this.isBlackConfirm = true
this.tipMsg = "确定拉黑该用户吗?"; this.tipMsg = "确定拉黑该用户吗?";
this.$refs.elm.showDialog(); this.$refs.elmBlack.showDialog();
}, },
/** /**
* 发送 * 发送
...@@ -265,7 +265,7 @@ export default { ...@@ -265,7 +265,7 @@ export default {
//留言超出限制 是否采用金币进行留言 //留言超出限制 是否采用金币进行留言
this.isMessagePayConfirm = true; this.isMessagePayConfirm = true;
this.tipMsg = '已超出留言次数,是否花费'+ this.payCount +'金币再进行留言'; this.tipMsg = '已超出留言次数,是否花费'+ this.payCount +'金币再进行留言';
this.$refs.elm.showDialog(); this.$refs.elmMessagePay.showDialog();
this.inputTemp = '' this.inputTemp = ''
} else if(res.data.code === 1002){ } else if(res.data.code === 1002){
uni.showToast({ uni.showToast({
...@@ -308,7 +308,7 @@ export default { ...@@ -308,7 +308,7 @@ export default {
wantWxC(){ wantWxC(){
this.isApplyPayConfirm = true this.isApplyPayConfirm = true
this.tipMsg = "是否花费"+ this.applyWxPayment +"金币,向对方发起请求"; this.tipMsg = "是否花费"+ this.applyWxPayment +"金币,向对方发起请求";
this.$refs.elm.showDialog(); this.$refs.elmApplyPay.showDialog();
}, },
close() { close() {
this.show = false this.show = false
...@@ -322,17 +322,17 @@ export default { ...@@ -322,17 +322,17 @@ export default {
openApply(){ openApply(){
this.showApply = true this.showApply = true
this.tipMsg = '是否接受对方的请求' this.tipMsg = '是否接受对方的请求'
this.$refs.elm.showDialog(); this.$refs.elmShowApply.showDialog();
}, },
apply(){ apply(){
this.isAcceptPayConfirm = true this.isAcceptPayConfirm = true
this.tipMsg = '是否花费'+ this.acceptWxPayment +'金币,向对方发起请求'; this.tipMsg = '是否花费'+ this.acceptWxPayment +'金币,向对方发起请求';
this.$refs.elm.showDialog(); this.$refs.elmAcceptPay.showDialog();
}, },
refuse(){ refuse(){
this.isRefuseConfirm = true this.isRefuseConfirm = true
this.tipMsg = '是否确认拒绝对方请求'; this.tipMsg = '是否确认拒绝对方请求';
this.$refs.elm.showDialog(); this.$refs.elmRefuse.showDialog();
}, },
getWxTask(){ getWxTask(){
const form = { const form = {
...@@ -382,7 +382,7 @@ export default { ...@@ -382,7 +382,7 @@ export default {
} else { } else {
this.isMessageConfirm = true; this.isMessageConfirm = true;
this.tipMsg = res.data.message; this.tipMsg = res.data.message;
this.$refs.elm.showDialog(); this.$refs.elmMessage.showDialog();
} }
}) })
}, },
...@@ -407,7 +407,7 @@ export default { ...@@ -407,7 +407,7 @@ export default {
} else { } else {
this.isMessageConfirm = true; this.isMessageConfirm = true;
this.tipMsg = res.data.message; this.tipMsg = res.data.message;
this.$refs.elm.showDialog(); this.$refs.elmMessage.showDialog();
} }
}) })
}, },
...@@ -430,7 +430,7 @@ export default { ...@@ -430,7 +430,7 @@ export default {
this.showApply = false this.showApply = false
this.isMessageConfirm = true; this.isMessageConfirm = true;
this.tipMsg = res.data.message; this.tipMsg = res.data.message;
this.$refs.elm.showDialog(); this.$refs.elmMessage.showDialog();
} }
}) })
}, },
...@@ -453,7 +453,7 @@ export default { ...@@ -453,7 +453,7 @@ export default {
this.showApply = false this.showApply = false
this.isMessageConfirm = true; this.isMessageConfirm = true;
this.tipMsg = res.data.message; this.tipMsg = res.data.message;
this.$refs.elm.showDialog(); this.$refs.elmMessage.showDialog();
} }
}) })
}, },
......
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