Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
groupPurchase-miniapp
Project
Project
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
彭佳妮(贵阳日报)
groupPurchase-miniapp
Commits
32ddb9e3
Commit
32ddb9e3
authored
Aug 14, 2024
by
刘玉宏
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.platform.xinhuaapp.com/pengjiani/groupPurchase-miniapp
parents
3cd7e3e4
1b2c9f8c
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
77 additions
and
45 deletions
+77
-45
detail.vue
src/pages/assistingAgriculture/order/detail.vue
+0
-0
detail.vue
src/pages/order/detail.vue
+2
-2
order.vue
src/pages/order/order.vue
+30
-16
refund.vue
src/pages/order/refund.vue
+3
-2
ticketCode.vue
src/pages/order/ticketCode.vue
+6
-5
packageDetails.vue
src/pages/packageDetails/packageDetails.vue
+14
-11
confirmOrder.vue
src/pages/shop/confirmOrder.vue
+8
-2
paymentSuccessful.vue
src/pages/shop/paymentSuccessful.vue
+7
-1
shop.vue
src/pages/shop/shop.vue
+1
-1
detail.vue
src/pages/ticket/detail.vue
+3
-3
ticket.vue
src/pages/ticket/ticket.vue
+3
-2
No files found.
src/pages/assistingAgriculture/order/detail.vue
View file @
32ddb9e3
This diff is collapsed.
Click to expand it.
src/pages/order/detail.vue
View file @
32ddb9e3
<
template
>
<
template
>
<view
class=
"container"
>
<view
class=
"container"
>
<Header
title=
"订单详情"
></Header>
<!--
<Header
title=
"订单详情"
></Header>
-->
<Search
title=
"订单详情"
backgroundBox=
"white"
:showTitle=
"true"
></Search>
<view
class=
"content"
v-if=
"orderDetail"
>
<view
class=
"content"
v-if=
"orderDetail"
>
<!-- 使用状态 -->
<!-- 使用状态 -->
<view
class=
"status"
>
<view
class=
"status"
>
...
@@ -405,7 +406,6 @@ page {
...
@@ -405,7 +406,6 @@ page {
margin
:
0
auto
;
margin
:
0
auto
;
.content
{
.content
{
padding-top
:
44px
;
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
gap
:
20rpx
;
gap
:
20rpx
;
...
...
src/pages/order/order.vue
View file @
32ddb9e3
<
template
>
<
template
>
<view
class=
"container"
>
<view
class=
"container"
>
<!-- 顶部搜索框-->
<!-- 顶部搜索框-->
<view
class=
"top"
>
<Search
backgroundBox=
"#f3f3f3"
>
<wd-icon
class=
"icon"
name=
"thin-arrow-left"
color=
"#000"
size=
"32rpx"
@
click=
"handleBack"
></wd-icon>
<view
class=
"searchBox"
>
<view
class=
"searchBox"
>
<view
class=
"search"
>
<view
class=
"search"
>
<wd-icon
name=
"search"
size=
"30rpx"
color=
"#999"
></wd-icon>
<wd-icon
name=
"search"
size=
"30rpx"
color=
"#999"
></wd-icon>
...
@@ -31,7 +24,8 @@
...
@@ -31,7 +24,8 @@
@
tap=
"handleClear"
@
tap=
"handleClear"
></wd-icon>
></wd-icon>
</view>
</view>
</view>
</Search>
<view
class=
"tabs"
v-if=
"orderDic"
>
<view
class=
"tabs"
v-if=
"orderDic"
>
<wd-tabs
v-model=
"tab"
animated
:lineWidth=
"38"
:lineHeight=
"3"
@
change=
"handleChange"
sticky
>
<wd-tabs
v-model=
"tab"
animated
:lineWidth=
"38"
:lineHeight=
"3"
@
change=
"handleChange"
sticky
>
<block
v-for=
"item in tabs"
:key=
"item.value"
>
<block
v-for=
"item in tabs"
:key=
"item.value"
>
...
@@ -549,14 +543,31 @@ function callShopPhone(phoneNumber) {
...
@@ -549,14 +543,31 @@ function callShopPhone(phoneNumber) {
}
}
/**
/**
* 再来一单
* 再来一单
商品类型,0-普通商品,5-团购,6-套餐,7-预售,8-售券
*/
*/
const
anotherOrder
=
(
item
)
=>
{
const
anotherOrder
=
(
item
)
=>
{
// 清空查询待付款状态
// 清空查询待付款状态
pendingPaymentOrder
.
value
=
null
;
pendingPaymentOrder
.
value
=
null
;
switch
(
item
.
prodType
)
{
case
5
:
xma
.
navigateTo
({
xma
.
navigateTo
({
url
:
`/pages/shop/confirmOrder?prodId=
${
item
.
orderItems
[
0
].
prodId
}
&skuId=
${
item
.
orderItems
[
0
].
sku
Id
}
`
,
url
:
`/pages/packageDetails/packageDetails?prodId=
${
item
.
orderItems
[
0
].
prod
Id
}
`
,
});
});
break
;
case
7
:
xma
.
redirectTo
({
url
:
`/pages/assistingAgriculture/detail/detail?prodId=
${
item
.
orderItems
[
0
].
prodId
}
`
,
});
break
;
case
10
:
xma
.
redirectTo
({
url
:
`/pages/assistingAgriculture/RouteDetails/RouteDetails?prodId=
${
item
.
orderItems
[
0
].
prodId
}
&shopId=
${
item
.
shopId
}
`
,
});
break
;
default
:
break
;
}
};
};
/**
/**
...
@@ -566,7 +577,7 @@ const handleQrcode = (item) => {
...
@@ -566,7 +577,7 @@ const handleQrcode = (item) => {
// 清空查询待付款状态
// 清空查询待付款状态
pendingPaymentOrder
.
value
=
null
;
pendingPaymentOrder
.
value
=
null
;
xma
.
navigateTo
({
xma
.
navigateTo
({
url
:
`/pages/order/ticketCode?orderNumber=
${
item
.
orderNumber
}
`
,
url
:
`/pages/order/ticketCode?orderNumber=
${
item
.
orderNumber
}
&shopName=
${
item
.
shopName
}
`
,
});
});
};
};
...
@@ -579,6 +590,9 @@ const handleRemark = (item) => {
...
@@ -579,6 +590,9 @@ const handleRemark = (item) => {
});
});
};
};
/**
* 售后详情
*/
const
handleAfterSales
=
(
item
)
=>
{
const
handleAfterSales
=
(
item
)
=>
{
xma
.
navigateTo
({
xma
.
navigateTo
({
url
:
`/pages/order/afterSales?orderNumber=
${
item
.
orderNumber
}
`
,
url
:
`/pages/order/afterSales?orderNumber=
${
item
.
orderNumber
}
`
,
...
@@ -665,7 +679,7 @@ page {
...
@@ -665,7 +679,7 @@ page {
margin
:
0
auto
;
margin
:
0
auto
;
.tabs
{
.tabs
{
padding-top
:
108
rpx
;
// padding-top: 20
rpx;
&
:deep
(
.wd-tabs
)
{
&
:deep
(
.wd-tabs
)
{
background-color
:
#f5f5f5
;
background-color
:
#f5f5f5
;
...
@@ -693,8 +707,8 @@ page {
...
@@ -693,8 +707,8 @@ page {
align-items
:
center
;
align-items
:
center
;
padding
:
0
30rpx
;
padding
:
0
30rpx
;
gap
:
14rpx
;
gap
:
14rpx
;
}
.searchBox
{
.searchBox
{
width
:
492rpx
;
width
:
492rpx
;
height
:
66rpx
;
height
:
66rpx
;
background
:
#f3f3f3
;
background
:
#f3f3f3
;
...
@@ -703,6 +717,7 @@ page {
...
@@ -703,6 +717,7 @@ page {
justify-content
:
space-between
;
justify-content
:
space-between
;
align-items
:
center
;
align-items
:
center
;
padding
:
0rpx
28rpx
;
padding
:
0rpx
28rpx
;
margin-left
:
40rpx
;
background-color
:
#fff
;
background-color
:
#fff
;
...
@@ -720,7 +735,6 @@ page {
...
@@ -720,7 +735,6 @@ page {
font-size
:
28rpx
;
font-size
:
28rpx
;
}
}
}
}
}
}
}
.content
{
.content
{
...
...
src/pages/order/refund.vue
View file @
32ddb9e3
<
template
>
<
template
>
<view
class=
"container"
>
<view
class=
"container"
>
<Header
title=
"售后/退款"
></Header>
<!--
<Header
title=
"售后/退款"
></Header>
-->
<Search
title=
"售后/退款"
backgroundBox=
"white"
:type=
"2"
></Search>
<view
class=
"content"
v-if=
"orderDetail"
>
<view
class=
"content"
v-if=
"orderDetail"
>
<view
class=
"content-box"
>
<view
class=
"content-box"
>
<view
class=
"content-item"
>
<view
class=
"content-item"
>
...
@@ -243,7 +244,7 @@ page {
...
@@ -243,7 +244,7 @@ page {
margin
:
0
auto
;
margin
:
0
auto
;
.content
{
.content
{
padding
:
108
rpx
10rpx
0
;
padding
:
20
rpx
10rpx
0
;
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
gap
:
60rpx
;
gap
:
60rpx
;
...
...
src/pages/order/ticketCode.vue
View file @
32ddb9e3
<
template
>
<
template
>
<view
class=
"container"
>
<view
class=
"container"
>
<Header
title=
"查看券码"
></Header>
<!--
<Header
title=
"查看券码"
></Header>
-->
<Search
title=
"查看券码"
backgroundBox=
"white"
:showTitle=
"true"
></Search>
<view
class=
"content"
v-if=
"orderDetail"
>
<view
class=
"content"
v-if=
"orderDetail"
>
<!-- 使用状态 -->
<!-- 使用状态 -->
<view
class=
"status"
>
<view
class=
"status"
>
<view
class=
"status-text"
>
{{
orderDetail
.
orderItems
[
0
].
prod
Name
}}
</view>
<view
class=
"status-text"
>
{{
shop
Name
}}
</view>
<view
class=
"detail"
>
有效期:
{{
orderDetail
.
orderStore
.
receiverTime
}}
</view>
<view
class=
"detail"
>
有效期:
{{
orderDetail
.
orderStore
.
writeOffEnd
}}
</view>
</view>
</view>
<!-- 券码信息 -->
<!-- 券码信息 -->
...
@@ -32,8 +33,9 @@ import Header from './components/Header/index.vue';
...
@@ -32,8 +33,9 @@ import Header from './components/Header/index.vue';
import
{
getOrderDetail
}
from
'@/api/order'
;
import
{
getOrderDetail
}
from
'@/api/order'
;
import
QRCode
from
'qrcode'
;
import
QRCode
from
'qrcode'
;
const
shopName
=
ref
(
'商家名称'
);
onLoad
((
options
)
=>
{
onLoad
((
options
)
=>
{
console
.
log
(
options
)
;
shopName
.
value
=
options
.
shopName
;
getOrderDetailFn
(
options
.
orderNumber
);
getOrderDetailFn
(
options
.
orderNumber
);
});
});
...
@@ -76,7 +78,6 @@ page {
...
@@ -76,7 +78,6 @@ page {
margin
:
0
auto
;
margin
:
0
auto
;
.content
{
.content
{
padding-top
:
44px
;
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
gap
:
20rpx
;
gap
:
20rpx
;
...
...
src/pages/packageDetails/packageDetails.vue
View file @
32ddb9e3
<
template
>
<
template
>
<view
class=
"package-details"
>
<view
class=
"package-details"
>
<view
class=
"search"
>
<search
<wd-icon
color=
"#fff"
name=
"thin-arrow-left"
class=
"icon"
@
tap=
"back"
></wd-icon>
style=
"position: fixed; top: 0; z-index: 99; width: 100%"
<!--
<view
class=
"searchBox"
>
:type=
"2"
<image
class=
"magnifyingGlass"
src=
"@/static/shop/search.png"
mode=
"aspectFill"
/>
title=
""
<input
type=
"text"
:value=
"test"
class=
"text"
/>
:backgroundBox=
"backIconColor"
</view>
-->
></search>
<!--
<view
class=
"icon-box"
>
<i
class=
"iconfont icon icon-shoucang"
></i>
<i
class=
"iconfont icon icon-fenxiang"
></i>
</view>
-->
</view>
<wd-popup
<wd-popup
v-model=
"showpopup"
v-model=
"showpopup"
position=
"bottom"
position=
"bottom"
...
@@ -267,9 +262,17 @@ const show = ref(false);
...
@@ -267,9 +262,17 @@ const show = ref(false);
const
shopLocation
=
ref
({});
const
shopLocation
=
ref
({});
const
shopId
=
ref
(
''
);
const
shopId
=
ref
(
''
);
const
showpopup
=
ref
(
false
);
const
showpopup
=
ref
(
false
);
const
backIconColor
=
ref
(
''
);
const
prodSkusInfo
=
ref
({});
const
prodSkusInfo
=
ref
({});
// 商品优惠券
// 商品优惠券
const
productCoupons
=
ref
([]);
const
productCoupons
=
ref
([]);
onPageScroll
((
e
)
=>
{
if
(
e
.
scrollTop
>
20
)
{
backIconColor
.
value
=
'white'
;
}
else
{
backIconColor
.
value
=
''
;
}
});
onLoad
((
options
)
=>
{
onLoad
((
options
)
=>
{
const
{
prodId
}
=
options
;
const
{
prodId
}
=
options
;
myProdId
.
value
=
prodId
;
myProdId
.
value
=
prodId
;
...
...
src/pages/shop/confirmOrder.vue
View file @
32ddb9e3
...
@@ -82,7 +82,13 @@
...
@@ -82,7 +82,13 @@
<wd-status-tip
v-if=
"orderInfo.shopCoupon.length === 0"
image=
"content"
tip=
"暂无优惠券"
/>
<wd-status-tip
v-if=
"orderInfo.shopCoupon.length === 0"
image=
"content"
tip=
"暂无优惠券"
/>
</view>
</view>
</wd-popup>
</wd-popup>
<Header
title=
"确认订单"
></Header>
<search
style=
"position: fixed; top: 0; z-index: 99; width: 100%"
:type=
"2"
backgroundBox=
"#fff"
>
<view
style=
"width: 100%; text-align: center; font-size: 36rpx"
>
确认订单
</view>
</search>
<!-- 商品卡 -->
<!-- 商品卡 -->
<view
class=
"order-detail-card"
>
<view
class=
"order-detail-card"
>
<view
class=
"title"
>
{{
orderInfo
.
shopName
}}
</view>
<view
class=
"title"
>
{{
orderInfo
.
shopName
}}
</view>
...
@@ -226,7 +232,7 @@ function alert() {
...
@@ -226,7 +232,7 @@ function alert() {
}
}
function
groupBuyConfirmFn
(
prodId
,
skuId
)
{
function
groupBuyConfirmFn
(
prodId
,
skuId
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
groupBuyConfirm
({
prodId
,
skuId
,
orderType
:
'store'
}).
then
((
res
)
=>
{
groupBuyConfirm
({
prodId
,
skuId
,
orderType
:
'store'
}).
then
((
res
)
=>
{
if
(
res
.
code
===
0
)
{
if
(
res
.
code
===
0
)
{
res
.
data
.
orderItems
[
0
].
pic
=
imgUrl
+
res
.
data
.
orderItems
[
0
].
pic
;
res
.
data
.
orderItems
[
0
].
pic
=
imgUrl
+
res
.
data
.
orderItems
[
0
].
pic
;
orderInfo
.
value
=
res
.
data
;
orderInfo
.
value
=
res
.
data
;
...
...
src/pages/shop/paymentSuccessful.vue
View file @
32ddb9e3
<
template
>
<
template
>
<!-- 支付成功页面 -->
<!-- 支付成功页面 -->
<view
class=
"container"
>
<view
class=
"container"
>
<Header
:showBack=
"false"
title=
""
></Header>
<search
style=
"position: fixed; top: 0; z-index: 99; width: 100%"
:type=
"2"
backgroundBox=
"#fff"
>
<view
style=
"width: 100%; text-align: center; font-size: 36rpx"
>
确认订单
</view>
</search>
<view
class=
"content"
>
<view
class=
"content"
>
<!-- 使用状态 -->
<!-- 使用状态 -->
<view
class=
"status"
>
<view
class=
"status"
>
...
...
src/pages/shop/shop.vue
View file @
32ddb9e3
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<!-- 店铺详情页面 -->
<!-- 店铺详情页面 -->
<view
class=
"shop-pages"
>
<view
class=
"shop-pages"
>
<search
<search
style=
"position: fixed; top: 0; z-index: 99"
style=
"position: fixed; top: 0; z-index: 99
; width: 100%
"
:type=
"2"
:type=
"2"
title=
""
title=
""
:backgroundBox=
"backIconColor"
:backgroundBox=
"backIconColor"
...
...
src/pages/ticket/detail.vue
View file @
32ddb9e3
<
template
>
<
template
>
<view
class=
"container"
>
<view
class=
"container"
>
<
Header
:title=
"shopDetail.shopName"
></Header
>
<
!--
<Header
:title=
"shopDetail.shopName"
></Header>
--
>
<Search
:title=
"shopDetail.shopName"
backgroundBox=
"white"
:showTitle=
"true"
></Search>
<view
class=
"content"
>
<view
class=
"content"
>
<view
class=
"shop"
>
<view
class=
"shop"
>
<image
:src=
"fileDomain + shopDetail.shopLogo"
class=
"logo"
mode=
"aspectFill"
></image>
<image
:src=
"fileDomain + shopDetail.shopLogo"
class=
"logo"
mode=
"aspectFill"
></image>
...
@@ -342,7 +342,7 @@ page {
...
@@ -342,7 +342,7 @@ page {
.content
{
.content
{
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
padding
:
10
0rpx
26rpx
26rpx
;
padding
:
2
0rpx
26rpx
26rpx
;
gap
:
26rpx
;
gap
:
26rpx
;
.shop
{
.shop
{
...
...
src/pages/ticket/ticket.vue
View file @
32ddb9e3
<
template
>
<
template
>
<view
class=
"container"
>
<view
class=
"container"
>
<Header
title=
"我的券"
></Header>
<!--
<Header
title=
"我的券"
></Header>
-->
<Search
title=
"我的券"
backgroundBox=
"white"
:showTitle=
"true"
></Search>
<view
class=
"tab"
>
<view
class=
"tab"
>
<view
<view
:class=
"currentTab == index ? 'tab-select' : 'tab-item'"
:class=
"currentTab == index ? 'tab-select' : 'tab-item'"
...
@@ -308,7 +309,7 @@ page {
...
@@ -308,7 +309,7 @@ page {
.content
{
.content
{
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
padding
:
202
rpx
26rpx
26rpx
;
padding
:
100
rpx
26rpx
26rpx
;
gap
:
36rpx
;
gap
:
36rpx
;
.card
{
.card
{
...
...
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