Commit 37c44a10 by 杨北旺

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

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