Commit baed7146 by 胡悦

提交未接待弹窗

1 parent 7a73cf7d
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
* @Description: * @Description:
* @Author: huyue * @Author: huyue
* @Date: 2024-04-08 11:30:30 * @Date: 2024-04-08 11:30:30
* @LastEditors: 前端 qianduan01@didihu.com.cn * @LastEditors: huyue
* @LastEditTime: 2024-04-08 18:27:50 * @LastEditTime: 2024-04-08 18:30:16
--> -->
<template> <template>
<view> <view>
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
</view> </view>
</view> </view>
</view> </view>
<view class="payment-done">已完成支付,去采集凭证</view> <view class="payment-done" @click="done()">已完成支付,去采集凭证</view>
</view> </view>
</view> </view>
</uni-popup> </uni-popup>
...@@ -139,14 +139,16 @@ export default { ...@@ -139,14 +139,16 @@ export default {
}, },
open() { open() {
this.stopAudio();
// 通过组件定义的ref调用uni-popup方法 ,如果传入参数 ,type 属性将失效 ,仅支持 ['top','left','bottom','right','center'] // 通过组件定义的ref调用uni-popup方法 ,如果传入参数 ,type 属性将失效 ,仅支持 ['top','left','bottom','right','center']
// this.$refs.popup.open("bottom"); this.$refs.popup.open("bottom");
this.findPayInfo(); this.findPayInfo();
}, },
close() { close() {
this.$refs.popup.close(); this.$refs.popup.close();
}, },
done() {
this.stopAudio();
}
}, },
}; };
</script> </script>
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
* @Description: 首页 * @Description: 首页
* @Author: huyue * @Author: huyue
* @Date: 2024-04-07 14:39:40 * @Date: 2024-04-07 14:39:40
* @LastEditors: 前端 qianduan01@didihu.com.cn * @LastEditors: huyue
* @LastEditTime: 2024-04-08 18:26:32 * @LastEditTime: 2024-04-08 18:48:34
--> -->
<template> <template>
<view class="container"> <view class="container">
...@@ -60,6 +60,24 @@ ...@@ -60,6 +60,24 @@
<view class="module-name">{{ item.title }}</view> <view class="module-name">{{ item.title }}</view>
</view> </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>
</view> </view>
</template> </template>
...@@ -99,11 +117,24 @@ export default { ...@@ -99,11 +117,24 @@ export default {
}); });
}, },
toDetail(item) { toDetail(item) {
// this.$Router.push({name:'detail'}) if (this.isStart) {
uni.navigateTo({ uni.navigateTo({
url: `../detail/detail?id=${item.id}`, 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> </script>
...@@ -228,4 +259,61 @@ export default { ...@@ -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> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!