Commit 70dfa281 by zhangquan

补充广汇滴加路径之分

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