拍照修改
Showing
1 changed file
with
6 additions
and
3 deletions
| ... | @@ -51,7 +51,7 @@ | ... | @@ -51,7 +51,7 @@ |
| 51 | 51 | ||
| 52 | <div class="calendarList"> | 52 | <div class="calendarList"> |
| 53 | <ul v-loading="loading"> | 53 | <ul v-loading="loading"> |
| 54 | <li v-for="n in schList" :key="n.id" @click="goMatch(n)"> | 54 | <li v-for="n in schList" :key="n.id" > |
| 55 | <el-row style="width: 100%"> | 55 | <el-row style="width: 100%"> |
| 56 | <div style="margin-right: 25px"> | 56 | <div style="margin-right: 25px"> |
| 57 | <el-image style="width: 90px;height: 115px" :src="fillImgUrl(n.photos?.split(',')[0]) " fit="cover" /> | 57 | <el-image style="width: 90px;height: 115px" :src="fillImgUrl(n.photos?.split(',')[0]) " fit="cover" /> |
| ... | @@ -163,13 +163,15 @@ function dateChange(){ | ... | @@ -163,13 +163,15 @@ function dateChange(){ |
| 163 | } | 163 | } |
| 164 | 164 | ||
| 165 | function goMatch(n) { | 165 | function goMatch(n) { |
| 166 | console.log(11) | ||
| 166 | if (!user) { | 167 | if (!user) { |
| 167 | useUserStore().setVisitor() | 168 | useUserStore().setVisitor() |
| 168 | return | 169 | return |
| 169 | } | 170 | } |
| 170 | 171 | ||
| 171 | ElMessageBox.confirm(language.value==0?`你当前所预约的时间为${query.value.currentDate}是否确定?`:`Your current appointment is ${query.value.currentDate}. Are you sure?`,{type:'warning'}) | 172 | ElMessageBox.confirm(language.value==0?`你当前所预约的时间为${query.value.currentDate}是否确定?`:`Your current appointment is ${query.value.currentDate}. Are you sure?`,{type:'warning'}) |
| 172 | .then(() => { | 173 | .then((rr) => { |
| 174 | console.log(rr) | ||
| 173 | router.push({ | 175 | router.push({ |
| 174 | name: 'photographyOrder', | 176 | name: 'photographyOrder', |
| 175 | params: { | 177 | params: { |
| ... | @@ -180,8 +182,9 @@ function goMatch(n) { | ... | @@ -180,8 +182,9 @@ function goMatch(n) { |
| 180 | } | 182 | } |
| 181 | }) | 183 | }) |
| 182 | }) | 184 | }) |
| 183 | .catch(() => { | 185 | .catch((e) => { |
| 184 | // catch error | 186 | // catch error |
| 187 | console.log(e) | ||
| 185 | }) | 188 | }) |
| 186 | 189 | ||
| 187 | 190 | ... | ... |
-
Please register or sign in to post a comment