【优化】清理项目垃圾文件,及设置统一常量。

This commit is contained in:
大灰灰
2022-09-16 00:35:49 +08:00
parent aa84a56fc9
commit 671271e4a1
21 changed files with 59 additions and 65 deletions

View File

@@ -75,12 +75,9 @@ export const shareType = {
solitaire: 12,
};
export const shareUrl = '/pages/share/jump/jump'; //分享初始化地址
// #ifdef MP-TOUTIAO
export const ttPlatform = 'toutiao'; //toutiao=今日头条小程序, douyin=抖音小程序, pipixia=皮皮虾小程序, huoshan=火山小视频小程序
// #endif
//nav页面导航类型
export const navLinkType = {

View File

@@ -145,7 +145,7 @@
//商品
data = {
page: 2, //商品
url: 'pages/share/jump/jump',
url: this.$globalConstVars.shareUrl,
params: {
goodsId: this.goodsId
},
@@ -160,7 +160,7 @@
//拼团
data = {
page: 3, //商品
url: 'pages/share/jump/jump',
url: this.$globalConstVars.shareUrl,
params: {
goodsId: this.goodsId,
groupId: this.groupId,

View File

@@ -86,7 +86,7 @@
//商品
data = {
page: 2, //商品
url: h5Url + 'pages/share/jump/jump',
url: h5Url + this.$globalConstVars.shareUrl,
params: {
goodsId: this.goodsId
},
@@ -101,7 +101,7 @@
//拼团
data = {
page: 3, //商品
url: h5Url + 'pages/share/jump/jump',
url: h5Url + this.$globalConstVars.shareUrl,
params: {
goodsId: this.goodsId,
groupId: this.groupId,
@@ -129,7 +129,7 @@
if (this.shareType == 1) {
data = {
page: 2, //商品
url: h5Url + 'pages/share/jump/jump',
url: h5Url + this.$globalConstVars.shareUrl,
params: {
goodsId: this.goodsId
},
@@ -143,7 +143,7 @@
} else if (this.shareType == 3) {
data = {
page: 3, //拼团
url: h5Url + 'pages/share/jump/jump',
url: h5Url + this.$globalConstVars.shareUrl,
params: {
goodsId: this.goodsId,
groupId: this.groupId,

View File

@@ -87,7 +87,7 @@
if (this.shareType == this.$globalConstVars.shareType.index) {
data = {
page: this.shareType, //商品
url: 'pages/share/jump/jump',
url: this.$globalConstVars.shareUrl,
params: {
goodsId: this.goodsId
},
@@ -101,7 +101,7 @@
} else if (this.shareType == this.$globalConstVars.shareType.pinTuan) {
data = {
page: this.shareType, //拼团
url: 'pages/share/jump/jump',
url: this.$globalConstVars.shareUrl,
params: {
goodsId: this.goodsId,
teamId: this.teamId
@@ -118,7 +118,7 @@
else if (this.shareType == this.$globalConstVars.shareType.group || this.shareType == this.$globalConstVars.shareType.seckill) {
data = {
page: this.shareType, //拼团
url: 'pages/share/jump/jump',
url: this.$globalConstVars.shareUrl,
params: {
goodsId: this.goodsId,
groupId: this.groupId
@@ -135,7 +135,7 @@
else if (this.shareType == this.$globalConstVars.shareType.goods) {
data = {
page: this.shareType, //拼团
url: 'pages/share/jump/jump',
url: this.$globalConstVars.shareUrl,
params: {
goodsId: this.goodsId,
},
@@ -151,7 +151,7 @@
else if (this.shareType == this.$globalConstVars.shareType.addPinTuan) {
data = {
page: this.shareType, //拼团
url: 'pages/share/jump/jump',
url: this.$globalConstVars.shareUrl,
params: {
goodsId: this.goodsId,
groupId: this.groupId,
@@ -168,7 +168,7 @@
} else if (this.shareType == this.$globalConstVars.shareType.solitaire) {
data = {
page: this.shareType,
url: 'pages/share/jump/jump',
url: this.$globalConstVars.shareUrl,
params: {
id: this.objectId
},

View File

@@ -371,7 +371,7 @@
modalTitle: '',
modalType: 'promotion',
selectType: '',
shareUrl: '/pages/share/jump/jump',
shareUrl: this.$globalConstVars.shareUrl,
shareBox: false,
serviceDescription: {
commonQuestion: [],
@@ -697,7 +697,7 @@
getShareUrl() {
let data = {
client: 2,
url: "/pages/share/jump/jump",
url: this.$globalConstVars.shareUrl,
type: 1,
page: 9,
params: {

View File

@@ -523,7 +523,7 @@
modalTitle: '',
modalType: 'promotion',
selectType: '',
shareUrl: '/pages/share/jump/jump',
shareUrl: this.$globalConstVars.shareUrl,
shareBox: false,
serviceDescription: {
commonQuestion: [],
@@ -918,7 +918,7 @@
getShareUrl() {
let data = {
client: 2,
url: "/pages/share/jump/jump",
url: this.$globalConstVars.shareUrl,
type: 1,
page: 3,
params: {

View File

@@ -380,7 +380,7 @@
modalTitle: '',
modalType: 'promotion',
selectType: '',
shareUrl: '/pages/share/jump/jump',
shareUrl: this.$globalConstVars.shareUrl,
shareBox: false,
shareType: 10,
serviceDescription: {
@@ -701,7 +701,7 @@
getShareUrl() {
let data = {
client: 2,
url: "/pages/share/jump/jump",
url: this.$globalConstVars.shareUrl,
type: 1,
page: this.shareType,
params: {

View File

@@ -166,7 +166,7 @@
cartType: this.$globalConstVars.paymentType.solitaire,
shareBox: false,
submitStatus: false,
shareUrl: '/pages/share/jump/jump',
shareUrl: this.$globalConstVars.shareUrl,
}
},
onLoad(e) {
@@ -337,7 +337,7 @@
getShareUrl() {
let data = {
client: 2,
url: "/pages/share/jump/jump",
url: this.$globalConstVars.shareUrl,
type: 1,
page: 12,
params: {

View File

@@ -36,7 +36,7 @@
id: 0,
info: {},
contentBody: '',
shareUrl: '/pages/share/jump/jump',
shareUrl: this.$globalConstVars.shareUrl,
title: ''
};
},
@@ -118,7 +118,7 @@
getShareUrl() {
let data = {
client: 2,
url: "/pages/share/jump/jump",
url: this.$globalConstVars.shareUrl,
type: 1,
page: 5,
params: {

View File

@@ -346,7 +346,7 @@
selectId: '',
showSpecs: false,
submitStatus: false, //按钮状态
shareUrl: '/pages/share/jump/jump',
shareUrl: this.$globalConstVars.shareUrl,
bottomModal: false,
buttonName: '',
}
@@ -839,7 +839,7 @@
getShareUrl() {
let data = {
client: 2,
url: "/pages/share/jump/jump",
url: this.$globalConstVars.shareUrl,
type: 1,
page: 8,
params: {

View File

@@ -389,7 +389,7 @@
modalTitle: '',
modalType: 'promotion',
selectType: '',
shareUrl: '/pages/share/jump/jump',
shareUrl: this.$globalConstVars.shareUrl,
shareBox: false,
serviceDescription: {
commonQuestion: [],
@@ -821,7 +821,7 @@
getShareUrl() {
let data = {
client: 2,
url: "/pages/share/jump/jump",
url: this.$globalConstVars.shareUrl,
type: 1,
page: 2,
params: {

View File

@@ -50,7 +50,7 @@
//userInfo: {}, // 用户信息
kefupara: '', //客服传递资料
copy: false,
shareUrl: '/pages/share/jump/jump',
shareUrl: this.$globalConstVars.shareUrl,
modalShow: true,
};
},
@@ -181,7 +181,7 @@
getShareUrl() {
let data = {
client: 2,
url: "/pages/share/jump/jump",
url: this.$globalConstVars.shareUrl,
type: 1,
page: 1,
};

View File

@@ -44,7 +44,7 @@
//userInfo: {}, // 用户信息
kefupara: '', //客服传递资料
copy: false,
shareUrl: '/pages/share/jump/jump',
shareUrl: this.$globalConstVars.shareUrl,
isScorll: false,
homeTitle: '',
modalShow: true,
@@ -142,7 +142,7 @@
getShareUrl() {
let data = {
client: 2,
url: "/pages/share/jump/jump",
url: this.$globalConstVars.shareUrl,
type: 1,
page: 1,
};

View File

@@ -702,7 +702,7 @@
scrollTop: 0,
imageUrl: '/static/images/ShareImage.png', //店铺分享图片
kefupara: '', //客服传递资料
shareUrl: '/pages/share/jump/jump',
shareUrl: this.$globalConstVars.shareUrl,
homeTitle: '',
};
},
@@ -766,7 +766,7 @@
getShareUrl() {
let data = {
client: 2,
url: "/pages/share/jump/jump",
url: this.$globalConstVars.shareUrl,
type: 1,
page: 1,
};

View File

@@ -134,7 +134,7 @@
totalGoods: 0,
page: 1, //默认页码
searchKey: '请输入关键字搜索',
shareUrl: '/pages/share/jump/jump',
shareUrl: this.$globalConstVars.shareUrl,
lvvpopref: false
}
},
@@ -257,7 +257,7 @@
},
page: 11,
}
let pageUrl = 'pages/share/jump/jump';
let pageUrl = this.$globalConstVars.shareUrl;
// #ifdef H5
data.client = 1;
data.url = this.$globalConstVars.apiBaseUrl + 'wap/' + pageUrl;
@@ -293,7 +293,7 @@
getShareUrl() {
let data = {
client: 2,
url: "/pages/share/jump/jump",
url: this.$globalConstVars.shareUrl,
type: 1,
page: 11,
params: {

View File

@@ -117,7 +117,7 @@
},
info: {}, //分销商信息
userInfo: {}, // 用户信息
shareUrl: '/pages/share/jump/jump'
shareUrl: this.$globalConstVars.shareUrl
}
},
onShow() {
@@ -170,7 +170,7 @@
getShareUrl() {
let data = {
client: 2,
url: "/pages/share/jump/jump",
url: this.$globalConstVars.shareUrl,
type: 1,
page: 1,
};
@@ -191,7 +191,7 @@
},
page: 11,
}
let pageUrl = 'pages/share/jump/jump';
let pageUrl = this.$globalConstVars.shareUrl;
// #ifdef H5
data.client = 1;
data.url = this.$globalConstVars.apiBaseUrl + 'wap/' + pageUrl;

View File

@@ -133,7 +133,7 @@
totalGoods: 0,
page: 1, //默认页码
searchKey: '请输入关键字搜索',
shareUrl: '/pages/share/jump/jump',
shareUrl: this.$globalConstVars.shareUrl,
lvvpopref: false
}
},
@@ -257,7 +257,7 @@
}
let pages = getCurrentPages()
let page = pages[pages.length - 1]
let pageUrl = 'pages/share/jump/jump';
let pageUrl = this.$globalConstVars.shareUrl;
// #ifdef H5
data.client = 1;
data.url = this.$globalConstVars.apiBaseUrl + 'wap/' + pageUrl;
@@ -293,7 +293,7 @@
getShareUrl() {
let data = {
client: 2,
url: "/pages/share/jump/jump",
url: this.$globalConstVars.shareUrl,
type: 1,
page: 4,
params: {

View File

@@ -116,7 +116,7 @@
},
info: {}, //分销商信息
userInfo: {}, // 用户信息
shareUrl: '/pages/share/jump/jump'
shareUrl: this.$globalConstVars.shareUrl
}
},
onShow() {
@@ -169,7 +169,7 @@
getShareUrl() {
let data = {
client: 2,
url: "/pages/share/jump/jump",
url: this.$globalConstVars.shareUrl,
type: 1,
page: 1,
};
@@ -190,7 +190,7 @@
},
page: 4,
}
let pageUrl = 'pages/share/jump/jump';
let pageUrl = this.$globalConstVars.shareUrl;
// #ifdef H5
data.client = 1;
data.url = this.$globalConstVars.apiBaseUrl + 'wap/' + pageUrl;

View File

@@ -61,9 +61,6 @@
</template>
<script>
import { h5Url } from '@/common/setting/constVarsHelper.js'
// #ifdef MP-TOUTIAO
import { ttPlatform } from '@/common/setting/constVarsHelper.js'
// #endif
export default {
data() {
return {
@@ -73,7 +70,7 @@
isSuperior: false,
inviteKey: '',
imageUrl: '/static/images/ShareImage.png',
shareUrl: '/pages/share/jump/jump'
shareUrl: this.$globalConstVars.shareUrl
}
},
computed: {
@@ -134,19 +131,19 @@
}
// #ifdef H5 || APP-PLUS || APP-PLUS-NVUE
data.client = 1;
data.url = h5Url + 'pages/share/jump/jump'
data.url = h5Url + this.$globalConstVars.shareUrl
// #endif
// #ifdef MP-WEIXIN
data.client = 2;
data.url = 'pages/share/jump/jump'
data.url = this.$globalConstVars.shareUrl
// #endif
// #ifdef MP-TOUTIAO
data.client = 4;
data.url = 'pages/share/jump/jump'
data.url = this.$globalConstVars.shareUrl
// #endif
// #ifdef MP-ALIPAY
data.client = 6;
data.url = 'pages/share/jump/jump'
data.url = this.$globalConstVars.shareUrl
// #endif
this.$u.api.share(data).then(res => {
if (res.status) {
@@ -168,19 +165,19 @@
}
// #ifdef H5 || APP-PLUS || APP-PLUS-NVUE
data.client = 1;
data.url = h5Url + 'pages/share/jump/jump'
data.url = h5Url + this.$globalConstVars.shareUrl
// #endif
// #ifdef MP-WEIXIN
data.client = 2;
data.url = 'pages/share/jump/jump'
data.url = this.$globalConstVars.shareUrl
// #endif
// #ifdef MP-TOUTIAO
data.client = 4;
data.url = '/pages/share/jump/jump'
data.url = this.$globalConstVars.shareUrl
// #endif
// #ifdef MP-ALIPAY
data.client = 6;
data.url = '/pages/share/jump/jump'
data.url = this.$globalConstVars.shareUrl
// #endif
let _this = this;
this.$u.api.share(data).then(res => {
@@ -203,7 +200,7 @@
getShareUrl() {
let data = {
client: 2,
url: "pages/share/jump/jump",
url: this.$globalConstVars.shareUrl,
type: 1,
page: 1,
};

View File

@@ -95,7 +95,7 @@
userToken: 0,
orderId: '',//订单号
orderInfo: {},
shareUrl: '/pages/share/jump/jump',
shareUrl: this.$globalConstVars.shareUrl,
shareBox: false,
}
},
@@ -201,7 +201,7 @@
getShareUrl() {
let data = {
client: 2,
url: "/pages/share/jump/jump",
url: this.$globalConstVars.shareUrl,
type: 1,
page: this.$globalConstVars.shareType.addPinTuan,
params: {

View File

@@ -35,7 +35,7 @@
id: 0,
info: {},
contentBody: '',
shareUrl: '/pages/share/jump/jump',
shareUrl: this.$globalConstVars.shareUrl,
title: ''
};
},
@@ -62,7 +62,7 @@
getShareUrl() {
let data = {
client: 2,
url: "/pages/share/jump/jump",
url: this.$globalConstVars.shareUrl,
type: 1,
page: 5,
params: {