Commit a3ad214f by 李嘉林

feat: sid同步

parent 3bab5edf
......@@ -91,19 +91,19 @@ module.exports = merge(baseWebpackConfig, {
// inject: true
// }),
new FriendlyErrorsPlugin(),
new UglifyJsPlugin({
sourceMap: true,
uglifyOptions: {
// 删除注释
output: {
comments: false
},
compress: {
warnings: false,
drop_console: true,
pure_funcs: ['console.log']
}
}
})
// new UglifyJsPlugin({
// sourceMap: true,
// uglifyOptions: {
// // 删除注释
// output: {
// comments: false
// },
// compress: {
// warnings: false,
// drop_console: true,
// pure_funcs: ['console.log']
// }
// }
// })
]
})
......@@ -121,20 +121,20 @@ if (config.build.bundleAnalyzerReport) {
var useUglifyJs = process.env.PLATFORM !== 'swan'
if (useUglifyJs) {
webpackConfig.plugins.push(new UglifyJsPlugin({
sourceMap: true,
uglifyOptions: {
// 删除注释
output: {
comments: false
},
compress: {
warnings: false,
drop_console: true,
pure_funcs: ['console.log']
}
}
}))
// webpackConfig.plugins.push(new UglifyJsPlugin({
// sourceMap: true,
// uglifyOptions: {
// // 删除注释
// output: {
// comments: false
// },
// compress: {
// warnings: false,
// drop_console: true,
// pure_funcs: ['console.log']
// }
// }
// }))
}
module.exports = webpackConfig
......@@ -5768,9 +5768,9 @@
"dev": true
},
"mayi-analytics": {
"version": "1.1.61",
"resolved": "https://registry.npmjs.org/mayi-analytics/-/mayi-analytics-1.1.61.tgz",
"integrity": "sha512-O7cmi+4eX9TYmc4i3DLY8ep8nb6o8/vf3yvMJ+Tt0rZt4Bt82FXZs4VWnj2NwwHo5cKaR4ZTv7ob6k8v7PfT1w==",
"version": "1.1.64",
"resolved": "https://registry.npmjs.org/mayi-analytics/-/mayi-analytics-1.1.64.tgz",
"integrity": "sha512-s5zsZItmFn7XjtidGFuonGQsc0pFofP/aZVWkPE6dPShNDJl6OGc/L2nLmWx2NuiIfu8OGYnKL8R7S66Xsjb0A==",
"requires": {
"js-cookie": "^2.2.0",
"qs": "^6.7.0",
......
......@@ -30,7 +30,7 @@
"build:my": "node build/build.js my"
},
"dependencies": {
"mayi-analytics": "^1.1.61",
"mayi-analytics": "^1.1.64",
"mayi-front-tools": "^1.0.3",
"mpvue": "^2.0.0",
"mpvue-wxparse": "^0.6.5",
......
......@@ -58,6 +58,10 @@ export default {
if (wx.getStorageSync("_ma_uid")) {
this.params += `&_ma_uid=${wx.getStorageSync("_ma_uid")}`;
}
// 加_ma_sid
if (wx.getStorageSync("_ma_sid")) {
this.params += `&_ma_sid=${wx.getStorageSync("_ma_sid")}`;
}
let pageUrl1 = (this.page.startsWith('http://') || this.page.startsWith('https://'))? (this.page + this.params) : this.link+this.page+this.params
let pageUrl = forUrlAddKey(decodeURIComponent(pageUrl1));
console.log(pageUrl,'--pageUrl')
......
......@@ -87,6 +87,10 @@ export default {
if (wx.getStorageSync("_ma_uid")) {
this.params += `&_ma_uid=${wx.getStorageSync("_ma_uid")}`;
}
// 加_ma_sid
if (wx.getStorageSync("_ma_sid")) {
this.params += `&_ma_sid=${wx.getStorageSync("_ma_sid")}`;
}
// 判断当前是否为导购分享
const setGuideEmployeeId = wx.getStorageSync(this.$store.state.mixid + 'setGuideEmployeeId');
if (setGuideEmployeeId && !this.params.includes("setGuideEmployeeId")) {
......
......@@ -208,6 +208,10 @@ export default {
if (wx.getStorageSync("_ma_uid")) {
this.link += `&_ma_uid=${wx.getStorageSync("_ma_uid")}`;
}
// 加_ma_sid
if (wx.getStorageSync("_ma_sid")) {
this.link += `&_ma_sid=${wx.getStorageSync("_ma_sid")}`;
}
this.useLink = this.link;
console.log(this.useLink,'--this.useLink')
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment