Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-business
/
scrm-equity
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit cd635ac3
authored
Aug 31, 2021
by
杨北旺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
权益首页UI更改样式
1 parent
67000fef
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
75 additions
and
62 deletions
src/views/cardRoll/opening.vue
src/views/equity/index.vue
src/views/cardRoll/opening.vue
View file @
cd635ac
...
@@ -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}))
...
...
src/views/equity/index.vue
View file @
cd635ac
...
@@ -5,56 +5,61 @@
...
@@ -5,56 +5,61 @@
<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=
"card_new_box"
>
<div
class=
"out_box"
>
<div
class=
"box_main_img"
>
<div
class=
"card_new_box"
>
<div
class=
"user_header_wrap"
>
<div
class=
"box_main_img"
>
<div
class=
"image_wrapper"
>
<div
class=
"user_header_wrap"
>
<img
:src=
"userInfo.logo"
v-if=
"userInfo.logo"
class=
"user_img"
/>
<div
class=
"image_wrapper"
>
<div
v-else
class=
"sprite-icon icon-default-avatar"
></div>
<img
:src=
"userInfo.logo"
v-if=
"userInfo.logo"
class=
"user_img"
/>
<div
:class=
"ismember ? 'user_vip_img' : 'user_no_vip_img'"
></div>
<div
v-else
class=
"sprite-icon icon-default-avatar"
></div>
</div>
<div
:class=
"ismember ? 'user_vip_img' : 'user_no_vip_img'"
></div>
<div
class=
"info_wrapper"
>
<div
class=
"user_name"
>
{{
userInfo
.
nickName
?
userInfo
.
nickName
:
userInfo
.
memberName
}}
</div>
<div
v-if=
"ismember && userInfo.cardNo"
style=
"height: 9px"
></div>
<div
class=
"user_date"
v-if=
"ismember && userInfo.cardNo"
>
会员日期至:
{{
userInfo
.
time
}}
</div>
</div>
<div
class=
"user_date"
v-if=
"!ismember && !userInfo.renewDay"
>
<div
class=
"info_wrapper"
>
暂未开通权益服务
<div
class=
"user_name"
>
{{
userInfo
.
nickName
?
userInfo
.
nickName
:
userInfo
.
memberName
}}
</div>
<div
v-if=
"ismember && userInfo.cardNo"
style=
"height: 9px"
></div>
<div
class=
"user_date"
v-if=
"ismember && userInfo.cardNo"
>
会员日期至:
{{
userInfo
.
time
}}
</div>
<div
class=
"user_date"
v-if=
"!ismember && !userInfo.renewDay"
>
暂未开通权益服务
</div>
</div>
</div>
</div>
</div>
</div
>
<div
class=
"fn_label"
>
<div
class=
"fn_label"
>
<span
class=
"fn_label_wrap"
@
click=
"jumpOrder"
>
权益订单
</span
>
<span
class=
"fn_label_wrap"
@
click=
"jumpOrder"
>
权益订单
</span>
<span
style=
"width: 15px"
>
</span>
<span
style=
"width: 15px"
>
</span>
<span
class=
"fn_label_wrap"
@
click=
"jumpJiangli"
>
查看奖励
</span>
<
span
class=
"fn_label_wrap"
@
click=
"jumpJiangli"
>
查看奖励
</span
>
<
/div
>
</div
>
<div
v-if=
"!ismember"
class=
"open_wrap"
>
<div
v-if=
"!ismember"
class=
"open_wrap"
>
<div
class=
"open_icon"
></div
>
<div
class=
"open_icon"
></div
>
<span
class=
"open_txt"
@
click=
"jumpOpenEquity"
>
我要开通
</span
>
<
span
class=
"open_txt"
@
click=
"jumpOpenEquity"
>
我要开通
</span
>
<
/div
>
</div
>
<div
v-if=
"userInfo.cardNo && ismember"
class=
"free_card_name"
>
<div
v-if=
"userInfo.cardNo && ismember"
class=
"free_card_name"
>
NO:
{{
userInfo
.
cardNo
}}
NO:
{{
userInfo
.
cardNo
}}
</div>
</div>
<div
<div
v-if=
"!userInfo.cardNo && ismember"
v-if=
"!userInfo.cardNo && ismember
"
class=
"open_contiue
"
class=
"open_contiue
"
@
click=
"jumpOpenEquity
"
@
click=
"jumpOpenEquity"
>
>
立即续费
立即续费
</div>
</div
>
<div
v-if=
"!userInfo.cardNo && userInfo.renewDay"
class=
"free_date"
>
<div
v-if=
"!userInfo.cardNo && userInfo.renewDay"
class=
"free_date"
>
<span
class=
"date_es"
>
{{
userInfo
.
renewDay
}}
</span
<span
class=
"date_es"
>
{{
userInfo
.
renewDay
}}
</span
>
天后到期
>
天后到期
</div>
</div
>
<div
v-if=
"!userInfo.cardNo && ismember"
class=
"free_card_name"
>
<div
v-if=
"!userInfo.cardNo && ismember"
class=
"free_card_name"
>
{{
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,17 +642,17 @@ body {
...
@@ -630,17 +642,17 @@ body {
}
}
}
}
}
}
.box_foot_img
{
}
z-index
:
2
;
.box_foot_img
{
width
:
100%
;
z-index
:
10
;
height
:
54px
;
width
:
100%
;
background-image
:
url("~@a/images/equity/box_foot.png")
;
height
:
54px
;
background-size
:
100%
54px
;
background-image
:
url("~@a/images/equity/box_foot.png")
;
position
:
absolute
;
background-size
:
100%
54px
;
bottom
:
0
;
position
:
absolute
;
left
:
0
;
bottom
:
0
;
righ
t
:
0
;
lef
t
:
0
;
}
right
:
0
;
}
}
.card-box
{
.card-box
{
padding
:
20px
0
0
;
padding
:
20px
0
0
;
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment