jufubao-base 1.0.63-beta6 → 1.0.63
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/JfbBaseAddress/JfbBaseAddressLess.less +1 -1
- package/src/components/JfbBaseAfterOrderDetail/JfbBaseAfterOrderDetailLess.less +1 -1
- package/src/components/JfbBaseAfterOrderList/JfbBaseAfterOrderListLess.less +1 -1
- package/src/components/JfbBaseBack/JfbBaseBackLess.less +1 -1
- package/src/components/JfbBaseBackground/Api.js +19 -0
- package/src/components/JfbBaseBackground/Attr.js +224 -0
- package/src/components/JfbBaseBackground/JfbBaseBackground.vue +111 -0
- package/src/components/JfbBaseBackground/JfbBaseBackgroundLess.less +80 -0
- package/src/components/JfbBaseBackground/JfbBaseBackgroundMixin.js +30 -0
- package/src/components/JfbBaseBlock/JfbBaseBlockLess.less +1 -1
- package/src/components/JfbBaseBottomNotice/JfbBaseBottomNoticeLess.less +1 -1
- package/src/components/JfbBaseCard/JfbBaseCardLess.less +1 -1
- package/src/components/JfbBaseCardBind/JfbBaseCardBindLess.less +1 -1
- package/src/components/JfbBaseCardBindV2/JfbBaseCardBindV2Less.less +1 -1
- package/src/components/JfbBaseCardDetail/JfbBaseCardDetailLess.less +1 -1
- package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntryLess.less +1 -1
- package/src/components/JfbBaseCardDisabled/JfbBaseCardDisabledLess.less +1 -1
- package/src/components/JfbBaseCardDisabledEntry/JfbBaseCardDisabledEntryLess.less +1 -1
- package/src/components/JfbBaseCardEntry/JfbBaseCardEntryLess.less +1 -1
- package/src/components/JfbBaseCardInfo/JfbBaseCardInfoLess.less +1 -1
- package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntryLess.less +1 -1
- package/src/components/JfbBaseCardMerge/JfbBaseCardMergeLess.less +1 -1
- package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntryLess.less +1 -1
- package/src/components/JfbBaseCardShift/JfbBaseCardShiftLess.less +1 -1
- package/src/components/JfbBaseCardShiftEntry/JfbBaseCardShiftEntryLess.less +1 -1
- package/src/components/JfbBaseCardSweepInfo/JfbBaseCardSweepInfoLess.less +1 -1
- package/src/components/JfbBaseCardV2/JfbBaseCardV2Less.less +1 -1
- package/src/components/JfbBaseCardV3/JfbBaseCardV3Less.less +1 -1
- package/src/components/JfbBaseCity/JfbBaseCityLess.less +1 -1
- package/src/components/JfbBaseClear/JfbBaseClearLess.less +1 -1
- package/src/components/JfbBaseEntry/JfbBaseEntryLess.less +1 -1
- package/src/components/JfbBaseExpressDetail/JfbBaseExpressDetailLess.less +1 -1
- package/src/components/JfbBaseFastLink/JfbBaseFastLinkLess.less +1 -1
- package/src/components/JfbBaseFooter/JfbBaseFooterLess.less +1 -1
- package/src/components/JfbBaseHeader/JfbBaseHeaderLess.less +1 -1
- package/src/components/JfbBaseLine/JfbBaseLineLess.less +1 -1
- package/src/components/JfbBaseLogin/JfbBaseLoginLess.less +1 -1
- package/src/components/JfbBaseLoginForgetPwd/JfbBaseLoginForgetPwdLess.less +1 -1
- package/src/components/JfbBaseLoginSetPwd/JfbBaseLoginSetPwdLess.less +1 -1
- package/src/components/JfbBaseMapOverlay/JfbBaseMapOverlayLess.less +1 -1
- package/src/components/JfbBaseMapSearch/JfbBaseMapSearchLess.less +1 -1
- package/src/components/JfbBaseMergeUserCard/JfbBaseMergeUserCardLess.less +1 -1
- package/src/components/JfbBaseMultipleExpress/JfbBaseMultipleExpressLess.less +1 -1
- package/src/components/JfbBaseMy/JfbBaseMyLess.less +1 -1
- package/src/components/JfbBaseNotice/JfbBaseNotice.vue +41 -26
- package/src/components/JfbBaseNotice/JfbBaseNoticeLess.less +1 -1
- package/src/components/JfbBaseNoticeBottom/JfbBaseNoticeBottomLess.less +1 -1
- package/src/components/JfbBaseNoticeTop/JfbBaseNoticeTopLess.less +1 -1
- package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +45 -29
- package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetailLess.less +1 -1
- package/src/components/JfbBaseOrderList/JfbBaseOrderListLess.less +1 -1
- package/src/components/JfbBasePay/JfbBasePayLess.less +1 -1
- package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollectLess.less +1 -1
- package/src/components/JfbBasePhoneLogin/JfbBasePhoneLoginLess.less +1 -1
- package/src/components/JfbBasePoster/JfbBasePosterLess.less +1 -1
- package/src/components/JfbBasePosterEntry/JfbBasePosterEntryLess.less +1 -1
- package/src/components/JfbBasePosterType/Attr.js +1 -1
- package/src/components/JfbBasePosterType/JfbBasePosterTypeLess.less +1 -1
- package/src/components/JfbBaseRecharge/JfbBaseRechargeLess.less +1 -1
- package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrderLess.less +1 -1
- package/src/components/JfbBaseRechargeOrderDetail/JfbBaseRechargeOrderDetailLess.less +1 -1
- package/src/components/JfbBaseRechargeSuccess/JfbBaseRechargeSuccessLess.less +1 -1
- package/src/components/JfbBaseSearch/JfbBaseSearchLess.less +1 -1
- package/src/components/JfbBaseSetPwd/JfbBaseSetPwdLess.less +1 -1
- package/src/components/JfbBaseSuccess/JfbBaseSuccessLess.less +1 -1
- package/src/components/JfbBaseTestApi/JfbBaseTestApiLess.less +1 -1
- package/src/components/JfbBaseTestBody/JfbBaseTestBodyLess.less +1 -1
- package/src/components/JfbBaseTestBottom/JfbBaseTestBottomLess.less +1 -1
- package/src/components/JfbBaseTestNotice/JfbBaseTestNoticeLess.less +1 -1
- package/src/components/JfbBaseTestTop/JfbBaseTestTopLess.less +1 -1
- package/src/components/JfbBaseUserCenter/JfbBaseUserCenterLess.less +1 -1
- package/src/components/JfbBaseUserInfo/JfbBaseUserInfoLess.less +1 -1
- package/src/components/JfbBaseUserOrder/JfbBaseUserOrderLess.less +1 -1
- package/src/components/JfbBaseVideo/Api.js +19 -0
- package/src/components/JfbBaseVideo/Attr.js +259 -0
- package/src/components/JfbBaseVideo/JfbBaseVideo.vue +159 -0
- package/src/components/JfbBaseVideo/JfbBaseVideoLess.less +80 -0
- package/src/components/JfbBaseVideo/JfbBaseVideoMixin.js +30 -0
- package/src/components/JfbBaseVideo/Mock.js +3 -0
- package/src/components/JfbBaseVideo/XdVideo.vue +212 -0
- package/src/components/JfbBaseWebview/JfbBaseWebviewLess.less +1 -1
- package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorizeLess.less +1 -1
- package/src/components/JfbBaseWxAuthorizeError/JfbBaseWxAuthorizeErrorLess.less +1 -1
package/package.json
CHANGED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
module.exports = [
|
|
4
|
+
{
|
|
5
|
+
mapFnName: 'getListBackgroundContent', //自定义方法名字(必选)
|
|
6
|
+
title: '获取内容',
|
|
7
|
+
path: '/cms/v1/ad-content',
|
|
8
|
+
isRule: false,
|
|
9
|
+
params: {
|
|
10
|
+
scene: ['使用场景', 'String', '选填'],
|
|
11
|
+
container_id: ['插件ID', 'String', '必填'],
|
|
12
|
+
page_id: ['页面ID', 'String', '必填'],
|
|
13
|
+
page_size: ['记录条数', 'Number', '必填'],
|
|
14
|
+
},
|
|
15
|
+
isConsole: true,
|
|
16
|
+
disabled: true,
|
|
17
|
+
},
|
|
18
|
+
|
|
19
|
+
];
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @description 当表单组件中有联动操作时候,使用方法进行返回
|
|
5
|
+
*/
|
|
6
|
+
export default {
|
|
7
|
+
style:[],
|
|
8
|
+
content:(params)=>{
|
|
9
|
+
return [
|
|
10
|
+
{
|
|
11
|
+
label: '背景图配置:', //label
|
|
12
|
+
ele: 'xd-site-poster', //package 名称
|
|
13
|
+
valueKey: 'background', //form[valueKey]
|
|
14
|
+
className: 'input80',
|
|
15
|
+
value: params.background || {size:{"width":"750","height":"1280"}},
|
|
16
|
+
setting: {
|
|
17
|
+
count: 1,
|
|
18
|
+
scene: {label: '背景', value: 'normal'},
|
|
19
|
+
width: 750,
|
|
20
|
+
height: 1280
|
|
21
|
+
},
|
|
22
|
+
handleCustom({action, data}) {
|
|
23
|
+
console.log(data,'datadata');
|
|
24
|
+
//设置场景参数
|
|
25
|
+
if(data) {
|
|
26
|
+
data.params = Object.assign({}, {scene: 'normal'}, data.params || {})
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
//获取显示内容
|
|
30
|
+
if (action === 'screenList') {
|
|
31
|
+
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'editx_base_ad_split_screen'})
|
|
32
|
+
.then(res => {
|
|
33
|
+
data.cb(res['list'])
|
|
34
|
+
})
|
|
35
|
+
.catch(error => {
|
|
36
|
+
console.error(error);
|
|
37
|
+
});
|
|
38
|
+
return
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
//获取返回参数(广告位高度必选项)
|
|
42
|
+
if (action === 'getPosterInfo') {
|
|
43
|
+
XdBus.getParentApi('cmsGetPublishEditxContent')(data.params)
|
|
44
|
+
.then(res => {
|
|
45
|
+
data.cb({list: res.list, selectId: res.selected})
|
|
46
|
+
})
|
|
47
|
+
.catch(error => {
|
|
48
|
+
console.error(error);
|
|
49
|
+
});
|
|
50
|
+
return
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
//使用内容分类
|
|
54
|
+
if (action === 'cmsPublishEditxContent') {
|
|
55
|
+
XdBus.getParentApi('cmsPublishEditxContent')(data.params)
|
|
56
|
+
.then(res => {
|
|
57
|
+
data.cb(res)
|
|
58
|
+
})
|
|
59
|
+
.catch(error => {
|
|
60
|
+
console.error(error);
|
|
61
|
+
});
|
|
62
|
+
return
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
let loading = XdBus.getParentApi('loading')({});
|
|
66
|
+
//位置列表
|
|
67
|
+
if (action === 'getListPostion') {
|
|
68
|
+
XdBus.getParentApi('getListPosterPosition')(data.params)
|
|
69
|
+
.then(res => {
|
|
70
|
+
loading.close();
|
|
71
|
+
data.cb(res)
|
|
72
|
+
})
|
|
73
|
+
.catch(error => {
|
|
74
|
+
loading.close();
|
|
75
|
+
console.error(error);
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
//位置创建
|
|
80
|
+
if (action === 'addPostion') {
|
|
81
|
+
XdBus.getParentApi('addPosterPosition')(data.params)
|
|
82
|
+
.then(res => {
|
|
83
|
+
loading.close();
|
|
84
|
+
data.cb(true)
|
|
85
|
+
})
|
|
86
|
+
.catch(error => {
|
|
87
|
+
console.error(error);
|
|
88
|
+
loading.close();
|
|
89
|
+
data.cb(false)
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
//位置编辑
|
|
94
|
+
if (action === 'editPostion') {
|
|
95
|
+
XdBus.getParentApi('updatePosterPosition')(data.params)
|
|
96
|
+
.then(res => {
|
|
97
|
+
loading.close();
|
|
98
|
+
data.cb(true)
|
|
99
|
+
})
|
|
100
|
+
.catch(error => {
|
|
101
|
+
console.error(error);
|
|
102
|
+
loading.close();
|
|
103
|
+
data.cb(false)
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
//位置删除
|
|
108
|
+
if (action === 'deleltePostion') {
|
|
109
|
+
XdBus.getParentApi('deletePosterPosition')(data.params)
|
|
110
|
+
.then(res => {
|
|
111
|
+
loading.close();
|
|
112
|
+
data.cb(true)
|
|
113
|
+
})
|
|
114
|
+
.catch(error => {
|
|
115
|
+
console.error(error);
|
|
116
|
+
loading.close();
|
|
117
|
+
data.cb(false)
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
//获取广告位内容列表
|
|
122
|
+
if (action === 'getListContent') {
|
|
123
|
+
XdBus.getParentApi('getListPosterContent')(data.params)
|
|
124
|
+
.then(res => {
|
|
125
|
+
loading.close();
|
|
126
|
+
data.cb(res)
|
|
127
|
+
})
|
|
128
|
+
.catch(error => {
|
|
129
|
+
loading.close();
|
|
130
|
+
console.error(error);
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
//广告内容创建
|
|
135
|
+
if (action === 'addContent') {
|
|
136
|
+
XdBus.getParentApi('addPosterContent')(data.params)
|
|
137
|
+
.then(res => {
|
|
138
|
+
loading.close();
|
|
139
|
+
data.cb(true)
|
|
140
|
+
})
|
|
141
|
+
.catch(error => {
|
|
142
|
+
console.error(error);
|
|
143
|
+
loading.close();
|
|
144
|
+
data.cb(false)
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
//广告内容编辑
|
|
149
|
+
if (action === 'editContent') {
|
|
150
|
+
XdBus.getParentApi('updatePosterContent')(data.params)
|
|
151
|
+
.then(res => {
|
|
152
|
+
loading.close();
|
|
153
|
+
data.cb(true)
|
|
154
|
+
})
|
|
155
|
+
.catch(error => {
|
|
156
|
+
console.error(error);
|
|
157
|
+
loading.close();
|
|
158
|
+
data.cb(false)
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
//广告内容删除
|
|
163
|
+
if (action === 'deleteContent') {
|
|
164
|
+
XdBus.getParentApi('deletePosterContent')(data.params)
|
|
165
|
+
.then(res => {
|
|
166
|
+
loading.close();
|
|
167
|
+
data.cb(true)
|
|
168
|
+
})
|
|
169
|
+
.catch(error => {
|
|
170
|
+
console.error(error);
|
|
171
|
+
loading.close();
|
|
172
|
+
data.cb(false)
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
//获取广告内容跳转地址类型
|
|
177
|
+
if (action === 'jumpPosterContentType') {
|
|
178
|
+
XdBus.getParentApi('getOptionsSettingList')({setting_id: "cms_setting"})
|
|
179
|
+
.then(res => {
|
|
180
|
+
loading.close();
|
|
181
|
+
data.cb(res['redirect_type'])
|
|
182
|
+
})
|
|
183
|
+
.catch(error => {
|
|
184
|
+
loading.close();
|
|
185
|
+
console.error(error);
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
//发布
|
|
190
|
+
if (action === 'publish') {
|
|
191
|
+
console.log('publish', data.params)
|
|
192
|
+
XdBus.getParentApi('cmsPublishContent')(data.params)
|
|
193
|
+
.then(res => {
|
|
194
|
+
loading.close();
|
|
195
|
+
data.cb(res)
|
|
196
|
+
})
|
|
197
|
+
.catch(error => {
|
|
198
|
+
loading.close();
|
|
199
|
+
console.error(error);
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
//获取站内页面地址
|
|
204
|
+
if (action === 'router') {
|
|
205
|
+
loading.close()
|
|
206
|
+
return XdBus.getParentApi('getPagesTree');
|
|
207
|
+
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
//通知页面进行刷新
|
|
211
|
+
if(action === 'update') {
|
|
212
|
+
XdBus.getParentApi('getXdBusUpdateView')('onUpdateView', {});
|
|
213
|
+
loading.close()
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
inline: false,
|
|
217
|
+
notice: '',
|
|
218
|
+
}
|
|
219
|
+
].filter(i=>i)
|
|
220
|
+
},
|
|
221
|
+
advanced: [
|
|
222
|
+
|
|
223
|
+
],
|
|
224
|
+
};
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view
|
|
3
|
+
class="jfb-base-background"
|
|
4
|
+
@click="handleEditxSelect"
|
|
5
|
+
:class="{ editx: isEditx && active }"
|
|
6
|
+
>
|
|
7
|
+
<!--#ifdef H5-->
|
|
8
|
+
<view
|
|
9
|
+
class="jfb-base-background__edit"
|
|
10
|
+
:class="{ editx: isEditx && active }"
|
|
11
|
+
v-if="isEditx && active"
|
|
12
|
+
>
|
|
13
|
+
<view class="jfb-base-background__edit-icon" @click="delEdit">删除</view>
|
|
14
|
+
</view>
|
|
15
|
+
<!-- #endif -->
|
|
16
|
+
<view class="jfb-base-background__body">
|
|
17
|
+
<view :style="{background:backgroundColor,color:warningColor}" class="jfb-base-background__body-pop" v-if="isPreview">设置背景模式方便编辑(占位),在线上此模块不显</view>
|
|
18
|
+
</view>
|
|
19
|
+
</view>
|
|
20
|
+
</template>
|
|
21
|
+
|
|
22
|
+
<script>
|
|
23
|
+
import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
|
|
24
|
+
import { jfbRootExec } from "@/utils/xd.event";
|
|
25
|
+
import JfbBaseBackgroundMixin from "./JfbBaseBackgroundMixin";
|
|
26
|
+
import { getContainerPropsValue } from "@/utils/xd.base";
|
|
27
|
+
import componentsMixins from "@/mixins/componentsMixins";
|
|
28
|
+
import extsMixins from "@/mixins/extsMixins";
|
|
29
|
+
import getServiceUrl from "@/common/getServiceUrl";
|
|
30
|
+
const Color = require("color");
|
|
31
|
+
export default {
|
|
32
|
+
name: "JfbBaseBackground",
|
|
33
|
+
components: {
|
|
34
|
+
XdFontIcon,
|
|
35
|
+
},
|
|
36
|
+
mixins: [componentsMixins, extsMixins, JfbBaseBackgroundMixin],
|
|
37
|
+
data() {
|
|
38
|
+
return {
|
|
39
|
+
isPreview: false,
|
|
40
|
+
backgroundColor: ''
|
|
41
|
+
};
|
|
42
|
+
},
|
|
43
|
+
watch: {
|
|
44
|
+
container(value) {
|
|
45
|
+
this.init(value);
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
destroyed() {
|
|
49
|
+
this.$xdRoot.$emit('setLayoutPageBg',null)
|
|
50
|
+
},
|
|
51
|
+
created() {
|
|
52
|
+
this.backgroundColor = Color(this.warningColor).alpha(0.2).toString();
|
|
53
|
+
this.isPreview = this.$configProject["isPreview"];
|
|
54
|
+
},
|
|
55
|
+
methods: {
|
|
56
|
+
onJfbShow(){
|
|
57
|
+
this.init()
|
|
58
|
+
},
|
|
59
|
+
onJfbLoad(options) {
|
|
60
|
+
this.init();
|
|
61
|
+
},
|
|
62
|
+
/**
|
|
63
|
+
* @description 监听事件变化
|
|
64
|
+
*/
|
|
65
|
+
init() {
|
|
66
|
+
try {
|
|
67
|
+
jfbRootExec("getListBackgroundContent", {
|
|
68
|
+
vm: this,
|
|
69
|
+
data: {
|
|
70
|
+
page_id: this.pageAttr["page_id"],
|
|
71
|
+
container_id: this.containerId,
|
|
72
|
+
page_size: 1,
|
|
73
|
+
},
|
|
74
|
+
}).then((res) => {
|
|
75
|
+
if(!res.list||res.list.length===0){
|
|
76
|
+
this.$xdRoot.$emit("setLayoutPageBg", null);
|
|
77
|
+
return
|
|
78
|
+
}
|
|
79
|
+
this.$xdRoot.$emit("setLayoutPageBg", getServiceUrl(res.list[0]["image_url"]));
|
|
80
|
+
});
|
|
81
|
+
} catch (error) {
|
|
82
|
+
this.$xdLog.catch(error)
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
onJfbScroll(options) {
|
|
86
|
+
console.log("event.onJfbScroll", options);
|
|
87
|
+
},
|
|
88
|
+
onJfbUpdate() {
|
|
89
|
+
this.init();
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
};
|
|
93
|
+
</script>
|
|
94
|
+
|
|
95
|
+
<style scoped lang="less">
|
|
96
|
+
@import "./JfbBaseBackgroundLess.less";
|
|
97
|
+
|
|
98
|
+
.jfb-base-background {
|
|
99
|
+
&__body {
|
|
100
|
+
min-height: 100rpx;
|
|
101
|
+
&-pop {
|
|
102
|
+
min-height: 100rpx;
|
|
103
|
+
text-align: center;
|
|
104
|
+
vertical-align: middle;
|
|
105
|
+
color: #666;
|
|
106
|
+
font-size: unit(24, rpx);
|
|
107
|
+
line-height: 100rpx;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
</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-background {
|
|
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-background {
|
|
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-background'
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
created() {
|
|
23
|
+
|
|
24
|
+
//@AttrDataCreated
|
|
25
|
+
this.Attr = this.$xdUniHelper.customClone(Attr);
|
|
26
|
+
//@EndAttrDataCreated
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
},
|
|
30
|
+
}
|