Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-business
/
ddh-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 be2fa03f
authored
Sep 23, 2021
by
ym
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
map
1 parent
55ed1158
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
72 additions
and
38 deletions
public/index.html
src/mixins/indexMixin.js
src/views/cardRoll/opening.vue
src/views/common/marketing.vue
src/views/equity/index.vue
src/views/oilStation/location.vue
public/index.html
View file @
be2fa03
...
...
@@ -8,6 +8,7 @@
<meta
http-equiv=
"Cache-Control"
content=
"no-cache, no-store, must-revalidate"
/>
<meta
http-equiv=
"Pragma"
content=
"no-cache"
/>
<meta
http-equiv=
"Expires"
content=
"0"
/>
<meta
name=
"referrer"
content=
"no-referrer"
>
<link
rel=
"icon"
href=
"<%= BASE_URL %>favicon.ico"
>
<!-- 使用CDN的CSS文件 -->
<
% for (var i in htmlWebpackPlugin.options.cdn
&&
htmlWebpackPlugin.options.cdn.css) { %>
...
...
@@ -20,7 +21,7 @@
<
% } %>
<script
type=
"text/javascript"
src=
"https://res.wx.qq.com/open/js/jweixin-1.6.0.js"
></script>
<script
type=
"text/javascript"
src=
"https://img01.glsx.com.cn/js/track-1.0.0.js"
></script>
<script
src=
"http://pv.sohu.com/cityjson?ie=utf-8"
></script>
<script
src=
"http
s
://pv.sohu.com/cityjson?ie=utf-8"
></script>
<script
src=
"https://cdn.jsdelivr.net/npm/mobile-detect@1.4.4/mobile-detect.min.js"
></script>
<script
type=
"text/javascript"
src=
"https://webapi.amap.com/maps?v=1.4.8&key=bd290dc27d0945959280753215ddda71&plugin=AMap.Geocoder"
></script>
<title>
权益中心
</title>
...
...
src/mixins/indexMixin.js
View file @
be2fa03
...
...
@@ -98,6 +98,7 @@ export default {
this
.
setNoticeInfo
()
},
CarLink
(
e
)
{
this
.
tabHideShow
(
0
);
let
supplier
=
e
.
supplier
;
sessionStorage
.
setItem
(
'common'
,
this
.
icon
?
1
:
0
)
switch
(
supplier
)
{
...
...
@@ -149,6 +150,7 @@ export default {
})
},
jumpLink
(
e
)
{
this
.
tabHideShow
(
0
);
this
.
$store
.
commit
(
'setGoodsInfo'
,
e
);
if
(
e
.
appearance
==
1
)
{
this
.
$router
.
push
({
name
:
'commodity.business'
})
...
...
src/views/cardRoll/opening.vue
View file @
be2fa03
...
...
@@ -69,6 +69,7 @@ import WxConfig from "@u/WxConfig";
const
WX
=
new
WxConfig
([
"chooseWXPay"
]);
export
default
{
name
:
"opening"
,
data
()
{
return
{
equityName
:
""
,
...
...
@@ -82,29 +83,7 @@ export default {
isOpen
:
0
,
};
},
mounted
()
{
this
.
appHide
();
this
.
payStatus
=
this
.
$route
.
query
;
console
.
log
(
this
.
getLocalStorage
(
"whereInOpen"
),
"本地缓存的页面入口"
);
let
{
sessionId
}
=
this
.
$store
.
state
;
this
.
merchantId
=
sessionStorage
.
getItem
(
'GL_WX_MERCHANTID'
);
this
.
sessionId
=
sessionId
;
this
.
showLoading
();
let
para
=
{
merchantId
:
this
.
merchantId
,
};
cardRoll
.
getCardMerchantid
(
para
).
then
((
res
)
=>
{
this
.
hideLoading
();
let
{
code
,
data
,
message
}
=
res
;
if
(
code
==
0
)
{
this
.
price
=
data
.
goodPrice
;
this
.
orderCode
=
data
.
orderCode
;
this
.
equityName
=
data
.
equityName
;
}
else
{
this
.
showToast
(
message
);
}
});
},
methods
:
{
//埋点
collect
(
logs
)
{
...
...
@@ -262,11 +241,36 @@ export default {
this
.
collect
(
logs
);
},
},
mounted
()
{
this
.
appHide
();
this
.
payStatus
=
this
.
$route
.
query
;
console
.
log
(
this
.
getLocalStorage
(
"whereInOpen"
),
"本地缓存的页面入口"
);
let
{
sessionId
}
=
this
.
$store
.
state
;
this
.
merchantId
=
sessionStorage
.
getItem
(
'GL_WX_MERCHANTID'
);
this
.
sessionId
=
sessionId
;
this
.
showLoading
();
let
para
=
{
merchantId
:
this
.
merchantId
,
};
cardRoll
.
getCardMerchantid
(
para
).
then
((
res
)
=>
{
this
.
hideLoading
();
let
{
code
,
data
,
message
}
=
res
;
if
(
code
==
0
)
{
this
.
price
=
data
.
goodPrice
;
this
.
orderCode
=
data
.
orderCode
;
this
.
equityName
=
data
.
equityName
;
}
else
{
this
.
showToast
(
message
);
}
});
},
beforeDestroy
()
{
clearInterval
(
this
.
timer
);
}
,
}
};
</
script
>
</
script
>
<
style
scoped
lang=
"scss"
>
.main
{
...
...
@@ -478,4 +482,4 @@ export default {
}
}
}
</
style
>
</
style
>
\ No newline at end of file
src/views/common/marketing.vue
View file @
be2fa03
...
...
@@ -229,9 +229,7 @@ export default {
}
}
}
let
[
href
]
=
window
.
location
.
href
.
split
(
'/#/'
)
let
url
=
`
${
href
}
/#/cardRoll/opening?sessionId=
${
sessionId
}
`
this
.
openWindows
(
url
,
'cardRoll.opening'
)
this
.
$router
.
push
({
name
:
'cardRoll.opening'
})
}
else
{
this
.
equityLogin
()
}
...
...
src/views/equity/index.vue
View file @
be2fa03
...
...
@@ -16,9 +16,7 @@
</div>
<div
class=
"info_wrapper"
>
<div
class=
"user_name"
>
{{
userInfo
.
nickName
?
userInfo
.
nickName
:
userInfo
.
memberName
}}
{{
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"
>
...
...
@@ -32,7 +30,9 @@
<div
class=
"fn_label"
>
<span
class=
"fn_label_wrap"
@
click=
"jumpOrder"
>
权益订单
</span>
<span
style=
"width: 15px"
></span>
<span
v-if=
"isWXEnvironment"
class=
"fn_label_wrap"
@
click=
"jumpJiangli"
>
查看奖励
</span>
<span
v-if=
"isWXEnvironment"
class=
"fn_label_wrap"
@
click=
"jumpJiangli"
>
查看奖励
</span
>
</div>
<div
v-if=
"!ismember"
class=
"open_wrap"
>
<div
class=
"open_icon"
></div>
...
...
@@ -90,7 +90,11 @@
</div>
</div>
</div>
-->
<div
v-if=
"ismember&&isWXEnvironment"
class=
"card-box box_between"
style=
"padding-top: 0"
>
<div
v-if=
"ismember && isWXEnvironment"
class=
"card-box box_between"
style=
"padding-top: 0"
>
<div
class=
"invite_box invite_bg"
@
click=
"jumpInvite"
>
<span
class=
"invite_btn"
>
我要分享
</span>
<p>
享推广佣金奖励
</p>
...
...
@@ -148,7 +152,7 @@
</div>
</div>
</template>
<
script
type=
'text/ecmascript-6'
>
<
script
type=
"text/ecmascript-6"
>
import
{
indexMixin
}
from
"@/mixins"
;
import
{
equity
}
from
"@r/api.js"
;
// import { Toast } from "vant";
...
...
@@ -172,6 +176,8 @@ export default {
},
mixins
:
[
indexMixin
],
mounted
()
{
this
.
tabHideShow
(
1
);
window
.
webkit
.
messageHandlers
.
jumpNativeApp
.
postMessage
(
JSON
.
stringify
({
type
:
2
,
show
:
1
}))
console
.
log
(
"更新页面时间:"
,
new
Date
().
format
(
"hh:mm:ss"
));
const
ua
=
navigator
.
userAgent
.
toLowerCase
();
if
(
ua
.
match
(
/MicroMessenger/i
)
==
"micromessenger"
){
...
...
@@ -442,6 +448,7 @@ export default {
this
.
openWindows
(
url
);
},
jumpOrder
()
{
this
.
tabHideShow
(
0
);
this
.
$router
.
push
({
name
:
'cardRoll.index'
})
let
logs
=
window
.
vm
.
trackConfig
({
event
:
"click_event"
,
...
...
@@ -489,6 +496,7 @@ export default {
this
.
showToast
(
"即将上线,敬请期待"
);
},
jumpOpenEquity
()
{
this
.
tabHideShow
(
0
);
this
.
$router
.
push
({
name
:
'cardRoll.opening'
})
this
.
setLocalStorage
(
'whereInOpen'
,
'index'
)
let
logs
=
window
.
vm
.
trackConfig
({
...
...
@@ -500,10 +508,21 @@ export default {
});
this
.
collect
(
logs
);
},
tabHideShow
(
status
)
{
const
ua
=
navigator
.
userAgent
.
toLowerCase
();
if
(
ua
.
match
(
/MicroMessenger/i
)
!=
"micromessenger"
)
{
if
(
this
.
checkPhoneType
()
==
'ios'
)
{
window
.
webkit
.
messageHandlers
.
jumpNativeApp
.
postMessage
(
JSON
.
stringify
({
type
:
2
,
show
:
status
}))
}
else
{
window
.
myjs
.
jumpNativeApp
.
postMessage
(
JSON
.
stringify
({
type
:
2
,
show
:
status
}))
}
}
}
},
};
</
script
>
<
style
lang=
'scss'
>
<
style
lang=
"scss"
>
@import
"@a/scss/index.scss"
;
html
,
body
{
...
...
@@ -937,4 +956,4 @@ body {
}
}
}
</
style
>
\ No newline at end of file
</
style
>
src/views/oilStation/location.vue
View file @
be2fa03
...
...
@@ -74,8 +74,18 @@ export default {
mounted
()
{
this
.
getRecord
();
this
.
handleLocation
();
this
.
listeningBack
();
},
methods
:
{
listeningBack
()
{
const
path
=
window
.
vm
.
$store
.
state
.
prevPath
;
window
.
onpopstate
=
null
;
window
.
onpopstate
=
function
()
{
window
.
onpopstate
=
null
;
history
.
pushState
({},
null
,
window
.
location
.
href
);
window
.
vm
.
$router
.
replace
({
name
:
"oilStation.index"
});
};
},
getRecord
()
{
oilStation
.
getStationSearchList
().
then
(
res
=>
{
this
.
hideLoading
()
...
...
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