no message
Showing
2 changed files
with
190 additions
and
140 deletions
| ... | @@ -308,7 +308,7 @@ async function paymentHandle() { | ... | @@ -308,7 +308,7 @@ async function paymentHandle() { |
| 308 | } | 308 | } |
| 309 | if (currSeat.value.length != orderForm.value.customerIds.length) { | 309 | if (currSeat.value.length != orderForm.value.customerIds.length) { |
| 310 | ElMessage({ | 310 | ElMessage({ |
| 311 | message: language.value == 0 ? '座位数与人数不一致' : '', | 311 | message: language.value == 0 ? '座位数与人数不一致' : 'Seat number is inconsistent with the number of people', |
| 312 | type: 'error' | 312 | type: 'error' |
| 313 | }) | 313 | }) |
| 314 | return | 314 | return | ... | ... |
| ... | @@ -12,7 +12,7 @@ | ... | @@ -12,7 +12,7 @@ |
| 12 | > | 12 | > |
| 13 | <a href="javascript:void(0)" @click="toInfo(m,menus)"> | 13 | <a href="javascript:void(0)" @click="toInfo(m,menus)"> |
| 14 | <img :src="m.isActive ? m.picUrl2 : m.picUrl1"> | 14 | <img :src="m.isActive ? m.picUrl2 : m.picUrl1"> |
| 15 | {{m.name }} | 15 | {{ m.name }} |
| 16 | </a> | 16 | </a> |
| 17 | </li> | 17 | </li> |
| 18 | </ul> | 18 | </ul> |
| ... | @@ -23,7 +23,7 @@ | ... | @@ -23,7 +23,7 @@ |
| 23 | > | 23 | > |
| 24 | <a href="javascript:void(0)" @click="toInfo(m,menusEn)"> | 24 | <a href="javascript:void(0)" @click="toInfo(m,menusEn)"> |
| 25 | <img :src="m.isActive ? m.picUrl2 : m.picUrl1"> | 25 | <img :src="m.isActive ? m.picUrl2 : m.picUrl1"> |
| 26 | {{m.name }} | 26 | {{ m.name }} |
| 27 | </a> | 27 | </a> |
| 28 | </li> | 28 | </li> |
| 29 | </ul> | 29 | </ul> |
| ... | @@ -93,7 +93,8 @@ import {onMounted} from '@vue/runtime-core' | ... | @@ -93,7 +93,8 @@ import {onMounted} from '@vue/runtime-core' |
| 93 | import useUserStore from '@/store/modules/user' | 93 | import useUserStore from '@/store/modules/user' |
| 94 | import _ from 'lodash' | 94 | import _ from 'lodash' |
| 95 | import {useStorage} from "@vueuse/core/index"; | 95 | import {useStorage} from "@vueuse/core/index"; |
| 96 | const language= useStorage('language',0) | 96 | |
| 97 | const language = useStorage('language', 0) | ||
| 97 | 98 | ||
| 98 | const route = useRoute() | 99 | const route = useRoute() |
| 99 | const router = useRouter() | 100 | const router = useRouter() |
| ... | @@ -101,63 +102,63 @@ const router = useRouter() | ... | @@ -101,63 +102,63 @@ const router = useRouter() |
| 101 | const user = useUserStore().user || {} | 102 | const user = useUserStore().user || {} |
| 102 | const menus = ref([ | 103 | const menus = ref([ |
| 103 | { | 104 | { |
| 104 | name: language.value==0?'基础信息':'Basic Information', | 105 | name: language.value == 0 ? '基础信息' : 'Basic Information', |
| 105 | routeName: 'myInfo', | 106 | routeName: 'myInfo', |
| 106 | picUrl1: '/img/nav_26.png', | 107 | picUrl1: '/img/nav_26.png', |
| 107 | picUrl2: '/img/nav_26_dwn.png', | 108 | picUrl2: '/img/nav_26_dwn.png', |
| 108 | isActive: false | 109 | isActive: false |
| 109 | }, | 110 | }, |
| 110 | { | 111 | { |
| 111 | name: language.value==0?'修改密码':'Change Password', | 112 | name: language.value == 0 ? '修改密码' : 'Change Password', |
| 112 | routeName: 'myPassword', | 113 | routeName: 'myPassword', |
| 113 | picUrl1: '/img/nav_27.png', | 114 | picUrl1: '/img/nav_27.png', |
| 114 | picUrl2: '/img/nav_27_dwn.png', | 115 | picUrl2: '/img/nav_27_dwn.png', |
| 115 | isActive: false | 116 | isActive: false |
| 116 | }, | 117 | }, |
| 117 | { | 118 | { |
| 118 | name: language.value==0?'团队认证':'Organization Recognition', | 119 | name: language.value == 0 ? '团队认证' : 'Organization Recognition', |
| 119 | routeName: 'myCertification', | 120 | routeName: 'myCertification', |
| 120 | picUrl1: '/img/nav_32.png', | 121 | picUrl1: '/img/nav_32.png', |
| 121 | picUrl2: '/img/nav_32_dwn.png', | 122 | picUrl2: '/img/nav_32_dwn.png', |
| 122 | isActive: false | 123 | isActive: false |
| 123 | }, | 124 | }, |
| 124 | { | 125 | { |
| 125 | name: language.value==0?'选手管理':'Athlete Management', | 126 | name: language.value == 0 ? '选手管理' : 'Athlete Management', |
| 126 | routeName: 'myMember', | 127 | routeName: 'myMember', |
| 127 | picUrl1: '/img/nav_31.png', | 128 | picUrl1: '/img/nav_31.png', |
| 128 | picUrl2: '/img/nav_31_dwn.png', | 129 | picUrl2: '/img/nav_31_dwn.png', |
| 129 | isActive: false | 130 | isActive: false |
| 130 | }, | 131 | }, |
| 131 | { | 132 | { |
| 132 | name: language.value==0?'我的报名':'My Registration', | 133 | name: language.value == 0 ? '我的报名' : 'My Registration', |
| 133 | routeName: 'myMatch', | 134 | routeName: 'myMatch', |
| 134 | picUrl1: '/img/nav_28.png', | 135 | picUrl1: '/img/nav_28.png', |
| 135 | picUrl2: '/img/nav_28_dwn.png', | 136 | picUrl2: '/img/nav_28_dwn.png', |
| 136 | isActive: false | 137 | isActive: false |
| 137 | }, | 138 | }, |
| 138 | { | 139 | { |
| 139 | name: language.value==0?'我的预订':'My Reservation', | 140 | name: language.value == 0 ? '我的预订' : 'My Reservation', |
| 140 | routeName: 'myReservation', | 141 | routeName: 'myReservation', |
| 141 | picUrl1: '/img/nav_29.png', | 142 | picUrl1: '/img/nav_29.png', |
| 142 | picUrl2: '/img/nav_29_dwn.png', | 143 | picUrl2: '/img/nav_29_dwn.png', |
| 143 | isActive: false | 144 | isActive: false |
| 144 | }, | 145 | }, |
| 146 | // { | ||
| 147 | // name: language.value==0?'票务预订':'Ticket Reservation', | ||
| 148 | // routeName: 'seat_order', | ||
| 149 | // picUrl1: '/img/c7.png', | ||
| 150 | // picUrl2: '/img/c7.png', | ||
| 151 | // isActive: false | ||
| 152 | // }, | ||
| 145 | { | 153 | { |
| 146 | name: language.value==0?'票务预订':'Ticket Reservation', | 154 | name: language.value == 0 ? '系统消息' : 'System messages', |
| 147 | routeName: 'seat_order', | ||
| 148 | picUrl1: '/img/c7.png', | ||
| 149 | picUrl2: '/img/c7.png', | ||
| 150 | isActive: false | ||
| 151 | }, | ||
| 152 | { | ||
| 153 | name: language.value==0?'系统消息':'System messages', | ||
| 154 | routeName: 'mySms', | 155 | routeName: 'mySms', |
| 155 | picUrl1: '/img/nav_30.png', | 156 | picUrl1: '/img/nav_30.png', |
| 156 | picUrl2: '/img/nav_30_dwn.png', | 157 | picUrl2: '/img/nav_30_dwn.png', |
| 157 | isActive: false | 158 | isActive: false |
| 158 | }, | 159 | }, |
| 159 | { | 160 | { |
| 160 | name: language.value==0?'发票申请':'Electronic invoice', | 161 | name: language.value == 0 ? '发票申请' : 'Electronic invoice', |
| 161 | routeName: 'myKP', | 162 | routeName: 'myKP', |
| 162 | picUrl1: '/img/fp.svg', | 163 | picUrl1: '/img/fp.svg', |
| 163 | picUrl2: '/img/fp_dwn.svg', | 164 | picUrl2: '/img/fp_dwn.svg', |
| ... | @@ -166,56 +167,56 @@ const menus = ref([ | ... | @@ -166,56 +167,56 @@ const menus = ref([ |
| 166 | ]) | 167 | ]) |
| 167 | const menusEn = ref([ | 168 | const menusEn = ref([ |
| 168 | { | 169 | { |
| 169 | name: language.value==0?'基础信息':'Basic Information', | 170 | name: language.value == 0 ? '基础信息' : 'Basic Information', |
| 170 | routeName: 'myInfo', | 171 | routeName: 'myInfo', |
| 171 | picUrl1: '/img/nav_26.png', | 172 | picUrl1: '/img/nav_26.png', |
| 172 | picUrl2: '/img/nav_26_dwn.png', | 173 | picUrl2: '/img/nav_26_dwn.png', |
| 173 | isActive: false | 174 | isActive: false |
| 174 | }, | 175 | }, |
| 175 | { | 176 | { |
| 176 | name: language.value==0?'修改密码':'Change Password', | 177 | name: language.value == 0 ? '修改密码' : 'Change Password', |
| 177 | routeName: 'myPassword', | 178 | routeName: 'myPassword', |
| 178 | picUrl1: '/img/nav_27.png', | 179 | picUrl1: '/img/nav_27.png', |
| 179 | picUrl2: '/img/nav_27_dwn.png', | 180 | picUrl2: '/img/nav_27_dwn.png', |
| 180 | isActive: false | 181 | isActive: false |
| 181 | }, | 182 | }, |
| 182 | { | 183 | { |
| 183 | name: language.value==0?'团队认证':'Organization Recognition', | 184 | name: language.value == 0 ? '团队认证' : 'Organization Recognition', |
| 184 | routeName: 'myCertification', | 185 | routeName: 'myCertification', |
| 185 | picUrl1: '/img/nav_32.png', | 186 | picUrl1: '/img/nav_32.png', |
| 186 | picUrl2: '/img/nav_32_dwn.png', | 187 | picUrl2: '/img/nav_32_dwn.png', |
| 187 | isActive: false | 188 | isActive: false |
| 188 | }, | 189 | }, |
| 189 | { | 190 | { |
| 190 | name: language.value==0?'选手管理':'Athlete Management', | 191 | name: language.value == 0 ? '选手管理' : 'Athlete Management', |
| 191 | routeName: 'myMember', | 192 | routeName: 'myMember', |
| 192 | picUrl1: '/img/nav_31.png', | 193 | picUrl1: '/img/nav_31.png', |
| 193 | picUrl2: '/img/nav_31_dwn.png', | 194 | picUrl2: '/img/nav_31_dwn.png', |
| 194 | isActive: false | 195 | isActive: false |
| 195 | }, | 196 | }, |
| 196 | { | 197 | { |
| 197 | name: language.value==0?'我的报名':'My Registration', | 198 | name: language.value == 0 ? '我的报名' : 'My Registration', |
| 198 | routeName: 'myMatch', | 199 | routeName: 'myMatch', |
| 199 | picUrl1: '/img/nav_28.png', | 200 | picUrl1: '/img/nav_28.png', |
| 200 | picUrl2: '/img/nav_28_dwn.png', | 201 | picUrl2: '/img/nav_28_dwn.png', |
| 201 | isActive: false | 202 | isActive: false |
| 202 | }, | 203 | }, |
| 203 | { | 204 | { |
| 204 | name: language.value==0?'我的预订':'My Reservation', | 205 | name: language.value == 0 ? '我的预订' : 'My Reservation', |
| 205 | routeName: 'myReservation', | 206 | routeName: 'myReservation', |
| 206 | picUrl1: '/img/nav_29.png', | 207 | picUrl1: '/img/nav_29.png', |
| 207 | picUrl2: '/img/nav_29_dwn.png', | 208 | picUrl2: '/img/nav_29_dwn.png', |
| 208 | isActive: false | 209 | isActive: false |
| 209 | }, | 210 | }, |
| 211 | // { | ||
| 212 | // name: language.value==0?'票务预订':'Ticket Reservation', | ||
| 213 | // routeName: 'seat_order', | ||
| 214 | // picUrl1: '/img/c7.png', | ||
| 215 | // picUrl2: '/img/c7.png', | ||
| 216 | // isActive: false | ||
| 217 | // }, | ||
| 210 | { | 218 | { |
| 211 | name: language.value==0?'票务预订':'Ticket Reservation', | 219 | name: language.value == 0 ? '系统消息' : 'System messages', |
| 212 | routeName: 'seat_order', | ||
| 213 | picUrl1: '/img/c7.png', | ||
| 214 | picUrl2: '/img/c7.png', | ||
| 215 | isActive: false | ||
| 216 | }, | ||
| 217 | { | ||
| 218 | name: language.value==0?'系统消息':'System messages', | ||
| 219 | routeName: 'mySms', | 220 | routeName: 'mySms', |
| 220 | picUrl1: '/img/nav_30.png', | 221 | picUrl1: '/img/nav_30.png', |
| 221 | picUrl2: '/img/nav_30_dwn.png', | 222 | picUrl2: '/img/nav_30_dwn.png', |
| ... | @@ -224,35 +225,35 @@ const menusEn = ref([ | ... | @@ -224,35 +225,35 @@ const menusEn = ref([ |
| 224 | ]) | 225 | ]) |
| 225 | const menus3 = ref([ | 226 | const menus3 = ref([ |
| 226 | { | 227 | { |
| 227 | name: language.value==0?'基础信息':'Basic Information', | 228 | name: language.value == 0 ? '基础信息' : 'Basic Information', |
| 228 | routeName: 'myInfo', | 229 | routeName: 'myInfo', |
| 229 | picUrl1: '/img/nav_26.png', | 230 | picUrl1: '/img/nav_26.png', |
| 230 | picUrl2: '/img/nav_26_dwn.png', | 231 | picUrl2: '/img/nav_26_dwn.png', |
| 231 | isActive: false | 232 | isActive: false |
| 232 | }, | 233 | }, |
| 233 | { | 234 | { |
| 234 | name: language.value==0?'修改密码':'Change Password', | 235 | name: language.value == 0 ? '修改密码' : 'Change Password', |
| 235 | routeName: 'myPassword', | 236 | routeName: 'myPassword', |
| 236 | picUrl1: '/img/nav_27.png', | 237 | picUrl1: '/img/nav_27.png', |
| 237 | picUrl2: '/img/nav_27_dwn.png', | 238 | picUrl2: '/img/nav_27_dwn.png', |
| 238 | isActive: false | 239 | isActive: false |
| 239 | }, | 240 | }, |
| 240 | { | 241 | { |
| 241 | name: language.value==0?'我的预订':'My Reservation', | 242 | name: language.value == 0 ? '我的预订' : 'My Reservation', |
| 242 | routeName: 'myReservation', | 243 | routeName: 'myReservation', |
| 243 | picUrl1: '/img/nav_29.png', | 244 | picUrl1: '/img/nav_29.png', |
| 244 | picUrl2: '/img/nav_29_dwn.png', | 245 | picUrl2: '/img/nav_29_dwn.png', |
| 245 | isActive: false | 246 | isActive: false |
| 246 | }, | 247 | }, |
| 247 | { | 248 | { |
| 248 | name: language.value==0?'票务预订':'Ticket Reservation', | 249 | name: language.value == 0 ? '票务预订' : 'Ticket Reservation', |
| 249 | routeName: 'seat_order', | 250 | routeName: 'seat_order', |
| 250 | picUrl1: '/img/c7.png', | 251 | picUrl1: '/img/c7.png', |
| 251 | picUrl2: '/img/c7.png', | 252 | picUrl2: '/img/c7.png', |
| 252 | isActive: false | 253 | isActive: false |
| 253 | }, | 254 | }, |
| 254 | { | 255 | { |
| 255 | name: language.value==0?'发票申请':'Electronic invoice', | 256 | name: language.value == 0 ? '发票申请' : 'Electronic invoice', |
| 256 | routeName: 'myKP', | 257 | routeName: 'myKP', |
| 257 | picUrl1: '/img/fp.svg', | 258 | picUrl1: '/img/fp.svg', |
| 258 | picUrl2: '/img/fp_dwn.svg', | 259 | picUrl2: '/img/fp_dwn.svg', |
| ... | @@ -261,28 +262,28 @@ const menus3 = ref([ | ... | @@ -261,28 +262,28 @@ const menus3 = ref([ |
| 261 | ]) | 262 | ]) |
| 262 | const menus3En = ref([ | 263 | const menus3En = ref([ |
| 263 | { | 264 | { |
| 264 | name: language.value==0?'基础信息':'Basic Information', | 265 | name: language.value == 0 ? '基础信息' : 'Basic Information', |
| 265 | routeName: 'myInfo', | 266 | routeName: 'myInfo', |
| 266 | picUrl1: '/img/nav_26.png', | 267 | picUrl1: '/img/nav_26.png', |
| 267 | picUrl2: '/img/nav_26_dwn.png', | 268 | picUrl2: '/img/nav_26_dwn.png', |
| 268 | isActive: false | 269 | isActive: false |
| 269 | }, | 270 | }, |
| 270 | { | 271 | { |
| 271 | name: language.value==0?'修改密码':'Change Password', | 272 | name: language.value == 0 ? '修改密码' : 'Change Password', |
| 272 | routeName: 'myPassword', | 273 | routeName: 'myPassword', |
| 273 | picUrl1: '/img/nav_27.png', | 274 | picUrl1: '/img/nav_27.png', |
| 274 | picUrl2: '/img/nav_27_dwn.png', | 275 | picUrl2: '/img/nav_27_dwn.png', |
| 275 | isActive: false | 276 | isActive: false |
| 276 | }, | 277 | }, |
| 277 | { | 278 | { |
| 278 | name: language.value==0?'我的预订':'My Reservation', | 279 | name: language.value == 0 ? '我的预订' : 'My Reservation', |
| 279 | routeName: 'myReservation', | 280 | routeName: 'myReservation', |
| 280 | picUrl1: '/img/nav_29.png', | 281 | picUrl1: '/img/nav_29.png', |
| 281 | picUrl2: '/img/nav_29_dwn.png', | 282 | picUrl2: '/img/nav_29_dwn.png', |
| 282 | isActive: false | 283 | isActive: false |
| 283 | }, | 284 | }, |
| 284 | { | 285 | { |
| 285 | name: language.value==0?'票务预订':'Ticket Reservation', | 286 | name: language.value == 0 ? '票务预订' : 'Ticket Reservation', |
| 286 | routeName: 'seat_order', | 287 | routeName: 'seat_order', |
| 287 | picUrl1: '/img/c7.png', | 288 | picUrl1: '/img/c7.png', |
| 288 | picUrl2: '/img/c7.png', | 289 | picUrl2: '/img/c7.png', |
| ... | @@ -290,50 +291,50 @@ const menus3En = ref([ | ... | @@ -290,50 +291,50 @@ const menus3En = ref([ |
| 290 | } | 291 | } |
| 291 | ]) | 292 | ]) |
| 292 | const menusPersonal = ref([ | 293 | const menusPersonal = ref([ |
| 293 | { | 294 | { |
| 294 | name: language.value==0?'基础信息':'Basic Information', | 295 | name: language.value == 0 ? '基础信息' : 'Basic Information', |
| 295 | routeName: 'myInfo', | 296 | routeName: 'myInfo', |
| 296 | picUrl1: '/img/nav_26.png', | 297 | picUrl1: '/img/nav_26.png', |
| 297 | picUrl2: '/img/nav_26_dwn.png', | 298 | picUrl2: '/img/nav_26_dwn.png', |
| 298 | isActive: false | 299 | isActive: false |
| 299 | }, | 300 | }, |
| 300 | { | 301 | { |
| 301 | name: language.value==0?'修改密码':'Change Password', | 302 | name: language.value == 0 ? '修改密码' : 'Change Password', |
| 302 | routeName: 'myPassword', | 303 | routeName: 'myPassword', |
| 303 | picUrl1: '/img/nav_27.png', | 304 | picUrl1: '/img/nav_27.png', |
| 304 | picUrl2: '/img/nav_27_dwn.png', | 305 | picUrl2: '/img/nav_27_dwn.png', |
| 305 | isActive: false | 306 | isActive: false |
| 306 | }, | 307 | }, |
| 307 | { | 308 | { |
| 308 | name: language.value==0?'我的报名':'My Registration', | 309 | name: language.value == 0 ? '我的报名' : 'My Registration', |
| 309 | routeName: 'myMatch', | 310 | routeName: 'myMatch', |
| 310 | picUrl1: '/img/nav_28.png', | 311 | picUrl1: '/img/nav_28.png', |
| 311 | picUrl2: '/img/nav_28_dwn.png', | 312 | picUrl2: '/img/nav_28_dwn.png', |
| 312 | isActive: false | 313 | isActive: false |
| 313 | }, | 314 | }, |
| 314 | { | 315 | { |
| 315 | name: language.value==0?'我的预订':'My Reservation', | 316 | name: language.value == 0 ? '我的预订' : 'My Reservation', |
| 316 | routeName: 'myReservation', | 317 | routeName: 'myReservation', |
| 317 | picUrl1: '/img/nav_29.png', | 318 | picUrl1: '/img/nav_29.png', |
| 318 | picUrl2: '/img/nav_29_dwn.png', | 319 | picUrl2: '/img/nav_29_dwn.png', |
| 319 | isActive: false | 320 | isActive: false |
| 320 | }, | 321 | }, |
| 321 | { | 322 | { |
| 322 | name: language.value==0?'票务预订':'Ticket Reservation', | 323 | name: language.value == 0 ? '票务预订' : 'Ticket Reservation', |
| 323 | routeName: 'seat_order', | 324 | routeName: 'seat_order', |
| 324 | picUrl1: '/img/c7.png', | 325 | picUrl1: '/img/c7.png', |
| 325 | picUrl2: '/img/c7.png', | 326 | picUrl2: '/img/c7.png', |
| 326 | isActive: false | 327 | isActive: false |
| 327 | }, | 328 | }, |
| 328 | { | 329 | { |
| 329 | name: language.value==0?'系统消息':'System messages', | 330 | name: language.value == 0 ? '系统消息' : 'System messages', |
| 330 | routeName: 'mySms', | 331 | routeName: 'mySms', |
| 331 | picUrl1: '/img/nav_30.png', | 332 | picUrl1: '/img/nav_30.png', |
| 332 | picUrl2: '/img/nav_30_dwn.png', | 333 | picUrl2: '/img/nav_30_dwn.png', |
| 333 | isActive: false | 334 | isActive: false |
| 334 | }, | 335 | }, |
| 335 | { | 336 | { |
| 336 | name: language.value==0?'发票申请':'Electronic invoice', | 337 | name: language.value == 0 ? '发票申请' : 'Electronic invoice', |
| 337 | routeName: 'myKP', | 338 | routeName: 'myKP', |
| 338 | picUrl1: '/img/fp.svg', | 339 | picUrl1: '/img/fp.svg', |
| 339 | picUrl2: '/img/fp_dwn.svg', | 340 | picUrl2: '/img/fp_dwn.svg', |
| ... | @@ -341,57 +342,57 @@ const menusPersonal = ref([ | ... | @@ -341,57 +342,57 @@ const menusPersonal = ref([ |
| 341 | } | 342 | } |
| 342 | ]) | 343 | ]) |
| 343 | const menusPersonalEn = ref([ | 344 | const menusPersonalEn = ref([ |
| 344 | { | 345 | { |
| 345 | name: language.value==0?'基础信息':'Basic Information', | 346 | name: language.value == 0 ? '基础信息' : 'Basic Information', |
| 346 | routeName: 'myInfo', | 347 | routeName: 'myInfo', |
| 347 | picUrl1: '/img/nav_26.png', | 348 | picUrl1: '/img/nav_26.png', |
| 348 | picUrl2: '/img/nav_26_dwn.png', | 349 | picUrl2: '/img/nav_26_dwn.png', |
| 349 | isActive: false | 350 | isActive: false |
| 350 | }, | 351 | }, |
| 351 | { | 352 | { |
| 352 | name: language.value==0?'修改密码':'Change Password', | 353 | name: language.value == 0 ? '修改密码' : 'Change Password', |
| 353 | routeName: 'myPassword', | 354 | routeName: 'myPassword', |
| 354 | picUrl1: '/img/nav_27.png', | 355 | picUrl1: '/img/nav_27.png', |
| 355 | picUrl2: '/img/nav_27_dwn.png', | 356 | picUrl2: '/img/nav_27_dwn.png', |
| 356 | isActive: false | 357 | isActive: false |
| 357 | }, | 358 | }, |
| 358 | { | 359 | { |
| 359 | name: language.value==0?'我的报名':'My Registration', | 360 | name: language.value == 0 ? '我的报名' : 'My Registration', |
| 360 | routeName: 'myMatch', | 361 | routeName: 'myMatch', |
| 361 | picUrl1: '/img/nav_28.png', | 362 | picUrl1: '/img/nav_28.png', |
| 362 | picUrl2: '/img/nav_28_dwn.png', | 363 | picUrl2: '/img/nav_28_dwn.png', |
| 363 | isActive: false | 364 | isActive: false |
| 364 | }, | 365 | }, |
| 365 | { | 366 | { |
| 366 | name: language.value==0?'我的预订':'My Reservation', | 367 | name: language.value == 0 ? '我的预订' : 'My Reservation', |
| 367 | routeName: 'myReservation', | 368 | routeName: 'myReservation', |
| 368 | picUrl1: '/img/nav_29.png', | 369 | picUrl1: '/img/nav_29.png', |
| 369 | picUrl2: '/img/nav_29_dwn.png', | 370 | picUrl2: '/img/nav_29_dwn.png', |
| 370 | isActive: false | 371 | isActive: false |
| 371 | }, | 372 | }, |
| 372 | { | 373 | { |
| 373 | name: language.value==0?'票务预订':'Ticket Reservation', | 374 | name: language.value == 0 ? '票务预订' : 'Ticket Reservation', |
| 374 | routeName: 'seat_order', | 375 | routeName: 'seat_order', |
| 375 | picUrl1: '/img/c7.png', | 376 | picUrl1: '/img/c7.png', |
| 376 | picUrl2: '/img/c7.png', | 377 | picUrl2: '/img/c7.png', |
| 377 | isActive: false | 378 | isActive: false |
| 378 | }, | 379 | }, |
| 379 | { | 380 | { |
| 380 | name: language.value==0?'系统消息':'System messages', | 381 | name: language.value == 0 ? '系统消息' : 'System messages', |
| 381 | routeName: 'mySms', | 382 | routeName: 'mySms', |
| 382 | picUrl1: '/img/nav_30.png', | 383 | picUrl1: '/img/nav_30.png', |
| 383 | picUrl2: '/img/nav_30_dwn.png', | 384 | picUrl2: '/img/nav_30_dwn.png', |
| 384 | isActive: false | 385 | isActive: false |
| 385 | } | 386 | } |
| 386 | ]) | 387 | ]) |
| 387 | let currMenu | 388 | let currMenu |
| 388 | onMounted(() => { | 389 | onMounted(() => { |
| 389 | console.log(route.query) | 390 | console.log(route.query) |
| 390 | if(!user.utype){ | 391 | if (!user.utype) { |
| 391 | router.push({name: 'home'}) | 392 | router.push({name: 'home'}) |
| 392 | return | 393 | return |
| 393 | } | 394 | } |
| 394 | if(user.utype=='1'){ | 395 | if (user.utype == '1') { |
| 395 | currMenu = _.find(menusPersonal.value, (m) => { | 396 | currMenu = _.find(menusPersonal.value, (m) => { |
| 396 | return m.routeName === route.name | 397 | return m.routeName === route.name |
| 397 | }) | 398 | }) |
| ... | @@ -399,13 +400,13 @@ onMounted(() => { | ... | @@ -399,13 +400,13 @@ onMounted(() => { |
| 399 | } | 400 | } |
| 400 | console.log(route.name) | 401 | console.log(route.name) |
| 401 | 402 | ||
| 402 | if(user.utype=='2'){ | 403 | if (user.utype == '2') { |
| 403 | currMenu = _.find(menus.value, (m) => { | 404 | currMenu = _.find(menus.value, (m) => { |
| 404 | return m.routeName === route.name | 405 | return m.routeName === route.name |
| 405 | }) | 406 | }) |
| 406 | currMenu.isActive = true | 407 | currMenu.isActive = true |
| 407 | } | 408 | } |
| 408 | if(user.utype=='3'){ | 409 | if (user.utype == '3') { |
| 409 | currMenu = _.find(menus3.value, (m) => { | 410 | currMenu = _.find(menus3.value, (m) => { |
| 410 | return m.routeName === route.name | 411 | return m.routeName === route.name |
| 411 | }) | 412 | }) |
| ... | @@ -414,7 +415,7 @@ onMounted(() => { | ... | @@ -414,7 +415,7 @@ onMounted(() => { |
| 414 | 415 | ||
| 415 | }) | 416 | }) |
| 416 | 417 | ||
| 417 | const toInfo = (item,list) => { | 418 | const toInfo = (item, list) => { |
| 418 | _.each(list, (m) => { | 419 | _.each(list, (m) => { |
| 419 | m.isActive = false | 420 | m.isActive = false |
| 420 | }) | 421 | }) |
| ... | @@ -437,11 +438,23 @@ const toInfo = (item,list) => { | ... | @@ -437,11 +438,23 @@ const toInfo = (item,list) => { |
| 437 | li { | 438 | li { |
| 438 | margin-bottom: 15px; | 439 | margin-bottom: 15px; |
| 439 | } | 440 | } |
| 440 | &.en-menu{text-align: left; | 441 | |
| 441 | li{padding: 6px 0 6px 14px; | 442 | &.en-menu { |
| 442 | a{display: flex;align-items: center;} | 443 | text-align: left; |
| 444 | |||
| 445 | li { | ||
| 446 | padding: 6px 0 6px 14px; | ||
| 447 | |||
| 448 | a { | ||
| 449 | display: flex; | ||
| 450 | align-items: center; | ||
| 451 | } | ||
| 452 | } | ||
| 453 | |||
| 454 | img { | ||
| 455 | padding: 0; | ||
| 456 | width: 26px; | ||
| 443 | } | 457 | } |
| 444 | img{padding: 0;width: 26px;} | ||
| 445 | } | 458 | } |
| 446 | } | 459 | } |
| 447 | 460 | ||
| ... | @@ -457,24 +470,61 @@ li img { | ... | @@ -457,24 +470,61 @@ li img { |
| 457 | background: linear-gradient(90deg, #8623FC, #453DEA); | 470 | background: linear-gradient(90deg, #8623FC, #453DEA); |
| 458 | border-radius: 20px; | 471 | border-radius: 20px; |
| 459 | } | 472 | } |
| 473 | |||
| 460 | @media (max-width: 500px) { | 474 | @media (max-width: 500px) { |
| 461 | .pd20{padding: 8px;} | 475 | .pd20 { |
| 462 | .el-card{box-shadow: none!important; | 476 | padding: 8px; |
| 463 | :deep(.el-card__body){padding: 0!important;} | 477 | } |
| 478 | .el-card { | ||
| 479 | box-shadow: none !important; | ||
| 480 | |||
| 481 | :deep(.el-card__body) { | ||
| 482 | padding: 0 !important; | ||
| 483 | } | ||
| 484 | } | ||
| 485 | .el-col { | ||
| 486 | padding: 0 !important; | ||
| 464 | } | 487 | } |
| 465 | .el-col{padding: 0!important;} | 488 | .center-menu { |
| 466 | .center-menu{height: 100vh;padding: 20px 0;position: fixed;left: 0;z-index: 1; | 489 | height: 100vh; |
| 467 | background: #F5F7F9;top: 80px;width: 100px;border-right: 1px solid #eee; | 490 | padding: 20px 0; |
| 468 | li{font-size: 13px;padding:8px 10px;border-radius: 0; | 491 | position: fixed; |
| 469 | img{display: none} | 492 | left: 0; |
| 470 | &.active{background: #fff; | 493 | z-index: 1; |
| 494 | background: #F5F7F9; | ||
| 495 | top: 80px; | ||
| 496 | width: 100px; | ||
| 497 | border-right: 1px solid #eee; | ||
| 498 | |||
| 499 | li { | ||
| 500 | font-size: 13px; | ||
| 501 | padding: 8px 10px; | ||
| 502 | border-radius: 0; | ||
| 503 | |||
| 504 | img { | ||
| 505 | display: none | ||
| 506 | } | ||
| 507 | |||
| 508 | &.active { | ||
| 509 | background: #fff; | ||
| 471 | border-left: 2px solid var(--el-color-primary); | 510 | border-left: 2px solid var(--el-color-primary); |
| 472 | color: var(--el-color-primary);} | 511 | color: var(--el-color-primary); |
| 512 | } | ||
| 473 | } | 513 | } |
| 474 | } | 514 | } |
| 475 | .rightPart{width: calc(100vw - 100px);left: 100px;position: fixed; z-index: 1; | 515 | .rightPart { |
| 476 | height: calc(100vh - 80px);overflow: auto;top: 80px;background: #fff; | 516 | width: calc(100vw - 100px); |
| 517 | left: 100px; | ||
| 518 | position: fixed; | ||
| 519 | z-index: 1; | ||
| 520 | height: calc(100vh - 80px); | ||
| 521 | overflow: auto; | ||
| 522 | top: 80px; | ||
| 523 | background: #fff; | ||
| 477 | } | 524 | } |
| 478 | } | 525 | } |
| 479 | .app-container{min-height: 80vh;} | 526 | |
| 527 | .app-container { | ||
| 528 | min-height: 80vh; | ||
| 529 | } | ||
| 480 | </style> | 530 | </style> | ... | ... |
-
Please register or sign in to post a comment