Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
take_order
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
和慭琛
take_order
Commits
f1ebcc8e
Commit
f1ebcc8e
authored
Feb 23, 2021
by
李俊赕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add-web
parent
f3366d32
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
97 additions
and
23 deletions
+97
-23
settled.js
take-order/common/api/settled.js
+3
-3
base_url.js
take-order/common/base_url.js
+10
-1
pages.json
take-order/pages.json
+6
-0
sign-contract.vue
take-order/pages/settle/sign-contract.vue
+46
-18
web.vue
take-order/pages/settle/web.vue
+32
-0
web.vue
take-order/pages/take/web.vue
+0
-1
No files found.
take-order/common/api/settled.js
View file @
f1ebcc8e
...
@@ -13,15 +13,15 @@ let settledApiFun = function(vm){
...
@@ -13,15 +13,15 @@ let settledApiFun = function(vm){
/* 校验身份证反面 */
/* 校验身份证反面 */
let
checkSettleIDCardBack
=
async
(
params
=
{})
=>
await
vm
.
$u
.
post
(
codeApiUrl
+
'/v1/h5/settled/card-back'
,
params
);
let
checkSettleIDCardBack
=
async
(
params
=
{})
=>
await
vm
.
$u
.
post
(
codeApiUrl
+
'/v1/h5/settled/card-back'
,
params
);
/* 缴纳保证金 */
/* 缴纳保证金 */
// let paySettleDeposit = async (params = {}) => await vm.$u.post('/rest-xue.yunya.com/v1/settled/pay-deposit', params,{'content-type': 'application/x-www-form-urlencoded'});
let
paySettleDeposit
=
async
(
params
=
{})
=>
await
vm
.
$u
.
post
(
codeApiUrl
+
'/v1/settled/pay-deposit'
,
params
,{
'content-type'
:
'application/x-www-form-urlencoded'
});
let
paySettleDeposit
=
async
(
params
=
{})
=>
await
vm
.
$u
.
post
(
'http://apidoc.banshouhui.com:3000/mock/52/v1/settled/pay-deposit'
,
params
,{
'content-type'
:
'application/x-www-form-urlencoded'
});
let
getSettleDepositResult
=
async
(
params
=
{})
=>
await
vm
.
$u
.
post
(
codeApiUrl
+
'/v1/settled/pay-deposit'
,
params
,{
'content-type'
:
'application/x-www-form-urlencoded'
});
let
getSettleDepositResult
=
async
(
params
=
{})
=>
await
vm
.
$u
.
post
(
'http://apidoc.banshouhui.com:3000/mock/52/v1/settled/pay-deposit'
,
params
,{
'content-type'
:
'application/x-www-form-urlencoded'
});
/* 校验银行卡 */
/* 校验银行卡 */
let
checkSettleBank
=
async
(
params
=
{})
=>
await
vm
.
$u
.
get
(
'/wxh-site-rest/rest/register/verifyBankCard'
,
params
);
let
checkSettleBank
=
async
(
params
=
{})
=>
await
vm
.
$u
.
get
(
'/wxh-site-rest/rest/register/verifyBankCard'
,
params
);
/* 校验支付宝 */
/* 校验支付宝 */
let
checkSettleAlipay
=
async
(
params
=
{})
=>
await
vm
.
$u
.
get
(
'/wxh-site-rest/rest/register/verifyAlipayAccount'
,
params
);
let
checkSettleAlipay
=
async
(
params
=
{})
=>
await
vm
.
$u
.
get
(
'/wxh-site-rest/rest/register/verifyAlipayAccount'
,
params
);
/* 提交认证资料 */
/* 提交认证资料 */
let
checkSettleSignInfo
=
async
(
params
=
{})
=>
await
vm
.
$u
.
get
(
'/v1/settled/check-sign-info'
,
params
,{
'content-type'
:
'application/x-www-form-urlencoded'
});
let
checkSettleSignInfo
=
async
(
params
=
{})
=>
await
vm
.
$u
.
get
(
'/v1/settled/check-sign-info'
,
params
,{
'content-type'
:
'application/x-www-form-urlencoded'
});
/* 提交认证资料 */
const
settledApi
=
{
const
settledApi
=
{
getSettleBaseInfo
,
getSettleBaseInfo
,
...
...
take-order/common/base_url.js
View file @
f1ebcc8e
...
@@ -13,6 +13,11 @@ let askUrl = {
...
@@ -13,6 +13,11 @@ let askUrl = {
let
ucenterUrl
=
{
let
ucenterUrl
=
{
apiBaseUrl
:
'https://u.banshouhui.com'
apiBaseUrl
:
'https://u.banshouhui.com'
}
}
let
systemUrl
=
{
apiUrl
:
'https://system.banshouhui.com'
}
/* --------------------------- prod end --------------------------- */
/* --------------------------- prod end --------------------------- */
/* --------------------------- test begin --------------------------- */
/* --------------------------- test begin --------------------------- */
...
@@ -32,6 +37,9 @@ codeUrl = {
...
@@ -32,6 +37,9 @@ codeUrl = {
apiUrl
:
'http://rest-u.yunya.com'
,
apiUrl
:
'http://rest-u.yunya.com'
,
apiBaseUrl
:
'https://code.banshouhui.com'
,
apiBaseUrl
:
'https://code.banshouhui.com'
,
}
}
systemUrl
=
{
apiUrl
:
'http://192.168.0.208:37080'
//小青
}
/* --------------------------- test end --------------------------- */
/* --------------------------- test end --------------------------- */
function
getCodeUrl
(
uri
)
{
function
getCodeUrl
(
uri
)
{
...
@@ -45,5 +53,6 @@ export default {
...
@@ -45,5 +53,6 @@ export default {
askUrl
,
askUrl
,
ucenterUrl
,
ucenterUrl
,
getCodeUrl
,
getCodeUrl
,
getUcenterUrl
getUcenterUrl
,
systemUrl
}
}
take-order/pages.json
View file @
f1ebcc8e
...
@@ -71,6 +71,12 @@
...
@@ -71,6 +71,12 @@
"navigationBarTitleText"
:
"签约页面"
"navigationBarTitleText"
:
"签约页面"
}
}
},{
"path"
:
"pages/settle/web"
,
"style"
:
{
"navigationBarTitleText"
:
"签约页面"
}
},
},
{
{
"path"
:
"pages/index/index"
,
"path"
:
"pages/index/index"
,
...
...
take-order/pages/settle/sign-contract.vue
View file @
f1ebcc8e
...
@@ -52,11 +52,7 @@
...
@@ -52,11 +52,7 @@
</template>
</template>
<
script
>
<
script
>
let
r
=
require
(
"../../libs/bmap-wx.min.js"
);
import
globalUrl
from
'@/common/base_url.js'
let
h
=
new
r
.
BMapWX
({
// ak: "rpVq5d3yxaRCoKzVwmFMo0o4iC524CAG",
ak
:
"lF1HoyXdiv4uZx6TrGQEZs48F5y8kEHI"
});
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
...
@@ -84,6 +80,7 @@
...
@@ -84,6 +80,7 @@
},
},
onShow
(){
onShow
(){
console
.
log
(
'onshow'
)
console
.
log
(
'onshow'
)
// this.goSign()
},
},
computed
:
{
computed
:
{
submitStatus
()
{
submitStatus
()
{
...
@@ -177,18 +174,28 @@
...
@@ -177,18 +174,28 @@
});
});
return
!
flagArr
||
flagArr
.
length
<
1
;
return
!
flagArr
||
flagArr
.
length
<
1
;
},
},
async
checkBank
(){
// async checkBank(){
const
type
=
this
.
baseInfo
.
pay_type
// const baseInfo = this.baseInfo;
const
request
=
{
// const type = this.baseInfo.pay_type
bankcard
:
this
.
$u
.
api
.
checkSettleBank
,
// const request = {
alipay
:
this
.
$u
.
api
.
checkSettleAlipay
// bankcard:this.$u.api.checkSettleBank,
}
// alipay:this.$u.api.checkSettleAlipay
const
res
=
await
request
[
type
]()
// }
if
(
res
.
code
!==
200
){
return
// const params = {
}
// name:baseInfo.bank_name,
return
true
// }
},
// if(type==='bankcard'){
// params['cardNumber'] = baseInfo.bank_no
// }else if(type==='alipay'){
// params['account'] = baseInfo.bank_no
// }
// const res = await request[type](params)
// if(res.code!==200){
// return
// }
// return true
// },
async
submitInfo
(){
async
submitInfo
(){
// checkSettleSignInfo
// checkSettleSignInfo
const
baseInfo
=
this
.
baseInfo
;
const
baseInfo
=
this
.
baseInfo
;
...
@@ -230,7 +237,7 @@
...
@@ -230,7 +237,7 @@
uni
.
showLoading
({
uni
.
showLoading
({
title
:
'加载中'
title
:
'加载中'
});
});
const
requestArr
=
[
'
checkBank'
,
'
submitBaseInfo'
,
'jumpSign'
]
const
requestArr
=
[
'submitBaseInfo'
,
'jumpSign'
]
for
(
let
i
=
0
;
i
<
requestArr
.
length
;
i
++
){
for
(
let
i
=
0
;
i
<
requestArr
.
length
;
i
++
){
const
result
=
await
this
[
requestArr
[
i
]]()
const
result
=
await
this
[
requestArr
[
i
]]()
if
(
!
result
){
if
(
!
result
){
...
@@ -250,6 +257,27 @@
...
@@ -250,6 +257,27 @@
})
})
},
2000
)
},
2000
)
},
},
async
goSign
(){
const
token
=
'RTOKEN49eac6c2979528824a4d5a7b09c221fa954c70ce'
;
const
params
=
{
namePsn
:
'郭小清'
,
idNumberPsn
:
'43072219800123456'
,
province
:
'湖南省'
,
city
:
'长沙市'
}
const
res
=
await
this
.
$u
.
post
(
globalUrl
.
systemUrl
.
apiUrl
+
'/wxh-worker-rest/rest/third/'
+
token
+
'/wuKong/sign'
,
params
,{
'content-type'
:
'application/x-www-form-urlencoded'
})
if
(
res
.
code
!==
200
){
uni
.
showToast
({
title
:
'跳转签约失败'
,
icon
:
'none'
})
return
}
const
url
=
res
.
data
uni
.
navigateTo
({
url
:
'/pages/settle/web?url='
+
url
})
}
},
},
}
}
</
script
>
</
script
>
...
...
take-order/pages/settle/web.vue
0 → 100644
View file @
f1ebcc8e
<
template
>
<view
class=
""
>
<web-view
:src=
"webUrl"
></web-view>
</view>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
webUrl
:
''
,
}
},
onLoad
(
e
)
{
this
.
initUrl
(
e
)
},
methods
:
{
initUrl
(
e
){
let
webUrl
=
''
if
(
e
.
url
){
webUrl
=
e
.
url
}
this
.
webUrl
=
webUrl
}
}
}
</
script
>
<
style
>
</
style
>
take-order/pages/take/web.vue
View file @
f1ebcc8e
...
@@ -9,7 +9,6 @@
...
@@ -9,7 +9,6 @@
data
()
{
data
()
{
return
{
return
{
webUrl
:
''
,
webUrl
:
''
,
from
:
''
,
}
}
},
},
onLoad
(
e
)
{
onLoad
(
e
)
{
...
...
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