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

修改弹窗

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