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 37c44a10
authored
Sep 27, 2021
by
杨北旺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
开通页面广汇隐藏设备入口
1 parent
165ecf42
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
5 deletions
src/api/request.js
src/views/cardRoll/cardPage.vue
src/views/cardRoll/opening.vue
src/views/equity/index.vue
src/api/request.js
View file @
37c44a1
...
@@ -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
,
...
...
src/views/cardRoll/cardPage.vue
View file @
37c44a1
...
@@ -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
;
...
...
src/views/cardRoll/opening.vue
View file @
37c44a1
...
@@ -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'
});
...
...
src/views/equity/index.vue
View file @
37c44a1
...
@@ -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
))
}
}
});
});
},
},
...
...
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