diff --git a/common.js b/common.js index ae5bb28..dcff164 100644 --- a/common.js +++ b/common.js @@ -115,6 +115,12 @@ let urlConfig = { zx: "https://cs.hebnx.com:10022/xcx/ifs/edxd", sc: "https://sdc.hebnx.com:443/xcx/ifs/edxd" } +// 图片加载 +let urlConfigImage = { + kf: "http://124.239.130.105:10021/xcx_kf", + zx: "https://cs.hebnx.com:10022/xcx", + sc: "https://sdc.hebnx.com:443/xcx" +} // 出售计划请求类 function initRequest(commonHeader,modeEvn,publicKey,PRIVATE_KEY) { let request = axios.create({ diff --git a/components/customerHeader/customerHeader.js b/components/customerHeader/customerHeader.js index bed88c5..db1791f 100644 --- a/components/customerHeader/customerHeader.js +++ b/components/customerHeader/customerHeader.js @@ -23,17 +23,17 @@ Vue.component('customer-header', {
- - - - - + + + + +
`, - props: ['cusinfo', 'tags', 'statusText'], // html接收字段名都是小写,单向传递 + props: ['cusinfo', 'tags', 'statusText','urlConfigImage','modeEvn'], // html接收字段名都是小写,单向传递 data() { return { imgUrl: '', @@ -47,7 +47,10 @@ Vue.component('customer-header', { } }, created(){ - console.log('---cusinfo-', this.statusText) + console.log('---cusinfo1-', this.urlConfigImage) + console.log('---modeEvn-', this.modeEvn) + console.log('-------34353---',this.urlConfigImage[this.modeEvn]) + this.imgUrl = this.urlConfigImage[this.modeEvn] }, methods: { // 组件内方法 diff --git a/index.html b/index.html index 6ae4bec..d3a947d 100644 --- a/index.html +++ b/index.html @@ -31,7 +31,7 @@
- + @@ -93,9 +93,14 @@ cusFlag: false, cusinfo: {}, tags: [], - statusText: '' + statusText: '', + urlConfigImage: '', + modeEvn: '' }, async created() { + this.urlConfigImage = urlConfigImage + this.modeEvn = urlParams.modeEvn + console.log('----this.modeEvn-----',this.modeEvn) console.log('---------userInfo----', urlParams) console.log('---------userInfo----', urlParams.sessionData) this.cusFlag = urlParams.sessionData.cusFlag ? true : false