Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
H
hs-app-project
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
李星剑
hs-app-project
Commits
75fc03cf
Commit
75fc03cf
authored
Jan 20, 2022
by
李星剑
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交
parent
0d73bdbe
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
314 additions
and
101 deletions
+314
-101
index.js
src/config/request/apiList/plm/stylelibraryorder/index.js
+4
-0
pages.json
src/pages.json
+21
-5
index.vue
src/pages/home/index.vue
+2
-83
addItem.vue
src/pages/modeling/addItem.vue
+10
-11
item.vue
src/pages/modeling/item.vue
+239
-2
index.vue
src/pages/webview/index.vue
+38
-0
No files found.
src/config/request/apiList/plm/stylelibraryorder/index.js
View file @
75fc03cf
...
@@ -54,6 +54,10 @@ export default {
...
@@ -54,6 +54,10 @@ export default {
'unlisted'
:{
'unlisted'
:{
url
:
`
${
baseUrl
}
/unlisted`
,
url
:
`
${
baseUrl
}
/unlisted`
,
method
:
'post'
method
:
'post'
},
'shPay'
:{
url
:
`
${
baseUrl
}
/shPay`
,
method
:
'post'
}
}
}
}
}
}
src/pages.json
View file @
75fc03cf
...
@@ -21,9 +21,18 @@
...
@@ -21,9 +21,18 @@
}
}
},
},
{
{
"path"
:
"pages/
brands/brands
"
,
"path"
:
"pages/
user/login/login
"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"品牌商首页"
,
"navigationBarTitleText"
:
"模拟登录"
,
"navigationBarTextStyle"
:
"white"
,
"enablePullDownRefresh"
:
false
,
"navigationStyle"
:
"custom"
}
},
{
"path"
:
"pages/webview/index"
,
"style"
:
{
"navigationBarTitleText"
:
"租户选择"
,
"navigationBarTextStyle"
:
"white"
,
"navigationBarTextStyle"
:
"white"
,
"enablePullDownRefresh"
:
false
,
"enablePullDownRefresh"
:
false
,
"navigationStyle"
:
"custom"
,
"navigationStyle"
:
"custom"
,
...
@@ -34,15 +43,22 @@
...
@@ -34,15 +43,22 @@
}
}
}
}
},
},
{
{
"path"
:
"pages/
user/login/login
"
,
"path"
:
"pages/
brands/brands
"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"
模拟登录
"
,
"navigationBarTitleText"
:
"
品牌商首页
"
,
"navigationBarTextStyle"
:
"white"
,
"navigationBarTextStyle"
:
"white"
,
"enablePullDownRefresh"
:
false
,
"enablePullDownRefresh"
:
false
,
"navigationStyle"
:
"custom"
"navigationStyle"
:
"custom"
,
"mp-alipay"
:
{
"transparentTitle"
:
"always"
,
"titlePenetrate"
:
"YES"
,
"allowsBounceVertical"
:
"NO"
}
}
}
},
},
{
{
"path"
:
"pages/order/item"
,
"path"
:
"pages/order/item"
,
"style"
:
{
"style"
:
{
...
...
src/pages/home/index.vue
View file @
75fc03cf
...
@@ -161,90 +161,9 @@ export default {
...
@@ -161,90 +161,9 @@ export default {
},
},
methods
:
{
methods
:
{
pay
(){
pay
(){
const
jyAliPay
=
uni
.
requireNativePlugin
(
'JY-ALIPAY'
)
this
.
$Router
.
push
({
uni
.
showToast
({
path
:
'/pages/webview/index'
title
:
'开始'
,
complete
(){
jyAliPay
.
show
({
// 发起支付
if_sanbox
:
true
,
auto_create_order_info
:
false
,
appid
:
''
,
rsa2_private
:
""
,
order_info
:
{
"charset"
:
"UTF-8"
,
"method"
:
"alipay.trade.wap.pay"
,
"sign"
:
"NWYSVaKc1hnFm1QL%2BLhUT4WdTglbyv94FeLlEa7%2BXYADec99w6F%2FvxgfTLXAd4%2BviDDuC4cdHOh7mtxDIJruqImXorRwls5DUa2u3nRPe%2BnbplJ8hbmPlqBZEJw1zWO5ND%2FXH4ANQw%2BBKQrhr6adghH0g%2BkxT2X%2Bs%2B%2FqDafHTwTx%2FeK4hbbcYzHQ%2FEnEaWCpj73R54y1PHE682WljKcPQlGZXcSatMWUxK48d79UI5gbcAQUQQ7gFoVuT9x4IXI8X5l5fnvNukD7d1RAv581p8xuvbt0hcXle%2BjvmvxiczGKb%2FTy5%2FQguj3dCYgzM25SG9RmlFkUrdT7ECwbNuA8Kw%3D%3D"
,
"return_url"
:
"http%3A%2F%2F101.34.159.151%3A8329%2F"
,
"notify_url"
:
"http%3A%2F%2F101.34.159.151%3A9001%2Fscs%2Fnotifies%2Fbackend"
,
"version"
:
"1.0"
,
"app_id"
:
"2021000118699056"
,
"sign_type"
:
"RSA2"
,
"timestamp"
:
"2022-01-18+16%3A51%3A31"
,
"alipay_sdk"
:
"alipay-sdk-java-dynamicVersionNo"
,
"format"
:
"json"
,
subject
:
"款式订单"
,
product_code
:
"QUICK_WAP_WAY"
,
out_trade_no
:
"ZQL1642495891908"
,
total_amount
:
0.01
}
},
function
(
result
)
{
if
(
result
.
resultStatus
==
'5002555'
)
{
uni
.
showToast
({
title
:
'支付sdk出错'
})
}
else
if
(
result
.
resultStatus
==
'9000'
)
{
// that.vusui.msg('支付成功')
uni
.
showToast
({
title
:
'支付成功'
})
}
else
{
// that.vusui.msg(result.memo)
uni
.
showToast
({
title
:
result
.
memo
})
}
})
// 支付完成回调
}
})
return
;
uni
.
requestPayment
({
provider
:
'alipay'
,
orderInfo
:
{
"charset"
:
"UTF-8"
,
"method"
:
"alipay.trade.wap.pay"
,
"sign"
:
"NWYSVaKc1hnFm1QL%2BLhUT4WdTglbyv94FeLlEa7%2BXYADec99w6F%2FvxgfTLXAd4%2BviDDuC4cdHOh7mtxDIJruqImXorRwls5DUa2u3nRPe%2BnbplJ8hbmPlqBZEJw1zWO5ND%2FXH4ANQw%2BBKQrhr6adghH0g%2BkxT2X%2Bs%2B%2FqDafHTwTx%2FeK4hbbcYzHQ%2FEnEaWCpj73R54y1PHE682WljKcPQlGZXcSatMWUxK48d79UI5gbcAQUQQ7gFoVuT9x4IXI8X5l5fnvNukD7d1RAv581p8xuvbt0hcXle%2BjvmvxiczGKb%2FTy5%2FQguj3dCYgzM25SG9RmlFkUrdT7ECwbNuA8Kw%3D%3D"
,
"return_url"
:
"http%3A%2F%2F101.34.159.151%3A8329%2F"
,
"notify_url"
:
"http%3A%2F%2F101.34.159.151%3A9001%2Fscs%2Fnotifies%2Fbackend"
,
"version"
:
"1.0"
,
"app_id"
:
"2021000118699056"
,
"sign_type"
:
"RSA2"
,
"timestamp"
:
"2022-01-18+16%3A51%3A31"
,
"alipay_sdk"
:
"alipay-sdk-java-dynamicVersionNo"
,
"format"
:
"json"
,
subject
:
"款式订单"
,
product_code
:
"QUICK_WAP_WAY"
,
out_trade_no
:
"ZQL1642495891908"
,
total_amount
:
0.01
},
//支付宝订单数据
success
:
res
=>
{
uni
.
showToast
({
title
:
'success'
})
},
fail
:
err
=>
{
// console.log('支付取消或者失败:', err);
// err.errMsg !== "requestPayment:fail cancel" && that.payResult('fail')
uni
.
showToast
({
title
:
'requestPayment:fail cancel'
})
})
}
});
},
},
searchPotentialCustomers
(){
searchPotentialCustomers
(){
this
.
pageOptions
=
{
this
.
pageOptions
=
{
...
...
src/pages/modeling/addItem.vue
View file @
75fc03cf
...
@@ -301,17 +301,17 @@ export default {
...
@@ -301,17 +301,17 @@ export default {
required
:
true
,
required
:
true
,
message
:
'请选择完成期限'
,
message
:
'请选择完成期限'
,
},
},
clothWidth
:{
clothWidth
:[
max
:
20
,
{
validate
(
rule
,
value
,
callback
)
{
validator
:(
rule
,
value
,
callback
)
=>
{
let
reg
=
new
RegExp
(
/^
([
1-9
][
0-9
]
*
)
+
(\\
.
[
0-9
]{1,2})?
$/
);
let
reg
=
new
RegExp
(
/^
(\\
d+
)(
.
\\
d
{0,2})?
$/
);
return
reg
.
test
(
value
);
return
reg
.
test
(
value
);
},
},
message
:
'门幅应保留小数点后两位'
,
message
:
'门幅应保留小数点后两位'
,
// 可以单个或者同时写两个触发验证方式
// 可以单个或者同时写两个触发验证方式
trigger
:
[
'change'
,
'blur'
],
trigger
:
[
'change'
,
'blur'
],
},
},
]
},
},
// 暂存用的颜色组
// 暂存用的颜色组
modelingTaskColourDTOList
:
[],
modelingTaskColourDTOList
:
[],
...
@@ -528,7 +528,6 @@ export default {
...
@@ -528,7 +528,6 @@ export default {
validate
(
callback
){
validate
(
callback
){
this
.
$refs
[
'uForm'
].
validate
((
res
)
=>
{
this
.
$refs
[
'uForm'
].
validate
((
res
)
=>
{
if
(
res
)
{
if
(
res
)
{
return
;
this
.
validateList
(
callback
)
this
.
validateList
(
callback
)
}
}
})
})
...
...
src/pages/modeling/item.vue
View file @
75fc03cf
This diff is collapsed.
Click to expand it.
src/pages/webview/index.vue
0 → 100644
View file @
75fc03cf
<
template
>
<view
ref=
"form"
v-if=
"orderId"
>
<web-view
:src=
"html"
></web-view>
</view>
</
template
>
<
script
>
export
default
{
name
:
"index"
,
data
(){
return
{
baseUrl
:
'http://pay.huansi.net/#/payorder/'
,
orderId
:
''
,
// html: 'http://pay.huansi.net/#/payorder/1483979726701785089'
}
},
computed
:{
html
(){
return
`
${
this
.
baseUrl
}${
this
.
orderId
}
`
}
},
created
()
{
this
.
$http
(
"stylelibraryorder.shPay"
).
then
(
res
=>
{
let
{
success
,
result
}
=
res
;
// console.log(res)
if
(
success
){
this
.
orderId
=
result
.
orderId
;
}
})
}
}
</
script
>
<
style
scoped
>
</
style
>
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