Commit cd635ac3 by 杨北旺

权益首页UI更改样式

1 parent 67000fef
...@@ -73,8 +73,9 @@ export default { ...@@ -73,8 +73,9 @@ export default {
mounted(){ mounted(){
this.payStatus = this.$route.query; this.payStatus = this.$route.query;
console.log(this.getLocalStorage('whereInOpen'),'本地缓存的页面入口') console.log(this.getLocalStorage('whereInOpen'),'本地缓存的页面入口')
const merchantId2 = sessionStorage.getItem("GL_WX_MERCHANTID");
let { sessionId,merchantId} = this.$store.state; let { sessionId,merchantId} = this.$store.state;
this.merchantId = merchantId; this.merchantId = merchantId || merchantId2;
this.sessionId = sessionId; this.sessionId = sessionId;
this.showLoading(); this.showLoading();
let para = { let para = {
...@@ -145,8 +146,6 @@ export default { ...@@ -145,8 +146,6 @@ export default {
window.myjs.jumpNativeApp(JSON.stringify({ type: 7, homePage: 'equity' })) window.myjs.jumpNativeApp(JSON.stringify({ type: 7, homePage: 'equity' }))
} }
}else{ }else{
// console.log(1111);
// console.log(temp,'**-**');
self.setLocalStorage('reLoadIndex',self.sessionId) self.setLocalStorage('reLoadIndex',self.sessionId)
if (self.checkPhoneType() == 'ios') { if (self.checkPhoneType() == 'ios') {
window.webkit.messageHandlers.jumpNativeApp.postMessage(JSON.stringify({ type: 1, reloadView: 'equity' })) window.webkit.messageHandlers.jumpNativeApp.postMessage(JSON.stringify({ type: 1, reloadView: 'equity' }))
...@@ -176,6 +175,8 @@ export default { ...@@ -176,6 +175,8 @@ export default {
const ua = navigator.userAgent.toLowerCase() const ua = navigator.userAgent.toLowerCase()
if (ua.match(/MicroMessenger/i) == 'micromessenger') { if (ua.match(/MicroMessenger/i) == 'micromessenger') {
window.vm.$router.replace({ name: 'equity.index' }) window.vm.$router.replace({ name: 'equity.index' })
}else{
window.vm.$router.go(-1)
} }
// if (this.checkPhoneType() == 'ios') { // if (this.checkPhoneType() == 'ios') {
// window.webkit.messageHandlers.jumpNativeApp.postMessage(JSON.stringify({type:1})) // window.webkit.messageHandlers.jumpNativeApp.postMessage(JSON.stringify({type:1}))
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
<button class="follow-btn" @click="followAccount">关注公众号</button> <button class="follow-btn" @click="followAccount">关注公众号</button>
</div> </div>
<div v-if="showFollowAccount" style="height: 40px"></div> <div v-if="showFollowAccount" style="height: 40px"></div>
<div class="out_box">
<div class="card_new_box"> <div class="card_new_box">
<div class="box_main_img"> <div class="box_main_img">
<div class="user_header_wrap"> <div class="user_header_wrap">
...@@ -15,7 +16,9 @@ ...@@ -15,7 +16,9 @@
</div> </div>
<div class="info_wrapper"> <div class="info_wrapper">
<div class="user_name"> <div class="user_name">
{{ userInfo.nickName ? userInfo.nickName : userInfo.memberName }} {{
userInfo.nickName ? userInfo.nickName : userInfo.memberName
}}
</div> </div>
<div v-if="ismember && userInfo.cardNo" style="height: 9px"></div> <div v-if="ismember && userInfo.cardNo" style="height: 9px"></div>
<div class="user_date" v-if="ismember && userInfo.cardNo"> <div class="user_date" v-if="ismember && userInfo.cardNo">
...@@ -53,8 +56,10 @@ ...@@ -53,8 +56,10 @@
{{ userInfo.memberName }} {{ userInfo.memberName }}
</div> </div>
</div> </div>
</div>
<div class="box_foot_img"></div> <div class="box_foot_img"></div>
</div> </div>
<!-- <div class="card-box"> <!-- <div class="card-box">
<div class="sprite-icon icon-banner"> <div class="sprite-icon icon-banner">
...@@ -169,7 +174,7 @@ export default { ...@@ -169,7 +174,7 @@ export default {
mounted() { mounted() {
console.log("更新页面时间:", new Date().format("hh:mm:ss")); console.log("更新页面时间:", new Date().format("hh:mm:ss"));
// 标记已受过权,状态变为false,下次领取页需要重新授权 // 标记已受过权,状态变为false,下次领取页需要重新授权
this.setLocalStorage('codeAuth',false) this.setLocalStorage("codeAuth", false);
//体验领取页面入口参数 //体验领取页面入口参数
let routerQuery = this.$route.query; let routerQuery = this.$route.query;
//体验领取页面返回的结果 //体验领取页面返回的结果
...@@ -278,7 +283,7 @@ export default { ...@@ -278,7 +283,7 @@ export default {
//判断是从哪里进来的 登录页/体验卡页面(必定带有绑定接口返回值res) //判断是从哪里进来的 登录页/体验卡页面(必定带有绑定接口返回值res)
judgeFrom(from, res) { judgeFrom(from, res) {
let flag = Object.keys(from); let flag = Object.keys(from);
if (flag.length==0) { if (flag.length == 0) {
this.getQueityInfo(); this.getQueityInfo();
} else if (from.pageFrom === "expcard") { } else if (from.pageFrom === "expcard") {
let { data, code, errId } = res; let { data, code, errId } = res;
...@@ -286,7 +291,7 @@ export default { ...@@ -286,7 +291,7 @@ export default {
if (code == 0) { if (code == 0) {
if (!showMydialog) { if (!showMydialog) {
this.setLocalStorage("showMydialog", true); this.setLocalStorage("showMydialog", true);
this.alert({message:'领取成功',title:'提示'}) this.alert({ message: "领取成功", title: "提示" });
} }
sessionStorage.setItem("GL_EQUITY_USER_INFO", JSON.stringify(data)); sessionStorage.setItem("GL_EQUITY_USER_INFO", JSON.stringify(data));
this.setUserInfo(data); this.setUserInfo(data);
...@@ -306,7 +311,7 @@ export default { ...@@ -306,7 +311,7 @@ export default {
} else if (errId == 20320 || errId == 20322) { } else if (errId == 20320 || errId == 20322) {
if (!showMydialog) { if (!showMydialog) {
this.setLocalStorage("showMydialog", true); this.setLocalStorage("showMydialog", true);
this.alert({message:res.message,title:'提示'}) this.alert({ message: res.message, title: "提示" });
} }
} }
if (data) { if (data) {
...@@ -479,12 +484,19 @@ body { ...@@ -479,12 +484,19 @@ body {
background-color: #fd4705; background-color: #fd4705;
} }
} }
.out_box {
position: relative;
height: 210px;
}
.card_new_box { .card_new_box {
width: 100%; width: 100%;
height: 200px; height: 200px;
background-image: url("~@a/images/equity/equityIndex1.png"); background-image: url("~@a/images/equity/equityIndex1.png");
background-size: 100% 200px; background-size: 100% 200px;
position: relative; position: absolute;
left: 0;
right: 0;
top: 0;
.box_main_img { .box_main_img {
width: 335px; width: 335px;
height: 171px; height: 171px;
...@@ -630,8 +642,9 @@ body { ...@@ -630,8 +642,9 @@ body {
} }
} }
} }
}
.box_foot_img { .box_foot_img {
z-index: 2; z-index: 10;
width: 100%; width: 100%;
height: 54px; height: 54px;
background-image: url("~@a/images/equity/box_foot.png"); background-image: url("~@a/images/equity/box_foot.png");
...@@ -641,7 +654,6 @@ body { ...@@ -641,7 +654,6 @@ body {
left: 0; left: 0;
right: 0; right: 0;
} }
}
.card-box { .card-box {
padding: 20px 0 0; padding: 20px 0 0;
// &:first-child { // &:first-child {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!