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
04c0a8e4
Commit
04c0a8e4
authored
Nov 01, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/viitto/mallapp
# Conflicts: # plugin/api.js
parents
368add7d
3665102f
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
54 additions
and
37 deletions
+54
-37
order-submit2.vue
pages/order-submit/order-submit2.vue
+39
-28
pay-success2.vue
pages/order-submit/pay-success2.vue
+6
-6
api.js
plugin/api.js
+9
-3
No files found.
pages/order-submit/order-submit2.vue
View file @
04c0a8e4
...
@@ -445,6 +445,7 @@
...
@@ -445,6 +445,7 @@
}
}
this
.
requestJJSWAdmin
(
testCmd
,
postMsg
,
this
.
requestJJSWAdmin
(
testCmd
,
postMsg
,
(
res
)
=>
{
(
res
)
=>
{
console
.
log
(
"111"
,
res
);
if
(
res
.
data
.
Data
.
length
>
0
)
{
if
(
res
.
data
.
Data
.
length
>
0
)
{
this
.
namelist
=
res
.
data
.
Data
this
.
namelist
=
res
.
data
.
Data
this
.
Thename
=
res
.
data
.
Data
[
0
].
StuName
this
.
Thename
=
res
.
data
.
Data
[
0
].
StuName
...
@@ -560,6 +561,20 @@
...
@@ -560,6 +561,20 @@
},
},
res
=>
{
res
=>
{
if
(
res
.
resultCode
==
1
)
{
if
(
res
.
resultCode
==
1
)
{
that
.
payInfo
.
OrderId
=
res
.
data
.
OrderId
;
that
.
payInfo
.
total_price
=
that
.
ds
.
total_price
;
if
(
res
.
data
.
OrderStatus
==
5
){
let
info
=
{
OrderId
:
that
.
payInfo
.
OrderId
,
total_price
:
that
.
ds
.
total_price
,
StuId
:
that
.
JJSWStuId
,
TeacherIds
:
that
.
mrk
,
}
uni
.
reLaunch
({
url
:
'/pages/order-submit/pay-success2?payInfo='
+
JSON
.
stringify
(
info
)
})
}
else
{
if
(
that
.
checked
==
true
)
{
if
(
that
.
checked
==
true
)
{
that
.
zhaoren
=
true
;
that
.
zhaoren
=
true
;
let
u
=
uni
.
getStorageSync
(
"mall_UserInfo"
);
let
u
=
uni
.
getStorageSync
(
"mall_UserInfo"
);
...
@@ -574,8 +589,7 @@
...
@@ -574,8 +589,7 @@
"&user_id="
+
uid
+
"&Up="
+
Up
+
"&user_id="
+
uid
+
"&Up="
+
Up
+
"&SmallShopId="
+
SmallShopId
+
'&JumpType=4'
;
"&SmallShopId="
+
SmallShopId
+
'&JumpType=4'
;
}
else
{
}
else
{
that
.
payInfo
.
OrderId
=
res
.
data
.
OrderId
;
that
.
payInfo
.
total_price
=
that
.
ds
.
total_price
;
if
(
that
.
formdata
.
Use_Deposit_Id
!=
0
&&
that
.
ds
.
total_price
==
if
(
that
.
formdata
.
Use_Deposit_Id
!=
0
&&
that
.
ds
.
total_price
==
0
)
{
//如果使用了储蓄卡 就直接支付成功 跳入支付结果
0
)
{
//如果使用了储蓄卡 就直接支付成功 跳入支付结果
uni
.
reLaunch
({
uni
.
reLaunch
({
...
@@ -586,6 +600,8 @@
...
@@ -586,6 +600,8 @@
that
.
payBtn
=
true
;
that
.
payBtn
=
true
;
}
}
}
}
}
}
else
{
}
else
{
that
.
$refs
.
uToast
.
show
({
that
.
$refs
.
uToast
.
show
({
title
:
res
.
data
.
message
,
title
:
res
.
data
.
message
,
...
@@ -737,13 +753,10 @@
...
@@ -737,13 +753,10 @@
list
.
push
(
j
.
EduTeacherId
)
list
.
push
(
j
.
EduTeacherId
)
})
})
})
})
// console.log('88888888888888888',list)
this
.
mrk
=
list
.
toString
()
this
.
mrk
=
list
.
toString
()
// console.log('88888888888888888',this.mrk)
this
.
payInfo
.
GoodsName
=
this
.
mchs
[
0
].
goods_list
[
0
].
name
.
slice
(
0
,
10
);
this
.
payInfo
.
GoodsName
=
this
.
mchs
[
0
].
goods_list
[
0
].
name
.
slice
(
0
,
10
);
this
.
formdata
.
DeliveryMethod
=
this
.
mchs
[
0
].
delivery
.
send_type
;
this
.
formdata
.
DeliveryMethod
=
this
.
mchs
[
0
].
delivery
.
send_type
;
this
.
ds
=
res
.
data
;
this
.
ds
=
res
.
data
;
console
.
log
(
"this.ds "
,
this
.
ds
)
this
.
expressPrice
=
0.0
;
this
.
expressPrice
=
0.0
;
this
.
goodPrice
=
0.0
;
this
.
goodPrice
=
0.0
;
this
.
couponPrice
=
0.0
;
this
.
couponPrice
=
0.0
;
...
@@ -791,12 +804,10 @@
...
@@ -791,12 +804,10 @@
0
)
{
0
)
{
rootItem
.
GoodsRelevanceList
.
forEach
(
qitem
=>
{
rootItem
.
GoodsRelevanceList
.
forEach
(
qitem
=>
{
tempRelevancePrice
+=
parseFloat
(
qitem
.
RelevancePrice
);
tempRelevancePrice
+=
parseFloat
(
qitem
.
RelevancePrice
);
console
.
log
(
"tempRelevancePrice1"
,
tempRelevancePrice
)
})
})
}
}
})
})
}
}
console
.
log
(
"tempRelevancePrice2"
,
tempRelevancePrice
)
//HK 2022-10-11 新增结束
//HK 2022-10-11 新增结束
this
.
goodPrice
+=
parseFloat
(
x
.
total_goods_price
)
+
parseFloat
(
tempRelevancePrice
);
this
.
goodPrice
+=
parseFloat
(
x
.
total_goods_price
)
+
parseFloat
(
tempRelevancePrice
);
this
.
expressPrice
+=
parseFloat
(
x
.
express_price
);
this
.
expressPrice
+=
parseFloat
(
x
.
express_price
);
...
...
pages/order-submit/pay-success2.vue
View file @
04c0a8e4
...
@@ -75,12 +75,12 @@
...
@@ -75,12 +75,12 @@
onLoad
(
option
)
{
onLoad
(
option
)
{
if
(
option
.
payInfo
)
{
if
(
option
.
payInfo
)
{
this
.
payInfo
=
JSON
.
parse
(
option
.
payInfo
)
this
.
payInfo
=
JSON
.
parse
(
option
.
payInfo
)
if
(
this
.
payInfo
.
StuId
)
{
this
.
StuId
=
this
.
payInfo
.
StuId
}
}
if
(
option
.
StuId
)
{
if
(
this
.
payInfo
.
TeacherIds
)
{
this
.
StuId
=
option
.
StuId
this
.
TeacherIds
=
this
.
payInfo
.
TeacherIds
}
}
if
(
option
.
TeacherIds
)
{
this
.
TeacherIds
=
option
.
TeacherIds
}
}
uni
.
setNavigationBarTitle
({
uni
.
setNavigationBarTitle
({
title
:
"支付成功"
,
title
:
"支付成功"
,
...
...
plugin/api.js
View file @
04c0a8e4
...
@@ -3,6 +3,7 @@ export default {
...
@@ -3,6 +3,7 @@ export default {
Vue
.
prototype
.
host
=
"https://wx.weibaoge.cn/web/index.php?_mall_id=1285"
Vue
.
prototype
.
host
=
"https://wx.weibaoge.cn/web/index.php?_mall_id=1285"
Vue
.
prototype
.
host2
=
"http://192.168.10.128:8200"
//本地
Vue
.
prototype
.
host2
=
"http://192.168.10.128:8200"
//本地
// Vue.prototype.host2 = "http://192.168.10.46:8200"
// Vue.prototype.host2 = "http://192.168.10.46:8200"
// Vue.prototype.host2 = "https://mallApi.oytour.com"//测试
// Vue.prototype.host2 = "https://mallApi.oytour.com"//测试
//进阶思维后台地址
//进阶思维后台地址
...
@@ -139,20 +140,25 @@ export default {
...
@@ -139,20 +140,25 @@ export default {
msg
:
postMsg
msg
:
postMsg
},
},
success
:
res
=>
{
success
:
res
=>
{
if
(
res
.
Code
==
10000
)
{
if
(
res
.
data
.
Code
==
10000
)
{
let
u
=
uni
.
getStorageSync
(
"mall_UserInfo"
);
let
u
=
uni
.
getStorageSync
(
"mall_UserInfo"
);
if
(
u
)
{
if
(
u
)
{
this
.
getLogin_t
(
u
)
this
.
getLogin_t
(
u
)
}
}
}
else
if
(
res
.
Code
==
1
)
{
}
else
if
(
res
.
Code
==
1
)
{
}
else
if
(
res
.
data
.
Code
!=
1
)
{
if
(
res
.
Message
!=
''
)
{
if
(
res
.
Message
!=
''
)
{
uni
.
showToast
({
uni
.
showToast
({
title
:
res
.
Message
,
title
:
res
.
Message
,
icon
:
"none"
,
icon
:
"none"
,
});
});
}
}
typeof
failed
==
"function"
&&
failed
(
res
);
typeof
failed
==
"function"
&&
failed
(
res
);
}
else
{
}
else
{
typeof
success
==
"function"
&&
success
(
res
);
typeof
success
==
"function"
&&
success
(
res
);
}
}
...
...
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