mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-13 21:06:42 +08:00
二维码生成地址 的修改
This commit is contained in:
@@ -519,7 +519,7 @@ export default {
|
|||||||
this.params.sysType1 = '';
|
this.params.sysType1 = '';
|
||||||
this.params.sysType2 = '';
|
this.params.sysType2 = '';
|
||||||
this.params.sysType3 = '';
|
this.params.sysType3 = '';
|
||||||
|
|
||||||
this.searchData(true);
|
this.searchData(true);
|
||||||
},
|
},
|
||||||
...mapActions({
|
...mapActions({
|
||||||
@@ -663,9 +663,13 @@ export default {
|
|||||||
this.qrcodeShow = true;
|
this.qrcodeShow = true;
|
||||||
|
|
||||||
let urlPre=window.location.protocol+'//'+window.location.host;
|
let urlPre=window.location.protocol+'//'+window.location.host;
|
||||||
this.qrcode = urlPre+'/mobile/pages/resource/microDetail?id='+row.id;
|
//动态的地址
|
||||||
|
urlPre=urlPre+'/m?returnUrl='+urlPre+'/mobile/pages/login/loading?returnUrl=';
|
||||||
|
//固定的地址
|
||||||
|
urlPre='https://u.boe.com/m?returnUrl=https://u.boe.com/mobile/pages/login/loading?returnUrl=';
|
||||||
|
this.qrcode = urlPre+'/pages/resource/microDetail?id='+row.id;
|
||||||
if(row.type==20){
|
if(row.type==20){
|
||||||
this.qrcode = urlPre+'/mobile/pages/resource/courseDetail?id='+row.id;
|
this.qrcode = urlPre+'/pages/resource/courseDetail?id='+row.id;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 使用$nextTick确保数据渲染
|
// 使用$nextTick确保数据渲染
|
||||||
|
|||||||
@@ -216,7 +216,7 @@ export default {
|
|||||||
this.$message.error(rs.message);
|
this.$message.error(rs.message);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
// this.getResOwnerTree().then(rs=>{
|
// this.getResOwnerTree().then(rs=>{
|
||||||
// this.resOwnerListMap=rs;
|
// this.resOwnerListMap=rs;
|
||||||
// });
|
// });
|
||||||
@@ -231,8 +231,9 @@ export default {
|
|||||||
showQrimage(){
|
showQrimage(){
|
||||||
let urlPre=window.location.protocol+'//'+window.location.host;
|
let urlPre=window.location.protocol+'//'+window.location.host;
|
||||||
// this.qrcode = this.webBaseUrl+'/mobile/pages/resource/courseDetail?id='+this.courseInfo.id;
|
// this.qrcode = this.webBaseUrl+'/mobile/pages/resource/courseDetail?id='+this.courseInfo.id;
|
||||||
this.qrcode = urlPre+'/mobile/pages/resource/courseDetail?id='+this.courseInfo.id;
|
urlPre='https://u.boe.com/m?returnUrl=https://u.boe.com/mobile/pages/login/loading?returnUrl=';
|
||||||
console.log(this.qrcode,'qrcode');
|
this.qrcode = urlPre+'/pages/resource/courseDetail?id='+this.courseInfo.id;
|
||||||
|
//console.log(this.qrcode,'qrcode');
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.crateQrcode();
|
this.crateQrcode();
|
||||||
});
|
});
|
||||||
@@ -312,7 +313,7 @@ export default {
|
|||||||
list.forEach((item,index)=>{
|
list.forEach((item,index)=>{
|
||||||
res.result.some(author=>{
|
res.result.some(author=>{
|
||||||
if(author.aid==item.teacherId){
|
if(author.aid==item.teacherId){
|
||||||
|
|
||||||
if(author.avatar){
|
if(author.avatar){
|
||||||
item.avatar=this.fileBaseUrl + author.avatar;
|
item.avatar=this.fileBaseUrl + author.avatar;
|
||||||
}
|
}
|
||||||
@@ -647,7 +648,7 @@ export default {
|
|||||||
height: 68px;
|
height: 68px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
line-height: 68px;
|
line-height: 68px;
|
||||||
|
|
||||||
div{
|
div{
|
||||||
img{
|
img{
|
||||||
width: 68px;
|
width: 68px;
|
||||||
|
|||||||
@@ -521,7 +521,8 @@ export default {
|
|||||||
let urlPre=window.location.protocol+'//'+window.location.host;
|
let urlPre=window.location.protocol+'//'+window.location.host;
|
||||||
// https://u.boe.com/mobile/pages/resource/microDetail?id=963456709515939840
|
// https://u.boe.com/mobile/pages/resource/microDetail?id=963456709515939840
|
||||||
// this.qrcode = this.webBaseUrl+'/mobile/pages/resource/microDetail?id='+this.courseInfo.id;
|
// this.qrcode = this.webBaseUrl+'/mobile/pages/resource/microDetail?id='+this.courseInfo.id;
|
||||||
this.qrcode =urlPre+ '/mobile/pages/resource/microDetail?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/microDetail?id='+this.courseInfo.id;
|
||||||
//console.log(this.qrcode,'qrcode');
|
//console.log(this.qrcode,'qrcode');
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.crateQrcode();
|
this.crateQrcode();
|
||||||
|
|||||||
@@ -364,7 +364,7 @@ export default {
|
|||||||
}else{
|
}else{
|
||||||
this.blobUrl=process.env.VUE_APP_BASE_API+'/xboe/m/course/cware/resource?sign='+urlSign;
|
this.blobUrl=process.env.VUE_APP_BASE_API+'/xboe/m/course/cware/resource?sign='+urlSign;
|
||||||
}
|
}
|
||||||
console.log(this.blobUrl,'this.blobUrl');
|
//console.log(this.blobUrl,'this.blobUrl');
|
||||||
},
|
},
|
||||||
widthOpen(url) {
|
widthOpen(url) {
|
||||||
window.open(url, '_blank');
|
window.open(url, '_blank');
|
||||||
|
|||||||
Reference in New Issue
Block a user