jufubao-base 1.0.119-beta2 → 1.0.119
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +1 -1
- package/src/components/JfbBaseConFlashHome/Api.js +0 -60
- package/src/components/JfbBaseConFlashHome/Attr.js +0 -129
- package/src/components/JfbBaseConFlashHome/JfbBaseConFlashHome.vue +0 -388
- package/src/components/JfbBaseConFlashHome/JfbBaseConFlashHomeLess.less +0 -80
- package/src/components/JfbBaseConFlashHome/JfbBaseConFlashHomeMixin.js +0 -30
- package/src/components/JfbBaseConFlashHome/Mock.js +0 -5
- package/src/components/JfbBaseConFlashList/Api.js +0 -60
- package/src/components/JfbBaseConFlashList/Attr.js +0 -117
- package/src/components/JfbBaseConFlashList/JfbBaseConFlashList.vue +0 -656
- package/src/components/JfbBaseConFlashList/JfbBaseConFlashListLess.less +0 -80
- package/src/components/JfbBaseConFlashList/JfbBaseConFlashListMixin.js +0 -30
- package/src/components/JfbBaseConFlashList/Mock.js +0 -5
- package/src/components/JfbBaseConPhone/Api.js +0 -70
- package/src/components/JfbBaseConPhone/Attr.js +0 -10
- package/src/components/JfbBaseConPhone/JfbBaseConPhone.vue +0 -486
- package/src/components/JfbBaseConPhone/JfbBaseConPhoneLess.less +0 -80
- package/src/components/JfbBaseConPhone/JfbBaseConPhoneMixin.js +0 -30
- package/src/components/JfbBaseConPhone/Mock.js +0 -26
- package/src/components/JfbBaseSaasBlessDetail/Api.js +0 -59
- package/src/components/JfbBaseSaasBlessDetail/Attr.js +0 -24
- package/src/components/JfbBaseSaasBlessDetail/JfbBaseSaasBlessDetail.vue +0 -315
- package/src/components/JfbBaseSaasBlessDetail/JfbBaseSaasBlessDetailLess.less +0 -80
- package/src/components/JfbBaseSaasBlessDetail/JfbBaseSaasBlessDetailMixin.js +0 -30
- package/src/components/JfbBaseSaasBlessDetail/Mock.js +0 -5
- package/src/components/JfbBaseSaasBlessDialog/Api.js +0 -25
- package/src/components/JfbBaseSaasBlessDialog/Attr.js +0 -50
- package/src/components/JfbBaseSaasBlessDialog/JfbBaseSaasBlessDialog.vue +0 -274
- package/src/components/JfbBaseSaasBlessDialog/JfbBaseSaasBlessDialogLess.less +0 -80
- package/src/components/JfbBaseSaasBlessDialog/JfbBaseSaasBlessDialogMixin.js +0 -30
- package/src/components/JfbBaseSaasBlessDialog/Mock.js +0 -5
- package/src/components/JfbBaseSaasBlessReceive/Api.js +0 -25
- package/src/components/JfbBaseSaasBlessReceive/Attr.js +0 -24
- package/src/components/JfbBaseSaasBlessReceive/JfbBaseSaasBlessReceive.vue +0 -183
- package/src/components/JfbBaseSaasBlessReceive/JfbBaseSaasBlessReceiveLess.less +0 -80
- package/src/components/JfbBaseSaasBlessReceive/JfbBaseSaasBlessReceiveMixin.js +0 -30
- package/src/components/JfbBaseSaasBlessReceive/Mock.js +0 -5
- package/src/components/JfbBaseSaasHome/Api.js +0 -48
- package/src/components/JfbBaseSaasHome/Attr.js +0 -35
- package/src/components/JfbBaseSaasHome/JfbBaseSaasHome.vue +0 -356
- package/src/components/JfbBaseSaasHome/JfbBaseSaasHomeLess.less +0 -80
- package/src/components/JfbBaseSaasHome/JfbBaseSaasHomeMixin.js +0 -30
- package/src/components/JfbBaseSaasHome/Mock.js +0 -5
- package/src/components/JfbBaseSaasLogin/Api.js +0 -39
- package/src/components/JfbBaseSaasLogin/Attr.js +0 -37
- package/src/components/JfbBaseSaasLogin/JfbBaseSaasLogin.vue +0 -410
- package/src/components/JfbBaseSaasLogin/JfbBaseSaasLoginLess.less +0 -80
- package/src/components/JfbBaseSaasLogin/JfbBaseSaasLoginMixin.js +0 -30
- package/src/components/JfbBaseSaasLogin/Mock.js +0 -5
- package/src/components/JfbBaseSaasNewsDetail/Api.js +0 -27
- package/src/components/JfbBaseSaasNewsDetail/Attr.js +0 -14
- package/src/components/JfbBaseSaasNewsDetail/JfbBaseSaasNewsDetail.vue +0 -144
- package/src/components/JfbBaseSaasNewsDetail/JfbBaseSaasNewsDetailLess.less +0 -80
- package/src/components/JfbBaseSaasNewsDetail/JfbBaseSaasNewsDetailMixin.js +0 -30
- package/src/components/JfbBaseSaasNewsDetail/Mock.js +0 -5
- package/src/components/JfbBaseSaasNewsList/Api.js +0 -26
- package/src/components/JfbBaseSaasNewsList/Attr.js +0 -24
- package/src/components/JfbBaseSaasNewsList/JfbBaseSaasNewsList.vue +0 -181
- package/src/components/JfbBaseSaasNewsList/JfbBaseSaasNewsListLess.less +0 -80
- package/src/components/JfbBaseSaasNewsList/JfbBaseSaasNewsListMixin.js +0 -30
- package/src/components/JfbBaseSaasNewsList/Mock.js +0 -5
- package/src/components/JfbBaseSassPhoneCollect/Api.js +0 -39
- package/src/components/JfbBaseSassPhoneCollect/Attr.js +0 -438
- package/src/components/JfbBaseSassPhoneCollect/JfbBaseSassPhoneCollect.vue +0 -266
- package/src/components/JfbBaseSassPhoneCollect/JfbBaseSassPhoneCollectLess.less +0 -80
- package/src/components/JfbBaseSassPhoneCollect/JfbBaseSassPhoneCollectMixin.js +0 -30
- package/src/components/JfbBaseSassPhoneCollect/Mock.js +0 -5
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @desc 获取绝对路径完整地址
|
|
3
|
-
* @param @path
|
|
4
|
-
**/
|
|
5
|
-
//例如:https://image.jufubao.cn/20220501010108/image/bg/default_gonghui_bg.png
|
|
6
|
-
@basePath: 'business/';
|
|
7
|
-
@doMain: '//sandbox-img.jufubao.cn/';
|
|
8
|
-
|
|
9
|
-
.getBusinessImageUrl(@path, @size: 'size8') {
|
|
10
|
-
@url: "@{doMain}@{basePath}@{path}?x-oss-process=style/@{size}";
|
|
11
|
-
background-image: url(@url);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
//start
|
|
15
|
-
.jfb-base-saas-bless-receive {
|
|
16
|
-
border: 1px dashed rgba(0, 0, 0, 0);
|
|
17
|
-
box-sizing: border-box;
|
|
18
|
-
min-height: unit(50, rpx);
|
|
19
|
-
|
|
20
|
-
&__body{
|
|
21
|
-
position: relative;
|
|
22
|
-
overflow: hidden;
|
|
23
|
-
z-index: 2
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
&.editx {
|
|
27
|
-
position: relative;
|
|
28
|
-
border: 1px dashed blue;
|
|
29
|
-
box-sizing: border-box;
|
|
30
|
-
z-index: 3
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
&:hover {
|
|
35
|
-
border: 1px dashed blue;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
&.noBorder {
|
|
39
|
-
border-color: rgba(0,0,0,0);
|
|
40
|
-
border-width: 0;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
&__edit {
|
|
45
|
-
cursor: pointer;
|
|
46
|
-
position: absolute;
|
|
47
|
-
right: unit(0, rpx);
|
|
48
|
-
top: unit(-52, rpx);
|
|
49
|
-
height: unit(50, rpx);
|
|
50
|
-
line-height: unit(50, rpx);
|
|
51
|
-
display: flex;
|
|
52
|
-
justify-content: center;
|
|
53
|
-
align-items: center;
|
|
54
|
-
background: rgba(0, 0, 0, .6);
|
|
55
|
-
border-radius: unit(10, rpx);
|
|
56
|
-
box-shadow: 0 0 10px rbga(0, 0, 0, 0.3);
|
|
57
|
-
color: #fff;
|
|
58
|
-
font-size: unit(22, rpx);
|
|
59
|
-
|
|
60
|
-
&-icon{
|
|
61
|
-
padding: 0 unit(20, rpx);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
&.editx {
|
|
65
|
-
box-sizing: border-box;
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
//end
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
/**notPreview**/
|
|
74
|
-
.jfb-base-saas-bless-receive {
|
|
75
|
-
&:before {
|
|
76
|
-
content: " ";
|
|
77
|
-
display: table;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
/**endNotPreview**/
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
//@AttrImport
|
|
5
|
-
import Attr from "./Attr";
|
|
6
|
-
//@EndAttrImport
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export default {
|
|
10
|
-
data() {
|
|
11
|
-
return {
|
|
12
|
-
//#ifdef H5
|
|
13
|
-
|
|
14
|
-
//@AttrData
|
|
15
|
-
Attr:{}, //对外开发编辑属性
|
|
16
|
-
//@EndAttrData
|
|
17
|
-
|
|
18
|
-
// #endif
|
|
19
|
-
cssRoot: 'jfb-base-saas-bless-receive'
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
created() {
|
|
23
|
-
|
|
24
|
-
//@AttrDataCreated
|
|
25
|
-
this.Attr = this.$xdUniHelper.customClone(Attr);
|
|
26
|
-
//@EndAttrDataCreated
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
},
|
|
30
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @description API模型
|
|
5
|
-
* 建议:Ffff=>模块 Xxxx=>自定义名字
|
|
6
|
-
* 获取单记录(getByIdFfffXxxx)
|
|
7
|
-
* 获取列表记录(getByListFfffXxxx)
|
|
8
|
-
* 添加列表记录(addFfffXxxxx)
|
|
9
|
-
* 删除列表记录(removeFfffXxxxx|deleteFfffXxxx)
|
|
10
|
-
* 更新列表记录(updateFfffXxxxx)
|
|
11
|
-
* @type {*[]}
|
|
12
|
-
*/
|
|
13
|
-
module.exports = [
|
|
14
|
-
{
|
|
15
|
-
mapFnName: 'getCompanyList',
|
|
16
|
-
title: '获取公司列表',
|
|
17
|
-
path: '/saas/v1/company/items',
|
|
18
|
-
isRule: false,
|
|
19
|
-
data: {
|
|
20
|
-
phone_number: ['手机号', 'String', '必选'],
|
|
21
|
-
},
|
|
22
|
-
isConsole: true,
|
|
23
|
-
disabled: true,
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
mapFnName: 'getHomeConfig',
|
|
27
|
-
title: '获取首页配置',
|
|
28
|
-
path: '/saas/v1/company_config/item',
|
|
29
|
-
isRule: false,
|
|
30
|
-
params: {
|
|
31
|
-
phone_number: ['手机号', 'String', '必选'],
|
|
32
|
-
},
|
|
33
|
-
isConsole: true,
|
|
34
|
-
disabled: true,
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
mapFnName: 'getNewsList',
|
|
38
|
-
title: '获取新闻列表',
|
|
39
|
-
path: '/saas/v1/content_ad_news/items',
|
|
40
|
-
isRule: false,
|
|
41
|
-
params: {
|
|
42
|
-
position_id: ['位置ID', 'String', '必选'],
|
|
43
|
-
scene: ['场景ad,news', 'String', '必选']
|
|
44
|
-
},
|
|
45
|
-
isConsole: true,
|
|
46
|
-
disabled: true,
|
|
47
|
-
},
|
|
48
|
-
];
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @description 当表单组件中有联动操作时候,使用方法进行返回
|
|
5
|
-
*/
|
|
6
|
-
export default {
|
|
7
|
-
style: [],
|
|
8
|
-
content: (data) => {
|
|
9
|
-
return [
|
|
10
|
-
{
|
|
11
|
-
label: '新闻列表地址:', //label
|
|
12
|
-
ele: 'xd-select-pages-path', //package 名称
|
|
13
|
-
valueKey: 'newsListUrl', //form[valueKey]
|
|
14
|
-
placeholder: '请选择新闻列表地址',
|
|
15
|
-
value: null,
|
|
16
|
-
setting: {
|
|
17
|
-
router: XdBus.getParentApi('getPagesTree'),
|
|
18
|
-
},
|
|
19
|
-
inline: false,
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
label: '新闻详情地址:', //label
|
|
23
|
-
ele: 'xd-select-pages-path', //package 名称
|
|
24
|
-
valueKey: 'newsDetailUrl', //form[valueKey]
|
|
25
|
-
placeholder: '请选择新闻详情地址',
|
|
26
|
-
value: null,
|
|
27
|
-
setting: {
|
|
28
|
-
router: XdBus.getParentApi('getPagesTree'),
|
|
29
|
-
},
|
|
30
|
-
inline: false,
|
|
31
|
-
},
|
|
32
|
-
].filter(i=>i)
|
|
33
|
-
},
|
|
34
|
-
advanced: [],
|
|
35
|
-
};
|
|
@@ -1,356 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<view
|
|
3
|
-
class="jfb-base-saas-home"
|
|
4
|
-
@click="handleEditxSelect"
|
|
5
|
-
:class="{ editx : isEditx && active }"
|
|
6
|
-
>
|
|
7
|
-
<!--#ifdef H5-->
|
|
8
|
-
<view
|
|
9
|
-
class="jfb-base-saas-home__edit"
|
|
10
|
-
:class="{ editx : isEditx && active }"
|
|
11
|
-
v-if="isEditx && active"
|
|
12
|
-
>
|
|
13
|
-
<view class="jfb-base-saas-home__edit-icon" @click="delEdit">删除</view>
|
|
14
|
-
</view>
|
|
15
|
-
<!-- #endif -->
|
|
16
|
-
<view class="jfb-base-saas-home__body">
|
|
17
|
-
<view class="top_wrap">
|
|
18
|
-
<!-- <view class="comp_name">
|
|
19
|
-
<view>企业名称</view>
|
|
20
|
-
<xd-font-icon icon="iconxia_down" :size="24" style="margin-left: 16rpx;"></xd-font-icon>
|
|
21
|
-
</view> -->
|
|
22
|
-
</view>
|
|
23
|
-
<template v-for="(comp, i) in componentList">
|
|
24
|
-
<view class="banner" v-if="comp.container_key === 'banner'" :key="i">
|
|
25
|
-
<swiper class="swiper" circular>
|
|
26
|
-
<swiper-item v-for="(item,i) in bannerList" :key="i">
|
|
27
|
-
<view class="swiper-item" @click="toBannerLink(item)">
|
|
28
|
-
<image :src="item.thumb" />
|
|
29
|
-
</view>
|
|
30
|
-
</swiper-item>
|
|
31
|
-
</swiper>
|
|
32
|
-
</view>
|
|
33
|
-
|
|
34
|
-
<view class="category" v-if="comp.container_key === 'menus'" :key="i">
|
|
35
|
-
<view class="cate_item" v-for="(cate, ii) in comp.config.items" :key="ii">
|
|
36
|
-
<view class="cate_img"><image :src="cate.menu_icon"/></view>
|
|
37
|
-
<view class="cate_name">{{ cate.menu_title }}</view>
|
|
38
|
-
</view>
|
|
39
|
-
</view>
|
|
40
|
-
|
|
41
|
-
<view class="notice" v-if="comp.container_key === 'notice'" :key="i">
|
|
42
|
-
公告:薄如蝉翼的金华火腿,每一口都是时间的味道
|
|
43
|
-
</view>
|
|
44
|
-
|
|
45
|
-
<view class="news_wrap" v-if="comp.container_key === 'news'" :key="i">
|
|
46
|
-
<view class="news_group">
|
|
47
|
-
<view class="group_header">
|
|
48
|
-
<view class="group_title">{{ comp.config.name }}</view>
|
|
49
|
-
<view class="group_more" @click="toNewsList">
|
|
50
|
-
查看更多
|
|
51
|
-
<xd-font-icon icon="iconxiangyou_xian" :size="24" style="margin-left: 16rpx;"></xd-font-icon>
|
|
52
|
-
</view>
|
|
53
|
-
</view>
|
|
54
|
-
<view class="group_body">
|
|
55
|
-
<view class="news_item" v-for="(news, i) in newsList" :key="i" @click="toNewsDetail">
|
|
56
|
-
<view class="news_cont">
|
|
57
|
-
<view class="news_tit">{{ news.title }}</view>
|
|
58
|
-
<view class="news_date">{{ news.created_time }}</view>
|
|
59
|
-
</view>
|
|
60
|
-
<view class="news_img">
|
|
61
|
-
<image :src="news.thumb" />
|
|
62
|
-
</view>
|
|
63
|
-
</view>
|
|
64
|
-
</view>
|
|
65
|
-
</view>
|
|
66
|
-
</view>
|
|
67
|
-
|
|
68
|
-
</template>
|
|
69
|
-
</view>
|
|
70
|
-
</view>
|
|
71
|
-
</template>
|
|
72
|
-
|
|
73
|
-
<script>
|
|
74
|
-
import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
|
|
75
|
-
import { jfbRootExec } from "@/utils/xd.event";
|
|
76
|
-
import JfbBaseSaasHomeMixin from "./JfbBaseSaasHomeMixin";
|
|
77
|
-
import { getContainerPropsValue } from "@/utils/xd.base";
|
|
78
|
-
import componentsMixins from "@/mixins/componentsMixins";
|
|
79
|
-
import extsMixins from "@/mixins/extsMixins";
|
|
80
|
-
import getServiceUrl from "@/common/getServiceUrl";
|
|
81
|
-
export default {
|
|
82
|
-
name: "JfbBaseSaasHome",
|
|
83
|
-
components: {
|
|
84
|
-
XdFontIcon
|
|
85
|
-
},
|
|
86
|
-
mixins: [
|
|
87
|
-
componentsMixins, extsMixins, JfbBaseSaasHomeMixin
|
|
88
|
-
],
|
|
89
|
-
data() {
|
|
90
|
-
return {
|
|
91
|
-
componentList: [], //组件列表
|
|
92
|
-
bannerList: [],
|
|
93
|
-
newsList: [],
|
|
94
|
-
noticeList: [],
|
|
95
|
-
|
|
96
|
-
//面板
|
|
97
|
-
newsListUrl: "", //新闻列表url
|
|
98
|
-
newsDetailUrl: "", //新闻详情url
|
|
99
|
-
}
|
|
100
|
-
},
|
|
101
|
-
watch: {
|
|
102
|
-
container(value) {
|
|
103
|
-
this.init(value)
|
|
104
|
-
}
|
|
105
|
-
},
|
|
106
|
-
created() {
|
|
107
|
-
this.init(this.container);
|
|
108
|
-
|
|
109
|
-
//todo
|
|
110
|
-
},
|
|
111
|
-
methods: {
|
|
112
|
-
onJfbLoad(options) {
|
|
113
|
-
jfbRootExec("getHomeConfig", {
|
|
114
|
-
vm: this,
|
|
115
|
-
data: {}
|
|
116
|
-
}).then(res => {
|
|
117
|
-
let componentList = JSON.parse(res.index_config);
|
|
118
|
-
console.log(componentList);
|
|
119
|
-
this.componentList = componentList.filter(item => item.status === 'Y');
|
|
120
|
-
|
|
121
|
-
this.componentList.forEach((item,i) => {
|
|
122
|
-
switch (item.container_key) {
|
|
123
|
-
case "banner":
|
|
124
|
-
this.p_getNewsList("banner", "ad").then(res => {
|
|
125
|
-
this.bannerList = res.list.map(ban => {
|
|
126
|
-
ban['thumb'] = ban.thumb ? getServiceUrl(ban.thumb) : ""
|
|
127
|
-
return ban;
|
|
128
|
-
});
|
|
129
|
-
})
|
|
130
|
-
break;
|
|
131
|
-
case "news":
|
|
132
|
-
this.p_getNewsList("news", "news").then(res => {
|
|
133
|
-
this.newsList = res.list.map(news => {
|
|
134
|
-
news.created_time = this.$xdUniHelper.getDate(
|
|
135
|
-
news["created_time"] * 1000
|
|
136
|
-
).fullTime;
|
|
137
|
-
news.thumb = news.thumb ? getServiceUrl(news.thumb) : ""
|
|
138
|
-
return news;
|
|
139
|
-
});
|
|
140
|
-
})
|
|
141
|
-
break;
|
|
142
|
-
case "notice":
|
|
143
|
-
this.p_getNewsList("notice", "news").then(res => {
|
|
144
|
-
this.noticeList = res.list;
|
|
145
|
-
})
|
|
146
|
-
break;
|
|
147
|
-
}
|
|
148
|
-
})
|
|
149
|
-
})
|
|
150
|
-
},
|
|
151
|
-
/**
|
|
152
|
-
* @description 监听事件变化
|
|
153
|
-
* @param container {object} 业务组件对象自己
|
|
154
|
-
*/
|
|
155
|
-
init(container) {
|
|
156
|
-
this.newsListUrl = getContainerPropsValue(container, 'content.newsListUrl', {value: ""}).value;
|
|
157
|
-
this.newsDetailUrl = getContainerPropsValue(container, 'content.newsDetailUrl', {value: ""}).value;
|
|
158
|
-
},
|
|
159
|
-
p_getNewsList(position_id, scene){
|
|
160
|
-
return jfbRootExec("getNewsList", {
|
|
161
|
-
vm: this,
|
|
162
|
-
data: {
|
|
163
|
-
position_id: position_id,
|
|
164
|
-
scene: scene,
|
|
165
|
-
page_size: 10,
|
|
166
|
-
page_token: 1
|
|
167
|
-
}
|
|
168
|
-
})
|
|
169
|
-
},
|
|
170
|
-
toNewsList(){
|
|
171
|
-
this.$xdUniHelper.navigateTo({
|
|
172
|
-
url: `${this.newsListUrl}`,
|
|
173
|
-
});
|
|
174
|
-
},
|
|
175
|
-
toNewsDetail(){
|
|
176
|
-
this.$xdUniHelper.navigateTo({
|
|
177
|
-
url: `${this.newsDetailUrl}`,
|
|
178
|
-
});
|
|
179
|
-
},
|
|
180
|
-
toBannerLink(item){
|
|
181
|
-
this.$xdUniHelper.navigateTo({
|
|
182
|
-
url: `${item.jump_url}`,
|
|
183
|
-
});
|
|
184
|
-
},
|
|
185
|
-
onJfbScroll(options) {
|
|
186
|
-
|
|
187
|
-
},
|
|
188
|
-
onJfbReachBottom(options) {
|
|
189
|
-
console.log('event.onJfbReachBottom', options)
|
|
190
|
-
},
|
|
191
|
-
onJfbShow(options) {
|
|
192
|
-
console.log('event.onJfbShow', options)
|
|
193
|
-
},
|
|
194
|
-
onJfbHide(options) {
|
|
195
|
-
console.log('event.onJfbHide', options)
|
|
196
|
-
},
|
|
197
|
-
onJfbBack(options) {
|
|
198
|
-
console.log('event.onJfbBack', options)
|
|
199
|
-
this.$xdUniHelper.navigateBack();
|
|
200
|
-
},
|
|
201
|
-
onJfbUpdate(...data) {
|
|
202
|
-
console.log('event.onJfbUpdate', data)
|
|
203
|
-
},
|
|
204
|
-
onJfbCustomEvent(options) {
|
|
205
|
-
console.log('event.onJfbReachBottom', options)
|
|
206
|
-
},
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
</script>
|
|
211
|
-
|
|
212
|
-
<style scoped lang="less">
|
|
213
|
-
@import "./JfbBaseSaasHomeLess.less";
|
|
214
|
-
|
|
215
|
-
.jfb-base-saas-home {
|
|
216
|
-
&__body{
|
|
217
|
-
background: #F5F9FA;
|
|
218
|
-
.top_wrap{
|
|
219
|
-
.comp_name{
|
|
220
|
-
padding: 24rpx 36rpx;
|
|
221
|
-
font-size: 24rpx;
|
|
222
|
-
font-weight: 400;
|
|
223
|
-
color: #000000;
|
|
224
|
-
border-bottom: 1px solid #F0F0F0;
|
|
225
|
-
display: flex;
|
|
226
|
-
align-items: center;
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
.banner{
|
|
230
|
-
// padding: 20rpx;
|
|
231
|
-
.swiper{
|
|
232
|
-
height: 300rpx;
|
|
233
|
-
.swiper-item{
|
|
234
|
-
height: 300rpx;
|
|
235
|
-
background-color: red;
|
|
236
|
-
image{
|
|
237
|
-
width: 100%;
|
|
238
|
-
height: 100%;
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
}
|
|
244
|
-
.category{
|
|
245
|
-
display: flex;
|
|
246
|
-
justify-content: space-between;
|
|
247
|
-
padding: 40rpx;
|
|
248
|
-
background: #FFFFFF;
|
|
249
|
-
.cate_item{
|
|
250
|
-
.cate_img{
|
|
251
|
-
width: 100rpx;
|
|
252
|
-
height: 100rpx;
|
|
253
|
-
image{
|
|
254
|
-
width: 100%;
|
|
255
|
-
height: 100%;
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
.cate_name{
|
|
259
|
-
font-size: 24rpx;
|
|
260
|
-
color: #333333;
|
|
261
|
-
font-weight: 400;
|
|
262
|
-
margin-top: 16rpx;
|
|
263
|
-
text-align: center;
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
.notice{
|
|
268
|
-
background: #FFF2DE;
|
|
269
|
-
border-radius: 8rpx;
|
|
270
|
-
padding: 24rpx 40rpx;
|
|
271
|
-
color: #FF8D1A;
|
|
272
|
-
font-size: 24rpx;
|
|
273
|
-
margin: 20rpx;
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
.news_wrap{
|
|
277
|
-
padding: 0 20rpx;
|
|
278
|
-
margin: 20rpx 0;
|
|
279
|
-
}
|
|
280
|
-
.news_group{
|
|
281
|
-
background-color: #FFFFFF;
|
|
282
|
-
border-radius: 16rpx;
|
|
283
|
-
margin-bottom: 20rpx;
|
|
284
|
-
.group_header{
|
|
285
|
-
display: flex;
|
|
286
|
-
justify-content: space-between;
|
|
287
|
-
padding: 32rpx;
|
|
288
|
-
border-bottom: 1px solid #F0F0F0;
|
|
289
|
-
.group_title{
|
|
290
|
-
color: #333333;
|
|
291
|
-
font-size: 32rpx;
|
|
292
|
-
font-weight: 500;
|
|
293
|
-
padding-left: 24rpx;
|
|
294
|
-
position: relative;
|
|
295
|
-
&::before{
|
|
296
|
-
content: " ";
|
|
297
|
-
position: absolute;
|
|
298
|
-
width: 6rpx;
|
|
299
|
-
height: 28rpx;
|
|
300
|
-
background-color: #F3616E;
|
|
301
|
-
left: 0;
|
|
302
|
-
top: 50%;
|
|
303
|
-
transform: translateY(-50%);
|
|
304
|
-
border-radius: 6rpx;
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
.group_more{
|
|
308
|
-
display: flex;
|
|
309
|
-
font-size: 24rpx;
|
|
310
|
-
color: #999999;
|
|
311
|
-
align-items: center;
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
.group_body{
|
|
315
|
-
.news_item{
|
|
316
|
-
display: flex;
|
|
317
|
-
padding: 32rpx;
|
|
318
|
-
border-bottom: 1px solid #F0F0F0;
|
|
319
|
-
.news_cont{
|
|
320
|
-
flex: 1;
|
|
321
|
-
width: 400rpx;
|
|
322
|
-
font-weight: 400;
|
|
323
|
-
.news_tit{
|
|
324
|
-
font-size: 28rpx;
|
|
325
|
-
color: #333333;
|
|
326
|
-
height: 96rpx;
|
|
327
|
-
line-height: 48rpx;;
|
|
328
|
-
overflow: hidden;
|
|
329
|
-
text-overflow: ellipsis;
|
|
330
|
-
-webkit-line-clamp: 2;
|
|
331
|
-
display: -webkit-box;
|
|
332
|
-
-webkit-box-orient: vertical;
|
|
333
|
-
}
|
|
334
|
-
.news_date{
|
|
335
|
-
color: #999999;
|
|
336
|
-
font-size: 20rpx;
|
|
337
|
-
margin-top: 20rpx;
|
|
338
|
-
}
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
.news_img{
|
|
342
|
-
width: 190rpx;
|
|
343
|
-
height: 120rpx;
|
|
344
|
-
background-color: #333333;
|
|
345
|
-
margin-left: 60rpx;
|
|
346
|
-
image{
|
|
347
|
-
width: 100%;
|
|
348
|
-
height: 100%;
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
</style>
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @desc 获取绝对路径完整地址
|
|
3
|
-
* @param @path
|
|
4
|
-
**/
|
|
5
|
-
//例如:https://image.jufubao.cn/20220501010108/image/bg/default_gonghui_bg.png
|
|
6
|
-
@basePath: 'business/';
|
|
7
|
-
@doMain: '//sandbox-img.jufubao.cn/';
|
|
8
|
-
|
|
9
|
-
.getBusinessImageUrl(@path, @size: 'size8') {
|
|
10
|
-
@url: "@{doMain}@{basePath}@{path}?x-oss-process=style/@{size}";
|
|
11
|
-
background-image: url(@url);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
//start
|
|
15
|
-
.jfb-base-saas-home {
|
|
16
|
-
border: 1px dashed rgba(0, 0, 0, 0);
|
|
17
|
-
box-sizing: border-box;
|
|
18
|
-
min-height: unit(50, rpx);
|
|
19
|
-
|
|
20
|
-
&__body{
|
|
21
|
-
position: relative;
|
|
22
|
-
overflow: hidden;
|
|
23
|
-
z-index: 2
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
&.editx {
|
|
27
|
-
position: relative;
|
|
28
|
-
border: 1px dashed blue;
|
|
29
|
-
box-sizing: border-box;
|
|
30
|
-
z-index: 3
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
&:hover {
|
|
35
|
-
border: 1px dashed blue;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
&.noBorder {
|
|
39
|
-
border-color: rgba(0,0,0,0);
|
|
40
|
-
border-width: 0;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
&__edit {
|
|
45
|
-
cursor: pointer;
|
|
46
|
-
position: absolute;
|
|
47
|
-
right: unit(0, rpx);
|
|
48
|
-
top: unit(-52, rpx);
|
|
49
|
-
height: unit(50, rpx);
|
|
50
|
-
line-height: unit(50, rpx);
|
|
51
|
-
display: flex;
|
|
52
|
-
justify-content: center;
|
|
53
|
-
align-items: center;
|
|
54
|
-
background: rgba(0, 0, 0, .6);
|
|
55
|
-
border-radius: unit(10, rpx);
|
|
56
|
-
box-shadow: 0 0 10px rbga(0, 0, 0, 0.3);
|
|
57
|
-
color: #fff;
|
|
58
|
-
font-size: unit(22, rpx);
|
|
59
|
-
|
|
60
|
-
&-icon{
|
|
61
|
-
padding: 0 unit(20, rpx);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
&.editx {
|
|
65
|
-
box-sizing: border-box;
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
//end
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
/**notPreview**/
|
|
74
|
-
.jfb-base-saas-home {
|
|
75
|
-
&:before {
|
|
76
|
-
content: " ";
|
|
77
|
-
display: table;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
/**endNotPreview**/
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
//@AttrImport
|
|
5
|
-
import Attr from "./Attr";
|
|
6
|
-
//@EndAttrImport
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export default {
|
|
10
|
-
data() {
|
|
11
|
-
return {
|
|
12
|
-
//#ifdef H5
|
|
13
|
-
|
|
14
|
-
//@AttrData
|
|
15
|
-
Attr:{}, //对外开发编辑属性
|
|
16
|
-
//@EndAttrData
|
|
17
|
-
|
|
18
|
-
// #endif
|
|
19
|
-
cssRoot: 'jfb-base-saas-home'
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
created() {
|
|
23
|
-
|
|
24
|
-
//@AttrDataCreated
|
|
25
|
-
this.Attr = this.$xdUniHelper.customClone(Attr);
|
|
26
|
-
//@EndAttrDataCreated
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
},
|
|
30
|
-
}
|