no message
Showing
6 changed files
with
80 additions
and
29 deletions
| ... | @@ -169,4 +169,25 @@ export function queryTicket(qy) { | ... | @@ -169,4 +169,25 @@ export function queryTicket(qy) { |
| 169 | params: qy | 169 | params: qy |
| 170 | }) | 170 | }) |
| 171 | } | 171 | } |
| 172 | export function getHomeInviteQuery(params) { | ||
| 173 | return request({ | ||
| 174 | url: `/league/person/getHomeInviteQuery`, | ||
| 175 | method: 'get', | ||
| 176 | params: params | ||
| 177 | }) | ||
| 178 | } | ||
| 179 | export function getHomeCarQuery(params) { | ||
| 180 | return request({ | ||
| 181 | url: `/league/person/getHomeCarQuery`, | ||
| 182 | method: 'get', | ||
| 183 | params: params | ||
| 184 | }) | ||
| 185 | } | ||
| 186 | export function getHomeRoomQuery(params) { | ||
| 187 | return request({ | ||
| 188 | url: `/league/person/getHomeRoomQuery`, | ||
| 189 | method: 'get', | ||
| 190 | params: params | ||
| 191 | }) | ||
| 192 | } | ||
| 172 | 193 | ... | ... |
| ... | @@ -8,9 +8,9 @@ | ... | @@ -8,9 +8,9 @@ |
| 8 | <div class="pd20"> | 8 | <div class="pd20"> |
| 9 | <div class="topsearch"> | 9 | <div class="topsearch"> |
| 10 | <el-input v-if="activeTab==0" :placeholder="language==0?'请输入护照号搜索':'Please enter passport number to search'" | 10 | <el-input v-if="activeTab==0" :placeholder="language==0?'请输入护照号搜索':'Please enter passport number to search'" |
| 11 | v-model="query.idCard"/> | 11 | v-model="query.passportNo"/> |
| 12 | <el-input v-else :placeholder="language==0?'请输入姓名搜索':'Please enter name to search'" | 12 | <el-input v-else :placeholder="language==0?'请输入姓名搜索':'Please enter name to search'" |
| 13 | v-model="query.name"/> | 13 | v-model="query.contacts"/> |
| 14 | <el-button class="btn-lineG" type="primary" @click="search"> | 14 | <el-button class="btn-lineG" type="primary" @click="search"> |
| 15 | <el-icon class="mr20"> | 15 | <el-icon class="mr20"> |
| 16 | <Search/> | 16 | <Search/> |
| ... | @@ -20,25 +20,26 @@ | ... | @@ -20,25 +20,26 @@ |
| 20 | </div> | 20 | </div> |
| 21 | 21 | ||
| 22 | <div class="stab"> | 22 | <div class="stab"> |
| 23 | <div :class="activeTab==0?'active':''" @click="activeTab=0"> | 23 | <div :class="activeTab==0?'active':''" @click="changeActiveTab(0)"> |
| 24 | <img v-show="activeTab!=0" src="@/assets/img/tag01@2x.png"/> | 24 | <img v-show="activeTab!=0" src="@/assets/img/tag01@2x.png"/> |
| 25 | <img v-show="activeTab==0" src="@/assets/img/tag01_dwn@2x.png"/> | 25 | <img v-show="activeTab==0" src="@/assets/img/tag01_dwn@2x.png"/> |
| 26 | {{language==0?'签证服务':'Visa Services'}} | 26 | {{language==0?'签证服务':'Visa Services'}} |
| 27 | </div> | 27 | </div> |
| 28 | <div :class="activeTab==1?'active':''" @click="activeTab=1"> | 28 | <div :class="activeTab==1?'active':''" @click="changeActiveTab(1)"> |
| 29 | <img v-show="activeTab!=1" src="@/assets/img/tag02@2x.png"/> | 29 | <img v-show="activeTab!=1" src="@/assets/img/tag02@2x.png"/> |
| 30 | <img v-show="activeTab==1" src="@/assets/img/tag02_dwn@2x.png"/> | 30 | <img v-show="activeTab==1" src="@/assets/img/tag02_dwn@2x.png"/> |
| 31 | {{language==0?'酒店预定':'Hotel Reservation'}} | 31 | {{language==0?'酒店预定':'Hotel Reservation'}} |
| 32 | </div> | 32 | </div> |
| 33 | <div :class="activeTab==2?'active':''" @click="activeTab=2"> | 33 | <div :class="activeTab==2?'active':''" @click="changeActiveTab(2)"> |
| 34 | <img v-show="activeTab!=2" src="@/assets/img/tag03@2x.png"/> | 34 | <img v-show="activeTab!=2" src="@/assets/img/tag03@2x.png"/> |
| 35 | <img v-show="activeTab==2" src="@/assets/img/tag03_dwn@2x.png"/> | 35 | <img v-show="activeTab==2" src="@/assets/img/tag03_dwn@2x.png"/> |
| 36 | {{language==0?'接送服务':'Pick-up Service'}} | 36 | {{language==0?'接送服务':'Pick-up Service'}} |
| 37 | </div> | 37 | </div> |
| 38 | </div> | 38 | </div> |
| 39 | <div> | 39 | <div> |
| 40 | <div v-for="item in list"></div> | 40 | <div v-for="item in list"> |
| 41 | 41 | {{item}} | |
| 42 | </div> | ||
| 42 | </div> | 43 | </div> |
| 43 | 44 | ||
| 44 | <el-empty v-if="list.length==0"/> | 45 | <el-empty v-if="list.length==0"/> |
| ... | @@ -50,7 +51,7 @@ | ... | @@ -50,7 +51,7 @@ |
| 50 | 51 | ||
| 51 | <script setup> | 52 | <script setup> |
| 52 | import {ref, computed, onMounted} from 'vue' | 53 | import {ref, computed, onMounted} from 'vue' |
| 53 | import {queryTicket} from "@/apiPc/common"; | 54 | import {getHomeCarQuery, getHomeInviteQuery, getHomeRoomQuery} from "@/apiPc/common"; |
| 54 | import {ElMessage} from "element-plus"; | 55 | import {ElMessage} from "element-plus"; |
| 55 | import {useStorage} from "@vueuse/core/index"; | 56 | import {useStorage} from "@vueuse/core/index"; |
| 56 | 57 | ||
| ... | @@ -62,27 +63,54 @@ const query = ref({ | ... | @@ -62,27 +63,54 @@ const query = ref({ |
| 62 | status: 1 | 63 | status: 1 |
| 63 | }) | 64 | }) |
| 64 | const loading = ref(false) | 65 | const loading = ref(false) |
| 65 | 66 | function changeActiveTab(n) { | |
| 67 | activeTab.value = n | ||
| 68 | query.value.passportNo = '' | ||
| 69 | query.value.contacts = '' | ||
| 70 | } | ||
| 66 | function search() { | 71 | function search() { |
| 67 | if (!query.value.idCard && activeTab.value == 0) { | 72 | if (!query.value.passportNo && activeTab.value == 0) { |
| 68 | ElMessage.warning(language==0?'请输入关键字搜索':'Please enter keyword to search') | 73 | ElMessage.warning(language.value==0?'请输入护照号搜索':'Please enter keyword to search') |
| 69 | return | 74 | return |
| 70 | } | 75 | } |
| 71 | if (!query.value.name && activeTab.value != 0) { | 76 | if (!query.value.contacts && activeTab.value != 0) { |
| 72 | ElMessage.warning(language==0?'请输入关键字搜索':'Please enter keyword to search') | 77 | ElMessage.warning(language.value==0?'请输入关键字搜索':'Please enter keyword to search') |
| 73 | return | 78 | return |
| 74 | } | 79 | } |
| 75 | loading.value = true | 80 | loading.value = true |
| 76 | queryTicket(query.value).then(res => { | 81 | if(activeTab.value == 0){ |
| 77 | list.value = res.data | 82 | // 签证服务 |
| 78 | for (let bill of list.value) { | 83 | getHomeInviteQuery(query.value).then(res=>{ |
| 79 | // p.idCard = p.idCard.substring(0,4)+'****'+p.idCard.substring(8,p.idCard.length) | 84 | if (!res.data||res.data.length==0) { |
| 80 | const pattern = new RegExp(query.value.idCard, 'gi') | 85 | list.value = [] |
| 81 | bill.idCard = bill.idCard.replace(pattern, `<span class="highlight">$&</span>`) | 86 | ElMessage.warning(language.value==0?'未找到结果,请重新查询':'No result') |
| 82 | 87 | return | |
| 83 | } | 88 | } |
| 84 | loading.value = false | 89 | list.value = res.data |
| 85 | }) | 90 | }) |
| 91 | } | ||
| 92 | if(activeTab.value == 1){ | ||
| 93 | // 酒店预定 | ||
| 94 | getHomeRoomQuery(query.value).then(res=>{ | ||
| 95 | if (!res.data||res.data.length==0) { | ||
| 96 | list.value = [] | ||
| 97 | ElMessage.warning(language.value==0?'未找到结果,请重新查询':'No result') | ||
| 98 | return | ||
| 99 | } | ||
| 100 | list.value = res.data | ||
| 101 | }) | ||
| 102 | } | ||
| 103 | if(activeTab.value == 2){ | ||
| 104 | // 接送服务 | ||
| 105 | getHomeCarQuery(query.value).then(res=>{ | ||
| 106 | if (!res.data||res.data.length==0) { | ||
| 107 | list.value = [] | ||
| 108 | ElMessage.warning(language.value==0?'未找到结果,请重新查询':'No result') | ||
| 109 | return | ||
| 110 | } | ||
| 111 | list.value = res.data | ||
| 112 | }) | ||
| 113 | } | ||
| 86 | } | 114 | } |
| 87 | </script> | 115 | </script> |
| 88 | 116 | ... | ... |
| ... | @@ -136,7 +136,6 @@ function popRemark(type) { | ... | @@ -136,7 +136,6 @@ function popRemark(type) { |
| 136 | || (form.value.isFoodView == 0 && type == '3') | 136 | || (form.value.isFoodView == 0 && type == '3') |
| 137 | || (form.value.isMealView == 0 && type == '4') | 137 | || (form.value.isMealView == 0 && type == '4') |
| 138 | || (form.value.isPhotoView == 0 && type == '5') | 138 | || (form.value.isPhotoView == 0 && type == '5') |
| 139 | || (form.value.isTicket==0&&type == '0') | ||
| 140 | ) { | 139 | ) { |
| 141 | building() | 140 | building() |
| 142 | return | 141 | return | ... | ... |
| ... | @@ -226,7 +226,7 @@ | ... | @@ -226,7 +226,7 @@ |
| 226 | <img :src="fillImgUrl_webSite(n.picUrl)"></div> | 226 | <img :src="fillImgUrl_webSite(n.picUrl)"></div> |
| 227 | <div class="info"> | 227 | <div class="info"> |
| 228 | <div class="small-size text-gray"> | 228 | <div class="small-size text-gray"> |
| 229 | <span v-if="n.subName">{{ n.subName + ' | ' }}</span> | 229 | <!-- <span v-if="n.subName">{{ n.subName + ' | ' }}</span>--> |
| 230 | {{ n.belongTime }} | 230 | {{ n.belongTime }} |
| 231 | </div> | 231 | </div> |
| 232 | <h2 class="esp_2">{{ n.name }}</h2> | 232 | <h2 class="esp_2">{{ n.name }}</h2> | ... | ... |
| ... | @@ -20,7 +20,7 @@ | ... | @@ -20,7 +20,7 @@ |
| 20 | </div> | 20 | </div> |
| 21 | </el-col> | 21 | </el-col> |
| 22 | <el-col :lg="4" :md="7" :sm="11" :xs="11"> | 22 | <el-col :lg="4" :md="7" :sm="11" :xs="11"> |
| 23 | <div class="funcBtn" @click="popRemark(6)"> | 23 | <div class="funcBtn" @click="goAbout"> |
| 24 | <img src="@/assets/dance/btn04.png"/> | 24 | <img src="@/assets/dance/btn04.png"/> |
| 25 | <h4>场馆介绍</h4> | 25 | <h4>场馆介绍</h4> |
| 26 | </div> | 26 | </div> |
| ... | @@ -52,7 +52,7 @@ | ... | @@ -52,7 +52,7 @@ |
| 52 | </div> | 52 | </div> |
| 53 | </el-col> | 53 | </el-col> |
| 54 | <el-col :lg="4" :md="7" :sm="11" :xs="11"> | 54 | <el-col :lg="4" :md="7" :sm="11" :xs="11"> |
| 55 | <div class="funcBtn" @click="popRemark(6)"> | 55 | <div class="funcBtn" @click="goAbout"> |
| 56 | <img src="@/assets/dance/btn04.png"/> | 56 | <img src="@/assets/dance/btn04.png"/> |
| 57 | <h4>Venue Introduction</h4> | 57 | <h4>Venue Introduction</h4> |
| 58 | </div> | 58 | </div> |
| ... | @@ -206,6 +206,9 @@ function addInvoice() { | ... | @@ -206,6 +206,9 @@ function addInvoice() { |
| 206 | } | 206 | } |
| 207 | }) | 207 | }) |
| 208 | } | 208 | } |
| 209 | function goAbout() { | ||
| 210 | router.push({path: `/about/wuDao`}) | ||
| 211 | } | ||
| 209 | </script> | 212 | </script> |
| 210 | 213 | ||
| 211 | <style lang="scss" scoped> | 214 | <style lang="scss" scoped> | ... | ... |
| ... | @@ -83,9 +83,9 @@ export default defineConfig(({ mode, command }) => { | ... | @@ -83,9 +83,9 @@ export default defineConfig(({ mode, command }) => { |
| 83 | '/dev-api': { | 83 | '/dev-api': { |
| 84 | // target: 'http://192.168.1.118:8081/', | 84 | // target: 'http://192.168.1.118:8081/', |
| 85 | // target: 'http://192.168.1.131:8081/', | 85 | // target: 'http://192.168.1.131:8081/', |
| 86 | // target: 'https://jijin.wtwuxicenter.com/stage-api', | 86 | target: 'https://www.2025wtcwuxi.com/stage-api/', |
| 87 | // target: 'http://124.70.181.90:1880/stage-api', | 87 | // target: 'http://124.70.181.90:1880/stage-api', |
| 88 | target: 'https://wdsfwuxicenter.com/stage-api/', | 88 | // target: 'https://wdsfwuxicenter.com/stage-api/', |
| 89 | changeOrigin: true, | 89 | changeOrigin: true, |
| 90 | rewrite: (p) => p.replace(/^\/dev-api/, '') | 90 | rewrite: (p) => p.replace(/^\/dev-api/, '') |
| 91 | }, | 91 | }, | ... | ... |
-
Please register or sign in to post a comment