Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
user
Overview
Overview
Details
Activity
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
hooloo
mp
user
Commits
1e2b877b
Commit
1e2b877b
authored
Jul 01, 2022
by
weijiguang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://140.143.224.240:8100/hooloo/mp/user
parents
6c6809d5
6de9130d
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
48 additions
and
11 deletions
+48
-11
App.vue
+12
-0
components/menuAssembly/index.vue
+18
-4
components/shopCar/shopCar.vue
+2
-2
components/tabBar/tabBar.vue
+1
-1
menuSubPackage/pages/goodsDetail/goodsDetail.vue
+2
-2
orderSubPackage/pages/orderInfo/index.vue
+8
-1
pages/order/order.vue
+5
-1
No files found.
App.vue
View file @
1e2b877b
...
@@ -11,6 +11,18 @@ export default {
...
@@ -11,6 +11,18 @@ export default {
navigationBarHeight
:
0
,
// 导航栏高度(标题栏高度)
navigationBarHeight
:
0
,
// 导航栏高度(标题栏高度)
},
},
onLaunch
:
function
()
{
onLaunch
:
function
()
{
wx
.
setInnerAudioOption
({
mixWithOther
:
true
,
obeyMuteSwitch
:
false
,
success
:
function
(
e
)
{
console
.
log
(
e
)
console
.
log
(
'play success'
)
},
fail
:
function
(
e
)
{
console
.
log
(
e
)
console
.
log
(
'play fail'
)
}
})
Store
.
commit
(
'setAuthorization'
,
uni
.
getStorageSync
(
'Authorization'
))
Store
.
commit
(
'setAuthorization'
,
uni
.
getStorageSync
(
'Authorization'
))
Store
.
commit
(
'setUserInfo'
,
uni
.
getStorageSync
(
'userInfo'
))
Store
.
commit
(
'setUserInfo'
,
uni
.
getStorageSync
(
'userInfo'
))
// uni.showLoading({
// uni.showLoading({
...
...
components/menuAssembly/index.vue
View file @
1e2b877b
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
</scroll-view>
</scroll-view>
<scroll-view
class=
"nav-right"
:style=
"[heightStyle]"
:class=
"[shopCarFlag?'shopCarcss':'' ]"
scroll-y
:scroll-top=
"scrollTop"
@
scroll=
"scroll"
@
touchstart=
"openScroll"
<scroll-view
class=
"nav-right"
:style=
"[heightStyle]"
:class=
"[shopCarFlag?'shopCarcss':'' ]"
scroll-y
:scroll-top=
"scrollTop"
@
scroll=
"scroll"
@
touchstart=
"openScroll"
scroll-with-animation
>
scroll-with-animation
>
<view
v-for=
"
category in classifyData"
:id=
"category.id"
:key=
"category.id"
class=
"box
"
>
<view
v-for=
"
(category,index) in classifyData"
:id=
"category.id"
:key=
"category.id"
class=
"box"
:style=
"[goodBottom]
"
>
<view
:style=
"loads"
class=
"right-title"
>
{{
category
.
name
}}
</view>
<view
:style=
"loads"
class=
"right-title"
>
{{
category
.
name
}}
</view>
<view
class=
"nav-right-item"
v-for=
"item in category.goods"
:key=
"item.goodsId"
>
<view
class=
"nav-right-item"
v-for=
"item in category.goods"
:key=
"item.goodsId"
>
<view
class=
"thumbnailBox"
>
<view
class=
"thumbnailBox"
>
...
@@ -55,6 +55,9 @@ export default {
...
@@ -55,6 +55,9 @@ export default {
heightStyle
:
{
heightStyle
:
{
'--scroll-height'
:
0
'--scroll-height'
:
0
},
},
goodBottom
:
{
'--good-bottom'
:
0
},
Utils
,
Utils
,
categoryId
:
''
,
categoryId
:
''
,
categoryPostion
:
[],
categoryPostion
:
[],
...
@@ -63,7 +66,8 @@ export default {
...
@@ -63,7 +66,8 @@ export default {
scrolled
:
true
,
scrolled
:
true
,
goods
:[],
goods
:[],
shopCarFlag
:
false
,
shopCarFlag
:
false
,
taBarHeight
:
0
taBarHeight
:
0
,
lastNumber
:
0
}
}
},
},
watch
:{
watch
:{
...
@@ -80,7 +84,13 @@ export default {
...
@@ -80,7 +84,13 @@ export default {
},
},
computed
:{
computed
:{
classifyData
(){
classifyData
(){
const
categorys
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
$store
.
state
.
menu
.
setMenuCategorys
))
let
categorys
=
this
.
$store
.
state
.
menu
.
setMenuCategorys
.
length
!=
0
?
JSON
.
parse
(
JSON
.
stringify
(
this
.
$store
.
state
.
menu
.
setMenuCategorys
)):[]
// if(categorys.length!=0){
// const lastGood = 1
// this.lastNumber = lastGood
<=
2
?
3
-
lastGood
:
0
// this.goodBottom['--good-bottom'] = ((this.lastNumber*50))+'px'
// console.log(this.lastNumber)
// }
// 删除没有商品的分类
// 删除没有商品的分类
if
(
categorys
)
{
if
(
categorys
)
{
for
(
var
i
=
categorys
.
length
-
1
;
i
>=
0
;
i
--
)
{
for
(
var
i
=
categorys
.
length
-
1
;
i
>=
0
;
i
--
)
{
...
@@ -93,6 +103,8 @@ export default {
...
@@ -93,6 +103,8 @@ export default {
this
.
categoryId
=
categorys
[
0
].
id
;
this
.
categoryId
=
categorys
[
0
].
id
;
}
}
}
}
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
const
query
=
uni
.
createSelectorQuery
().
in
(
this
);
const
query
=
uni
.
createSelectorQuery
().
in
(
this
);
query
.
selectAll
(
'.box'
).
boundingClientRect
(
data
=>
{
query
.
selectAll
(
'.box'
).
boundingClientRect
(
data
=>
{
...
@@ -409,8 +421,10 @@ export default {
...
@@ -409,8 +421,10 @@ export default {
}
}
.box
:last-child
{
.box
:last-child
{
padding-bottom
:
255
rpx
;
//
padding-bottom
:
var
(
--good-bottom
);
padding-bottom
:
200
rpx
;
//
height
:
100%
;
//
height
:
100%
;
}
}
.nav-right-item
image
{
.nav-right-item
image
{
...
...
components/shopCar/shopCar.vue
View file @
1e2b877b
<
template
>
<
template
>
<view>
<view>
<u-popup
:show=
"showShopCar && goods.length"
mode=
"bottom"
:round=
"5"
:overlay=
"true"
<u-popup
:show=
"showShopCar && goods.length"
mode=
"bottom"
:round=
"5"
:overlay=
"true"
:closeOnClickOverlay=
"true"
@
close=
"closeT"
>
:closeOnClickOverlay=
"true"
@
close=
"closeT"
zIndex=
"10071"
>
<view
class=
"shop-car"
:style=
"
{'padding-bottom':bottomPadding+'rpx'}">
<view
class=
"shop-car"
:style=
"
{'padding-bottom':bottomPadding+'rpx'}">
<view
class=
"header"
>
<view
class=
"header"
>
<text
class=
"left"
>
购物袋
</text>
<text
class=
"left"
>
购物袋
</text>
...
@@ -494,7 +494,7 @@ export default {
...
@@ -494,7 +494,7 @@ export default {
left
:
0
;
left
:
0
;
box-shadow
:
0px
-4px
8px
0px
rgba
(
102
,
102
,
102
,
0.1
);
box-shadow
:
0px
-4px
8px
0px
rgba
(
102
,
102
,
102
,
0.1
);
display
:
flex
;
display
:
flex
;
z-index
:
1007
6
;
z-index
:
1007
2
;
align-items
:
center
;
align-items
:
center
;
&-left
{
&-left
{
...
...
components/tabBar/tabBar.vue
View file @
1e2b877b
...
@@ -74,7 +74,7 @@
...
@@ -74,7 +74,7 @@
left
:
0
;
left
:
0
;
width
:
100%
;
width
:
100%
;
height
:
100
rpx
;
height
:
100
rpx
;
z-index
:
1007
6
;
z-index
:
1007
2
;
background
:
#FFFFFF
;
background
:
#FFFFFF
;
border-top
:
2
rpx
solid
#FFFFFF
;
border-top
:
2
rpx
solid
#FFFFFF
;
}
}
...
...
menuSubPackage/pages/goodsDetail/goodsDetail.vue
View file @
1e2b877b
...
@@ -526,8 +526,8 @@ export default {
...
@@ -526,8 +526,8 @@ export default {
}
}
button
[
disabled
]
:not
([
type
])
{
button
[
disabled
]
:not
([
type
])
{
background
:
url('@/static/imgs/shouqingsku.png')
center
center
no-repeat
;
background
:
url('@/static/imgs/shouqingsku.png')
no-repeat
;
background-size
:
100%
;
background-size
:
100%
48
rpx
;
}
}
.spec-detail
{
.spec-detail
{
...
...
orderSubPackage/pages/orderInfo/index.vue
View file @
1e2b877b
...
@@ -161,6 +161,9 @@ export default {
...
@@ -161,6 +161,9 @@ export default {
}
}
this
.
isBuild
=
isBuild
this
.
isBuild
=
isBuild
},
},
onUnload
(){
this
.
goBack
()
},
data
()
{
data
()
{
return
{
return
{
orderInfo
:
{},
orderInfo
:
{},
...
@@ -211,9 +214,13 @@ export default {
...
@@ -211,9 +214,13 @@ export default {
},
},
async
PayNow
()
{
async
PayNow
()
{
const
orderInfo
=
await
Order
.
payOrder
({
orderId
:
this
.
orderInfo
.
id
})
const
orderInfo
=
await
Order
.
payOrder
({
orderId
:
this
.
orderInfo
.
id
})
const
sendData
=
{
orderId
:
this
.
orderInfo
.
id
,
...
orderInfo
.
data
.
data
}
if
(
orderInfo
)
{
if
(
orderInfo
)
{
if
(
orderInfo
&&
orderInfo
.
data
.
code
==
200
)
{
if
(
orderInfo
&&
orderInfo
.
data
.
code
==
200
)
{
await
Menu
.
requestPayment
(
orderInfo
.
data
.
d
ata
);
await
Menu
.
requestPayment
(
sendD
ata
);
}
}
}
}
},
},
...
...
pages/order/order.vue
View file @
1e2b877b
...
@@ -189,9 +189,13 @@ export default {
...
@@ -189,9 +189,13 @@ export default {
},
},
async
PayNow
({
id
})
{
async
PayNow
({
id
})
{
const
orderInfo
=
await
order
.
payOrder
({
orderId
:
id
})
const
orderInfo
=
await
order
.
payOrder
({
orderId
:
id
})
const
sendData
=
{
orderId
:
id
,
...
orderInfo
.
data
.
data
}
if
(
orderInfo
)
{
if
(
orderInfo
)
{
if
(
orderInfo
&&
orderInfo
.
data
.
code
==
200
)
{
if
(
orderInfo
&&
orderInfo
.
data
.
code
==
200
)
{
await
Menu
.
requestPayment
(
orderInfo
.
data
.
d
ata
);
await
Menu
.
requestPayment
(
sendD
ata
);
this
.
getList
()
this
.
getList
()
}
}
}
}
...
...
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