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

修改弹窗

parent cf2d4207
...@@ -5,9 +5,13 @@ ...@@ -5,9 +5,13 @@
<view class="bag"> <view class="bag">
<image class="pop-bgc" :src="img + '/img/home-pop-bg.png'"></image> <image class="pop-bgc" :src="img + '/img/home-pop-bg.png'"></image>
<view class="divss"> <view class="divss">
<view class="namne">提示</view> <view class="namne">{{tips}}</view>
<view class="namnes">{{ msg!=null&&msg!=''?msg:"网络异常" }}</view> <view class="namnes">{{ msg!=null&&msg!=''?msg:"网络异常" }}</view>
<view class="button" @click="hideDialog()">确定</view> <view style="display: flex; justify-content: center;">
<view class="cancelButton" @click="cancel()">取消</view>
<view class="confirmButton" @click="hideDialog()">确定</view>
</view>
</view> </view>
</view> </view>
</view> </view>
...@@ -21,6 +25,10 @@ ...@@ -21,6 +25,10 @@
type: String, type: String,
default: "" default: ""
}, },
tips: {
type: String,
default: "提示"
},
isConfirm: { isConfirm: {
type: Boolean, type: Boolean,
default: false default: false
...@@ -47,6 +55,12 @@ ...@@ -47,6 +55,12 @@
// url: '/pages/tab/index' // url: '/pages/tab/index'
// }); // });
}, },
cancel(){
this.show = false;
if (this.isConfirm != undefined&&this.isConfirm!=null && this.isConfirm == true) {
this.$emit('cancel')
}
},
gzh() { gzh() {
this.show = false; this.show = false;
// uni.navigateTo({ // uni.navigateTo({
...@@ -120,8 +134,8 @@ ...@@ -120,8 +134,8 @@
text-align: center; text-align: center;
} }
.button { .confirmButton {
width: 392rpx; width: 172rpx;
height: 84rpx; height: 84rpx;
background: linear-gradient(86deg, #c2d2f9 0%, #c5c2f3 100%); background: linear-gradient(86deg, #c2d2f9 0%, #c5c2f3 100%);
border-radius: 42rpx; border-radius: 42rpx;
...@@ -136,6 +150,22 @@ ...@@ -136,6 +150,22 @@
margin-top: 64rpx; margin-top: 64rpx;
} }
.cancelButton {
width: 172rpx;
height: 84rpx;
background: linear-gradient(86deg, #dde0e5 0%, #eae7e7 100%);
border-radius: 42rpx;
font-size: 28rpx;
font-family: 'PingFang SC-Regular, PingFang SC';
font-weight: 400;
color: #000000;
line-height: 84rpx;
text-align: center;
margin: 0 auto;
margin-top: 64rpx;
}
.namnes { .namnes {
width: 364rpx; width: 364rpx;
height: 96rpx; height: 96rpx;
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
<u-badge :isDot="wxTask.type == '1'" type="error"></u-badge> <u-badge :isDot="wxTask.type == '1'" type="error"></u-badge>
</view> </view>
</view> </view>
<u-tabbar-item text="互要联系方式" icon="phone-fill" @click="tabbarClick"/> <u-tabbar-item text="互要联系方式" icon="phone-fill" @click="phoneClick"/>
</u-tabbar> </u-tabbar>
</view> </view>
<z-paging ref="paging" v-model="dataList" @query="getMessageList" use-chat-record-mode> <z-paging ref="paging" v-model="dataList" @query="getMessageList" use-chat-record-mode>
...@@ -478,6 +478,12 @@ export default { ...@@ -478,6 +478,12 @@ export default {
url: "/pagesme/goldCoin/recharge" url: "/pagesme/goldCoin/recharge"
}) })
}, },
phoneClick(){
uni.showToast({
title: '功能待开发',
icon: 'none'
})
},
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