Commit 37c44a10 by 杨北旺

开通页面广汇隐藏设备入口

1 parent 165ecf42
...@@ -15,6 +15,12 @@ const request = (params = {}, target, method = RequestMethods.POST, noSignAttr = ...@@ -15,6 +15,12 @@ const request = (params = {}, target, method = RequestMethods.POST, noSignAttr =
let { sessionId } = sessionStorage.getItem('GL_EQUITY_USER_INFO') ? JSON.parse(sessionStorage.getItem('GL_EQUITY_USER_INFO')) : store.state let { sessionId } = sessionStorage.getItem('GL_EQUITY_USER_INFO') ? JSON.parse(sessionStorage.getItem('GL_EQUITY_USER_INFO')) : store.state
if (sessionId) params.sessionId = sessionId if (sessionId) params.sessionId = sessionId
const url = window.$baseConfig.axios.baseURL const url = window.$baseConfig.axios.baseURL
// let url = window.$baseConfig.axios.baseURL
// if (params.isLogin) {
// url = window.$baseConfig.axios.baseURL
// } else {
// url = 'http://192.168.3.208:8110/rop-scrm-coupon/router'
// }
if (method == 'post') { if (method == 'post') {
return axios({ return axios({
url, url,
......
...@@ -68,12 +68,12 @@ export default { ...@@ -68,12 +68,12 @@ export default {
document.querySelector("body").setAttribute("style", "background:#F5F5F5"); document.querySelector("body").setAttribute("style", "background:#F5F5F5");
}, },
mounted() { mounted() {
// this.getCouponsList(); this.getCouponsList();
}, },
methods: { methods: {
changeTab(index) { changeTab(index) {
this.curentTabIndex = index; this.curentTabIndex = index;
// this.getCouponsList(); this.getCouponsList();
}, },
todetailPage() { todetailPage() {
let { sessionId } = this.$store.state; let { sessionId } = this.$store.state;
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
</div> </div>
<div class="vip-more">更多权益,开通即享</div> <div class="vip-more">更多权益,开通即享</div>
</div> </div>
<div class="opening-other"> <div v-if="merchantType!=2" class="opening-other">
<div class="opening-other-title"> <div class="opening-other-title">
其他开通方式 其他开通方式
</div> </div>
...@@ -67,7 +67,8 @@ export default { ...@@ -67,7 +67,8 @@ export default {
sessionId: '', sessionId: '',
merchantId: '', merchantId: '',
payStatus: 0, payStatus: 0,
isOpen:0 isOpen:0,
merchantType:1
} }
}, },
mounted(){ mounted(){
...@@ -93,6 +94,10 @@ export default { ...@@ -93,6 +94,10 @@ export default {
} }
}) })
}, },
created(){
let merchantInfo = JSON.parse(sessionStorage.getItem('MERCHANT_INFO'))
this.merchantType = merchantInfo.channelType
},
methods: { methods: {
jumpOpen() { jumpOpen() {
window.vm.$router.push({ name: 'common.activate' }); window.vm.$router.push({ name: 'common.activate' });
......
...@@ -335,6 +335,8 @@ export default { ...@@ -335,6 +335,8 @@ export default {
this.getMerChartInfoData(); this.getMerChartInfoData();
}, },
mounted() { mounted() {
// 开发环境测试使用
sessionStorage.setItem('http',false)
console.log("更新页面时间:", new Date().format("hh:mm:ss")); console.log("更新页面时间:", new Date().format("hh:mm:ss"));
this.getUserInfoBySession(); this.getUserInfoBySession();
// 标记已受过权,状态变为false,下次领取页需要重新授权 // 标记已受过权,状态变为false,下次领取页需要重新授权
...@@ -357,6 +359,7 @@ export default { ...@@ -357,6 +359,7 @@ export default {
this.getAllMenuData(); this.getAllMenuData();
this.getStoreData(); this.getStoreData();
this.initLocation(); this.initLocation();
}, },
methods: { methods: {
//获取分享链接 //获取分享链接
...@@ -673,6 +676,7 @@ export default { ...@@ -673,6 +676,7 @@ export default {
}, },
// 跳到我的卡包(微信环境跳到小程序,app正常跳转) // 跳到我的卡包(微信环境跳到小程序,app正常跳转)
jumpToCardPage() { jumpToCardPage() {
sessionStorage.setItem('http',true)
if (this.platform.platform != "app") { if (this.platform.platform != "app") {
let { sessionId } = this.$store.state; let { sessionId } = this.$store.state;
let [href] = window.location.href.split("/#/"); let [href] = window.location.href.split("/#/");
...@@ -881,12 +885,13 @@ export default { ...@@ -881,12 +885,13 @@ export default {
merchantId: merchantId || merchantId1, merchantId: merchantId || merchantId1,
}; };
equity.getMerchanInfo(para).then((res) => { equity.getMerchanInfo(para).then((res) => {
console.log(res, "商户信息------");
const { code, data } = res; const { code, data } = res;
if (code == 0) { if (code == 0) {
this.merchartInfo = { this.merchartInfo = {
name: data.merchantName, name: data.merchantName,
channelType:data.channelType
}; };
sessionStorage.setItem('MERCHANT_INFO',JSON.stringify(this.merchartInfo))
} }
}); });
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!