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

修改bug

parent 09f8c3b8
......@@ -3,14 +3,15 @@
<view class="bg"></view>
<view class="dialog_content">
<view class="bag">
<image class="pop-bgc" :src="img + '/common/home-pop-bg.png'"></image>
<view class="divss">
<view class="namne">{{tips}}</view>
<view class="namnes">{{ msg!=null&&msg!=''?msg:"网络异常" }}</view>
<view v-if="isCancel==true" style="display: flex; justify-content: center;">
<view class="cancelButton" @click="cancel()">取消</view>
<view class="confirmButton" @click="hideDialog()">确定</view>
<view class="cancelButton" @click="cancel()">{{cancelName}}</view>
<view class="confirmButton" @click="hideDialog()">{{confirmName}}</view>
</view>
<view v-else class="button" @click="hideDialog()">确定</view>
<view v-else class="button" @click="hideDialog()">{{confirmName}}</view>
</view>
</view>
</view>
......@@ -28,6 +29,14 @@
type: String,
default: "提示"
},
cancelName: {
type: String,
default: "取消"
},
confirmName: {
type: String,
default: "确定"
},
isCancel: {
type: Boolean,
default: true
......@@ -39,7 +48,7 @@
},
data() {
return {
img: this.$BASE_URL,
img: this.$IMG_URL,
show: false
};
},
......@@ -133,7 +142,7 @@
width: 100%;
height: 56rpx;
line-height: 56rpx;
margin-top: 156rpx;
margin-top: 66rpx;
text-align: center;
}
......@@ -150,7 +159,7 @@
line-height: 84rpx;
text-align: center;
margin: 0 auto;
margin-top: 64rpx;
margin-top: 100rpx;
}
.cancelButton {
......@@ -166,7 +175,7 @@
line-height: 84rpx;
text-align: center;
margin: 0 auto;
margin-top: 64rpx;
margin-top: 100rpx;
}
.button {
......@@ -182,7 +191,7 @@
line-height: 84rpx;
text-align: center;
margin: 0 auto;
margin-top: 64rpx;
margin-top: 100rpx;
}
.namnes {
width: 364rpx;
......@@ -193,7 +202,7 @@
color: #4a4a4a;
line-height: 48rpx;
margin: 0 auto;
margin-top: 40rpx;
margin-top: 80rpx;
text-align: center;
}
}
......
......@@ -197,8 +197,12 @@
uni.showToast({
title: '请先登录',
icon: 'none',
duration: 1000
})
setTimeout(() => {
uni.switchTab({
url: '/pages/tab/my'
});
}, 500)
} else {
isStopAccount().then(res => {
//如果flag=0 被禁用了 踢出该用户
......
......@@ -86,7 +86,7 @@
if (res.data.code == 200){
uni.showToast({
title: '发表成功',
icon: 'success'
icon: 'none'
})
uni.setStorageSync("isRefresh", true)
setTimeout(() => {
......
......@@ -63,9 +63,13 @@
}
addMessage(data).then(res => {
if (res.data.code == 200) {
this.isConfirm = true;
this.tipMsg = "发送成功";
this.$refs.elm.showDialog();
uni.showToast({
title: '发送成功',
icon: 'none'
})
setTimeout(() => {
this.backbar()
}, 500)
} else if (res.data.code === 1001){
//留言超出限制 是否采用金币进行留言
this.isPayConfirm = true;
......@@ -105,9 +109,13 @@
}
addMessage(form).then(res=>{
if (res.data.code == 200){
this.isConfirm = true;
this.tipMsg = "发送成功";
this.$refs.elm.showDialog();
uni.showToast({
title: '发送成功',
icon: 'none'
})
setTimeout(() => {
this.backbar()
}, 500)
} else if (res.data.code === 1001){
uni.showToast({
title: res.data.message,
......@@ -126,6 +134,11 @@
url: "/pagesme/goldCoin/recharge"
})
},
backbar(){
uni.navigateBack({
delta: 1
})
}
}
}
</script>
......
......@@ -314,8 +314,9 @@ import {getOssUrl} from "../../api/article";
count: 1,
success: (res) => {
res.tempFilePaths.forEach((i) => {
uni.showLoading({
title: "图片上传中"
uni.showToast({
title: '图片上传中',
icon: 'none',
})
uni.uploadFile({
url: this.$BASE_URL + '/common/fileUpload',
......@@ -373,13 +374,13 @@ import {getOssUrl} from "../../api/article";
if (res.data.code == 200) {
uni.showToast({
title: '操作成功',
icon: 'success',
icon: 'none',
})
this.getUserInfo()
}else {
uni.showToast({
title: '操作失败',
icon: 'error',
icon: 'none',
})
this.getUserInfo()
}
......
......@@ -68,8 +68,8 @@
</u-popup>
<ELM ref="elm" :msg="tipMsg" :isCancel="false" :isConfirm="isConfirm" @confirm="confirm"></ELM>
<ELM ref="elmShowApply" :msg='tipMsg' :isConfirm="showApply" @confirm="acceptPayConfirm" @cancel="refuse"></ELM>
<ELM ref="elmMessage" :msg="tipMsg" :isConfirm="isMessageConfirm" @confirm="messageConfirm"></ELM>
<ELM ref="elmShowApply" :msg='tipMsg' :isConfirm="showApply" cancelName="拒绝" confirmName="接受" @confirm="acceptPayConfirm" @cancel="refuse"></ELM>
<ELM ref="elmMessage" :msg="tipMsg" :isConfirm="isMessageConfirm" confirmName="跳转" @confirm="messageConfirm"></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>
......
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