From 52052ad3a18f1365b6feeb47b4673249bf368aad Mon Sep 17 00:00:00 2001 From: From-wh Date: Thu, 8 Jun 2023 18:15:18 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=B0=8F=E7=A8=8B=E5=BA=8F=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC=E9=93=BE=E6=8E=A5=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/linkaddress/index.vue | 57 ++++++++++++------- 1 file changed, 38 insertions(+), 19 deletions(-) diff --git a/template/admin/src/components/linkaddress/index.vue b/template/admin/src/components/linkaddress/index.vue index 79a3532a3..540dcf459 100644 --- a/template/admin/src/components/linkaddress/index.vue +++ b/template/admin/src/components/linkaddress/index.vue @@ -250,31 +250,38 @@
-
+ - + +
+ + + + 普通链接 + + + + 跳转其他小程序 + + +
+ + + + + + + +
- - - - - - - - - - - - - -
@@ -403,8 +410,10 @@ export default { categoryId: '', //左侧分类id treeSelect: [], customdate: { - // name:'', url: '', + appid: '', + mpUrl: '', + status: 1, }, customNum: 1, ruleValidate: { @@ -493,7 +502,13 @@ export default { handleSubmit(name) { this.$refs[name].validate((valid) => { if (valid) { - this.$emit('linkUrl', this.customdate.url); + let url = this.customdate.url; + if (this.customdate.status == 1) { + url = this.customdate.url; + } else { + url = this.customdate.mpUrl + '@APPID=' + this.customdate.appid; + } + this.$emit('linkUrl', url); this.modals = false; this.reset(); // saveLink(this.customdate,this.categoryId).then(res=>{ @@ -838,7 +853,11 @@ export default { min-width: 121px; } } - +.radioGroup{ + /deep/.ivu-radio-wrapper{ + margin-right 30px; + } +} .table_box { margin-top: 14px; display: flex;