|
@@ -277,8 +277,8 @@ export default {
|
|
|
let evType = this.getModeLabel(this.evaListShow[this.curEvaIndex].source)
|
|
|
let soc = this.evaListShow[this.curEvaIndex].owner === 'school' ? this.$t('learnActivity.mgtScEv.shareText4') : this.$t('learnActivity.mgtScEv.shareText5')
|
|
|
let socName = this.evaListShow[this.curEvaIndex].subjects.map(item => item.name).join('、')
|
|
|
- let shortUrl = await this.$api.getShortUrl(encodeURI(this.shareUrl)) //暂不替换,等路由处理好了再替换
|
|
|
- let shareText = `${this.$t('learnActivity.mgtScEv.shareText1')}\n\n${this.$t('learnActivity.mgtScEv.shareText2')}${evName}\n${this.$t('learnActivity.mgtScEv.shareText3')}${evType}\n${soc}${socName}\n\n${this.$t('learnActivity.mgtScEv.shareText6')}\n${shortUrl.result}\n\n${this.$t('learnActivity.mgtScEv.shareText7')}\nURL:https://${window.location.host}/login/student`
|
|
|
+ let shortUrl = await this.$api.getShortUrl(encodeURI(this.shareUrl)) //暂不替换,等路由处理好了再替换
|
|
|
+ let shareText = `${this.$t('learnActivity.mgtScEv.shareText1')}\n\n${soc}${socName}\n${this.$t('learnActivity.mgtScEv.shareText3')}${evType}\n${this.$t('cusMgt.inviteInfo8')}${this.$store.state.userInfo.name}\n${this.$t('learnActivity.mgtScEv.shareText2')}${evName}\n\n${this.$t('learnActivity.mgtScEv.shareText6')}\n${shortUrl.result || encodeURI(this.shareUrl)}\n\n${this.$t('learnActivity.mgtScEv.shareText7')}\nURL:https://${window.location.host}/login/student`
|
|
|
this.$copyText(shareText).then(
|
|
|
ok => {
|
|
|
this.$Message.success(this.$t("settings.copyModal1"))
|
|
@@ -297,13 +297,13 @@ export default {
|
|
|
let qrcode = new QRCode('qrcode', {
|
|
|
width: 280, // 设置宽度,单位像素
|
|
|
height: 280, // 设置高度,单位像素
|
|
|
- text: shortUrl.result, // 编码处理
|
|
|
+ text: shortUrl.result || encodeURI(this.shareUrl), // 编码处理
|
|
|
correctLevel: QRCode.CorrectLevel.Q //解决编码后网址太长的问题
|
|
|
})
|
|
|
this.shareQRcode = qrcode
|
|
|
} else {
|
|
|
this.shareQRcode.clear()
|
|
|
- this.shareQRcode.makeCode(shortUrl.result)
|
|
|
+ this.shareQRcode.makeCode(shortUrl.result || encodeURI(this.shareUrl))
|
|
|
}
|
|
|
let dom = document.getElementById('qrcode')
|
|
|
if (dom) dom.title = ''
|