Commit d7b2139381f0e8f0214dbeccb7694b0b16b5ef1d
1 parent
caf2d5f0
Exists in
master
feat:研学码扫一扫修改
Showing
3 changed files
with
23 additions
and
4 deletions
Show diff stats
src/views/Home/YanxueCode.vue
@@ -38,7 +38,7 @@ export default { | @@ -38,7 +38,7 @@ export default { | ||
38 | } | 38 | } |
39 | }, | 39 | }, |
40 | mounted () { | 40 | mounted () { |
41 | - this.studentInfo = JSON.parse(localStorage.getItem('bindYanxueCodeChildInfo')); | 41 | + this.studentInfo = JSON.parse(localStorage.getItem('StudentDetialInfo')); |
42 | this.creatQrCode() | 42 | this.creatQrCode() |
43 | }, | 43 | }, |
44 | methods: { | 44 | methods: { |
src/views/Home/YanxueInfo.vue
@@ -22,7 +22,7 @@ export default { | @@ -22,7 +22,7 @@ export default { | ||
22 | }, | 22 | }, |
23 | created () { | 23 | created () { |
24 | 24 | ||
25 | - let studentInfo = JSON.parse(localStorage.getItem('bindYanxueCodeChildInfo')); | 25 | + let studentInfo = JSON.parse(localStorage.getItem('StudentDetialInfo')); |
26 | this.userNum = studentInfo.travelerNum | 26 | this.userNum = studentInfo.travelerNum |
27 | this.school = studentInfo.schoolName | 27 | this.school = studentInfo.schoolName |
28 | this.name = studentInfo.travelerName | 28 | this.name = studentInfo.travelerName |
@@ -46,7 +46,19 @@ export default { | @@ -46,7 +46,19 @@ export default { | ||
46 | }, | 46 | }, |
47 | //扫一扫 | 47 | //扫一扫 |
48 | saoYiSao () { | 48 | saoYiSao () { |
49 | - window.location.href = 'http://sao315.com/w/api/saoyisao?redirect_uri=https://payment.myjxt.com/center/%23/YanxueInfo'; | 49 | + ZWJSBridge.scan({ |
50 | + type: 'qrCode', | ||
51 | + }) | ||
52 | + .then((res) => { | ||
53 | + if(res.qrcode&&!isNaN(Number(res.qrcode))){ | ||
54 | + this.$router.push({ name: 'YanxueInfo', query: { qrresult: res.qrcode } }) | ||
55 | + }else{ | ||
56 | + this.$toast.fail('扫码失败') | ||
57 | + } | ||
58 | + }) | ||
59 | + .catch((err) => { | ||
60 | + console.log(err) | ||
61 | + }) | ||
50 | }, | 62 | }, |
51 | // 获取链接参数 | 63 | // 获取链接参数 |
52 | GetQueryString (name) { | 64 | GetQueryString (name) { |
src/views/Service/AbroadDetail/AbroadDetail.vue
@@ -332,7 +332,7 @@ export default { | @@ -332,7 +332,7 @@ export default { | ||
332 | .abroad_detail .uni_text .course_name{ | 332 | .abroad_detail .uni_text .course_name{ |
333 | font-size: 50px; | 333 | font-size: 50px; |
334 | } | 334 | } |
335 | - .abroad_detail .uni_text .course_count,.abroad_detail .uni_text .tag_box .tag,.service_bottom_btn_left .icon p,.abroad_detail .Collection .box .box_btn,.abroad_detail .tag_item .tag_text{ | 335 | + .abroad_detail .uni_text .course_count,.abroad_detail .uni_text .tag_box .tag,.service_bottom_btn_left .icon p,.abroad_detail .Collection .box .box_btn,.abroad_detail { |
336 | font-size: 36px !important; | 336 | font-size: 36px !important; |
337 | } | 337 | } |
338 | .abroad_detail .content_box .content_all img{ | 338 | .abroad_detail .content_box .content_all img{ |
@@ -341,5 +341,12 @@ export default { | @@ -341,5 +341,12 @@ export default { | ||
341 | .abroad_detail .tag_item{ | 341 | .abroad_detail .tag_item{ |
342 | padding: 0; | 342 | padding: 0; |
343 | } | 343 | } |
344 | + .abroad_detail .tag_item .tag_text{ | ||
345 | + font-size: 36px !important; | ||
346 | + *{ | ||
347 | + font-size: 36px !important; | ||
348 | + | ||
349 | + } | ||
350 | + } | ||
344 | } | 351 | } |
345 | </style> | 352 | </style> |