Commit ef0c66429a4860759d50c5f0f80e89a1fdb41221
1 parent
9d4471c1
1
Showing
5 changed files
with
22 additions
and
12 deletions
lvdao-miniapp/main.js
| ... | ... | @@ -8,13 +8,13 @@ import uView from "uview-ui"; |
| 8 | 8 | import DialogBox from './components/DialogBox/DialogBox'; |
| 9 | 9 | // let hostall = window.location.href; |
| 10 | 10 | // let c1 = hostall.split('cdwlMall')[0]; |
| 11 | -let c1 = 'https://jy.scjysm.asia:18086/' | |
| 12 | -// let c1 = 'https://zhgw-uat.028wlkj.com/' | |
| 11 | +// let c1 = 'https://jy.scjysm.asia:18086/' | |
| 12 | +let c1 = 'https://zhgw-uat.028wlkj.com/' | |
| 13 | 13 | Vue.config.productionTip = false |
| 14 | 14 | Vue.prototype.$http = http |
| 15 | 15 | Vue.prototype.$imgUrl = (url) => { |
| 16 | - return (c1 + "cdwlMall/questionnaire/file/static" + url); | |
| 17 | - // return (c1 + "cdwlMall/zsfwzxt/test/file/static" + url); | |
| 16 | + // return (c1 + "cdwlMall/questionnaire/file/static" + url); | |
| 17 | + return (c1 + "cdwlMall/zsfwzxt/test/file/static" + url); | |
| 18 | 18 | } |
| 19 | 19 | Vue.prototype.$img = c1+ 'cdwlMall' |
| 20 | 20 | // Vue.prototype.$upload = "https://zhld.028wlkj.com:49008/cdwlMall/admin-server/miniio/upload" | ... | ... |
lvdao-miniapp/pages.json
lvdao-miniapp/pages/propertyPay/propertyPayList/propertyPayList.vue
| ... | ... | @@ -344,7 +344,12 @@ |
| 344 | 344 | } |
| 345 | 345 | console.log(info) |
| 346 | 346 | this.$http.sendRequest('/cerePaymentInfo/payWy', 'POST',info, 1).then(res => { |
| 347 | - console.error(res) | |
| 347 | + console.error(res.data) | |
| 348 | + if(res.data.code =='200') { | |
| 349 | + uni.navigateTo({ | |
| 350 | + url:'/pagesA/payweb/payweb?url='+escape(res.data.data) | |
| 351 | + }) | |
| 352 | + } | |
| 348 | 353 | }) |
| 349 | 354 | return |
| 350 | 355 | // this.loadShow = true | ... | ... |
lvdao-miniapp/pagesA/payweb/payweb.vue
| 1 | 1 | <template> |
| 2 | 2 | <view> |
| 3 | - | |
| 3 | + <web-view :src="url"></web-view> | |
| 4 | 4 | </view> |
| 5 | 5 | </template> |
| 6 | 6 | |
| ... | ... | @@ -8,9 +8,14 @@ |
| 8 | 8 | export default { |
| 9 | 9 | data() { |
| 10 | 10 | return { |
| 11 | - | |
| 11 | + url:'' | |
| 12 | 12 | } |
| 13 | 13 | }, |
| 14 | + onLoad(e) { | |
| 15 | + console.error(e.url) | |
| 16 | + this.url = unescape(e.url) | |
| 17 | + console.error(this.url) | |
| 18 | + }, | |
| 14 | 19 | methods: { |
| 15 | 20 | |
| 16 | 21 | } | ... | ... |
lvdao-miniapp/utils/request.js
| 1 | 1 | |
| 2 | 2 | // let hostall = window.location.href; |
| 3 | 3 | // let c1 = hostall.split('cdwlMall')[0]; |
| 4 | -let c1 = 'https://jy.scjysm.asia:18086/' | |
| 5 | -// let c1 = 'https://zhgw-uat.028wlkj.com/' | |
| 4 | +// let c1 = 'https://jy.scjysm.asia:18086/' | |
| 5 | +let c1 = 'https://zhgw-uat.028wlkj.com/' | |
| 6 | 6 | //封装request请求 |
| 7 | 7 | const sendRequest = (url, method = 'GET', data = {}, baseUrl,contentType) => { |
| 8 | 8 | //判断header提交数据类型 |
| ... | ... | @@ -21,10 +21,10 @@ const sendRequest = (url, method = 'GET', data = {}, baseUrl,contentType) => { |
| 21 | 21 | // bases = 'https://zhgw.028wlkj.com:20443/cdwlMall/meserver/admin-server' + url; |
| 22 | 22 | // bases = 'https://jy.scjysm.asia:18086/cdwlMall/meserver/admin-server' + url; |
| 23 | 23 | |
| 24 | - bases = 'http://128.10.249.18:9003/'+ url; | |
| 24 | + // bases = 'http://128.10.249.18:9003/'+ url; | |
| 25 | 25 | // bases = 'https://zhld.028wlkj.com:49008/cdwlMall/admin-server' + url; |
| 26 | 26 | |
| 27 | - // bases = c1 + 'cdwlMall/meserver/admin-server' + url; | |
| 27 | + bases = c1 + 'cdwlMall/meserver/admin-server' + url; | |
| 28 | 28 | |
| 29 | 29 | }else if(baseUrl == 3){ |
| 30 | 30 | // bases = 'https://jy.scjysm.asia:18086/cdwlMall/meserver/api' + url; | ... | ... |