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
5316242e
Commit
5316242e
authored
Jan 20, 2022
by
Zheng Shang Jun
Browse files
Options
Browse Files
Download
Plain Diff
完整版解决冲突
parents
1dbd0299
1bd60e64
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
97 additions
and
11 deletions
+97
-11
index.vue
src/pages/home/index.vue
+87
-1
createMaterial.vue
src/pages/material/createMaterial.vue
+1
-1
entrustManagement.vue
src/pages/material/entrustManagement.vue
+2
-3
addItem.vue
src/pages/modeling/addItem.vue
+7
-6
No files found.
src/pages/home/index.vue
View file @
5316242e
...
@@ -43,7 +43,7 @@
...
@@ -43,7 +43,7 @@
<view
class=
"home_con u-m-t-20"
>
<view
class=
"home_con u-m-t-20"
>
<view
class=
"home_con_tit"
>
<view
class=
"home_con_tit"
>
<view>
<view>
<span
class=
"u-font-32"
>
潜在客户
</span>
<span
class=
"u-font-32"
@
click=
"pay"
>
潜在客户
</span>
<span
class=
"u-m-l-10 color_000 u-font-24"
>
MY ORDER
</span>
<span
class=
"u-m-l-10 color_000 u-font-24"
>
MY ORDER
</span>
</view>
</view>
<!-- <view class="u-font-24 color_d5aa7a">查看更多</view>-->
<!-- <view class="u-font-24 color_d5aa7a">查看更多</view>-->
...
@@ -160,6 +160,92 @@ export default {
...
@@ -160,6 +160,92 @@ export default {
}
}
},
},
methods
:
{
methods
:
{
pay
(){
const
jyAliPay
=
uni
.
requireNativePlugin
(
'JY-ALIPAY'
)
uni
.
showToast
({
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
=
{
current
:
1
,
current
:
1
,
...
...
src/pages/material/createMaterial.vue
View file @
5316242e
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
'--src': `url(${$IMG_URL}${detail.originalImageCode})`,
'--src': `url(${$IMG_URL}${detail.originalImageCode})`,
'--transform': `rotate(${angle}deg)`,
'--transform': `rotate(${angle}deg)`,
}"
}"
src=""
src="
`${$IMG_URL}${detail.originalImageCode}`
"
mode="heightFix"
mode="heightFix"
class="height-750rpx view"
class="height-750rpx view"
>
</image>
>
</image>
...
...
src/pages/material/entrustManagement.vue
View file @
5316242e
...
@@ -319,9 +319,8 @@ export default {
...
@@ -319,9 +319,8 @@ export default {
item
.
children
.
filter
((
$item
)
=>
this
.
selectedIds
.
indexOf
(
$item
.
id
)
===
-
1
)
item
.
children
.
filter
((
$item
)
=>
this
.
selectedIds
.
indexOf
(
$item
.
id
)
===
-
1
)
);
);
}
else
{
}
else
{
// this.selected = this.selected.concat(
let
removeData
=
item
.
children
.
map
((
item
)
=>
item
.
id
);
// item.children.filter(($item) => this.selectedIds.indexOf($item.id) === -1)
this
.
selected
=
this
.
selected
.
filter
((
item
)
=>
removeData
.
indexOf
(
item
.
id
)
===
-
1
)
// );
}
}
},
},
// 单选 确定/取消
// 单选 确定/取消
...
...
src/pages/modeling/addItem.vue
View file @
5316242e
...
@@ -416,15 +416,16 @@ export default {
...
@@ -416,15 +416,16 @@ export default {
removeColor
(){
removeColor
(){
let
list
=
this
.
detail
.
modelingTaskMaterialColourList
;
let
list
=
this
.
detail
.
modelingTaskMaterialColourList
;
let
checked
=
this
.
checkedList
;
let
checked
=
this
.
checkedList
;
for
(
const
item
of
list
)
{
for
(
const
item
of
list
)
{
let
index
=
checked
.
indexOf
(
item
.
id
);
if
(
item
.
id
){
if
(
index
>
-
1
){
let
index
=
checked
.
indexOf
(
item
.
id
);
this
.
$set
(
item
,
'isDeleted'
,
true
)
if
(
index
>
-
1
){
}
else
{
this
.
$set
(
item
,
'isDeleted'
,
true
)
list
.
splice
(
index
,
1
)
}
}
}
}
}
list
=
list
.
filter
((
item
)
=>
checked
.
indexOf
(
item
.
id
)
>
-
1
);
// console.log(list)
},
},
// 颜色库选择 点击时间 存一份选中状态 在确定的时候过滤
// 颜色库选择 点击时间 存一份选中状态 在确定的时候过滤
selectColor
(
colorItem
){
selectColor
(
colorItem
){
...
...
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