فهرست منبع

新增:页面设计H5外部链接支持微信小程序

萤火科技 1 سال پیش
والد
کامیت
2a3912585d
2فایلهای تغییر یافته به همراه5 افزوده شده و 3 حذف شده
  1. 2 2
      src/common/model/Links.js
  2. 3 1
      src/components/Modal/LinkModal/LinkModal.vue

+ 2 - 2
src/common/model/Links.js

@@ -326,14 +326,14 @@ const other = {
       id: '4e99fde',
       title: 'H5外部链接',
       type: LINK_TYPE_URL,
-      alert: '仅支持在H5端和APP端跳转链接,不支持小程序端',
+      alert: '微信小程序端需配置业务域名才可以访问 <a href="https://developers.weixin.qq.com/miniprogram/dev/framework/ability/domain.html" target="_blank">查看文档</a>',
       param: { url: '' },
       form: [
         {
           key: 'url',
           lable: '链接地址',
           required: true,
-          tips: '请输入以https://或http://开头的链接'
+          tips: '请输入以 https:// 或 http:// 开头的链接'
         }
       ]
     },

+ 3 - 1
src/components/Modal/LinkModal/LinkModal.vue

@@ -36,7 +36,9 @@
         :wrapStyle="{ position: 'absolute' }"
         @close="onCloseDrawer"
       >
-        <a-alert class="alert" v-if="curItem && curItem.alert" :message="curItem.alert" banner />
+        <a-alert class="alert" v-if="curItem && curItem.alert" banner>
+          <span slot="message" v-html="curItem.alert"></span>
+        </a-alert>
         <a-form v-if="drawer.visible" :form="form">
           <a-form-item
             v-for="(item, index) in curItem.form"