mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-11 22:36:43 +08:00
【海报分享链接时效问题】-记录分享链接日志打印 --提交人:白金岩
This commit is contained in:
@@ -43,8 +43,8 @@ export default {
|
||||
methods: {
|
||||
// 初始化页面
|
||||
async initThisPage() {
|
||||
let res = await this.saveShareRecord('1',this.$route.query.token,this.$route.query.linkType)
|
||||
if (this.herfUrl && res) {
|
||||
let res = await this.saveShareRecord('1',this.$route.query.token,this.$route.query.linkType,this.$route.query.redirectUrl)
|
||||
if (this.herfUrl) {
|
||||
window.location.href = this.herfUrl
|
||||
}
|
||||
},
|
||||
@@ -53,12 +53,14 @@ export default {
|
||||
* flag 0-分享 1-打开
|
||||
* key redisKey
|
||||
* linkType 类型
|
||||
* shareUrl 分享的链接内容
|
||||
*/
|
||||
saveShareRecord(flag,key,linkType) {
|
||||
saveShareRecord(flag,key,linkType,shareUrl) {
|
||||
let data = {
|
||||
linkType: linkType,
|
||||
flag: flag,
|
||||
redisKey: key
|
||||
redisKey: key,
|
||||
shareUrl: shareUrl
|
||||
}
|
||||
return new Promise((resolve) => {
|
||||
saveShareRecord(data).then((res) => {
|
||||
|
||||
Reference in New Issue
Block a user