parent:
aba815cd
|
补丁 |
提交
refactor: 移除跳转小程序注释代码并统一活动页环境配置
| .. | .. |
|---|
| 186 | 186 | path: url, |
|---|
| 187 | 187 | envVersion: miniProgramInfo.envVersion == 'release' ? 'release' : 'trial', |
|---|
| 188 | 188 | }) |
|---|
| 189 | | - |
|---|
| 190 | | - // let params = { |
|---|
| 191 | | - // custAgentNo: that.$store.getters.belong?.agentNo || '', |
|---|
| 192 | | - // custAgentChnl: that.$store.getters.belong?.channel || '', |
|---|
| 193 | | - // custAgentCoy: that.$store.getters.belong?.companyCode || '', |
|---|
| 194 | | - // custAgentBranch: that.$store.getters.belong?.branchCode || '', |
|---|
| 195 | | - // custAgentOrgNo: that.$store.getters.belong?.subCode || '' |
|---|
| 196 | | - // }; |
|---|
| 197 | | - // let webUrl = 'https://ossacmall.bluedeer.com.cn/qr/index.html?isMall=true' + (miniProgramInfo.envVersion == 'release' ? '' : '&isTrial=true') + '¶ms=' + encodeURIComponent(JSON.stringify(params)) + '&pageUrl=' + encodeURIComponent(url); |
|---|
| 198 | | - // if (HTTP_REQUEST_URL.indexOf('tohours') > 0) { |
|---|
| 199 | | - // webUrl = webUrl.replace('https://ossacmall.bluedeer.com.cn/qr', 'https://sit.tohours.com/crmeb_web/qr/') |
|---|
| 200 | | - // } |
|---|
| 201 | | - // uni.navigateTo({ url: '/pages/users/web_page/index?webUel=' + encodeURIComponent(webUrl) }) |
|---|
| 202 | 189 | } |
|---|
| 203 | 190 | if (!that.$store.getters.isLogin) { |
|---|
| 204 | 191 | toLogin(that); |
|---|
| .. | .. |
|---|
| 735 | 735 | path: url, |
|---|
| 736 | 736 | envVersion: miniProgramInfo.envVersion == 'release' ? 'release' : 'trial', |
|---|
| 737 | 737 | }) |
|---|
| 738 | | - |
|---|
| 739 | | - // let params={}; |
|---|
| 740 | | - // params['custAgentNo']=((this.$store.getters.belong && this.$store.getters.belong.agentNo) ? this.$store |
|---|
| 741 | | - // .getters.belong.agentNo : ''); |
|---|
| 742 | | - // params['custAgentChnl']=((this.$store.getters.belong && this.$store.getters.belong.channel) ? this.$store |
|---|
| 743 | | - // .getters.belong.channel : ''); |
|---|
| 744 | | - // params['custAgentCoy']=((this.$store.getters.belong && this.$store.getters.belong.companyCode) ? this |
|---|
| 745 | | - // .$store.getters.belong.companyCode : ''); |
|---|
| 746 | | - // params['custAgentBranch']=((this.$store.getters.belong && this.$store.getters.belong.branchCode) ? this |
|---|
| 747 | | - // .$store.getters.belong.branchCode : ''); |
|---|
| 748 | | - // params['custAgentOrgNo']=((this.$store.getters.belong && this.$store.getters.belong.subCode) ? this |
|---|
| 749 | | - // .$store.getters.belong.subCode : ''); |
|---|
| 750 | | - // let webUrl='https://ossacmall.bluedeer.com.cn/qr/index.html?isMall=true'+(miniProgramInfo.envVersion == 'release' ? '' : '&isTrial=true')+'¶ms='+encodeURIComponent(JSON.stringify(params))+'&pageUrl='+encodeURIComponent(url); |
|---|
| 751 | | - // if(HTTP_REQUEST_URL.indexOf('tohours')>0){ |
|---|
| 752 | | - // webUrl=webUrl.replace('https://ossacmall.bluedeer.com.cn/qr','https://sit.tohours.com/crmeb_web/qr/') |
|---|
| 753 | | - // } |
|---|
| 754 | | - // uni.navigateTo({ |
|---|
| 755 | | - // url: '/pages/users/web_page/index?webUel='+encodeURIComponent(webUrl) |
|---|
| 756 | | - // }) |
|---|
| 757 | | - |
|---|
| 738 | + |
|---|
| 758 | 739 | this.clickTrack('third') |
|---|
| 759 | 740 | }, |
|---|
| 760 | 741 | goToLink(item, type) { |
|---|
| .. | .. |
|---|
| 231 | 231 | path: url, |
|---|
| 232 | 232 | envVersion: miniProgramInfo.envVersion == 'release' ? 'release' : 'trial', |
|---|
| 233 | 233 | }) |
|---|
| 234 | | - |
|---|
| 235 | | - // let params = {}; |
|---|
| 236 | | - // params['custAgentNo'] = ((this.$store.getters.belong && this.$store.getters.belong.agentNo) ? this.$store |
|---|
| 237 | | - // .getters.belong.agentNo : ''); |
|---|
| 238 | | - // params['custAgentChnl'] = ((this.$store.getters.belong && this.$store.getters.belong.channel) ? this.$store |
|---|
| 239 | | - // .getters.belong.channel : ''); |
|---|
| 240 | | - // params['custAgentCoy'] = ((this.$store.getters.belong && this.$store.getters.belong.companyCode) ? this |
|---|
| 241 | | - // .$store.getters.belong.companyCode : ''); |
|---|
| 242 | | - // params['custAgentBranch'] = ((this.$store.getters.belong && this.$store.getters.belong.branchCode) ? this |
|---|
| 243 | | - // .$store.getters.belong.branchCode : ''); |
|---|
| 244 | | - // params['custAgentOrgNo'] = ((this.$store.getters.belong && this.$store.getters.belong.subCode) ? this |
|---|
| 245 | | - // .$store.getters.belong.subCode : ''); |
|---|
| 246 | | - // let webUrl = 'https://ossacmall.bluedeer.com.cn/qr/index.html?isMall=true' + (miniProgramInfo.envVersion == |
|---|
| 247 | | - // 'release' ? '' : '&isTrial=true') + '¶ms=' + encodeURIComponent(JSON.stringify(params)) + |
|---|
| 248 | | - // '&pageUrl=' + encodeURIComponent(url); |
|---|
| 249 | | - // if (HTTP_REQUEST_URL.indexOf('tohours') > 0) { |
|---|
| 250 | | - // webUrl = webUrl.replace('https://ossacmall.bluedeer.com.cn/qr', |
|---|
| 251 | | - // 'https://sit.tohours.com/crmeb_web/qr/') |
|---|
| 252 | | - // } |
|---|
| 253 | | - // uni.navigateTo({ |
|---|
| 254 | | - // url: '/pages/users/web_page/index?webUel=' + encodeURIComponent(webUrl) |
|---|
| 255 | | - // }) |
|---|
| 256 | 234 | }, |
|---|
| 257 | 235 | goToLink(item, type) { |
|---|
| 258 | 236 | let that = this; |
|---|
| .. | .. |
|---|
| 508 | 508 | path: url, |
|---|
| 509 | 509 | envVersion: envVersion != 'release' ? 'trial' : 'release' |
|---|
| 510 | 510 | }) |
|---|
| 511 | | - |
|---|
| 512 | | - // let webUrl='https://ossacmall.bluedeer.com.cn/qr/index.html?isMall=true'+(envVersion == 'release' ? '' : '&isTrial=true')+'¶ms='+encodeURIComponent(JSON.stringify(params))+'&pageUrl='+encodeURIComponent(url); |
|---|
| 513 | | - // if(HTTP_REQUEST_URL.indexOf('tohours')>0){ |
|---|
| 514 | | - // webUrl=webUrl.replace('https://ossacmall.bluedeer.com.cn/qr','https://sit.tohours.com/crmeb_web/qr/') |
|---|
| 515 | | - // } |
|---|
| 516 | | - // uni.navigateTo({ |
|---|
| 517 | | - // url: '/pages/users/web_page/index?webUel='+encodeURIComponent(webUrl) |
|---|
| 518 | | - // }) |
|---|
| 519 | 511 | } |
|---|
| 520 | 512 | if (!that.$store.getters.isLogin) { |
|---|
| 521 | 513 | toLogin(that); |
|---|
| .. | .. |
|---|
| 579 | 579 | path: url, |
|---|
| 580 | 580 | envVersion: miniProgramInfo.envVersion == 'release' ? 'release' : 'trial', |
|---|
| 581 | 581 | }) |
|---|
| 582 | | - |
|---|
| 583 | | - // let params = {}; |
|---|
| 584 | | - // params['custAgentNo'] = ((that.$store.getters.belong && that.$store.getters.belong.agentNo) ? that |
|---|
| 585 | | - // .$store |
|---|
| 586 | | - // .getters.belong.agentNo : ''); |
|---|
| 587 | | - // params['custAgentChnl'] = ((that.$store.getters.belong && that.$store.getters.belong.channel) ? that |
|---|
| 588 | | - // .$store |
|---|
| 589 | | - // .getters.belong.channel : ''); |
|---|
| 590 | | - // params['custAgentCoy'] = ((that.$store.getters.belong && that.$store.getters.belong.companyCode) ? that |
|---|
| 591 | | - // .$store.getters.belong.companyCode : ''); |
|---|
| 592 | | - // params['custAgentBranch'] = ((that.$store.getters.belong && that.$store.getters.belong.branchCode) ? |
|---|
| 593 | | - // that |
|---|
| 594 | | - // .$store.getters.belong.branchCode : ''); |
|---|
| 595 | | - // params['custAgentOrgNo'] = ((that.$store.getters.belong && that.$store.getters.belong.subCode) ? that |
|---|
| 596 | | - // .$store.getters.belong.subCode : ''); |
|---|
| 597 | | - // let webUrl = 'https://ossacmall.bluedeer.com.cn/qr/index.html?isMall=true' + (miniProgramInfo.envVersion == 'release' ? |
|---|
| 598 | | - // '' : '&isTrial=true') + '¶ms=' + encodeURIComponent(JSON.stringify(params)) + '&pageUrl=' + |
|---|
| 599 | | - // encodeURIComponent(url); |
|---|
| 600 | | - // if (HTTP_REQUEST_URL.indexOf('tohours') > 0) { |
|---|
| 601 | | - // webUrl = webUrl.replace('https://ossacmall.bluedeer.com.cn/qr', |
|---|
| 602 | | - // 'https://sit.tohours.com/crmeb_web/qr/') |
|---|
| 603 | | - // } |
|---|
| 604 | | - // uni.navigateTo({ |
|---|
| 605 | | - // url: '/pages/users/web_page/index?webUel=' + encodeURIComponent(webUrl) |
|---|
| 606 | | - // }) |
|---|
| 607 | 582 | } |
|---|
| 608 | 583 | if (!that.$store.getters.isLogin) { |
|---|
| 609 | 584 | toLogin(that); |
|---|
| .. | .. |
|---|
| 289 | 289 | path: url, |
|---|
| 290 | 290 | envVersion: miniProgramInfo.envVersion == 'release' ? 'release' : 'trial', |
|---|
| 291 | 291 | }) |
|---|
| 292 | | - |
|---|
| 293 | | - // let params = {}; |
|---|
| 294 | | - // params['custAgentNo'] = ((this.$store.getters.belong && this.$store.getters.belong.agentNo) ? this.$store |
|---|
| 295 | | - // .getters.belong.agentNo : ''); |
|---|
| 296 | | - // params['custAgentChnl'] = ((this.$store.getters.belong && this.$store.getters.belong.channel) ? this.$store |
|---|
| 297 | | - // .getters.belong.channel : ''); |
|---|
| 298 | | - // params['custAgentCoy'] = ((this.$store.getters.belong && this.$store.getters.belong.companyCode) ? this |
|---|
| 299 | | - // .$store.getters.belong.companyCode : ''); |
|---|
| 300 | | - // params['custAgentBranch'] = ((this.$store.getters.belong && this.$store.getters.belong.branchCode) ? this |
|---|
| 301 | | - // .$store.getters.belong.branchCode : ''); |
|---|
| 302 | | - // params['custAgentOrgNo'] = ((this.$store.getters.belong && this.$store.getters.belong.subCode) ? this |
|---|
| 303 | | - // .$store.getters.belong.subCode : ''); |
|---|
| 304 | | - // let webUrl = 'https://ossacmall.bluedeer.com.cn/qr/index.html?isMall=true' + (miniProgramInfo.envVersion == |
|---|
| 305 | | - // 'release' ? '' : '&isTrial=true') + '¶ms=' + encodeURIComponent(JSON.stringify(params)) + |
|---|
| 306 | | - // '&pageUrl=' + encodeURIComponent(url); |
|---|
| 307 | | - // if (HTTP_REQUEST_URL.indexOf('tohours') > 0) { |
|---|
| 308 | | - // webUrl = webUrl.replace('https://ossacmall.bluedeer.com.cn/qr', |
|---|
| 309 | | - // 'https://sit.tohours.com/crmeb_web/qr/') |
|---|
| 310 | | - // } |
|---|
| 311 | | - // uni.navigateTo({ |
|---|
| 312 | | - // url: '/pages/users/web_page/index?webUel=' + encodeURIComponent(webUrl) |
|---|
| 313 | | - // }) |
|---|
| 314 | 292 | }, |
|---|
| 315 | 293 | isTabLink(link) { |
|---|
| 316 | 294 | let isTab = false; |
|---|
| .. | .. |
|---|
| 495 | 495 | |
|---|
| 496 | 496 | <script> |
|---|
| 497 | 497 | import { |
|---|
| 498 | | - HTTP_REQUEST_URL |
|---|
| 498 | + WEB_ACTIVITY_BASE |
|---|
| 499 | 499 | } from '@/config/app'; |
|---|
| 500 | 500 | import { |
|---|
| 501 | 501 | mapGetters |
|---|
| .. | .. |
|---|
| 1206 | 1206 | this.addTrack('yy_marketPageClick', data); |
|---|
| 1207 | 1207 | |
|---|
| 1208 | 1208 | function go() { |
|---|
| 1209 | | - let webUrl = 'https://ossacmall.bluedeer.com.cn/acmall_lottery/index.html' |
|---|
| 1210 | | - if (HTTP_REQUEST_URL.indexOf('tohours') > 0) { |
|---|
| 1211 | | - webUrl = webUrl.replace('https://ossacmall.bluedeer.com.cn', |
|---|
| 1212 | | - 'https://sit.tohours.com/crmeb_web') |
|---|
| 1213 | | - } |
|---|
| 1209 | + let webUrl = `${WEB_ACTIVITY_BASE}/acmall_lottery/index.html` |
|---|
| 1214 | 1210 | webUrl += '?token=' + |
|---|
| 1215 | 1211 | that.$store.getters.token + '&unionId=' + that.$store.getters.unionId + '&mdayId=' + that.info |
|---|
| 1216 | 1212 | .mdayId |
|---|