df64a35a by zhangmeng

订单详情

1 parent 2db102d7
1 <template> 1 <template>
2 <div> 2 <div>
3 <el-dialog 3 <el-dialog
4 v-model="show" title="详情" :close-on-click-modal="true" width="800px"> 4 v-model="show" :title="language==0?'详情':'Details'" :close-on-click-modal="true" width="80%">
5 <div v-html="content"> 5 <div class="box-Dialog">
6 <div v-html="content"/>
6 </div> 7 </div>
7 </el-dialog> 8 </el-dialog>
8 </div> 9 </div>
...@@ -10,6 +11,9 @@ ...@@ -10,6 +11,9 @@
10 11
11 <script setup> 12 <script setup>
12 import {ref} from 'vue' 13 import {ref} from 'vue'
14 import {useStorage} from "@vueuse/core/index";
15
16 const language= useStorage('language',0)
13 const show=ref(false) 17 const show=ref(false)
14 const content=ref() 18 const content=ref()
15 19
...@@ -24,5 +28,11 @@ defineExpose({ ...@@ -24,5 +28,11 @@ defineExpose({
24 </script> 28 </script>
25 29
26 <style lang="scss" scoped> 30 <style lang="scss" scoped>
27 31 .box-Dialog{
32 display: flex;
33 justify-content: center;
34 //overflow: hidden;
35 overflow-x: scroll ;
36 overflow-y: hidden ;
37 }
28 </style> 38 </style>
......
...@@ -66,17 +66,19 @@ ...@@ -66,17 +66,19 @@
66 <span style="margin-left: 40px">{{language==0?'工作室电话':'Studio phone number' }}{{formInfo.contact}}</span> 66 <span style="margin-left: 40px">{{language==0?'工作室电话':'Studio phone number' }}{{formInfo.contact}}</span>
67 </el-col> 67 </el-col>
68 <el-col> 68 <el-col>
69 {{ language == 0 ?'套餐说明':'Package Description' }}{{ formInfo.introduction}} 69 <div class="esp_3 s" @click="handleView()">
70 </el-col> 70 {{ language == 0 ?'套餐说明':'Package Description' }}{{ formInfo.introduction}}
71 <el-col>
72 <div v-if="language == 0">
73 套餐详情: <span v-html="form.details"></span>
74 </div>
75 <div v-else>
76 Package details:<span v-html="form.detailsEn"></span>
77 </div> 71 </div>
78 <!-- {{ language == 0 ?'套餐详情':'Package details' }}{{ language == 0?form.details:form.detailsEn}}-->
79 </el-col> 72 </el-col>
73 <!-- <el-col>-->
74 <!-- <div v-if="language == 0">-->
75 <!-- 套餐详情: <span v-html="form.details"></span>-->
76 <!-- </div>-->
77 <!-- <div v-else>-->
78 <!-- Package details:<span v-html="form.detailsEn"></span>-->
79 <!-- </div>-->
80 <!--&lt;!&ndash; {{ language == 0 ?'套餐详情':'Package details' }}{{ language == 0?form.details:form.detailsEn}}&ndash;&gt;-->
81 <!-- </el-col>-->
80 </el-row> 82 </el-row>
81 </div> 83 </div>
82 </div> 84 </div>
...@@ -366,6 +368,7 @@ ...@@ -366,6 +368,7 @@
366 </template> 368 </template>
367 </el-result> 369 </el-result>
368 </div> 370 </div>
371 <Dialog ref="DialogRef" />
369 </div> 372 </div>
370 </template> 373 </template>
371 374
...@@ -375,8 +378,10 @@ import {getCurrentInstance, ref} from 'vue' ...@@ -375,8 +378,10 @@ import {getCurrentInstance, ref} from 'vue'
375 import {onMounted} from "@vue/runtime-core" 378 import {onMounted} from "@vue/runtime-core"
376 import {useRoute, useRouter} from "vue-router" 379 import {useRoute, useRouter} from "vue-router"
377 import * as booking from "@/apiPc/booking" 380 import * as booking from "@/apiPc/booking"
381 import Dialog from '@/viewsPc/booking/component/dailog.vue'
378 import MatchInfoRow from "@/viewsPc/match/components/matchInfo-row"; 382 import MatchInfoRow from "@/viewsPc/match/components/matchInfo-row";
379 383
384
380 const {proxy} = getCurrentInstance() 385 const {proxy} = getCurrentInstance()
381 const route = useRoute() 386 const route = useRoute()
382 const router = useRouter() 387 const router = useRouter()
...@@ -654,6 +659,12 @@ function exportPdf() { ...@@ -654,6 +659,12 @@ function exportPdf() {
654 659
655 } 660 }
656 661
662 // 套餐详情
663 function handleView(){
664 console.log(form.value)
665 proxy.$refs['DialogRef'].open(language.value==0? form.value.details:form.value.detailsEn)
666 }
667
657 </script> 668 </script>
658 669
659 <style scoped lang="scss"> 670 <style scoped lang="scss">
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!