diff --git a/src/components/common/url-value/link-articles.vue b/src/components/common/url-value/link-articles.vue
index d108ec29..a024d37b 100644
--- a/src/components/common/url-value/link-articles.vue
+++ b/src/components/common/url-value/link-articles.vue
@@ -117,10 +117,11 @@ const row_click = (row: any) => {
const new_table_data = JSON.parse(JSON.stringify(tableData.value));
template_selection.value = new_table_data.findIndex((item: pageLinkList) => item.id == row.id).toString();
if (props.selectIsUrl) {
+ const page = '/pages/article-detail/article-detail?id=' + row.id;
const new_row = {
id: row.id,
- name: row.name,
- page: '/pages/article-detail/article-detail?id=' + row.id,
+ name: row.name || row.title || page,
+ page: page,
};
modelValue.value = [new_row];
} else {
@@ -132,10 +133,11 @@ const handle_select = (selection: any) => {
if (props.selectIsUrl) {
// 遍历数组selection
const new_selection = selection.map((item: any) => {
+ const page = '/pages/article-detail/article-detail?id=' + item.id;
return {
id: item.id,
- name: item.name,
- page: '/pages/article-detail/article-detail?id=' + item.id,
+ name: item.name || item.title || page,
+ page: page,
};
});
modelValue.value = new_selection;
diff --git a/src/components/common/url-value/link-brand.vue b/src/components/common/url-value/link-brand.vue
index 30de36f0..fe07c748 100644
--- a/src/components/common/url-value/link-brand.vue
+++ b/src/components/common/url-value/link-brand.vue
@@ -122,10 +122,11 @@ const row_click = (row: any) => {
const new_table_data = JSON.parse(JSON.stringify(tableData.value));
template_selection.value = new_table_data.findIndex((item: pageLinkList) => item.id == row.id).toString();
if (props.selectIsUrl) {
+ const page = '/pages/goods-search/goods-search?brand=' + row.id;
const new_row = {
id: row.id,
- name: row.name,
- page: '/pages/goods-search/goods-search?brand=' + row.id,
+ name: row.name || row.title || page,
+ page: page,
};
modelValue.value = [new_row];
} else {
@@ -137,10 +138,11 @@ const handle_select = (selection: any) => {
if (props.selectIsUrl) {
// 遍历数组selection
const new_selection = selection.map((item: any) => {
+ const page = '/pages/goods-search/goods-search?brand=' + item.id;
return {
id: item.id,
- name: item.name,
- page: '/pages/goods-search/goods-search?brand=' + item.id,
+ name: item.name || item.title || page,
+ page: page,
};
});
modelValue.value = new_selection;
diff --git a/src/components/common/url-value/link-custom.vue b/src/components/common/url-value/link-custom.vue
index 7d625de0..25bf63fa 100644
--- a/src/components/common/url-value/link-custom.vue
+++ b/src/components/common/url-value/link-custom.vue
@@ -12,25 +12,25 @@
WEB端
1. 以http开头
2. 如小程序中使用WEB页面、需要在小程序后台加入白名单
-内部页面(小程序/APP内部地址)
1. 小程序以/pages开始
2. 例如:/pages/user/user、支持带参数 ?x=xx
3. 示例:/pages/goods-detail/goods-detail?id=1
-打开外部小程序
1. 以appid://开头
2. 例如:appid://wx88888888|path
3. 示例:appid://wx88888888|/pages/goods-detail/goods-detail?id=1
-打开外部小程序链接
1. 以shortlink://开头
2. 例如:shortlink://链接可以通过【小程序菜单】->【复制链接】获取。
3. 示例:shortlink://#小程序://ShopXO系统/WxblCyRUmDqGpcz
-拨打电话
1. 以tel://开头
2. 例如:tel://wx13222222222
-跳转原生地图查看指定位置
+跳转原生地图查看指定位置
1. 以map://开头
2. 例如:map://名称|地址|经度|纬度
3. 示例:map://ShopXO|上海浦东新区张江高科技园区XXX号|121.626444|31.20843
@@ -232,15 +232,15 @@ const reset_data = () => { } } .tips { - h4, - h5 { - margin-bottom: 1rem; - color: #666; - } p { - padding-left: 2rem; + padding-left: 4rem; color: #666; font-size: 1.2rem; + &.title { + margin: 1rem 0; + color: #333; + padding-left: 2rem; + } } } diff --git a/src/components/common/url-value/link-goods-category.vue b/src/components/common/url-value/link-goods-category.vue index fff83348..18b23558 100644 --- a/src/components/common/url-value/link-goods-category.vue +++ b/src/components/common/url-value/link-goods-category.vue @@ -126,10 +126,11 @@ const row_click = (row: any) => { const new_table_datas = array_conversion(JSON.parse(JSON.stringify(new_table_data.value))); template_selection.value = new_table_datas.findIndex((item: pageLinkList) => item.id == row.id).toString(); if (props.selectIsUrl) { + const page = '/pages/goods-search/goods-search?category_id=' + row.id; const new_row = { id: row.id, - name: row.name, - page: '/pages/goods-search/goods-search?category_id=' + row.id, + name: row.name || row.title || page, + page: page, }; modelValue.value = [new_row]; } else { diff --git a/src/components/common/url-value/link-goods.vue b/src/components/common/url-value/link-goods.vue index 0b387f0e..3d606546 100644 --- a/src/components/common/url-value/link-goods.vue +++ b/src/components/common/url-value/link-goods.vue @@ -132,10 +132,11 @@ const row_click = (row: any) => { const new_table_data = JSON.parse(JSON.stringify(tableData.value)); template_selection.value = new_table_data.findIndex((item: pageLinkList) => item.id == row.id).toString(); if (props.selectIsUrl) { + const page = '/pages/goods-detail/goods-detail?id=' + row.id; const new_row = { id: row.id, - name: row.name, - page: '/pages/goods-detail/goods-detail?id=' + row.id, + name: row.name || row.title || page, + page: page, }; modelValue.value = [new_row]; } else { @@ -147,10 +148,11 @@ const handle_select = (selection: any) => { if (props.selectIsUrl) { // 遍历数组selection const new_selection = selection.map((item: any) => { + const page = '/pages/goods-detail/goods-detail?id=' + item.id; return { id: item.id, - name: item.name, - page: '/pages/goods-detail/goods-detail?id=' + item.id, + name: item.name || item.title || page, + page: page, }; }); modelValue.value = new_selection; diff --git a/src/components/common/url-value/link-table.vue b/src/components/common/url-value/link-table.vue index 220edea2..80572188 100644 --- a/src/components/common/url-value/link-table.vue +++ b/src/components/common/url-value/link-table.vue @@ -133,10 +133,11 @@ const row_click = (row: any) => { const new_table_data = JSON.parse(JSON.stringify(tableData.value)); template_selection.value = new_table_data.findIndex((item: pageLinkList) => item.id == row.id).toString(); if (props.selectIsUrl) { + const page = computer_link.value + row.id; const new_row = { id: row.id, - name: row.name, - page: computer_link.value + row.id, + name: row.name || row.title || page, + page: page, }; modelValue.value = [new_row]; } else { @@ -148,10 +149,11 @@ const handle_select = (selection: any) => { if (props.selectIsUrl) { // 遍历数组selection const new_selection = selection.map((item: any) => { + const page = computer_link.value + item.id; return { id: item.id, - name: item.name, - page: computer_link.value + item.id, + name: item.name || item.title || page, + page: page, }; }); modelValue.value = new_selection; diff --git a/src/components/model-search/model-search-content.vue b/src/components/model-search/model-search-content.vue index b088cfcc..bfe821d4 100644 --- a/src/components/model-search/model-search-content.vue +++ b/src/components/model-search/model-search-content.vue @@ -3,12 +3,12 @@