Commit 29a57c7a by 胡悦

修改弹窗

1 parent bce76ad6
......@@ -55,7 +55,7 @@ export default {
1: 'icon-weixin',
2: 'icon-shop'
},
goodsName: '',
goodsName: 'M5',
shopMerchantId: '',
currentPage: 1,
isEnd: false
......
......@@ -2,8 +2,8 @@
* @Description:
* @Author: huyue
* @Date: 2024-04-08 11:30:30
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-04-10 09:33:01
* @LastEditors: huyue
* @LastEditTime: 2024-04-10 09:41:08
-->
<template>
<view class="detail-box" @click="handleTouchStart()">
......@@ -57,7 +57,6 @@
></MessageBox>
<MessageBox
ref="payRef"
v-if="messageBoxVisible"
@cancel="done"
@confirm="toPay"
@close="close"
......@@ -101,7 +100,6 @@ export default {
5: [],
},
drawStatus: false,
messageBoxVisible: false,
finishVisible: false,
};
},
......@@ -116,11 +114,10 @@ export default {
},
methods: {
open() {
// this.$refs.payRef.open();
this.messageBoxVisible = true;
this.$refs.payRef.open();
},
close() {
this.messageBoxVisible = false;
this.$refs.payRef.close();
},
/**切换素材 */
choose(e) {
......
......@@ -2,8 +2,8 @@
* @Description: 首页
* @Author: huyue
* @Date: 2024-04-07 14:39:40
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-04-09 17:48:55
* @LastEditors: huyue
* @LastEditTime: 2024-04-10 09:38:27
-->
<template>
<view class="container" @click="handleTouchStart()">
......@@ -62,7 +62,7 @@
</view>
<!-- 未点击开始接待,弹窗 -->
<MessageBox
v-if="messageBoxVisible"
ref="previewRef"
@cancel="cancel"
@confirm="preview"
content="直接点击素材可进行预览,若面向车辆主展示,请点击页面下方的「开始接待」"
......@@ -85,7 +85,6 @@ export default {
mixins: [myClick],
data() {
return {
messageBoxVisible: false,
moduleList: [
// {
// id: 1,
......@@ -131,18 +130,18 @@ export default {
});
} else {
this.id = item.id;
this.messageBoxVisible = true;
this.$refs.previewRef.open();
}
},
cancel() {
this.messageBoxVisible = false;
this.$refs.previewRef.close();
},
preview() {
let { id } = this;
uni.navigateTo({
url: `../detail/detail?type=preview&id=${id}`,
});
this.messageBoxVisible = false;
this.$refs.previewRef.close()
},
},
};
......
......@@ -2,8 +2,8 @@
* @Description:
* @Author: huyue
* @Date: 2024-04-07 14:54:28
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-04-10 09:32:49
* @LastEditors: huyue
* @LastEditTime: 2024-04-10 09:43:41
-->
<template>
<view class="information-entry">
......@@ -45,7 +45,7 @@
<image class="preview-img" :src="previewImg" mode="aspectFit" />
</uni-popup>
<MessageBox
v-if="messageBoxVisible"
ref="formRef"
@cancel="cancel"
@confirm="submit"
confirmBtnText="保存"
......@@ -161,7 +161,6 @@ export default {
data() {
return {
infoList: INFO_LIST,
messageBoxVisible: false,
formObject: [
{
label: "车主姓名",
......@@ -263,7 +262,7 @@ export default {
.then((res) => {
this.employeeList = res;
});
this.messageBoxVisible = true; // 打开完善用户信息弹窗
this.$refs.formRef.open(); // 打开完善用户信息弹窗
}
},
// 保存
......@@ -274,7 +273,7 @@ export default {
if (!this.formData[i] && i != "salesUuid") throw i;
}
if (Object.values(this.formData).every((value) => !!value)) {
this.messageBoxVisible = false;
this.$refs.formRef.close()
this.setBooks(this.infoList);
this.stopAudio();
uni.reLaunch({
......@@ -291,7 +290,7 @@ export default {
},
// 取消
cancel() {
this.messageBoxVisible = false;
this.$refs.formRef.close()
},
// 预览图片
preview(index) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!