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
c3ace032
Commit
c3ace032
authored
Nov 11, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
的
parent
b971f629
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
38 deletions
+39
-38
order-submit2.vue
pages/order-submit/order-submit2.vue
+39
-38
No files found.
pages/order-submit/order-submit2.vue
View file @
c3ace032
...
...
@@ -241,7 +241,7 @@
<view
class=
"notOption"
v-if=
"submitOrder"
></view>
<good-list
:list=
"goodData"
v-if=
"showGoodList"
@
close=
"closeGoodListHandler"
></good-list>
<payCom
v-if=
"payBtn"
:payInfo=
"payInfo"
:isAlipay=
"isAlipay"
:StuId=
'JJSWStuId'
:TeacherIds=
'
mrk
'
<payCom
v-if=
"payBtn"
:payInfo=
"payInfo"
:isAlipay=
"isAlipay"
:StuId=
'JJSWStuId'
:TeacherIds=
'
EduTeacherId
'
@
closePay=
"closePay"
></payCom>
<u-toast
ref=
"uToast"
/>
...
...
@@ -342,9 +342,11 @@
limits
:
false
,
AlipayMask
:
false
,
IsQZJC
:
0
,
mrk
:
''
,
mrk2
:
''
,
mrk3
:
''
,
EduTeacherId
:
''
,
ClassId
:
''
,
PaperId
:
''
,
PublishId
:
''
,
// mrk3: '',
isAlipay
:
2
,
//1微信 2微信支付宝
JJSWStuId
:
""
,
Thename2
:
''
,
...
...
@@ -523,12 +525,12 @@
Registration
()
{
let
postMsg
=
{
StuId
:
this
.
JJSWStuId
,
ClassIds
:
this
.
mrk2
ClassIds
:
this
.
ClassId
}
let
that
=
this
let
info
=
{
PaperId
:
this
.
mrk
,
PublishId
:
this
.
mrk2
,
let
obj
=
{
PaperId
:
this
.
PaperId
,
PublishId
:
this
.
PublishId
,
GuestId
:
this
.
JJSWStuId
}
this
.
requestJJSWAdmin
(
"/api/WeChatPublic/CheckStuSubmitOrder"
,
postMsg
,
...
...
@@ -539,26 +541,35 @@
title
:
res
.
data
.
Message
,
type
:
'warning'
});
// 跳转入学考试
uni
.
redirectTo
({
url
:
`/pages/webbox/webbox?limit=
${
JSON
.
stringify
(
info
)}
`
url
:
`/pages/webbox/webbox?limit=
${
JSON
.
stringify
(
obj
)}
`
});
}
else
{
that
.
limits
=
false
this
.
submitOrderHandler2
()
this
.
OrderInterface
()
}
// console.log('llll',that.limits)
}
);
},
// 报名限制
// 提交订单
submitOrderHandler2
()
{
// 提交订单接口
OrderInterface
()
{
// that.adressInfo.Consignee = '测试'
// that.adressInfo.ShoppingAddress = '四川成都龙泉驿1'
// that.JJSWStuId = '10724';
// that.Thename="HK";
// if (that.adressInfo.Consignee == '') {
// this.$refs.uToast.show({
// title: '请选择收货信息!',
// type: 'warning'
// });
// return;
// }
let
that
=
this
// 报名限制
if
(
!
this
.
submitOrder
&&
!
that
.
limits
)
{
this
.
submitOrder
=
true
;
uni
.
requestSubscribeMessage
({
tmplIds
:
this
.
ds
.
template_message_list
,
...
...
@@ -609,7 +620,7 @@
OrderId
:
that
.
payInfo
.
OrderId
,
total_price
:
that
.
ds
.
total_price
,
StuId
:
that
.
JJSWStuId
,
TeacherIds
:
that
.
mrk
,
TeacherIds
:
that
.
EduTeacherId
,
}
uni
.
reLaunch
({
url
:
'/pages/order-submit/pay-success2?payInfo='
+
...
...
@@ -664,6 +675,7 @@
});
}
},
// 提交订单按钮
submitOrderHandler
()
{
let
that
=
this
;
if
(
that
.
JJSWStuId
==
''
||
that
.
Thename
==
''
)
{
...
...
@@ -674,19 +686,6 @@
return
;
}
that
.
Registration
()
// that.adressInfo.Consignee = '测试'
// that.adressInfo.ShoppingAddress = '四川成都龙泉驿1'
// that.JJSWStuId = '10724';
// that.Thename="HK";
// if (that.adressInfo.Consignee == '') {
// this.$refs.uToast.show({
// title: '请选择收货信息!',
// type: 'warning'
// });
// return;
// }
},
closeCouponHandler
(
e
)
{
if
(
e
!=
-
1
)
{
...
...
@@ -808,9 +807,10 @@
});
},
init
()
{
let
list
=
[]
let
list2
=
[]
let
list3
=
[]
// 获取跳转接口
let
EduTeacherIdlist
=
[]
let
ClassIdlist
=
[]
// let list3 = []
this
.
loading
=
true
;
this
.
request2
({
url
:
'/api/AppletOrder/GetAppletGoodsSettlementInfoForZY'
,
...
...
@@ -825,14 +825,15 @@
this
.
mchs
.
forEach
(
x
=>
{
x
.
goods_list
.
forEach
(
j
=>
{
j
.
marketingLogo
=
JSON
.
parse
(
j
.
marketingLogo
)
list
.
push
(
j
.
EduTeacherId
)
list2
.
push
(
j
.
EduData
.
ClassId
)
list3
.
push
(
j
.
EduData
.
ClassPersion
)
EduTeacherId
list
.
push
(
j
.
EduTeacherId
)
ClassIdlist
.
push
(
j
.
EduData
.
ClassId
)
//
list3.push(j.EduData.ClassPersion)
})
})
this
.
mrk
=
list
.
toString
()
this
.
mrk2
=
list2
.
toString
()
this
.
mrk3
=
list3
.
toString
()
this
.
EduTeacherId
=
list
.
toString
()
this
.
ClassId
=
list2
.
toString
()
// this.mrk3 = list3.toString()
this
.
payInfo
.
GoodsName
=
this
.
mchs
[
0
].
goods_list
[
0
].
name
.
slice
(
0
,
10
);
this
.
formdata
.
DeliveryMethod
=
this
.
mchs
[
0
].
delivery
.
send_type
;
this
.
ds
=
res
.
data
;
...
...
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