mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-14 21:36:42 +08:00
修改 二维码生成的路径
This commit is contained in:
@@ -249,13 +249,16 @@ export default {
|
||||
}),
|
||||
showQrimage(){
|
||||
let urlPre=window.location.protocol+'//'+window.location.host;
|
||||
let returnUrl='https://u.boe.com/mobile/pages/login/loading?returnUrl=/pages/resource/courseDetail?id='+this.courseInfo.id;
|
||||
// this.qrcode = this.webBaseUrl+'/mobile/pages/resource/courseDetail?id='+this.courseInfo.id;
|
||||
urlPre='https://u.boe.com/m?returnUrl=https://u.boe.com/mobile/pages/login/loading?returnUrl=';
|
||||
this.qrcode = urlPre+'/pages/resource/courseDetail?id='+this.courseInfo.id;
|
||||
returnUrl=encodeURIComponent(returnUrl);
|
||||
//urlPre='https://u.boe.com/m?returnUrl=https://u.boe.com/mobile/pages/login/loading?returnUrl=';
|
||||
//this.qrcode = urlPre+'/pages/resource/courseDetail?id='+this.courseInfo.id;
|
||||
//console.log(this.qrcode,'qrcode');
|
||||
this.$nextTick(() => {
|
||||
this.crateQrcode();
|
||||
});
|
||||
this.qrcode ='https://u.boe.com/m?returnUrl='+returnUrl;
|
||||
this.$nextTick(() => {
|
||||
this.crateQrcode();
|
||||
});
|
||||
},
|
||||
crateQrcode(){
|
||||
this.qr = new QRCode('qrcode', {
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="portal-content xcontent">
|
||||
<div class="portal-content xcontent" style="margin-top: 20px;">
|
||||
<el-card :body-style="{ padding: '0px', 'min-height': '500px' }">
|
||||
<el-row class="detail">
|
||||
<el-col :span="18">
|
||||
|
||||
Reference in New Issue
Block a user