Commit a64bb0fa094fd1ea52d4749614f5ff8d2687465c
'最新'
Showing
5 changed files
with
21 additions
and
10 deletions
lvdao-miniapp/main.js
| @@ -8,13 +8,13 @@ import uView from "uview-ui"; | @@ -8,13 +8,13 @@ import uView from "uview-ui"; | ||
| 8 | import DialogBox from './components/DialogBox/DialogBox'; | 8 | import DialogBox from './components/DialogBox/DialogBox'; |
| 9 | // let hostall = window.location.href; | 9 | // let hostall = window.location.href; |
| 10 | // let c1 = hostall.split('cdwlMall')[0]; | 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 | Vue.config.productionTip = false | 13 | Vue.config.productionTip = false |
| 14 | Vue.prototype.$http = http | 14 | Vue.prototype.$http = http |
| 15 | Vue.prototype.$imgUrl = (url) => { | 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 | Vue.prototype.$img = c1+ 'cdwlMall' | 19 | Vue.prototype.$img = c1+ 'cdwlMall' |
| 20 | // Vue.prototype.$upload = "https://zhld.028wlkj.com:49008/cdwlMall/admin-server/miniio/upload" | 20 | // Vue.prototype.$upload = "https://zhld.028wlkj.com:49008/cdwlMall/admin-server/miniio/upload" |
lvdao-miniapp/pages.json
| @@ -408,7 +408,8 @@ | @@ -408,7 +408,8 @@ | ||
| 408 | "subpackages": [{ | 408 | "subpackages": [{ |
| 409 | "root": "pagesA", | 409 | "root": "pagesA", |
| 410 | "name": "pagesA", | 410 | "name": "pagesA", |
| 411 | - "pages": [{ | 411 | + "pages": [ |
| 412 | + { | ||
| 412 | "path": "payweb/payweb", | 413 | "path": "payweb/payweb", |
| 413 | "style": { | 414 | "style": { |
| 414 | "navigationBarBackgroundColor": "#FFFFFF", | 415 | "navigationBarBackgroundColor": "#FFFFFF", |
lvdao-miniapp/pages/propertyPay/propertyPayList/propertyPayList.vue
| @@ -344,7 +344,12 @@ | @@ -344,7 +344,12 @@ | ||
| 344 | } | 344 | } |
| 345 | console.log(info) | 345 | console.log(info) |
| 346 | this.$http.sendRequest('/cerePaymentInfo/payWy', 'POST',info, 1).then(res => { | 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 | return | 354 | return |
| 350 | // this.loadShow = true | 355 | // this.loadShow = true |
lvdao-miniapp/pagesA/payweb/payweb.vue
| 1 | <template> | 1 | <template> |
| 2 | <view> | 2 | <view> |
| 3 | - | 3 | + <web-view :src="url"></web-view> |
| 4 | </view> | 4 | </view> |
| 5 | </template> | 5 | </template> |
| 6 | 6 | ||
| @@ -8,9 +8,14 @@ | @@ -8,9 +8,14 @@ | ||
| 8 | export default { | 8 | export default { |
| 9 | data() { | 9 | data() { |
| 10 | return { | 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 | methods: { | 19 | methods: { |
| 15 | 20 | ||
| 16 | } | 21 | } |
lvdao-miniapp/utils/request.js
| 1 | 1 | ||
| 2 | // let hostall = window.location.href; | 2 | // let hostall = window.location.href; |
| 3 | // let c1 = hostall.split('cdwlMall')[0]; | 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 | //封装request请求 | 6 | //封装request请求 |
| 7 | const sendRequest = (url, method = 'GET', data = {}, baseUrl,contentType) => { | 7 | const sendRequest = (url, method = 'GET', data = {}, baseUrl,contentType) => { |
| 8 | //判断header提交数据类型 | 8 | //判断header提交数据类型 |