Commit baed7146 by 胡悦

提交未接待弹窗

1 parent 7a73cf7d
......@@ -2,8 +2,8 @@
* @Description:
* @Author: huyue
* @Date: 2024-04-08 11:30:30
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-04-08 18:27:50
* @LastEditors: huyue
* @LastEditTime: 2024-04-08 18:30:16
-->
<template>
<view>
......@@ -66,7 +66,7 @@
</view>
</view>
</view>
<view class="payment-done">已完成支付,去采集凭证</view>
<view class="payment-done" @click="done()">已完成支付,去采集凭证</view>
</view>
</view>
</uni-popup>
......@@ -139,14 +139,16 @@ export default {
},
open() {
this.stopAudio();
// 通过组件定义的ref调用uni-popup方法 ,如果传入参数 ,type 属性将失效 ,仅支持 ['top','left','bottom','right','center']
// this.$refs.popup.open("bottom");
this.$refs.popup.open("bottom");
this.findPayInfo();
},
close() {
this.$refs.popup.close();
},
done() {
this.stopAudio();
}
},
};
</script>
......
......@@ -2,8 +2,8 @@
* @Description: 首页
* @Author: huyue
* @Date: 2024-04-07 14:39:40
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-04-08 18:26:32
* @LastEditors: huyue
* @LastEditTime: 2024-04-08 18:48:34
-->
<template>
<view class="container">
......@@ -60,6 +60,24 @@
<view class="module-name">{{ item.title }}</view>
</view>
</view>
<!-- 未点击开始接待,弹窗 -->
<uni-popup ref="tips" type="center" :animation="false">
<view class="tips-wrapper">
<view class="tips-content">
<view class="tips-title"
>提示
<view class="icon-close" @click="close">×</view>
</view>
<view class="tips-text"
>直接点击素材可进行预览,若面向车辆主展示,请点击页面下方的「开始接待」</view
>
</view>
<view class="tips-footer">
<view class="tips-btn close">取消</view>
<view class="tips-btn preview" @click="preview">预览素材</view>
</view>
</view>
</uni-popup>
</view>
</view>
</template>
......@@ -99,11 +117,24 @@ export default {
});
},
toDetail(item) {
// this.$Router.push({name:'detail'})
uni.navigateTo({
url: `../detail/detail?id=${item.id}`,
});
if (this.isStart) {
uni.navigateTo({
url: `../detail/detail?id=${item.id}&type=edit`,
});
} else {
this.preview(item)
}
this.$refs.tips.open("center");
},
close() {
this.$refs.tips.close();
},
preview(item) {
uni.navigateTo({
url: `../detail/detail?id=${item.id}&type=preview`,
});
}
},
};
</script>
......@@ -228,4 +259,61 @@ export default {
}
}
}
// 未开始接待弹窗
.tips-wrapper {
width: 704rpx;
height: 372rpx;
background: #ffffff;
border-radius: 20rpx;
.tips-content {
padding: 48rpx;
border-bottom: 1px solid #e8e8e8;
.tips-title {
position: relative;
width: 100%;
font-weight: 500;
font-size: 32rpx;
color: #292d33;
text-align: center;
.icon-close {
position: absolute;
right: 0;
top: -24rpx;
width: 160rpx;
font-size: 50rpx;
text-align: right;
padding-right: 20rpx;
line-height: 96rpx;
}
}
}
.tips-text {
font-size: 30rpx;
color: #5a5e66;
letter-spacing: 1rpx;
text-align: center;
line-height: 40rpx;
margin-top: 48rpx;
}
.tips-footer {
display: flex;
align-items: center;
justify-content: center;
height: 100rpx;
.close {
color: #6c6c70;
}
.preview {
color: #2c66f7;
}
}
.tips-btn {
width: 50%;
text-align: center;
font-size: 32rpx;
text-align: center;
line-height: 44rpx;
}
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!