【新增】后台页面设计【导航组件】增加跳转到其他小程序的下拉设置。

This commit is contained in:
jianweie code
2024-06-20 21:22:03 +08:00
parent 79e15fdeb1
commit f4d0d610cb
4 changed files with 21 additions and 4 deletions

View File

@@ -652,6 +652,7 @@ Vue.component('select-link', {
changeSelect: function () {
this.$emit('update:type', this.selectType)
this.$emit("update:id", '')
this.$emit("update:linkUrl", '')
},
updateLinkValue: function () {
this.$emit("update:id", this.linkUrl)
@@ -866,7 +867,7 @@ Vue.component('layout-config', {
coreHelper.Post(getDesign, { id: id }, function (e) {
if (e.code === 0) {
//console.log(e);
linkType = { "1": "URL链接", "2": "商品", "6": "商品分类", "3": "文章", "4": "文章分类", "5": "智能表单" };
linkType = { "1": "URL链接", "2": "商品", "6": "商品分类", "3": "文章", "4": "文章分类", "5": "智能表单", "7": "小程序AppId" };
that.pageCode = e.data.model.code;
that.brandList = e.data.brandList;
that.pageConfig = e.data.pageConfig;

View File

@@ -1218,8 +1218,7 @@
</el-form-item>
<el-form-item label="链接指向:">
<div v-if="selectType==1">
<el-input type="textarea" autosize placeholder="http开头为webview跳转其他为站内页面跳转" v-model="linkUrl"
@change="updateLinkValue"></el-input>
<el-input type="textarea" autosize placeholder="http开头为webview跳转其他为站内页面跳转" v-model="linkUrl" @change="updateLinkValue"></el-input>
</div>
<div v-if="selectType==2">
<input type="text" v-model="id" class="selectLinkVal" :readonly="true" @click="selectLink" placeholder="请选择">
@@ -1240,6 +1239,9 @@
<div v-if="selectType==6">
<input type="text" v-model="id" class="selectLinkVal" :readonly="true" @click="selectLink" placeholder="请选择">
</div>
<div v-if="selectType==7">
<el-input type="textarea" autosize placeholder="请填写小程序的appId" v-model="linkUrl" @change="updateLinkValue"></el-input>
</div>
</el-form-item>
</div>
</template>