Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
H
h5-base
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
new-sing
h5-base
Commits
a351e4a9
Commit
a351e4a9
authored
Sep 25, 2019
by
IvyXia123
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
支付宝
parent
ec4a9013
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
30 additions
and
15 deletions
+30
-15
index.html
dist/index.html
+1
-1
buy.vue
src/components/buy/buy.vue
+4
-10
passShop.vue
src/components/buy/passShop.vue
+12
-4
index.js
src/router/index.js
+2
-0
common.js
src/util/common.js
+11
-0
No files found.
dist/index.html
View file @
a351e4a9
...
...
@@ -11,4 +11,4 @@
position
:
fixed
;
background
:
#f4f4f4
;
}
/* html{font-size: 1px;} */
</style><link
href=
static/css/app.f983055a19b69eb54137ee36031e8a72.css
rel=
stylesheet
></head><body><div
id=
app
></div><script
src=
https://res.wx.qq.com/open/js/jweixin-1.3.2.js
></script><script></script><script
type=
text/javascript
src=
static/js/manifest.3f3180d025f5798d7194.js
></script><script
type=
text/javascript
src=
static/js/vendor.0c1d6ebbba685002d59c.js
></script><script
type=
text/javascript
src=
static/js/app.c2f1a60bb847b70749cd.js
></script></body></html>
\ No newline at end of file
/* html{font-size: 1px;} */
</style><link
href=
static/css/app.f983055a19b69eb54137ee36031e8a72.css
rel=
stylesheet
></head><body><div
id=
app
></div><script
src=
https://res.wx.qq.com/open/js/jweixin-1.3.2.js
></script><script></script><script
type=
text/javascript
src=
static/js/manifest.926dd3a849ddcdba4d0c.js
></script><script
type=
text/javascript
src=
static/js/vendor.5af9774cd57a16d7dc8b.js
></script><script
type=
text/javascript
src=
static/js/app.f6db6e76e4cde288b5a5.js
></script></body></html>
\ No newline at end of file
src/components/buy/buy.vue
View file @
a351e4a9
<
template
>
<div
class=
"group-buy"
>
<guidelines></guidelines>
<guidelines
v-if=
"guidelinesShow"
></guidelines>
<div
:style=
"
{backgroundImage:`url('${lineImage}')`}" class="main-background">
<div
class=
"title-top"
>
...
...
@@ -216,8 +216,7 @@ export default {
{
icon
:
zhifubao
,
title
:
'支付宝支付'
,
value
:
1
}
],
payIndex
:
0
,
payUrl
:
''
,
ui
:
''
guidelinesShow
:
false
};
},
mounted
()
{
...
...
@@ -423,13 +422,8 @@ export default {
let
data
=
{
pay_type
:
'ALI'
,
return_url
:
window
.
location
.
href
,
buy_type
:
this
.
groupDetail
.
goods_type
}
let
dataObj
=
Object
.
assign
({},
data
,
json
)
postPayBillApi
(
dataObj
).
then
(
res
=>
{
this
.
payUrl
=
res
.
pay_url
;
this
.
$router
.
push
({
path
:
'guidelines'
,
query
:
{
url
:
res
.
pay_url
}
})
this
.
guidelinesShow
=
true
;
window
.
localStorage
.
pay_url
=
res
.
pay_ur
})
}
return
;
...
...
src/components/buy/passShop.vue
View file @
a351e4a9
<
template
>
<div>
<guidelines
v-if=
"guidelinesNum === 1"
></guidelines>
<div
style=
"height: 100vh;overflow: auto"
>
<div
class=
"group-index"
ref=
"index"
v-if=
"groupDetail"
style=
"min-height: 120vh"
>
<swiper
:options=
"swiperOption"
class=
"banner"
ref=
"mySwiper"
>
...
...
@@ -213,6 +214,8 @@
import
comment
from
"../../util/common"
;
import
{
Toast
}
from
"vant"
;
import
orderCancelDialog
from
"./orderCancelDialog"
;
import
guidelines
from
'./guidelines'
import
{
getwechatParam
,
getGoodsDetailApi
,
...
...
@@ -239,6 +242,7 @@
import
couponBg
from
"../../assets/activity/popup@2x.png"
;
import
closeImg
from
"../../assets/activity/close.png"
;
import
couponTip
from
"../../assets/activity/popup_btn.png"
;
import
common
from
"../../util/common"
export
default
{
name
:
"index"
,
components
:
{
...
...
@@ -246,7 +250,8 @@
swiperSlide
,
loginPage
,
[
Popup
.
name
]:
Popup
,
orderCancelDialog
orderCancelDialog
,
guidelines
},
data
()
{
return
{
...
...
@@ -299,17 +304,20 @@
closeImg
:
closeImg
,
couponTipImg
:
couponTip
,
closeStatus
:
false
,
saleObj
:
null
};
saleObj
:
null
,
guidelinesNum
:
0
}
},
mounted
()
{
console
.
log
(
comment
.
getUrlParam
().
gdt_vid
,
989898
)
this
.
getDetail
();
Toast
.
loading
({
mask
:
true
,
message
:
''
});
this
.
guidelinesNum
=
common
.
isWeixinBrowser
();
// document.body.addEventListener('focusout', () => { //软键盘关闭事件
// document.documentElement.scrollTop = 0
// document.body.scrollTop = 0
...
...
src/router/index.js
View file @
a351e4a9
...
...
@@ -626,6 +626,8 @@ router.beforeEach((to, from, next) => {
localStorage
.
setItem
(
'redeem_code'
,
common
.
getUrlParam
().
cct_user_id
);
// localStorage.setItem('redeem_code', common.getParamhref().redeem_code);
}
// extensionV1Shop
// extensionV1
if
(
to
.
name
===
'spcShop'
||
to
.
name
===
'mpShop'
||
to
.
name
===
'extensionV1Shop'
||
to
.
name
===
'extensionV1'
||
to
.
name
===
'author'
||
to
.
name
===
'bindMobile'
||
to
.
name
===
'noWechat'
||
to
.
name
===
'inspectorActivit'
||
to
.
name
===
'buyDetail'
||
to
.
name
===
'passShop'
||
to
.
name
===
'ybIndex'
)
{
...
...
src/util/common.js
View file @
a351e4a9
...
...
@@ -118,5 +118,16 @@ export default {
}
}
return
newObj
;
},
isWeixinBrowser
()
{
var
ui
=
0
var
ua
=
navigator
.
userAgent
.
toLowerCase
();
var
result
=
(
/micromessenger/
.
test
(
ua
))
?
true
:
false
;
if
(
result
)
{
ui
=
0
}
else
{
ui
=
1
}
return
ui
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment