Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mallapp
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
viitto
mallapp
Commits
f92b0a37
Commit
f92b0a37
authored
Nov 05, 2020
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
8a029836
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
320 additions
and
44 deletions
+320
-44
packagecart.vue
components/coupon/packagecart.vue
+1
-1
pay.vue
components/pay/pay.vue
+10
-4
style1.vue
components/store/style1.vue
+4
-3
style2.vue
components/store/style2.vue
+5
-3
style6.vue
components/store/style6.vue
+4
-3
pages.json
pages.json
+2
-0
index.vue
pages/index/index.vue
+39
-0
designerDetail.vue
pages/reserve/designerDetail.vue
+3
-1
offline-success.vue
pages/reserve/offline-success.vue
+195
-0
couponDetail.vue
pages/reserve/personal/couponDetail.vue
+7
-1
share_qrcode.vue
pages/reserve/share_qrcode.vue
+7
-2
storeDetails.vue
pages/reserve/storeDetails.vue
+8
-5
subscribe.vue
pages/reserve/subscribe.vue
+35
-21
No files found.
components/coupon/packagecart.vue
View file @
f92b0a37
...
...
@@ -31,7 +31,7 @@
<u-radio-group
v-model=
"currentChosen"
>
<u-radio
shape=
"circle"
:name=
"x.
CouponI
d"
:name=
"x.
i
d"
:icon-size=
"36"
:active-color=
"mc"
></u-radio>
...
...
components/pay/pay.vue
View file @
f92b0a37
...
...
@@ -61,7 +61,6 @@ export default {
if
(
res
.
resultCode
==
1
)
{
this
.
orderInfo
=
JSON
.
parse
(
res
.
data
);
}
uni
.
hideNavigationBarLoading
();
}
);
...
...
@@ -78,9 +77,16 @@ export default {
paySign
:
this
.
orderInfo
.
sign
,
success
:
function
(
res
)
{
console
.
log
(
'success'
,
res
);
uni
.
navigateTo
({
url
:
'/pages/order-submit/pay-success?payInfo='
+
JSON
.
stringify
(
that
.
payInfo
)
});
if
(
that
.
payInfo
.
successType
==
1
){
uni
.
navigateTo
({
url
:
'/pages/reserve/offline-success?payInfo='
+
JSON
.
stringify
(
that
.
payInfo
)
});
}
else
{
uni
.
navigateTo
({
url
:
'/pages/order-submit/pay-success?payInfo='
+
JSON
.
stringify
(
that
.
payInfo
)
});
}
},
fail
:
function
(
err
)
{
console
.
log
(
'fail:'
,
err
);
...
...
components/store/style1.vue
View file @
f92b0a37
...
...
@@ -92,9 +92,7 @@ export default {
},
methods
:
{
openGood
(
item
)
{
uni
.
navigateTo
({
url
:
"/pages/reserve/storeDetails?id="
+
item
.
Id
,
});
uni
.
navigateTo
({
url
:
"/pages/reserve/goodsDetails?GoodsId="
+
item
.
id
});
},
showSkuHandler
(
g
)
{
this
.
sku
=
g
;
...
...
@@ -107,6 +105,9 @@ export default {
this
.
showAuth
=
true
;
}
else
{
//跳到结算页面
uni
.
navigateTo
({
url
:
"/pages/reserve/subscribe?GoodsId="
+
g
.
id
,
})
}
},
reloadUserinfo
()
{
...
...
components/store/style2.vue
View file @
f92b0a37
...
...
@@ -88,9 +88,7 @@ export default {
},
methods
:
{
openGood
(
item
)
{
uni
.
navigateTo
({
url
:
"/pages/reserve/storeDetails?id="
+
item
.
Id
,
});
uni
.
navigateTo
({
url
:
"/pages/reserve/goodsDetails?GoodsId="
+
item
.
id
});
},
showSkuHandler
(
g
)
{
this
.
sku
=
g
;
...
...
@@ -102,7 +100,11 @@ export default {
};
this
.
showAuth
=
true
;
}
else
{
//跳到结算页面
uni
.
navigateTo
({
url
:
"/pages/reserve/subscribe?GoodsId="
+
g
.
id
,
})
}
},
reloadUserinfo
()
{
...
...
components/store/style6.vue
View file @
f92b0a37
...
...
@@ -73,9 +73,7 @@ export default {
},
methods
:
{
openGood
(
item
)
{
uni
.
navigateTo
({
url
:
"/pages/reserve/storeDetails?id="
+
item
.
Id
,
});
uni
.
navigateTo
({
url
:
"/pages/reserve/goodsDetails?GoodsId="
+
item
.
id
});
},
showSkuHandler
(
g
)
{
this
.
sku
=
g
;
...
...
@@ -88,6 +86,9 @@ export default {
this
.
showAuth
=
true
;
}
else
{
//跳到结算页面
uni
.
navigateTo
({
url
:
"/pages/reserve/subscribe?GoodsId="
+
g
.
id
,
})
}
},
reloadUserinfo
()
{
...
...
pages.json
View file @
f92b0a37
...
...
@@ -449,6 +449,8 @@
"path"
:
"commentList"
},{
"path"
:
"share_qrcode"
},{
"path"
:
"offline-success"
}
]
},
...
...
pages/index/index.vue
View file @
f92b0a37
...
...
@@ -133,6 +133,7 @@
OrderId
:
0
,
storePosition
:
''
,
//线下服务获取经纬度
storeInfo
:
{},
fxstoreId
:
0
,
//分享过来的门店id
};
},
components
:
{
...
...
@@ -167,6 +168,10 @@
},
onLoad
(
options
)
{
let
that
=
this
;
options
=
{
storeId
:
8
,
id
:
6
,
JumpType
:
8
,
}
uni
.
getSystemInfo
({
success
(
res
)
{
that
.
titleStyle
=
{
...
...
@@ -240,6 +245,9 @@
//兼容之前小程序的调转
this
.
getjump
(
options
.
scene
);
}
if
(
options
&&
options
.
storeId
)
{
this
.
fxstoreId
=
options
.
storeId
}
// #ifdef MP-WEIXIN
wx
.
showShareMenu
({
withShareTicket
:
true
,
...
...
@@ -329,6 +337,16 @@
uni
.
navigateTo
({
url
:
"/pages/school/personal/payment-order?OrderId="
+
that
.
OrderId
});
}
else
if
(
that
.
JumpType
==
7
)
{
//线下服务门店详情
uni
.
navigateTo
({
url
:
"/pages/reserve/storeDetails?id="
+
that
.
GoodsId
,
});
}
else
if
(
that
.
JumpType
==
8
)
{
//服务人员详情
uni
.
navigateTo
({
url
:
"/pages/reserve/designerDetail?ID="
+
that
.
GoodsId
+
'&storeId='
+
that
.
fxstoreId
,
})
}
},
500
);
}
else
{
...
...
@@ -572,6 +590,17 @@
uni
.
navigateTo
({
url
:
"/pages/school/personal/payment-order?OrderId="
+
that
.
OrderId
});
}
else
if
(
that
.
JumpType
==
7
)
{
//线下服务门店详情
uni
.
navigateTo
({
url
:
"/pages/reserve/storeDetails?id="
+
that
.
GoodsId
,
});
}
else
if
(
that
.
JumpType
==
8
)
{
//服务人员详情
uni
.
navigateTo
({
url
:
"/pages/reserve/designerDetail?ID="
+
that
.
GoodsId
+
'&storeId='
+
that
.
fxstoreId
,
})
}
},
500
);
...
...
@@ -979,6 +1008,16 @@
uni
.
navigateTo
({
url
:
"/pages/school/personal/payment-order?OrderId="
+
this
.
OrderId
});
}
else
if
(
this
.
JumpType
==
7
)
{
//线下服务门店详情
uni
.
navigateTo
({
url
:
"/pages/reserve/storeDetails?id="
+
this
.
GoodsId
,
});
}
else
if
(
this
.
JumpType
==
8
)
{
//服务人员详情
uni
.
navigateTo
({
url
:
"/pages/reserve/designerDetail?ID="
+
this
.
GoodsId
+
'&storeId='
+
this
.
fxstoreId
,
})
}
},
500
);
...
...
pages/reserve/designerDetail.vue
View file @
f92b0a37
...
...
@@ -671,7 +671,9 @@
//跳转至生成海报
goShare
(){
uni
.
navigateTo
({
url
:
"/pages/reserve/share_qrcode?ServiceLogo="
+
this
.
personal
.
ServiceLogo
+
'&Name='
+
this
.
personal
.
Name
url
:
"/pages/reserve/share_qrcode?ServiceLogo="
+
this
.
personal
.
ServiceLogo
+
'&Name='
+
this
.
personal
.
Name
+
'&storeId='
+
this
.
storeId
+
'&ID='
+
this
.
ID
})
}
},
...
...
pages/reserve/offline-success.vue
0 → 100644
View file @
f92b0a37
<
template
>
<view
class=
"paysuccess"
>
<view
class=
"pd-box"
:style=
"
{'background':mainColor}">
<view
class=
"headStatus"
:style=
"[
headStyle,
]"
>
<view
class=
"arrow"
@
click=
"goback"
>
<u-icon
name=
"arrow-left"
size=
"48"
color=
"#000"
></u-icon>
</view>
<view
class=
"title"
style=
"color: #000000;"
>
{{
pageTitle
}}
</view>
<view
class=
"arrow"
></view>
</view>
<view
class=
"pay-title"
>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/pay-sicon.png"
style=
"width: 49px;height: 49px;"
></image>
<view
class=
"pay-title-r"
>
<text
style=
"font-size: 18px;font-weight: bold;"
>
支付成功
</text>
<text>
不要忘记预约时间哟~
</text>
</view>
</view>
<view
class=
"pay-h"
>
<view
class=
"pay-h-box"
>
<view
class=
"pay-h-c"
>
<view
style=
"display: flex;flex-direction: row;align-items: flex-end;"
>
<text
style=
"margin-bottom: 5px;"
>
¥
</text>
<text
style=
"font-size: 33px;"
>
{{
payInfo
.
total_price
}}
</text>
</view>
</view>
<!--
<view
class=
"pay-item"
style=
"margin-top: 10px;"
>
<text>
订单编号:
</text>
<text>
5465464646
</text>
</view>
<view
class=
"pay-item"
>
<text>
下单时间:
</text>
<text>
5465464646
</text>
</view>
-->
<view
class=
"pay-item"
style=
"margin-top: 10px;"
>
<text>
支付方式:
</text>
<text>
微信
</text>
</view>
</view>
</view>
</view>
<view
class=
"btn"
:style=
"
{'background':mainColor}" @click="godingdan">
查看订单
</view>
</view>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
pageTitle
:
"交易成功"
,
mainColor
:
""
,
headStyle
:{},
payInfo
:{}
};
},
onLoad
(
option
)
{
if
(
option
.
payInfo
)
{
this
.
payInfo
=
JSON
.
parse
(
option
.
payInfo
)
}
this
.
mainColor
=
this
.
$uiConfig
.
mainColor
;
uni
.
setNavigationBarTitle
({
title
:
this
.
pageTitle
,
});
let
nav
=
uni
.
getMenuButtonBoundingClientRect
().
top
;
this
.
headStyle
.
paddingTop
=
nav
+
'px'
;
},
mounted
()
{
},
methods
:
{
goback
(){
uni
.
navigateBack
({})
},
godingdan
(){
uni
.
reLaunch
({
url
:
'/pages/reserve/personal/orderList?status=2'
});
}
},
};
</
script
>
<
style
>
.paysuccess
{
height
:
100%
;
background
:
#FFF
;
position
:
relative
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
}
.pd-box
{
width
:
100%
;
height
:
191px
;
}
.paysuccess
.headStatus
{
overflow
:
hidden
;
position
:
relative
;
width
:
140vw
;
padding-right
:
40vw
;
padding-bottom
:
10px
;
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
justify-content
:
space-between
;
}
.paysuccess
.arrow
{
height
:
24px
;
margin
:
5px
10px
;
width
:
24px
;
}
.paysuccess
.pay-title
{
width
:
100%
;
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
justify-content
:
center
;
margin-top
:
20px
;
font-size
:
14px
;
color
:
#FFF
;
}
.paysuccess
.pay-title-r
{
margin-left
:
15px
;
display
:
flex
;
flex-direction
:
column
;
justify-content
:
space-between
;
height
:
48px
;
}
.paysuccess
.pay-h
{
width
:
calc
(
100vw
-
20px
);
height
:
9px
;
border-radius
:
4.5px
;
background
:
#F32931
;
margin-top
:
20px
;
margin-left
:
10px
;
position
:
relative
;
}
.paysuccess
.pay-h-box
{
width
:
calc
(
100vw
-
30px
);
height
:
266px
;
background
:
#FFF
;
box-shadow
:
0
4px
10px
1px
#D2D2D2
;
position
:
absolute
;
left
:
5px
;
top
:
5px
;
border-bottom-left-radius
:
6px
;
border-bottom-right-radius
:
6px
;
}
.pay-h-c
{
height
:
95px
;
font-size
:
16px
;
color
:
#010101
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
border-bottom
:
1px
solid
rgba
(
170
,
170
,
170
,
0.3
);
}
.pay-item
{
width
:
calc
(
100vw
-
60px
);
height
:
45px
;
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
font-size
:
14px
;
color
:
#9F9F9F
;
margin-left
:
15px
;
}
.btn
{
width
:
185px
;
height
:
45px
;
border-radius
:
6px
;
font-size
:
14px
;
color
:
#FFF
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
margin-top
:
290px
;
}
</
style
>
pages/reserve/personal/couponDetail.vue
View file @
f92b0a37
...
...
@@ -160,7 +160,7 @@
<view
class=
"c-d-store"
>
<view
class=
"title"
>
适用门店
</view>
<view
class=
"storebox"
>
<view
class=
"storeitem"
v-for=
"(x, j) in cdetail.StoresList"
:key=
"x"
>
<view
class=
"storeitem"
v-for=
"(x, j) in cdetail.StoresList"
:key=
"x"
@
click=
"gostore(x)"
>
<image
mode=
"aspectFill"
:src=
"x.CoverImg"
style=
"width: 75px;height: 75px;border-radius: 6px;"
></image>
<view
class=
"storeitem-r"
>
<view
class=
"storeitem-f"
>
...
...
@@ -322,6 +322,12 @@
break
;
}
},
gostore
(
x
){
uni
.
setStorageSync
(
"storeId"
,
{
storeId
:
x
.
Id
});
uni
.
navigateTo
({
url
:
"/pages/reserve/storeDetails?id="
+
x
.
Id
,
});
}
},
};
</
script
>
...
...
pages/reserve/share_qrcode.vue
View file @
f92b0a37
...
...
@@ -21,7 +21,9 @@
UserInfo
:
''
,
tempPic
:
''
,
ServiceLogo
:
''
,
//传递头像
Name
:
''
//传递name
Name
:
''
,
//传递name
storeId
:
0
,
//门店id
ID
:
0
,
}
},
created
()
{
...
...
@@ -37,6 +39,9 @@
});
this
.
ServiceLogo
=
options
.
ServiceLogo
;
this
.
Name
=
options
.
Name
;
this
.
storeId
=
options
.
storeId
;
this
.
ID
=
options
.
ID
;
this
.
init
()
}
},
...
...
@@ -71,7 +76,7 @@
that
.
request2
({
url
:
'/api/AppletUser/GetWeiXinQRCodeForApplet'
,
data
:
{
Path
:
'/pages/index/index?user_id='
+
that
.
UserInfo
.
UserId
+
'&SmallShopId='
+
SmallShopId
,
Path
:
'/pages/index/index?user_id='
+
that
.
UserInfo
.
UserId
+
'&SmallShopId='
+
SmallShopId
+
'&storeId='
+
this
.
storeId
+
'&id='
+
this
.
ID
+
'&JumpType=8'
,
With
:
that
.
qrcode
.
QrCodeSize
,
}
},
...
...
pages/reserve/storeDetails.vue
View file @
f92b0a37
...
...
@@ -477,7 +477,7 @@
</text>
<u-icon
name=
"arrow"
:size=
"30"
color=
"#666666"
></u-icon>
</view>
<view
class=
"comment u-skeleton-rect"
>
<view
class=
"comment u-skeleton-rect"
v-if=
"comments.length>0"
>
<view
class=
"content"
v-for=
"(item, index) in comments"
:key=
'index'
>
<view
class=
"u-box"
>
<view
class=
"user"
>
...
...
@@ -507,8 +507,8 @@
</view>
</view>
</view>
<view
class=
"sku-box u-skeleton-rect"
style=
"justify-content: center;"
v-if=
"comments.length == 0 && setting.is_comment == 1"
>
<view
class=
"label"
>
暂无评价信息
</view>
<view
v-if=
"comments.length==0"
style=
"width: 100%;height: 50px;line-height: 50px;text-align: center;"
>
暂无评价信息~
</view>
<view
class=
"title-c"
>
价目表
...
...
@@ -649,6 +649,7 @@
let
title
=
this
.
g
.
storeName
;
let
imageUrl
=
this
.
g
.
storeCoverImg
;
let
id
=
this
.
id
;
return
{
title
:
title
,
query
:
"id="
+
this
.
id
+
"&user_id="
+
uid
+
"&SmallShopId="
+
SmallShopId
+
"&Up="
+
this
.
Up
,
...
...
@@ -671,7 +672,7 @@
}
return
{
title
:
this
.
g
.
storeName
,
path
:
"/pages/index/index?id="
+
this
.
id
+
"&user_id="
+
uid
+
"&SmallShopId="
+
SmallShopId
+
"&Up="
+
this
.
Up
+
'&JumpType=
5
'
,
path
:
"/pages/index/index?id="
+
this
.
id
+
"&user_id="
+
uid
+
"&SmallShopId="
+
SmallShopId
+
"&Up="
+
this
.
Up
+
'&JumpType=
7
'
,
imageUrl
:
this
.
g
.
storeCoverImg
,
};
},
...
...
@@ -871,9 +872,11 @@
// 1-分享,2-购买并付款
this
.
request2
(
{
url
:
"/api/Applet
User/Share
Coupon"
,
url
:
"/api/Applet
Stores/ShareEducation
Coupon"
,
data
:
{
TriggerType
:
1
,
StoreId
:
this
.
id
},
},
(
res
)
=>
{
...
...
pages/reserve/subscribe.vue
View file @
f92b0a37
...
...
@@ -330,10 +330,10 @@
<view
class=
"info-item"
>
<text
class=
"info-i-l"
>
套餐卡
</text>
<view
class=
"right"
>
<text
class=
"content"
v-if=
"courseList.length>0 && Use
r_Coup
on_Id==0"
@
click=
"showCourseHandler"
>
选择套餐卡
<text
class=
"content"
v-if=
"courseList.length>0 && Use
_Educati
on_Id==0"
@
click=
"showCourseHandler"
>
选择套餐卡
</text>
<text
class=
"content"
v-else-if=
"courseList.length==0"
>
暂无套餐卡
</text>
<text
class=
"content"
v-else
:style=
"
{ color: pricecolor }" @click="showCourseHandler">已优惠
{{
CouponMoney
}}
元
</text>
<text
class=
"content"
v-else
:style=
"
{ color: pricecolor }" @click="showCourseHandler">已优惠
{{
goods
.
price
*
value
}}
元
</text>
<u-icon
name=
"ellipsis"
size=
"36"
v-if=
"courseList.length > 0"
@
click=
"showCourseHandler"
></u-icon>
</view>
</view>
...
...
@@ -405,7 +405,7 @@
</view>
</u-popup>
<packagecart
v-if=
"courseList.length > 0 && showCourse"
:list=
"courseList"
:current=
"Use
r_Coup
on_Id"
@
close=
"closeCourseHandler"
></packagecart>
<packagecart
v-if=
"courseList.length > 0 && showCourse"
:list=
"courseList"
:current=
"Use
_Educati
on_Id"
@
close=
"closeCourseHandler"
></packagecart>
</view>
</
template
>
...
...
@@ -448,14 +448,15 @@
OpenId
:
'ow_7I5XC1-RGwwk8QANBmWKYKmOc'
,
OrderId
:
''
,
OrderPayType
:
1
,
GoodsName
:
''
GoodsName
:
''
,
successType
:
1
,
//是从线下服务跳转过去
},
courseList
:[],
showCourse
:
false
,
Use
r_Coup
on_Id
:
0
,
Use
_Educati
on_Id
:
0
,
Nosubmit
:
true
,
Income
:
0
,
Coup
onMoney
:
0
,
EduCati
onMoney
:
0
,
};
},
...
...
@@ -504,12 +505,12 @@
closeCourseHandler
(
e
)
{
//套餐卡返回
console
.
log
(
e
)
if
(
e
!=
-
1
)
{
this
.
Use
r_Coup
on_Id
=
e
;
this
.
Use
_Educati
on_Id
=
e
;
this
.
Income
=
0
;
this
.
Coup
onMoney
=
this
.
goods
.
price
*
this
.
value
this
.
EduCati
onMoney
=
this
.
goods
.
price
*
this
.
value
// this.courseList.forEach(x=>{
// if(x.
CouponI
d == e){
// this.
Coup
onMoney = x.discount_limit
// if(x.
i
d == e){
// this.
EduCati
onMoney = x.discount_limit
// }
// })
}
...
...
@@ -533,7 +534,7 @@
this
.
dayList
=
[];
this
.
timeList
=
[];
this
.
designerList
=
[];
this
.
Use
r_Coup
on_Id
=
0
;
this
.
Use
_Educati
on_Id
=
0
;
if
(
this
.
OfflineGoods
.
length
>
0
){
this
.
GoodsId
=
this
.
OfflineGoods
[
0
].
id
;
this
.
GetApplOGInfo
()
...
...
@@ -553,9 +554,9 @@
};
ProductList
.
push
(
obj
);
//获取套餐卡的处理
this
.
Use
r_Coup
on_Id
=
0
,
this
.
Use
_Educati
on_Id
=
0
,
this
.
Income
=
this
.
goods
.
price
;
this
.
Coup
onMoney
=
0
;
this
.
EduCati
onMoney
=
0
;
this
.
request2
({
url
:
'/api/AppletStores/GetNoUseCouponList'
,
...
...
@@ -625,11 +626,12 @@
form
.
GoodsId
=
that
.
goods
.
id
;
form
.
StoresId
=
that
.
id
;
form
.
Mobile
=
that
.
Mobile
;
form
.
Income
=
that
.
goods
.
pric
e
*
that
.
value
;
form
.
Income
=
that
.
Incom
e
*
that
.
value
;
form
.
Remark
=
that
.
remarks
;
form
.
User_Coupon_Id
=
this
.
User_Coupon_Id
;
//优惠券id
form
.
User_Coupon_Id
=
this
.
User_Coupon_Id
;
//优惠券id
form
.
CouponMoney
=
this
.
CouponMoney
;
form
.
Use_Education_Id
=
that
.
Use_Education_Id
;
//优惠券id
form
.
EduCationMoney
=
that
.
EduCationMoney
;
form
.
User_Coupon_Id
=
0
;
form
.
CouponMoney
=
0
;
form
.
DetailList
=
[];
let
obj
=
{
GoodsId
:
that
.
goods
.
id
,
...
...
@@ -647,10 +649,22 @@
},
res
=>
{
if
(
res
.
resultCode
==
1
)
{
that
.
submitOrder
=
false
;
that
.
payBtn
=
true
;
that
.
payInfo
.
OrderId
=
res
.
data
.
OrderId
;
that
.
payInfo
.
total_price
=
form
.
Income
;
if
(
form
.
Income
>
0
){
that
.
submitOrder
=
false
;
that
.
payBtn
=
true
;
that
.
payInfo
.
OrderId
=
res
.
data
.
OrderId
;
that
.
payInfo
.
total_price
=
form
.
Income
;
}
else
{
uni
.
showToast
({
title
:
'交易成功'
,
icon
:
'none'
,
duration
:
2000
});
setTimeout
(()
=>
{
uni
.
redirectTo
({
url
:
'/pages/reserve/personal/orderDetails?id='
+
res
.
data
.
OrderId
})
},
2000
)
}
}
else
{
that
.
$refs
.
uToast
.
show
({
...
...
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