Commit 70dfa281 by zhangquan

补充广汇滴加路径之分

1 parent e1e35300
...@@ -56,23 +56,36 @@ const MINI = [ ...@@ -56,23 +56,36 @@ const MINI = [
const MINIPAGELIST = [ const MINIPAGELIST = [
{ {
confId: 'pages/tab/index/index', confId: 'pages/tab/index/index',
confName: '首页' djConfId: 'pages/tab/shopMall/index',
confName: '首页',
pageType: 1,
params:'tabIndex=0'
}, },
{ {
confId: 'pages/tab/equity/equity', confId: 'pages/tab/equity/equity',
confName: '权益首页' djConfId: 'pages/tab/shopMall/index',
confName: '权益首页',
pageType: 1,
params:'tabIndex=1'
}, },
{ {
confId: 'pages/tab/mall/mall', confId: 'pages/tab/mall/mall',
confName: '商城首页' djConfId: 'pages/tab/shopMall/index',
confName: '商城首页',
pageType: 1,
params:'tabIndex=2'
}, },
{ {
confId: 'packageEquity/pages/freecard/freecard', confId: 'packageEquity/pages/freecard/freecard',
confName: '试用会员领取页' djConfId: 'packageShopmall/packageEquity/pages/freecard/freecard',
confName: '试用会员领取页',
params:''
}, },
{ {
confId: 'packageEquity/pages/reviceVip/reviceVip', confId: 'packageEquity/pages/reviceVip/reviceVip',
confName: '无忧会员领取页' djConfId: 'packageShopmall/packageEquity/pages/reviceVip/reviceVip',
confName: '无忧会员领取页',
params:''
} }
] ]
const cloneText = message => { const cloneText = message => {
...@@ -132,7 +145,14 @@ export default { ...@@ -132,7 +145,14 @@ export default {
label: '小程序页面路径', label: '小程序页面路径',
name: 'path', name: 'path',
type: 'input', type: 'input',
isClear: true isClear: true,
inputBlur:(e)=>{
let target = MINIPAGELIST.find(item => (item.confId==this.editForm.path && item.pageType==1))
const href = window.location.host
this.editForm.query = (target && href.indexOf('cgacar') == -1) ? target.params : ''
const queryTarget = this.editFormDataPro.find(item => item.name==='query')
queryTarget.isDisabled = target && href.indexOf('cgacar') == -1
}
}, },
{ {
label: '', label: '',
...@@ -150,7 +170,7 @@ export default { ...@@ -150,7 +170,7 @@ export default {
name: 'query', name: 'query',
type: 'input', type: 'input',
isClear: true, isClear: true,
placeholder: '如:name=vendor&color=black' placeholder: '如:name=vendor&color=black',
}, },
{ {
label: '', label: '',
...@@ -173,7 +193,12 @@ export default { ...@@ -173,7 +193,12 @@ export default {
this.resetShortLink() this.resetShortLink()
} }
}, },
mounted() {}, created(){
// const href = window.location.host
// this.tipList = href.indexOf('cgacar') != -1 ? [...MINIPAGELIST] : [...DJMINIPAGELIST]
},
mounted() {
},
methods: { methods: {
// 重置页面 // 重置页面
...@@ -217,11 +242,14 @@ export default { ...@@ -217,11 +242,14 @@ export default {
// if (storeCode) { // if (storeCode) {
// base_info = `${base_info}&storeCode=${storeCode}` // base_info = `${base_info}&storeCode=${storeCode}`
// } // }
let target = MINIPAGELIST.find(item => (item.confId==this.editForm.path && item.pageType==1))
const href = window.location.host
let otherPath = (target && href.indexOf('cgacar') == -1) ? target.djConfId : path
const params = { const params = {
envVersion: ENVVersion[env - 1], envVersion: ENVVersion[env - 1],
appId: miniPrograme, appId: miniPrograme,
param: `${base_info}${query ? '&' : ''}${query}`, param: `${base_info}${query ? '&' : ''}${query}`,
path, path: otherPath,
merchantId merchantId
} }
this.$apis.orderApi.getShortLinkUUID(params).then(res=>{ this.$apis.orderApi.getShortLinkUUID(params).then(res=>{
...@@ -282,7 +310,7 @@ export default { ...@@ -282,7 +310,7 @@ export default {
box-sizing: border-box; box-sizing: border-box;
padding: 10px 20px; padding: 10px 20px;
margin: 10px 0 0px 0; margin: 10px 0 0px 0;
display: flex; // display: flex;
.left, .left,
.right_page_title { .right_page_title {
font-weight: 400; font-weight: 400;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!