mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2026-02-05 05:19:49 +08:00
【优化】清理项目垃圾文件,及设置统一常量。
This commit is contained in:
@@ -75,12 +75,9 @@ export const shareType = {
|
|||||||
solitaire: 12,
|
solitaire: 12,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export const shareUrl = '/pages/share/jump/jump'; //分享初始化地址
|
||||||
|
|
||||||
|
|
||||||
// #ifdef MP-TOUTIAO
|
|
||||||
export const ttPlatform = 'toutiao'; //toutiao=今日头条小程序, douyin=抖音小程序, pipixia=皮皮虾小程序, huoshan=火山小视频小程序
|
|
||||||
// #endif
|
|
||||||
|
|
||||||
|
|
||||||
//nav页面导航类型
|
//nav页面导航类型
|
||||||
export const navLinkType = {
|
export const navLinkType = {
|
||||||
|
|||||||
@@ -145,7 +145,7 @@
|
|||||||
//商品
|
//商品
|
||||||
data = {
|
data = {
|
||||||
page: 2, //商品
|
page: 2, //商品
|
||||||
url: 'pages/share/jump/jump',
|
url: this.$globalConstVars.shareUrl,
|
||||||
params: {
|
params: {
|
||||||
goodsId: this.goodsId
|
goodsId: this.goodsId
|
||||||
},
|
},
|
||||||
@@ -160,7 +160,7 @@
|
|||||||
//拼团
|
//拼团
|
||||||
data = {
|
data = {
|
||||||
page: 3, //商品
|
page: 3, //商品
|
||||||
url: 'pages/share/jump/jump',
|
url: this.$globalConstVars.shareUrl,
|
||||||
params: {
|
params: {
|
||||||
goodsId: this.goodsId,
|
goodsId: this.goodsId,
|
||||||
groupId: this.groupId,
|
groupId: this.groupId,
|
||||||
|
|||||||
@@ -86,7 +86,7 @@
|
|||||||
//商品
|
//商品
|
||||||
data = {
|
data = {
|
||||||
page: 2, //商品
|
page: 2, //商品
|
||||||
url: h5Url + 'pages/share/jump/jump',
|
url: h5Url + this.$globalConstVars.shareUrl,
|
||||||
params: {
|
params: {
|
||||||
goodsId: this.goodsId
|
goodsId: this.goodsId
|
||||||
},
|
},
|
||||||
@@ -101,7 +101,7 @@
|
|||||||
//拼团
|
//拼团
|
||||||
data = {
|
data = {
|
||||||
page: 3, //商品
|
page: 3, //商品
|
||||||
url: h5Url + 'pages/share/jump/jump',
|
url: h5Url + this.$globalConstVars.shareUrl,
|
||||||
params: {
|
params: {
|
||||||
goodsId: this.goodsId,
|
goodsId: this.goodsId,
|
||||||
groupId: this.groupId,
|
groupId: this.groupId,
|
||||||
@@ -129,7 +129,7 @@
|
|||||||
if (this.shareType == 1) {
|
if (this.shareType == 1) {
|
||||||
data = {
|
data = {
|
||||||
page: 2, //商品
|
page: 2, //商品
|
||||||
url: h5Url + 'pages/share/jump/jump',
|
url: h5Url + this.$globalConstVars.shareUrl,
|
||||||
params: {
|
params: {
|
||||||
goodsId: this.goodsId
|
goodsId: this.goodsId
|
||||||
},
|
},
|
||||||
@@ -143,7 +143,7 @@
|
|||||||
} else if (this.shareType == 3) {
|
} else if (this.shareType == 3) {
|
||||||
data = {
|
data = {
|
||||||
page: 3, //拼团
|
page: 3, //拼团
|
||||||
url: h5Url + 'pages/share/jump/jump',
|
url: h5Url + this.$globalConstVars.shareUrl,
|
||||||
params: {
|
params: {
|
||||||
goodsId: this.goodsId,
|
goodsId: this.goodsId,
|
||||||
groupId: this.groupId,
|
groupId: this.groupId,
|
||||||
|
|||||||
@@ -87,7 +87,7 @@
|
|||||||
if (this.shareType == this.$globalConstVars.shareType.index) {
|
if (this.shareType == this.$globalConstVars.shareType.index) {
|
||||||
data = {
|
data = {
|
||||||
page: this.shareType, //商品
|
page: this.shareType, //商品
|
||||||
url: 'pages/share/jump/jump',
|
url: this.$globalConstVars.shareUrl,
|
||||||
params: {
|
params: {
|
||||||
goodsId: this.goodsId
|
goodsId: this.goodsId
|
||||||
},
|
},
|
||||||
@@ -101,7 +101,7 @@
|
|||||||
} else if (this.shareType == this.$globalConstVars.shareType.pinTuan) {
|
} else if (this.shareType == this.$globalConstVars.shareType.pinTuan) {
|
||||||
data = {
|
data = {
|
||||||
page: this.shareType, //拼团
|
page: this.shareType, //拼团
|
||||||
url: 'pages/share/jump/jump',
|
url: this.$globalConstVars.shareUrl,
|
||||||
params: {
|
params: {
|
||||||
goodsId: this.goodsId,
|
goodsId: this.goodsId,
|
||||||
teamId: this.teamId
|
teamId: this.teamId
|
||||||
@@ -118,7 +118,7 @@
|
|||||||
else if (this.shareType == this.$globalConstVars.shareType.group || this.shareType == this.$globalConstVars.shareType.seckill) {
|
else if (this.shareType == this.$globalConstVars.shareType.group || this.shareType == this.$globalConstVars.shareType.seckill) {
|
||||||
data = {
|
data = {
|
||||||
page: this.shareType, //拼团
|
page: this.shareType, //拼团
|
||||||
url: 'pages/share/jump/jump',
|
url: this.$globalConstVars.shareUrl,
|
||||||
params: {
|
params: {
|
||||||
goodsId: this.goodsId,
|
goodsId: this.goodsId,
|
||||||
groupId: this.groupId
|
groupId: this.groupId
|
||||||
@@ -135,7 +135,7 @@
|
|||||||
else if (this.shareType == this.$globalConstVars.shareType.goods) {
|
else if (this.shareType == this.$globalConstVars.shareType.goods) {
|
||||||
data = {
|
data = {
|
||||||
page: this.shareType, //拼团
|
page: this.shareType, //拼团
|
||||||
url: 'pages/share/jump/jump',
|
url: this.$globalConstVars.shareUrl,
|
||||||
params: {
|
params: {
|
||||||
goodsId: this.goodsId,
|
goodsId: this.goodsId,
|
||||||
},
|
},
|
||||||
@@ -151,7 +151,7 @@
|
|||||||
else if (this.shareType == this.$globalConstVars.shareType.addPinTuan) {
|
else if (this.shareType == this.$globalConstVars.shareType.addPinTuan) {
|
||||||
data = {
|
data = {
|
||||||
page: this.shareType, //拼团
|
page: this.shareType, //拼团
|
||||||
url: 'pages/share/jump/jump',
|
url: this.$globalConstVars.shareUrl,
|
||||||
params: {
|
params: {
|
||||||
goodsId: this.goodsId,
|
goodsId: this.goodsId,
|
||||||
groupId: this.groupId,
|
groupId: this.groupId,
|
||||||
@@ -168,7 +168,7 @@
|
|||||||
} else if (this.shareType == this.$globalConstVars.shareType.solitaire) {
|
} else if (this.shareType == this.$globalConstVars.shareType.solitaire) {
|
||||||
data = {
|
data = {
|
||||||
page: this.shareType,
|
page: this.shareType,
|
||||||
url: 'pages/share/jump/jump',
|
url: this.$globalConstVars.shareUrl,
|
||||||
params: {
|
params: {
|
||||||
id: this.objectId
|
id: this.objectId
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -371,7 +371,7 @@
|
|||||||
modalTitle: '',
|
modalTitle: '',
|
||||||
modalType: 'promotion',
|
modalType: 'promotion',
|
||||||
selectType: '',
|
selectType: '',
|
||||||
shareUrl: '/pages/share/jump/jump',
|
shareUrl: this.$globalConstVars.shareUrl,
|
||||||
shareBox: false,
|
shareBox: false,
|
||||||
serviceDescription: {
|
serviceDescription: {
|
||||||
commonQuestion: [],
|
commonQuestion: [],
|
||||||
@@ -697,7 +697,7 @@
|
|||||||
getShareUrl() {
|
getShareUrl() {
|
||||||
let data = {
|
let data = {
|
||||||
client: 2,
|
client: 2,
|
||||||
url: "/pages/share/jump/jump",
|
url: this.$globalConstVars.shareUrl,
|
||||||
type: 1,
|
type: 1,
|
||||||
page: 9,
|
page: 9,
|
||||||
params: {
|
params: {
|
||||||
|
|||||||
@@ -523,7 +523,7 @@
|
|||||||
modalTitle: '',
|
modalTitle: '',
|
||||||
modalType: 'promotion',
|
modalType: 'promotion',
|
||||||
selectType: '',
|
selectType: '',
|
||||||
shareUrl: '/pages/share/jump/jump',
|
shareUrl: this.$globalConstVars.shareUrl,
|
||||||
shareBox: false,
|
shareBox: false,
|
||||||
serviceDescription: {
|
serviceDescription: {
|
||||||
commonQuestion: [],
|
commonQuestion: [],
|
||||||
@@ -918,7 +918,7 @@
|
|||||||
getShareUrl() {
|
getShareUrl() {
|
||||||
let data = {
|
let data = {
|
||||||
client: 2,
|
client: 2,
|
||||||
url: "/pages/share/jump/jump",
|
url: this.$globalConstVars.shareUrl,
|
||||||
type: 1,
|
type: 1,
|
||||||
page: 3,
|
page: 3,
|
||||||
params: {
|
params: {
|
||||||
|
|||||||
@@ -380,7 +380,7 @@
|
|||||||
modalTitle: '',
|
modalTitle: '',
|
||||||
modalType: 'promotion',
|
modalType: 'promotion',
|
||||||
selectType: '',
|
selectType: '',
|
||||||
shareUrl: '/pages/share/jump/jump',
|
shareUrl: this.$globalConstVars.shareUrl,
|
||||||
shareBox: false,
|
shareBox: false,
|
||||||
shareType: 10,
|
shareType: 10,
|
||||||
serviceDescription: {
|
serviceDescription: {
|
||||||
@@ -701,7 +701,7 @@
|
|||||||
getShareUrl() {
|
getShareUrl() {
|
||||||
let data = {
|
let data = {
|
||||||
client: 2,
|
client: 2,
|
||||||
url: "/pages/share/jump/jump",
|
url: this.$globalConstVars.shareUrl,
|
||||||
type: 1,
|
type: 1,
|
||||||
page: this.shareType,
|
page: this.shareType,
|
||||||
params: {
|
params: {
|
||||||
|
|||||||
@@ -166,7 +166,7 @@
|
|||||||
cartType: this.$globalConstVars.paymentType.solitaire,
|
cartType: this.$globalConstVars.paymentType.solitaire,
|
||||||
shareBox: false,
|
shareBox: false,
|
||||||
submitStatus: false,
|
submitStatus: false,
|
||||||
shareUrl: '/pages/share/jump/jump',
|
shareUrl: this.$globalConstVars.shareUrl,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(e) {
|
onLoad(e) {
|
||||||
@@ -337,7 +337,7 @@
|
|||||||
getShareUrl() {
|
getShareUrl() {
|
||||||
let data = {
|
let data = {
|
||||||
client: 2,
|
client: 2,
|
||||||
url: "/pages/share/jump/jump",
|
url: this.$globalConstVars.shareUrl,
|
||||||
type: 1,
|
type: 1,
|
||||||
page: 12,
|
page: 12,
|
||||||
params: {
|
params: {
|
||||||
|
|||||||
@@ -36,7 +36,7 @@
|
|||||||
id: 0,
|
id: 0,
|
||||||
info: {},
|
info: {},
|
||||||
contentBody: '',
|
contentBody: '',
|
||||||
shareUrl: '/pages/share/jump/jump',
|
shareUrl: this.$globalConstVars.shareUrl,
|
||||||
title: ''
|
title: ''
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -118,7 +118,7 @@
|
|||||||
getShareUrl() {
|
getShareUrl() {
|
||||||
let data = {
|
let data = {
|
||||||
client: 2,
|
client: 2,
|
||||||
url: "/pages/share/jump/jump",
|
url: this.$globalConstVars.shareUrl,
|
||||||
type: 1,
|
type: 1,
|
||||||
page: 5,
|
page: 5,
|
||||||
params: {
|
params: {
|
||||||
|
|||||||
@@ -346,7 +346,7 @@
|
|||||||
selectId: '',
|
selectId: '',
|
||||||
showSpecs: false,
|
showSpecs: false,
|
||||||
submitStatus: false, //按钮状态
|
submitStatus: false, //按钮状态
|
||||||
shareUrl: '/pages/share/jump/jump',
|
shareUrl: this.$globalConstVars.shareUrl,
|
||||||
bottomModal: false,
|
bottomModal: false,
|
||||||
buttonName: '',
|
buttonName: '',
|
||||||
}
|
}
|
||||||
@@ -839,7 +839,7 @@
|
|||||||
getShareUrl() {
|
getShareUrl() {
|
||||||
let data = {
|
let data = {
|
||||||
client: 2,
|
client: 2,
|
||||||
url: "/pages/share/jump/jump",
|
url: this.$globalConstVars.shareUrl,
|
||||||
type: 1,
|
type: 1,
|
||||||
page: 8,
|
page: 8,
|
||||||
params: {
|
params: {
|
||||||
|
|||||||
@@ -389,7 +389,7 @@
|
|||||||
modalTitle: '',
|
modalTitle: '',
|
||||||
modalType: 'promotion',
|
modalType: 'promotion',
|
||||||
selectType: '',
|
selectType: '',
|
||||||
shareUrl: '/pages/share/jump/jump',
|
shareUrl: this.$globalConstVars.shareUrl,
|
||||||
shareBox: false,
|
shareBox: false,
|
||||||
serviceDescription: {
|
serviceDescription: {
|
||||||
commonQuestion: [],
|
commonQuestion: [],
|
||||||
@@ -821,7 +821,7 @@
|
|||||||
getShareUrl() {
|
getShareUrl() {
|
||||||
let data = {
|
let data = {
|
||||||
client: 2,
|
client: 2,
|
||||||
url: "/pages/share/jump/jump",
|
url: this.$globalConstVars.shareUrl,
|
||||||
type: 1,
|
type: 1,
|
||||||
page: 2,
|
page: 2,
|
||||||
params: {
|
params: {
|
||||||
|
|||||||
@@ -50,7 +50,7 @@
|
|||||||
//userInfo: {}, // 用户信息
|
//userInfo: {}, // 用户信息
|
||||||
kefupara: '', //客服传递资料
|
kefupara: '', //客服传递资料
|
||||||
copy: false,
|
copy: false,
|
||||||
shareUrl: '/pages/share/jump/jump',
|
shareUrl: this.$globalConstVars.shareUrl,
|
||||||
modalShow: true,
|
modalShow: true,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -181,7 +181,7 @@
|
|||||||
getShareUrl() {
|
getShareUrl() {
|
||||||
let data = {
|
let data = {
|
||||||
client: 2,
|
client: 2,
|
||||||
url: "/pages/share/jump/jump",
|
url: this.$globalConstVars.shareUrl,
|
||||||
type: 1,
|
type: 1,
|
||||||
page: 1,
|
page: 1,
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -44,7 +44,7 @@
|
|||||||
//userInfo: {}, // 用户信息
|
//userInfo: {}, // 用户信息
|
||||||
kefupara: '', //客服传递资料
|
kefupara: '', //客服传递资料
|
||||||
copy: false,
|
copy: false,
|
||||||
shareUrl: '/pages/share/jump/jump',
|
shareUrl: this.$globalConstVars.shareUrl,
|
||||||
isScorll: false,
|
isScorll: false,
|
||||||
homeTitle: '',
|
homeTitle: '',
|
||||||
modalShow: true,
|
modalShow: true,
|
||||||
@@ -142,7 +142,7 @@
|
|||||||
getShareUrl() {
|
getShareUrl() {
|
||||||
let data = {
|
let data = {
|
||||||
client: 2,
|
client: 2,
|
||||||
url: "/pages/share/jump/jump",
|
url: this.$globalConstVars.shareUrl,
|
||||||
type: 1,
|
type: 1,
|
||||||
page: 1,
|
page: 1,
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -702,7 +702,7 @@
|
|||||||
scrollTop: 0,
|
scrollTop: 0,
|
||||||
imageUrl: '/static/images/ShareImage.png', //店铺分享图片
|
imageUrl: '/static/images/ShareImage.png', //店铺分享图片
|
||||||
kefupara: '', //客服传递资料
|
kefupara: '', //客服传递资料
|
||||||
shareUrl: '/pages/share/jump/jump',
|
shareUrl: this.$globalConstVars.shareUrl,
|
||||||
homeTitle: '',
|
homeTitle: '',
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -766,7 +766,7 @@
|
|||||||
getShareUrl() {
|
getShareUrl() {
|
||||||
let data = {
|
let data = {
|
||||||
client: 2,
|
client: 2,
|
||||||
url: "/pages/share/jump/jump",
|
url: this.$globalConstVars.shareUrl,
|
||||||
type: 1,
|
type: 1,
|
||||||
page: 1,
|
page: 1,
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -134,7 +134,7 @@
|
|||||||
totalGoods: 0,
|
totalGoods: 0,
|
||||||
page: 1, //默认页码
|
page: 1, //默认页码
|
||||||
searchKey: '请输入关键字搜索',
|
searchKey: '请输入关键字搜索',
|
||||||
shareUrl: '/pages/share/jump/jump',
|
shareUrl: this.$globalConstVars.shareUrl,
|
||||||
lvvpopref: false
|
lvvpopref: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -257,7 +257,7 @@
|
|||||||
},
|
},
|
||||||
page: 11,
|
page: 11,
|
||||||
}
|
}
|
||||||
let pageUrl = 'pages/share/jump/jump';
|
let pageUrl = this.$globalConstVars.shareUrl;
|
||||||
// #ifdef H5
|
// #ifdef H5
|
||||||
data.client = 1;
|
data.client = 1;
|
||||||
data.url = this.$globalConstVars.apiBaseUrl + 'wap/' + pageUrl;
|
data.url = this.$globalConstVars.apiBaseUrl + 'wap/' + pageUrl;
|
||||||
@@ -293,7 +293,7 @@
|
|||||||
getShareUrl() {
|
getShareUrl() {
|
||||||
let data = {
|
let data = {
|
||||||
client: 2,
|
client: 2,
|
||||||
url: "/pages/share/jump/jump",
|
url: this.$globalConstVars.shareUrl,
|
||||||
type: 1,
|
type: 1,
|
||||||
page: 11,
|
page: 11,
|
||||||
params: {
|
params: {
|
||||||
|
|||||||
@@ -117,7 +117,7 @@
|
|||||||
},
|
},
|
||||||
info: {}, //分销商信息
|
info: {}, //分销商信息
|
||||||
userInfo: {}, // 用户信息
|
userInfo: {}, // 用户信息
|
||||||
shareUrl: '/pages/share/jump/jump'
|
shareUrl: this.$globalConstVars.shareUrl
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
@@ -170,7 +170,7 @@
|
|||||||
getShareUrl() {
|
getShareUrl() {
|
||||||
let data = {
|
let data = {
|
||||||
client: 2,
|
client: 2,
|
||||||
url: "/pages/share/jump/jump",
|
url: this.$globalConstVars.shareUrl,
|
||||||
type: 1,
|
type: 1,
|
||||||
page: 1,
|
page: 1,
|
||||||
};
|
};
|
||||||
@@ -191,7 +191,7 @@
|
|||||||
},
|
},
|
||||||
page: 11,
|
page: 11,
|
||||||
}
|
}
|
||||||
let pageUrl = 'pages/share/jump/jump';
|
let pageUrl = this.$globalConstVars.shareUrl;
|
||||||
// #ifdef H5
|
// #ifdef H5
|
||||||
data.client = 1;
|
data.client = 1;
|
||||||
data.url = this.$globalConstVars.apiBaseUrl + 'wap/' + pageUrl;
|
data.url = this.$globalConstVars.apiBaseUrl + 'wap/' + pageUrl;
|
||||||
|
|||||||
@@ -133,7 +133,7 @@
|
|||||||
totalGoods: 0,
|
totalGoods: 0,
|
||||||
page: 1, //默认页码
|
page: 1, //默认页码
|
||||||
searchKey: '请输入关键字搜索',
|
searchKey: '请输入关键字搜索',
|
||||||
shareUrl: '/pages/share/jump/jump',
|
shareUrl: this.$globalConstVars.shareUrl,
|
||||||
lvvpopref: false
|
lvvpopref: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -257,7 +257,7 @@
|
|||||||
}
|
}
|
||||||
let pages = getCurrentPages()
|
let pages = getCurrentPages()
|
||||||
let page = pages[pages.length - 1]
|
let page = pages[pages.length - 1]
|
||||||
let pageUrl = 'pages/share/jump/jump';
|
let pageUrl = this.$globalConstVars.shareUrl;
|
||||||
// #ifdef H5
|
// #ifdef H5
|
||||||
data.client = 1;
|
data.client = 1;
|
||||||
data.url = this.$globalConstVars.apiBaseUrl + 'wap/' + pageUrl;
|
data.url = this.$globalConstVars.apiBaseUrl + 'wap/' + pageUrl;
|
||||||
@@ -293,7 +293,7 @@
|
|||||||
getShareUrl() {
|
getShareUrl() {
|
||||||
let data = {
|
let data = {
|
||||||
client: 2,
|
client: 2,
|
||||||
url: "/pages/share/jump/jump",
|
url: this.$globalConstVars.shareUrl,
|
||||||
type: 1,
|
type: 1,
|
||||||
page: 4,
|
page: 4,
|
||||||
params: {
|
params: {
|
||||||
|
|||||||
@@ -116,7 +116,7 @@
|
|||||||
},
|
},
|
||||||
info: {}, //分销商信息
|
info: {}, //分销商信息
|
||||||
userInfo: {}, // 用户信息
|
userInfo: {}, // 用户信息
|
||||||
shareUrl: '/pages/share/jump/jump'
|
shareUrl: this.$globalConstVars.shareUrl
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
@@ -169,7 +169,7 @@
|
|||||||
getShareUrl() {
|
getShareUrl() {
|
||||||
let data = {
|
let data = {
|
||||||
client: 2,
|
client: 2,
|
||||||
url: "/pages/share/jump/jump",
|
url: this.$globalConstVars.shareUrl,
|
||||||
type: 1,
|
type: 1,
|
||||||
page: 1,
|
page: 1,
|
||||||
};
|
};
|
||||||
@@ -190,7 +190,7 @@
|
|||||||
},
|
},
|
||||||
page: 4,
|
page: 4,
|
||||||
}
|
}
|
||||||
let pageUrl = 'pages/share/jump/jump';
|
let pageUrl = this.$globalConstVars.shareUrl;
|
||||||
// #ifdef H5
|
// #ifdef H5
|
||||||
data.client = 1;
|
data.client = 1;
|
||||||
data.url = this.$globalConstVars.apiBaseUrl + 'wap/' + pageUrl;
|
data.url = this.$globalConstVars.apiBaseUrl + 'wap/' + pageUrl;
|
||||||
|
|||||||
@@ -61,9 +61,6 @@
|
|||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { h5Url } from '@/common/setting/constVarsHelper.js'
|
import { h5Url } from '@/common/setting/constVarsHelper.js'
|
||||||
// #ifdef MP-TOUTIAO
|
|
||||||
import { ttPlatform } from '@/common/setting/constVarsHelper.js'
|
|
||||||
// #endif
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -73,7 +70,7 @@
|
|||||||
isSuperior: false,
|
isSuperior: false,
|
||||||
inviteKey: '',
|
inviteKey: '',
|
||||||
imageUrl: '/static/images/ShareImage.png',
|
imageUrl: '/static/images/ShareImage.png',
|
||||||
shareUrl: '/pages/share/jump/jump'
|
shareUrl: this.$globalConstVars.shareUrl
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@@ -134,19 +131,19 @@
|
|||||||
}
|
}
|
||||||
// #ifdef H5 || APP-PLUS || APP-PLUS-NVUE
|
// #ifdef H5 || APP-PLUS || APP-PLUS-NVUE
|
||||||
data.client = 1;
|
data.client = 1;
|
||||||
data.url = h5Url + 'pages/share/jump/jump'
|
data.url = h5Url + this.$globalConstVars.shareUrl
|
||||||
// #endif
|
// #endif
|
||||||
// #ifdef MP-WEIXIN
|
// #ifdef MP-WEIXIN
|
||||||
data.client = 2;
|
data.client = 2;
|
||||||
data.url = 'pages/share/jump/jump'
|
data.url = this.$globalConstVars.shareUrl
|
||||||
// #endif
|
// #endif
|
||||||
// #ifdef MP-TOUTIAO
|
// #ifdef MP-TOUTIAO
|
||||||
data.client = 4;
|
data.client = 4;
|
||||||
data.url = 'pages/share/jump/jump'
|
data.url = this.$globalConstVars.shareUrl
|
||||||
// #endif
|
// #endif
|
||||||
// #ifdef MP-ALIPAY
|
// #ifdef MP-ALIPAY
|
||||||
data.client = 6;
|
data.client = 6;
|
||||||
data.url = 'pages/share/jump/jump'
|
data.url = this.$globalConstVars.shareUrl
|
||||||
// #endif
|
// #endif
|
||||||
this.$u.api.share(data).then(res => {
|
this.$u.api.share(data).then(res => {
|
||||||
if (res.status) {
|
if (res.status) {
|
||||||
@@ -168,19 +165,19 @@
|
|||||||
}
|
}
|
||||||
// #ifdef H5 || APP-PLUS || APP-PLUS-NVUE
|
// #ifdef H5 || APP-PLUS || APP-PLUS-NVUE
|
||||||
data.client = 1;
|
data.client = 1;
|
||||||
data.url = h5Url + 'pages/share/jump/jump'
|
data.url = h5Url + this.$globalConstVars.shareUrl
|
||||||
// #endif
|
// #endif
|
||||||
// #ifdef MP-WEIXIN
|
// #ifdef MP-WEIXIN
|
||||||
data.client = 2;
|
data.client = 2;
|
||||||
data.url = 'pages/share/jump/jump'
|
data.url = this.$globalConstVars.shareUrl
|
||||||
// #endif
|
// #endif
|
||||||
// #ifdef MP-TOUTIAO
|
// #ifdef MP-TOUTIAO
|
||||||
data.client = 4;
|
data.client = 4;
|
||||||
data.url = '/pages/share/jump/jump'
|
data.url = this.$globalConstVars.shareUrl
|
||||||
// #endif
|
// #endif
|
||||||
// #ifdef MP-ALIPAY
|
// #ifdef MP-ALIPAY
|
||||||
data.client = 6;
|
data.client = 6;
|
||||||
data.url = '/pages/share/jump/jump'
|
data.url = this.$globalConstVars.shareUrl
|
||||||
// #endif
|
// #endif
|
||||||
let _this = this;
|
let _this = this;
|
||||||
this.$u.api.share(data).then(res => {
|
this.$u.api.share(data).then(res => {
|
||||||
@@ -203,7 +200,7 @@
|
|||||||
getShareUrl() {
|
getShareUrl() {
|
||||||
let data = {
|
let data = {
|
||||||
client: 2,
|
client: 2,
|
||||||
url: "pages/share/jump/jump",
|
url: this.$globalConstVars.shareUrl,
|
||||||
type: 1,
|
type: 1,
|
||||||
page: 1,
|
page: 1,
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -95,7 +95,7 @@
|
|||||||
userToken: 0,
|
userToken: 0,
|
||||||
orderId: '',//订单号
|
orderId: '',//订单号
|
||||||
orderInfo: {},
|
orderInfo: {},
|
||||||
shareUrl: '/pages/share/jump/jump',
|
shareUrl: this.$globalConstVars.shareUrl,
|
||||||
shareBox: false,
|
shareBox: false,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -201,7 +201,7 @@
|
|||||||
getShareUrl() {
|
getShareUrl() {
|
||||||
let data = {
|
let data = {
|
||||||
client: 2,
|
client: 2,
|
||||||
url: "/pages/share/jump/jump",
|
url: this.$globalConstVars.shareUrl,
|
||||||
type: 1,
|
type: 1,
|
||||||
page: this.$globalConstVars.shareType.addPinTuan,
|
page: this.$globalConstVars.shareType.addPinTuan,
|
||||||
params: {
|
params: {
|
||||||
|
|||||||
@@ -35,7 +35,7 @@
|
|||||||
id: 0,
|
id: 0,
|
||||||
info: {},
|
info: {},
|
||||||
contentBody: '',
|
contentBody: '',
|
||||||
shareUrl: '/pages/share/jump/jump',
|
shareUrl: this.$globalConstVars.shareUrl,
|
||||||
title: ''
|
title: ''
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -62,7 +62,7 @@
|
|||||||
getShareUrl() {
|
getShareUrl() {
|
||||||
let data = {
|
let data = {
|
||||||
client: 2,
|
client: 2,
|
||||||
url: "/pages/share/jump/jump",
|
url: this.$globalConstVars.shareUrl,
|
||||||
type: 1,
|
type: 1,
|
||||||
page: 5,
|
page: 5,
|
||||||
params: {
|
params: {
|
||||||
|
|||||||
Reference in New Issue
Block a user