Commit f1ebcc8e authored by 李俊赕's avatar 李俊赕

add-web

parent f3366d32
...@@ -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,
......
...@@ -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
} }
...@@ -71,6 +71,12 @@ ...@@ -71,6 +71,12 @@
"navigationBarTitleText": "签约页面" "navigationBarTitleText": "签约页面"
} }
},{
"path": "pages/settle/web",
"style": {
"navigationBarTitleText": "签约页面"
}
}, },
{ {
"path": "pages/index/index", "path": "pages/index/index",
......
...@@ -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>
......
<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>
...@@ -9,7 +9,6 @@ ...@@ -9,7 +9,6 @@
data() { data() {
return { return {
webUrl:'', webUrl:'',
from:'',
} }
}, },
onLoad(e) { onLoad(e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment