jufubao-base 1.0.116-beta1 → 1.0.116-beta2

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.
Files changed (43) hide show
  1. package/package.json +1 -1
  2. package/src/components/JfbBaseSaasBlessDetail/Api.js +60 -0
  3. package/src/components/JfbBaseSaasBlessDetail/Attr.js +106 -0
  4. package/src/components/JfbBaseSaasBlessDetail/JfbBaseSaasBlessDetail.vue +227 -0
  5. package/src/components/JfbBaseSaasBlessDetail/JfbBaseSaasBlessDetailLess.less +80 -0
  6. package/src/components/JfbBaseSaasBlessDetail/JfbBaseSaasBlessDetailMixin.js +30 -0
  7. package/src/components/JfbBaseSaasBlessDetail/Mock.js +5 -0
  8. package/src/components/JfbBaseSaasBlessDialog/Api.js +60 -0
  9. package/src/components/JfbBaseSaasBlessDialog/Attr.js +50 -0
  10. package/src/components/JfbBaseSaasBlessDialog/JfbBaseSaasBlessDialog.vue +265 -0
  11. package/src/components/JfbBaseSaasBlessDialog/JfbBaseSaasBlessDialogLess.less +80 -0
  12. package/src/components/JfbBaseSaasBlessDialog/JfbBaseSaasBlessDialogMixin.js +30 -0
  13. package/src/components/JfbBaseSaasBlessDialog/Mock.js +5 -0
  14. package/src/components/JfbBaseSaasBlessReceive/Api.js +60 -0
  15. package/src/components/JfbBaseSaasBlessReceive/Attr.js +106 -0
  16. package/src/components/JfbBaseSaasBlessReceive/JfbBaseSaasBlessReceive.vue +172 -0
  17. package/src/components/JfbBaseSaasBlessReceive/JfbBaseSaasBlessReceiveLess.less +80 -0
  18. package/src/components/JfbBaseSaasBlessReceive/JfbBaseSaasBlessReceiveMixin.js +30 -0
  19. package/src/components/JfbBaseSaasBlessReceive/Mock.js +5 -0
  20. package/src/components/JfbBaseSaasHome/Api.js +60 -0
  21. package/src/components/JfbBaseSaasHome/Attr.js +106 -0
  22. package/src/components/JfbBaseSaasHome/JfbBaseSaasHome.vue +285 -0
  23. package/src/components/JfbBaseSaasHome/JfbBaseSaasHomeLess.less +80 -0
  24. package/src/components/JfbBaseSaasHome/JfbBaseSaasHomeMixin.js +30 -0
  25. package/src/components/JfbBaseSaasHome/Mock.js +5 -0
  26. package/src/components/JfbBaseSaasLogin/Api.js +26 -0
  27. package/src/components/JfbBaseSaasLogin/Attr.js +37 -0
  28. package/src/components/JfbBaseSaasLogin/JfbBaseSaasLogin.vue +353 -0
  29. package/src/components/JfbBaseSaasLogin/JfbBaseSaasLoginLess.less +80 -0
  30. package/src/components/JfbBaseSaasLogin/JfbBaseSaasLoginMixin.js +30 -0
  31. package/src/components/JfbBaseSaasLogin/Mock.js +5 -0
  32. package/src/components/JfbBaseSaasNewsDetail/Api.js +60 -0
  33. package/src/components/JfbBaseSaasNewsDetail/Attr.js +106 -0
  34. package/src/components/JfbBaseSaasNewsDetail/JfbBaseSaasNewsDetail.vue +140 -0
  35. package/src/components/JfbBaseSaasNewsDetail/JfbBaseSaasNewsDetailLess.less +80 -0
  36. package/src/components/JfbBaseSaasNewsDetail/JfbBaseSaasNewsDetailMixin.js +30 -0
  37. package/src/components/JfbBaseSaasNewsDetail/Mock.js +5 -0
  38. package/src/components/JfbBaseSaasNewsList/Api.js +60 -0
  39. package/src/components/JfbBaseSaasNewsList/Attr.js +106 -0
  40. package/src/components/JfbBaseSaasNewsList/JfbBaseSaasNewsList.vue +155 -0
  41. package/src/components/JfbBaseSaasNewsList/JfbBaseSaasNewsListLess.less +80 -0
  42. package/src/components/JfbBaseSaasNewsList/JfbBaseSaasNewsListMixin.js +30 -0
  43. package/src/components/JfbBaseSaasNewsList/Mock.js +5 -0
@@ -0,0 +1,140 @@
1
+ <template>
2
+ <view
3
+ class="jfb-base-saas-news-detail"
4
+ @click="handleEditxSelect"
5
+ :class="{ editx : isEditx && active }"
6
+ >
7
+ <!--#ifdef H5-->
8
+ <view
9
+ class="jfb-base-saas-news-detail__edit"
10
+ :class="{ editx : isEditx && active }"
11
+ v-if="isEditx && active"
12
+ >
13
+ <view class="jfb-base-saas-news-detail__edit-icon" @click="delEdit">删除</view>
14
+ </view>
15
+ <!-- #endif -->
16
+ <view class="jfb-base-saas-news-detail__body">
17
+ <view class="news_detail">
18
+ <view class="news_title">企业新闻标题 如果超长的标题那么就折行处理折行处理的样式就像是这样子的</view>
19
+ <view class="news_date">发布时间:2022.10.08 12:00</view>
20
+ <view class="news_cont">
21
+ 在刘慈欣的小说《三体》中,存在着一个星系里拥有三颗太阳的文明,三颗太阳的运动没有规律且不可预测,有时会升起三颗,把整个星球都变成熔岩炼狱。有时却一颗都没有,让星球处于极度的严寒中。<br/><br/>
22
+ 在难以生存的恶劣环境下,三体人决定移民其他星球,目的地就是人类所在的地球。<br/><br/>
23
+ 整个计划耗时数百年之久,并且路途中充满不确定性,为什么三体人不直接摧毁一颗或两颗恒星,使剩余的恒星保持规律的运动,拥有稳定恒纪元,而是一定要大费周章的来到地球呢?要知道在三体人遭受黑暗森林打击之前,就已经拥有了高度发达的科技,能将宇宙飞船加速到近乎光速。能够摧毁恒星的光粒本质上也只是一个以光速飞行的物体,完全可以用宇宙飞船来充当光粒,摧毁恒星。<br/><br/>
24
+ 那么三体人是真的没有想到吗?事实当然绝非如此,摧毁恒星获得恒纪元远非我们想的这么简单。首先用近乎光速的宇宙飞船去摧毁恒星本身就不太现实。星环号的飞船等级和三体人是一样的,它到达286光年外的DX3906恒星花费了52个小时。这并不是真正的光速飞行,假如以100%的光速前往DX3906,时间会在光速中停止,对飞船上的人来说是在瞬间就达到了目的地。
25
+ </view>
26
+ </view>
27
+ </view>
28
+ </view>
29
+ </template>
30
+
31
+ <script>
32
+ import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
33
+ import { jfbRootExec } from "@/utils/xd.event";
34
+ import JfbBaseSaasNewsDetailMixin from "./JfbBaseSaasNewsDetailMixin";
35
+ import { getContainerPropsValue } from "@/utils/xd.base";
36
+ import componentsMixins from "@/mixins/componentsMixins";
37
+ import extsMixins from "@/mixins/extsMixins";
38
+ export default {
39
+ name: "JfbBaseSaasNewsDetail",
40
+ components: {
41
+ XdFontIcon
42
+ },
43
+ mixins: [
44
+ componentsMixins, extsMixins, JfbBaseSaasNewsDetailMixin
45
+ ],
46
+ data() {
47
+ return {
48
+
49
+ //todo
50
+ }
51
+ },
52
+ watch: {
53
+ container(value) {
54
+ this.init(value)
55
+ }
56
+ },
57
+ created() {
58
+ this.init(this.container);
59
+
60
+ //todo
61
+ },
62
+ methods: {
63
+ onJfbLoad(options) {
64
+
65
+ // jfbRootExec('baiduUserLogin', {
66
+
67
+ // vm: this,// data: {
68
+
69
+ // account: 'gaoshiyong',// password: '123456789',// type: 3,// ...options
70
+
71
+ // }
72
+
73
+ // }).then().catch()
74
+ },
75
+ /**
76
+ * @description 监听事件变化
77
+ * @param container {object} 业务组件对象自己
78
+ */
79
+ init(container) {
80
+
81
+ //this.bgcolor = getContainerPropsValue(container, 'content.bgcolor', '#fff');
82
+
83
+ //this.height = getContainerPropsValue(container, 'content.height', 10);
84
+ },
85
+ onJfbScroll(options) {
86
+ console.log('event.onJfbScroll', options)
87
+ },
88
+ onJfbReachBottom(options) {
89
+ console.log('event.onJfbReachBottom', options)
90
+ },
91
+ onJfbShow(options) {
92
+ console.log('event.onJfbShow', options)
93
+ },
94
+ onJfbHide(options) {
95
+ console.log('event.onJfbHide', options)
96
+ },
97
+ onJfbBack(options) {
98
+ console.log('event.onJfbBack', options)
99
+ },
100
+ onJfbUpdate(...data) {
101
+ console.log('event.onJfbUpdate', data)
102
+ },
103
+ onJfbCustomEvent(options) {
104
+ console.log('event.onJfbReachBottom', options)
105
+ },
106
+ }
107
+ }
108
+
109
+ </script>
110
+
111
+ <style scoped lang="less">
112
+ @import "./JfbBaseSaasNewsDetailLess.less";
113
+
114
+ .jfb-base-saas-news-detail {
115
+ &__body{
116
+ background-color: #FFFFFF;
117
+ padding: 48rpx;
118
+ .news_detail{
119
+
120
+ .news_title{
121
+ color: #000000;
122
+ font-weight: 500;
123
+ font-size: 36rpx;
124
+ }
125
+ .news_date{
126
+ color: #A6A6A6;
127
+ font-size: 20rpx;
128
+ font-weight: 400;
129
+ margin-top: 32rpx;
130
+ }
131
+ .news_cont{
132
+ color: #000000;
133
+ font-size: 24rpx;
134
+ font-weight: 400;
135
+ margin-top: 56rpx;
136
+ }
137
+ }
138
+ }
139
+ }
140
+ </style>
@@ -0,0 +1,80 @@
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-news-detail {
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-news-detail {
75
+ &:before {
76
+ content: " ";
77
+ display: table;
78
+ }
79
+ }
80
+ /**endNotPreview**/
@@ -0,0 +1,30 @@
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-news-detail'
20
+ }
21
+ },
22
+ created() {
23
+
24
+ //@AttrDataCreated
25
+ this.Attr = this.$xdUniHelper.customClone(Attr);
26
+ //@EndAttrDataCreated
27
+
28
+
29
+ },
30
+ }
@@ -0,0 +1,5 @@
1
+ 'use strict';
2
+
3
+ module.exports = {
4
+ aaaa: {}
5
+ }
@@ -0,0 +1,60 @@
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: 'getByIdFilmSquate', //自定义方法名字(必选)
16
+ title: '获取电影广场列表',
17
+ path: '/api/account/film/list-film-square',
18
+ isRule: false,
19
+ params: {
20
+ last_key: ['当前页', 'Number', '必选'],
21
+ page_size: ['每页数量', 'Number', '必选'],
22
+ },
23
+ isConsole: true,
24
+ disabled: true,
25
+ },
26
+ {
27
+ mapFnName: 'updateFilmPaiqiDate', //自定义方法名字(必选)
28
+ title: '更新排期',
29
+ path: '/api/account/film/paiqi-date',
30
+ isRule: false,
31
+ params: {
32
+ film_id: ['电影id', 'Number', '必选'],
33
+ cinema_id: ['影院id', 'Number', '必选'],
34
+ },
35
+ isConsole: true,
36
+ disabled: true,
37
+ },
38
+ {
39
+ mapFnName: 'removeFilmAddress', //自定义方法名字(必选)
40
+ title: '删除我的配送地址',
41
+ path: '/api/account/film/paiqi-date',
42
+ isRule: false,
43
+ params: {
44
+ film_id: ['电影id', 'Number', '必选'],
45
+ },
46
+ isConsole: true,
47
+ disabled: true,
48
+ },
49
+ {
50
+ mapFnName: 'addFilmcart', //自定义方法名字(必选)
51
+ title: '添加购物车',
52
+ path: '/api/account/film/paiqi-date',
53
+ isRule: false,
54
+ params: {
55
+ film_id: ['电影id', 'Number', '必选'],
56
+ },
57
+ isConsole: true,
58
+ disabled: true,
59
+ },
60
+ ];
@@ -0,0 +1,106 @@
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-color', //package 名称
13
+ valueKey: 'bgcolor', //form[valueKey]
14
+ value: data.bgcolor || '', //v-model
15
+ placeholder: '请输入占位框背景颜色',
16
+ classNmae: 'input80', //样式名称 //input100,input80,input70,input60,input50,input40,input30,input20,
17
+ rules: [
18
+ {
19
+ required: true,
20
+ message: '请输入占位框背景颜色',
21
+ trigger: 'blur'
22
+ },
23
+ ]
24
+ },
25
+ {
26
+ label: '选中路径:', //label
27
+ ele: 'xd-select-pages-path', //package 名称
28
+ valueKey: 'select-pages-path', //form[valueKey]
29
+ value: data['select-pages-path'] || {},
30
+ setting: {
31
+ router: XdBus.getParentApi('getPagesTree')
32
+ },
33
+ inline: false,
34
+ },
35
+ data.bgcolor && {
36
+ label: '高度:', //label
37
+ ele: 'el-input', //package 名称
38
+ type: 'number',
39
+ valueKey: 'height', //form[valueKey]
40
+ value: data.height || 100, //v-model
41
+ placeholder: '请输入占位框高度,单位像素,默认:10px',
42
+ className: 'input80', //样式名称 //input100,input80,input70,input60,input50,input40,input30,input20,
43
+ rules: [
44
+ {
45
+ required: true,
46
+ message: '请输入占位框高度',
47
+ trigger: 'blur'
48
+ },
49
+ ]
50
+ },
51
+ {
52
+ label: '', //label
53
+ ele: 'slot', //package 名称
54
+ slot: 'is_reference',
55
+ },
56
+ ].filter(i=>i)
57
+ },
58
+ advanced: [
59
+ {
60
+ label: '背景颜色:', //label
61
+ ele: 'xd-color', //package 名称
62
+ valueKey: 'bgcolor', //form[valueKey]
63
+ value: '', //v-model
64
+ placeholder: '请输入占位框背景颜色',
65
+ classNmae: 'input80', //样式名称 //input100,input80,input70,input60,input50,input40,input30,input20,
66
+ rules: [
67
+ {
68
+ required: true,
69
+ message: '请输入占位框背景颜色',
70
+ trigger: 'blur'
71
+ },
72
+ ]
73
+ },
74
+ {
75
+ label: '选中路径:', //label
76
+ ele: 'xd-select-pages-path', //package 名称
77
+ valueKey: 'select-pages-path', //form[valueKey]
78
+ value: null,
79
+ setting: {
80
+ router: XdBus.getParentApi('getPagesTree')
81
+ },
82
+ inline: false,
83
+ },
84
+ {
85
+ label: '高度:', //label
86
+ ele: 'el-input', //package 名称
87
+ type: 'number',
88
+ valueKey: 'height', //form[valueKey]
89
+ value: null, //v-model
90
+ placeholder: '请输入占位框高度,单位像素,默认:10px',
91
+ classNmae: 'input80', //样式名称 //input100,input80,input70,input60,input50,input40,input30,input20,
92
+ rules: [
93
+ {
94
+ required: true,
95
+ message: '请输入占位框高度',
96
+ trigger: 'blur'
97
+ },
98
+ ]
99
+ },
100
+ {
101
+ label: '', //label
102
+ ele: 'slot', //package 名称
103
+ slot: 'is_reference',
104
+ },
105
+ ],
106
+ };
@@ -0,0 +1,155 @@
1
+ <template>
2
+ <view
3
+ class="jfb-base-saas-news-list"
4
+ @click="handleEditxSelect"
5
+ :class="{ editx : isEditx && active }"
6
+ >
7
+ <!--#ifdef H5-->
8
+ <view
9
+ class="jfb-base-saas-news-list__edit"
10
+ :class="{ editx : isEditx && active }"
11
+ v-if="isEditx && active"
12
+ >
13
+ <view class="jfb-base-saas-news-list__edit-icon" @click="delEdit">删除</view>
14
+ </view>
15
+ <!-- #endif -->
16
+ <view class="jfb-base-saas-news-list__body">
17
+ <view class="news_wrap">
18
+ <view class="news_group">
19
+ <view class="news_item" v-for="i in 3" :key="i">
20
+ <view class="news_cont">
21
+ <view class="news_tit">企业公告的信息,如果没有则不展示该模块直接展示企业新闻</view>
22
+ <view class="news_date">2022.10.08 12:00</view>
23
+ </view>
24
+ <view class="news_img">
25
+
26
+ </view>
27
+ </view>
28
+ </view>
29
+ </view>
30
+ </view>
31
+ </view>
32
+ </template>
33
+
34
+ <script>
35
+ import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
36
+ import { jfbRootExec } from "@/utils/xd.event";
37
+ import JfbBaseSaasNewsListMixin from "./JfbBaseSaasNewsListMixin";
38
+ import { getContainerPropsValue } from "@/utils/xd.base";
39
+ import componentsMixins from "@/mixins/componentsMixins";
40
+ import extsMixins from "@/mixins/extsMixins";
41
+ export default {
42
+ name: "JfbBaseSaasNewsList",
43
+ components: {
44
+ XdFontIcon
45
+ },
46
+ mixins: [
47
+ componentsMixins, extsMixins, JfbBaseSaasNewsListMixin
48
+ ],
49
+ data() {
50
+ return {
51
+
52
+ //todo
53
+ }
54
+ },
55
+ watch: {
56
+ container(value) {
57
+ this.init(value)
58
+ }
59
+ },
60
+ created() {
61
+ this.init(this.container);
62
+
63
+ //todo
64
+ },
65
+ methods: {
66
+ onJfbLoad(options) {
67
+
68
+ // jfbRootExec('baiduUserLogin', {
69
+
70
+ // vm: this,// data: {
71
+
72
+ // account: 'gaoshiyong',// password: '123456789',// type: 3,// ...options
73
+
74
+ // }
75
+
76
+ // }).then().catch()
77
+ },
78
+ /**
79
+ * @description 监听事件变化
80
+ * @param container {object} 业务组件对象自己
81
+ */
82
+ init(container) {
83
+
84
+ //this.bgcolor = getContainerPropsValue(container, 'content.bgcolor', '#fff');
85
+
86
+ //this.height = getContainerPropsValue(container, 'content.height', 10);
87
+ },
88
+ onJfbScroll(options) {
89
+ console.log('event.onJfbScroll', options)
90
+ },
91
+ onJfbReachBottom(options) {
92
+ console.log('event.onJfbReachBottom', options)
93
+ },
94
+ onJfbShow(options) {
95
+ console.log('event.onJfbShow', options)
96
+ },
97
+ onJfbHide(options) {
98
+ console.log('event.onJfbHide', options)
99
+ },
100
+ onJfbBack(options) {
101
+ console.log('event.onJfbBack', options)
102
+ },
103
+ onJfbUpdate(...data) {
104
+ console.log('event.onJfbUpdate', data)
105
+ },
106
+ onJfbCustomEvent(options) {
107
+ console.log('event.onJfbReachBottom', options)
108
+ },
109
+ }
110
+ }
111
+
112
+ </script>
113
+
114
+ <style scoped lang="less">
115
+ @import "./JfbBaseSaasNewsListLess.less";
116
+
117
+ .jfb-base-saas-news-list {
118
+ &__body{
119
+ .news_wrap{
120
+ padding: 20rpx;
121
+ .news_group{
122
+ background-color: #FFFFFF;
123
+ border-radius: 16rpx;
124
+ margin-bottom: 20rpx;
125
+ .news_item{
126
+ display: flex;
127
+ padding: 32rpx;
128
+ border-bottom: 1px solid #F0F0F0;
129
+ .news_cont{
130
+ flex: 1;
131
+ width: 400rpx;
132
+ font-weight: 400;
133
+ .news_tit{
134
+ font-size: 28rpx;
135
+ color: #333333;
136
+ }
137
+ .news_date{
138
+ color: #999999;
139
+ font-size: 20rpx;
140
+ margin-top: 20rpx;
141
+ }
142
+ }
143
+
144
+ .news_img{
145
+ width: 190rpx;
146
+ height: 120rpx;
147
+ background-color: #333333;
148
+ margin-left: 60rpx;
149
+ }
150
+ }
151
+ }
152
+ }
153
+ }
154
+ }
155
+ </style>
@@ -0,0 +1,80 @@
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-news-list {
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-news-list {
75
+ &:before {
76
+ content: " ";
77
+ display: table;
78
+ }
79
+ }
80
+ /**endNotPreview**/
@@ -0,0 +1,30 @@
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-news-list'
20
+ }
21
+ },
22
+ created() {
23
+
24
+ //@AttrDataCreated
25
+ this.Attr = this.$xdUniHelper.customClone(Attr);
26
+ //@EndAttrDataCreated
27
+
28
+
29
+ },
30
+ }
@@ -0,0 +1,5 @@
1
+ 'use strict';
2
+
3
+ module.exports = {
4
+ aaaa: {}
5
+ }