Commit 1f6c88db by 胡悦

添加付款方式弹窗

1 parent 6051d3d1
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: huyue * @Author: huyue
* @Date: 2024-04-08 11:30:30 * @Date: 2024-04-08 11:30:30
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2024-04-09 14:48:03 * @LastEditTime: 2024-04-09 16:51:00
--> -->
<template> <template>
<view class="detail-box"> <view class="detail-box">
...@@ -45,6 +45,15 @@ ...@@ -45,6 +45,15 @@
<view class="pen-box"> <view class="pen-box">
<glsx-image src="media" /> <glsx-image src="media" />
</view> </view>
<!-- 完成接待弹窗 -->
<MessageBox
v-if="messageBoxVisible"
@cancel="done"
@confirm="toPay"
content="若客户成交,请点击付款方式协助客户完成后续流程。"
confirmBtnText="选择付款方式"
cancelBtnText="完成接待"
></MessageBox>
</view> </view>
</template> </template>
<script> <script>
...@@ -66,7 +75,8 @@ export default { ...@@ -66,7 +75,8 @@ export default {
type: 'preview', type: 'preview',
id: '', id: '',
mediaList: [], mediaList: [],
drawStatus:false drawStatus: false,
messageBoxVisible: false
}; };
}, },
onLoad (options) { onLoad (options) {
...@@ -76,7 +86,8 @@ export default { ...@@ -76,7 +86,8 @@ export default {
}, },
methods: { methods: {
open () { open () {
this.$refs.pay.show() // this.$refs.pay.show()
this.messageBoxVisible = true
}, },
/**切换素材 */ /**切换素材 */
choose (e) { choose (e) {
...@@ -92,6 +103,14 @@ export default { ...@@ -92,6 +103,14 @@ export default {
}, },
back () { back () {
uni.navigateBack() uni.navigateBack()
},
// 完成接待
done() {
uni.navigateBack()
},
// 选择付款方式
toPay() {
this.$refs.pay.show()
} }
}, },
}; };
......
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
@cancel="cancel" @cancel="cancel"
@confirm="preview" @confirm="preview"
content="直接点击素材可进行预览,若面向车辆主展示,请点击页面下方的「开始接待」" content="直接点击素材可进行预览,若面向车辆主展示,请点击页面下方的「开始接待」"
confirmBtnText="预览" confirmBtnText="预览素材"
></MessageBox> ></MessageBox>
</view> </view>
</view> </view>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!