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