Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
mini-program
/
zhwy
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 8ad99393
authored
Oct 09, 2023
by
杨北旺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复bug
1 parent
37e23277
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
5 deletions
packageDiscovery/pages/pay/index.js
packageMall/pages/detail/detail.js
packageMine/pages/setting/index.scss
pages/loading/loading.js
packageDiscovery/pages/pay/index.js
View file @
8ad9939
...
@@ -56,7 +56,11 @@ Page({
...
@@ -56,7 +56,11 @@ Page({
el
.
isPay
=
false
el
.
isPay
=
false
ids
.
push
(
el
.
goodsId
)
ids
.
push
(
el
.
goodsId
)
if
(
el
.
expressFee
&&
el
.
expressFee
>
expressFee
)
{
if
(
el
.
expressFee
&&
el
.
expressFee
>
expressFee
)
{
if
(
obj
.
pageForm
!=
'goodsDetail'
){
expressFee
=
NP
.
divide
(
el
.
expressFee
,
100
)
expressFee
=
NP
.
divide
(
el
.
expressFee
,
100
)
}
else
{
expressFee
=
el
.
expressFee
}
}
}
goodsNumber
=
goodsNumber
+
el
.
goodsNumber
goodsNumber
=
goodsNumber
+
el
.
goodsNumber
})
})
...
...
packageMall/pages/detail/detail.js
View file @
8ad9939
...
@@ -319,7 +319,8 @@ Page({
...
@@ -319,7 +319,8 @@ Page({
showAddr
:
(
isCarOwner
&&
this
.
data
.
goodsInfo
.
deliveryType
==
1
)
?
0
:
1
,
showAddr
:
(
isCarOwner
&&
this
.
data
.
goodsInfo
.
deliveryType
==
1
)
?
0
:
1
,
// deliveryType: upgrade || (isCarOwner && this.data.goodsInfo.deliveryType == 1) ? 1 : 0,
// deliveryType: upgrade || (isCarOwner && this.data.goodsInfo.deliveryType == 1) ? 1 : 0,
buyType
:
'pay'
,
buyType
:
'pay'
,
discoverGoodsSource
:
goodsInfo
.
discoverGoodsSource
discoverGoodsSource
:
goodsInfo
.
discoverGoodsSource
,
pageForm
:
'goodsDetail'
})
})
return
return
}
}
...
...
packageMine/pages/setting/index.scss
View file @
8ad9939
...
@@ -26,7 +26,7 @@ page {
...
@@ -26,7 +26,7 @@ page {
.default-btn
{
.default-btn
{
background
:
#3772EC
;
background
:
#3772EC
;
border-radius
:
8rpx
;
border-radius
:
4
8rpx
;
position
:
fixed
;
position
:
fixed
;
bottom
:
70rpx
;
bottom
:
70rpx
;
}
}
...
...
pages/loading/loading.js
View file @
8ad9939
...
@@ -68,9 +68,12 @@ Page({
...
@@ -68,9 +68,12 @@ Page({
const
{
code
,
data
}
=
await
wx
.
p
.
api
.
wechatApi
.
getSceneById
({
const
{
code
,
data
}
=
await
wx
.
p
.
api
.
wechatApi
.
getSceneById
({
id
id
})
})
const
params
=
data
.
scene
.
split
(
'url='
),
const
params
=
data
.
scene
.
split
(
'&url='
),
options
=
{}
options
=
{}
data
.
scene
.
split
(
'&'
).
map
(
item
=>
{
if
(
params
.
length
>
1
)
options
.
url
=
params
.
at
(
-
1
)
const
[
key
,
val
]
=
item
.
split
(
'='
)
options
[
key
]
=
val
})
// if (params.length > 1) options.url = params.at(-1)
if
(
code
==
0
)
this
.
login
(
options
)
if
(
code
==
0
)
this
.
login
(
options
)
else
throw
{}
else
throw
{}
}
catch
(
error
)
{
}
catch
(
error
)
{
...
...
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