Commit ef0c66429a4860759d50c5f0f80e89a1fdb41221

Authored by wesley88
1 parent 9d4471c1

1

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
@@ -396,7 +396,7 @@ @@ -396,7 +396,7 @@
396 "name": "pagesA", 396 "name": "pagesA",
397 "pages": [ 397 "pages": [
398 { 398 {
399 - "path": "/payweb/payweb", 399 + "path": "payweb/payweb",
400 "style": { 400 "style": {
401 "navigationBarBackgroundColor": "#FFFFFF", 401 "navigationBarBackgroundColor": "#FFFFFF",
402 "navigationBarTitleText": "" 402 "navigationBarTitleText": ""
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提交数据类型
@@ -21,10 +21,10 @@ const sendRequest = (url, method = &#39;GET&#39;, data = {}, baseUrl,contentType) =&gt; { @@ -21,10 +21,10 @@ const sendRequest = (url, method = &#39;GET&#39;, data = {}, baseUrl,contentType) =&gt; {
21 // bases = 'https://zhgw.028wlkj.com:20443/cdwlMall/meserver/admin-server' + url; 21 // bases = 'https://zhgw.028wlkj.com:20443/cdwlMall/meserver/admin-server' + url;
22 // bases = 'https://jy.scjysm.asia:18086/cdwlMall/meserver/admin-server' + url; 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 // bases = 'https://zhld.028wlkj.com:49008/cdwlMall/admin-server' + url; 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 }else if(baseUrl == 3){ 29 }else if(baseUrl == 3){
30 // bases = 'https://jy.scjysm.asia:18086/cdwlMall/meserver/api' + url; 30 // bases = 'https://jy.scjysm.asia:18086/cdwlMall/meserver/api' + url;