jufubao-base 1.0.118 → 1.0.119-beta3
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 +4 -3
- package/src/components/JfbBaseCard/Attr.js +380 -287
- package/src/components/JfbBaseCard/JfbBaseCard.vue +51 -2
- package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntry.vue +0 -4
- package/src/components/JfbBaseConDialog/JfbBaseConDialog.vue +6 -1
- package/src/components/JfbBaseConFlashHome/Api.js +60 -0
- package/src/components/JfbBaseConFlashHome/Attr.js +129 -0
- package/src/components/JfbBaseConFlashHome/JfbBaseConFlashHome.vue +388 -0
- package/src/components/JfbBaseConFlashHome/JfbBaseConFlashHomeLess.less +80 -0
- package/src/components/JfbBaseConFlashHome/JfbBaseConFlashHomeMixin.js +30 -0
- package/src/components/JfbBaseConFlashHome/Mock.js +5 -0
- package/src/components/JfbBaseConFlashList/Api.js +60 -0
- package/src/components/JfbBaseConFlashList/Attr.js +117 -0
- package/src/components/JfbBaseConFlashList/JfbBaseConFlashList.vue +656 -0
- package/src/components/JfbBaseConFlashList/JfbBaseConFlashListLess.less +80 -0
- package/src/components/JfbBaseConFlashList/JfbBaseConFlashListMixin.js +30 -0
- package/src/components/JfbBaseConFlashList/Mock.js +5 -0
- package/src/components/JfbBaseConList/JfbBaseConList.vue +4 -2
- package/src/components/JfbBaseConPhone/Api.js +70 -0
- package/src/components/JfbBaseConPhone/Attr.js +10 -0
- package/src/components/JfbBaseConPhone/JfbBaseConPhone.vue +486 -0
- package/src/components/JfbBaseConPhone/JfbBaseConPhoneLess.less +80 -0
- package/src/components/JfbBaseConPhone/JfbBaseConPhoneMixin.js +30 -0
- package/src/components/JfbBaseConPhone/Mock.js +26 -0
- package/src/components/JfbBaseMySetting/JfbBaseMySetting.vue +2 -2
- package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +1 -1
- package/src/components/JfbBaseSaasBlessDetail/Api.js +59 -0
- package/src/components/JfbBaseSaasBlessDetail/Attr.js +24 -0
- package/src/components/JfbBaseSaasBlessDetail/JfbBaseSaasBlessDetail.vue +341 -0
- package/src/components/JfbBaseSaasBlessDetail/JfbBaseSaasBlessDetailLess.less +80 -0
- package/src/components/JfbBaseSaasBlessDetail/JfbBaseSaasBlessDetailMixin.js +30 -0
- package/src/components/JfbBaseSaasBlessDetail/Mock.js +5 -0
- package/src/components/JfbBaseSaasBlessDialog/Api.js +25 -0
- package/src/components/JfbBaseSaasBlessDialog/Attr.js +50 -0
- package/src/components/JfbBaseSaasBlessDialog/JfbBaseSaasBlessDialog.vue +309 -0
- package/src/components/JfbBaseSaasBlessDialog/JfbBaseSaasBlessDialogLess.less +80 -0
- package/src/components/JfbBaseSaasBlessDialog/JfbBaseSaasBlessDialogMixin.js +30 -0
- package/src/components/JfbBaseSaasBlessDialog/Mock.js +5 -0
- package/src/components/JfbBaseSaasBlessReceive/Api.js +25 -0
- package/src/components/JfbBaseSaasBlessReceive/Attr.js +24 -0
- package/src/components/JfbBaseSaasBlessReceive/JfbBaseSaasBlessReceive.vue +201 -0
- package/src/components/JfbBaseSaasBlessReceive/JfbBaseSaasBlessReceiveLess.less +80 -0
- package/src/components/JfbBaseSaasBlessReceive/JfbBaseSaasBlessReceiveMixin.js +30 -0
- package/src/components/JfbBaseSaasBlessReceive/Mock.js +5 -0
- package/src/components/JfbBaseSaasHome/Api.js +48 -0
- package/src/components/JfbBaseSaasHome/Attr.js +35 -0
- package/src/components/JfbBaseSaasHome/JfbBaseSaasHome.vue +402 -0
- package/src/components/JfbBaseSaasHome/JfbBaseSaasHomeLess.less +80 -0
- package/src/components/JfbBaseSaasHome/JfbBaseSaasHomeMixin.js +30 -0
- package/src/components/JfbBaseSaasHome/Mock.js +5 -0
- package/src/components/JfbBaseSaasLogin/Api.js +98 -0
- package/src/components/JfbBaseSaasLogin/Attr.js +59 -0
- package/src/components/JfbBaseSaasLogin/JfbBaseSaasLogin.vue +700 -0
- package/src/components/JfbBaseSaasLogin/JfbBaseSaasLoginLess.less +80 -0
- package/src/components/JfbBaseSaasLogin/JfbBaseSaasLoginMixin.js +30 -0
- package/src/components/JfbBaseSaasLogin/Mock.js +5 -0
- package/src/components/JfbBaseSaasLogin/saaslogin_copy.vue +410 -0
- package/src/components/JfbBaseSaasNewsDetail/Api.js +27 -0
- package/src/components/JfbBaseSaasNewsDetail/Attr.js +14 -0
- package/src/components/JfbBaseSaasNewsDetail/JfbBaseSaasNewsDetail.vue +144 -0
- package/src/components/JfbBaseSaasNewsDetail/JfbBaseSaasNewsDetailLess.less +80 -0
- package/src/components/JfbBaseSaasNewsDetail/JfbBaseSaasNewsDetailMixin.js +30 -0
- package/src/components/JfbBaseSaasNewsDetail/Mock.js +5 -0
- package/src/components/JfbBaseSaasNewsList/Api.js +26 -0
- package/src/components/JfbBaseSaasNewsList/Attr.js +24 -0
- package/src/components/JfbBaseSaasNewsList/JfbBaseSaasNewsList.vue +182 -0
- package/src/components/JfbBaseSaasNewsList/JfbBaseSaasNewsListLess.less +80 -0
- package/src/components/JfbBaseSaasNewsList/JfbBaseSaasNewsListMixin.js +30 -0
- package/src/components/JfbBaseSaasNewsList/Mock.js +5 -0
- package/src/components/JfbBaseSassPhoneCollect/Api.js +51 -0
- package/src/components/JfbBaseSassPhoneCollect/Attr.js +438 -0
- package/src/components/JfbBaseSassPhoneCollect/JfbBaseSassPhoneCollect.vue +266 -0
- package/src/components/JfbBaseSassPhoneCollect/JfbBaseSassPhoneCollectLess.less +80 -0
- package/src/components/JfbBaseSassPhoneCollect/JfbBaseSassPhoneCollectMixin.js +30 -0
- package/src/components/JfbBaseSassPhoneCollect/Mock.js +5 -0
|
@@ -0,0 +1,388 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view
|
|
3
|
+
class="jfb-base-con-flash-home"
|
|
4
|
+
@click="handleEditxSelect"
|
|
5
|
+
:class="{ editx: isEditx && active }"
|
|
6
|
+
>
|
|
7
|
+
<!--#ifdef H5-->
|
|
8
|
+
<view
|
|
9
|
+
class="jfb-base-con-flash-home__edit"
|
|
10
|
+
:class="{ editx: isEditx && active }"
|
|
11
|
+
v-if="isEditx && active"
|
|
12
|
+
>
|
|
13
|
+
<view class="jfb-base-con-flash-home__edit-icon" @click="delEdit"
|
|
14
|
+
>删除</view
|
|
15
|
+
>
|
|
16
|
+
</view>
|
|
17
|
+
<!-- #endif -->
|
|
18
|
+
<view class="jfb-base-con-flash-home__body">
|
|
19
|
+
<view
|
|
20
|
+
:style="{ flexDirection: position === 1 ? 'row' : 'row-reverse' }"
|
|
21
|
+
class="jfb-base-con-flash-home__body-wrap"
|
|
22
|
+
>
|
|
23
|
+
<view
|
|
24
|
+
:style="{
|
|
25
|
+
backgroundImage: `url(${secondBackground})`,
|
|
26
|
+
backgroundSize: '100% 100%',
|
|
27
|
+
marginRight: position === 1 ? '0' : '20rpx',
|
|
28
|
+
}"
|
|
29
|
+
class="jfb-base-con-flash-home__body-wrap-session"
|
|
30
|
+
>
|
|
31
|
+
<view>
|
|
32
|
+
<view
|
|
33
|
+
:style="{ background: textBgColor, color: textColor }"
|
|
34
|
+
class="jfb-base-con-flash-home__body-wrap-session-info"
|
|
35
|
+
>10:00点场 距结束</view
|
|
36
|
+
>
|
|
37
|
+
<view class="jfb-base-con-flash-home__body-wrap-session-time">
|
|
38
|
+
<text :style="{ color: textColor }">12</text>:
|
|
39
|
+
<text :style="{ color: textColor }">48</text>:
|
|
40
|
+
<text :style="{ color: textColor }">56</text>
|
|
41
|
+
</view>
|
|
42
|
+
</view>
|
|
43
|
+
</view>
|
|
44
|
+
<swiper
|
|
45
|
+
:vertical="productShowType === 'top'"
|
|
46
|
+
:autoplay="productShowType !== 'regular'"
|
|
47
|
+
class="jfb-base-con-flash-home__body-wrap-product"
|
|
48
|
+
:style="{
|
|
49
|
+
marginRight: position === 1 ? '0' : '20rpx',
|
|
50
|
+
}"
|
|
51
|
+
>
|
|
52
|
+
<swiper-item v-for="(item, index) in product_group" :key="index">
|
|
53
|
+
<view class="jfb-base-con-flash-home__body-wrap-product-group">
|
|
54
|
+
<view v-for="(SItem, SIndex) in item" :key="SIndex">
|
|
55
|
+
<view
|
|
56
|
+
class="jfb-base-con-flash-home__body-wrap-product-group-item"
|
|
57
|
+
:style="{
|
|
58
|
+
marginLeft: SIndex === 0&&position === 2 ? '0' : '20rpx',
|
|
59
|
+
}"
|
|
60
|
+
>
|
|
61
|
+
<image :src="SItem.img"></image>
|
|
62
|
+
<view
|
|
63
|
+
class="jfb-base-con-flash-home__body-wrap-product-group-item-name"
|
|
64
|
+
>{{ SItem.name }}</view
|
|
65
|
+
>
|
|
66
|
+
<view class="prod_price" v-if="isPrice === 'Y'">
|
|
67
|
+
<xd-unit
|
|
68
|
+
:price="SItem.sale_price"
|
|
69
|
+
:isOld="false"
|
|
70
|
+
color="#000000"
|
|
71
|
+
:iconSize="0.14"
|
|
72
|
+
:fontSize="20"
|
|
73
|
+
/>
|
|
74
|
+
<!-- todo -->
|
|
75
|
+
<view
|
|
76
|
+
v-if="isShowDiscount === 'Y' && checkDiscountPrice(SItem)"
|
|
77
|
+
class="prod_oldPrice"
|
|
78
|
+
>原价:{{ dividePrice(SItem.market_price) }}</view
|
|
79
|
+
>
|
|
80
|
+
</view>
|
|
81
|
+
</view>
|
|
82
|
+
</view>
|
|
83
|
+
</view>
|
|
84
|
+
</swiper-item>
|
|
85
|
+
</swiper>
|
|
86
|
+
</view>
|
|
87
|
+
</view>
|
|
88
|
+
</view>
|
|
89
|
+
</template>
|
|
90
|
+
|
|
91
|
+
<script>
|
|
92
|
+
import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
|
|
93
|
+
import XdUnit from "@/components/XdUnit/XdUnit";
|
|
94
|
+
import { jfbRootExec } from "@/utils/xd.event";
|
|
95
|
+
import JfbBaseConFlashHomeMixin from "./JfbBaseConFlashHomeMixin";
|
|
96
|
+
import { getContainerPropsValue } from "@/utils/xd.base";
|
|
97
|
+
import componentsMixins from "@/mixins/componentsMixins";
|
|
98
|
+
import extsMixins from "@/mixins/extsMixins";
|
|
99
|
+
import getServiceUrl from "@/common/getServiceUrl";
|
|
100
|
+
export default {
|
|
101
|
+
name: "JfbBaseConFlashHome",
|
|
102
|
+
components: {
|
|
103
|
+
XdFontIcon,
|
|
104
|
+
XdUnit,
|
|
105
|
+
},
|
|
106
|
+
mixins: [componentsMixins, extsMixins, JfbBaseConFlashHomeMixin],
|
|
107
|
+
data() {
|
|
108
|
+
return {
|
|
109
|
+
secondBackground: "",
|
|
110
|
+
xnamespace: "",
|
|
111
|
+
position: "",
|
|
112
|
+
isShowDiscount: "",
|
|
113
|
+
number: "",
|
|
114
|
+
productShowType: "",
|
|
115
|
+
differ: 1,
|
|
116
|
+
textColor: "",
|
|
117
|
+
textBgColor: "",
|
|
118
|
+
isPrice: "Y",
|
|
119
|
+
productList: [
|
|
120
|
+
{
|
|
121
|
+
img: "https://img.js.design/assets/img/6487c11d31971ab22c07c220.png#dfe2fe09e053ed42de4af607382569ac",
|
|
122
|
+
name: "方家铺子中宁四星红枸杞250g",
|
|
123
|
+
market_price: 1200,
|
|
124
|
+
sale_price: 1000,
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
img: "https://img.js.design/assets/img/6487c11d31971ab22c07c220.png#dfe2fe09e053ed42de4af607382569ac",
|
|
128
|
+
name: "方家铺子中宁四星红枸杞250g",
|
|
129
|
+
market_price: 1200,
|
|
130
|
+
sale_price: 1000,
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
img: "https://img.js.design/assets/img/6487c11d31971ab22c07c220.png#dfe2fe09e053ed42de4af607382569ac",
|
|
134
|
+
name: "方家铺子中宁四星红枸杞250g",
|
|
135
|
+
market_price: 1200,
|
|
136
|
+
sale_price: 1000,
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
img: "https://img.js.design/assets/img/6487c11d31971ab22c07c220.png#dfe2fe09e053ed42de4af607382569ac",
|
|
140
|
+
name: "方家铺子中宁四星红枸杞250g",
|
|
141
|
+
market_price: 1200,
|
|
142
|
+
sale_price: 1000,
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
img: "https://img.js.design/assets/img/6487c11d31971ab22c07c220.png#dfe2fe09e053ed42de4af607382569ac",
|
|
146
|
+
name: "方家铺子中宁四星红枸杞250g",
|
|
147
|
+
market_price: 1200,
|
|
148
|
+
sale_price: 1000,
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
img: "https://img.js.design/assets/img/6487c11d31971ab22c07c220.png#dfe2fe09e053ed42de4af607382569ac",
|
|
152
|
+
name: "方家铺子中宁四星红枸杞250g",
|
|
153
|
+
market_price: 1200,
|
|
154
|
+
sale_price: 1000,
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
img: "https://img.js.design/assets/img/6487c11d31971ab22c07c220.png#dfe2fe09e053ed42de4af607382569ac",
|
|
158
|
+
name: "方家铺子中宁四星红枸杞250g",
|
|
159
|
+
market_price: 1200,
|
|
160
|
+
sale_price: 1000,
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
img: "https://img.js.design/assets/img/6487c11d31971ab22c07c220.png#dfe2fe09e053ed42de4af607382569ac",
|
|
164
|
+
name: "方家铺子中宁四星红枸杞250g",
|
|
165
|
+
market_price: 1200,
|
|
166
|
+
sale_price: 1000,
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
img: "https://img.js.design/assets/img/6487c11d31971ab22c07c220.png#dfe2fe09e053ed42de4af607382569ac",
|
|
170
|
+
name: "方家铺子中宁四星红枸杞250g",
|
|
171
|
+
market_price: 1200,
|
|
172
|
+
sale_price: 1000,
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
img: "https://img.js.design/assets/img/6487c11d31971ab22c07c220.png#dfe2fe09e053ed42de4af607382569ac",
|
|
176
|
+
name: "方家铺子中宁四星红枸杞250g",
|
|
177
|
+
market_price: 1200,
|
|
178
|
+
sale_price: 1000,
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
img: "https://img.js.design/assets/img/6487c11d31971ab22c07c220.png#dfe2fe09e053ed42de4af607382569ac",
|
|
182
|
+
name: "方家铺子中宁四星红枸杞250g",
|
|
183
|
+
market_price: 1200,
|
|
184
|
+
sale_price: 1000,
|
|
185
|
+
},
|
|
186
|
+
],
|
|
187
|
+
};
|
|
188
|
+
},
|
|
189
|
+
watch: {
|
|
190
|
+
container(value) {
|
|
191
|
+
this.init(value);
|
|
192
|
+
},
|
|
193
|
+
},
|
|
194
|
+
computed: {
|
|
195
|
+
product_group() {
|
|
196
|
+
let groupedProducts = [];
|
|
197
|
+
for (let i = 0; i < this.productList.length; i += 3) {
|
|
198
|
+
let group = this.productList.slice(i, i + 3);
|
|
199
|
+
groupedProducts.push(group);
|
|
200
|
+
}
|
|
201
|
+
return groupedProducts;
|
|
202
|
+
},
|
|
203
|
+
},
|
|
204
|
+
created() {
|
|
205
|
+
this.init(this.container);
|
|
206
|
+
|
|
207
|
+
//todo
|
|
208
|
+
},
|
|
209
|
+
methods: {
|
|
210
|
+
onJfbLoad(options) {
|
|
211
|
+
// jfbRootExec('baiduUserLogin', {
|
|
212
|
+
// vm: this,// data: {
|
|
213
|
+
// account: 'gaoshiyong',// password: '123456789',// type: 3,// ...options
|
|
214
|
+
// }
|
|
215
|
+
// }).then().catch()
|
|
216
|
+
},
|
|
217
|
+
/**
|
|
218
|
+
* @description 监听事件变化
|
|
219
|
+
* @param container {object} 业务组件对象自己
|
|
220
|
+
*/
|
|
221
|
+
init(container) {
|
|
222
|
+
this.xnamespace = getContainerPropsValue(
|
|
223
|
+
container,
|
|
224
|
+
"content.xnamespace",
|
|
225
|
+
this.projectAttr.business_code
|
|
226
|
+
);
|
|
227
|
+
this.position = getContainerPropsValue(container, "content.position", 1);
|
|
228
|
+
this.isShowDiscount = getContainerPropsValue(
|
|
229
|
+
container,
|
|
230
|
+
"content.isShowDiscount",
|
|
231
|
+
"Y"
|
|
232
|
+
);
|
|
233
|
+
this.number = getContainerPropsValue(container, "content.number", 10);
|
|
234
|
+
this.productShowType = getContainerPropsValue(
|
|
235
|
+
container,
|
|
236
|
+
"content.productShowType",
|
|
237
|
+
"regular"
|
|
238
|
+
);
|
|
239
|
+
this.textColor = getContainerPropsValue(
|
|
240
|
+
container,
|
|
241
|
+
"content.textColor",
|
|
242
|
+
this.mainColor
|
|
243
|
+
);
|
|
244
|
+
this.textBgColor = getContainerPropsValue(
|
|
245
|
+
container,
|
|
246
|
+
"content.textBgColor",
|
|
247
|
+
"yellow"
|
|
248
|
+
);
|
|
249
|
+
this.isPrice = getContainerPropsValue(container, "content.isPrice", "Y");
|
|
250
|
+
this.secondBackground = getServiceUrl(
|
|
251
|
+
getContainerPropsValue(container, "content.secondBackground", "none")
|
|
252
|
+
.url
|
|
253
|
+
);
|
|
254
|
+
this.differ = getContainerPropsValue(container, "content.differ", 1);
|
|
255
|
+
|
|
256
|
+
console.log(this.secondBackground, "secondBackground");
|
|
257
|
+
},
|
|
258
|
+
checkDiscountPrice(item) {
|
|
259
|
+
if (this.isShowDiscount === "Y") {
|
|
260
|
+
let price = item.market_price - item.sale_price;
|
|
261
|
+
console.log(
|
|
262
|
+
item.market_price,
|
|
263
|
+
item.sale_price,
|
|
264
|
+
this.$xdUniHelper.divisionFloatNumber(price, 100),
|
|
265
|
+
this.differ,
|
|
266
|
+
this.$xdUniHelper.divisionFloatNumber(price, 100) > this.differ,
|
|
267
|
+
"hhhhhh"
|
|
268
|
+
);
|
|
269
|
+
return this.$xdUniHelper.divisionFloatNumber(price, 100) > this.differ;
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
dividePrice(num) {
|
|
273
|
+
return this.$xdUniHelper.divisionFloatNumber(num, 100);
|
|
274
|
+
},
|
|
275
|
+
onJfbScroll(options) {
|
|
276
|
+
console.log("event.onJfbScroll", options);
|
|
277
|
+
},
|
|
278
|
+
onJfbReachBottom(options) {
|
|
279
|
+
console.log("event.onJfbReachBottom", options);
|
|
280
|
+
},
|
|
281
|
+
onJfbShow(options) {
|
|
282
|
+
console.log("event.onJfbShow", options);
|
|
283
|
+
},
|
|
284
|
+
onJfbHide(options) {
|
|
285
|
+
console.log("event.onJfbHide", options);
|
|
286
|
+
},
|
|
287
|
+
onJfbBack(options) {
|
|
288
|
+
console.log("event.onJfbBack", options);
|
|
289
|
+
},
|
|
290
|
+
onJfbUpdate(...data) {
|
|
291
|
+
console.log("event.onJfbUpdate", data);
|
|
292
|
+
},
|
|
293
|
+
onJfbCustomEvent(options) {
|
|
294
|
+
console.log("event.onJfbReachBottom", options);
|
|
295
|
+
},
|
|
296
|
+
},
|
|
297
|
+
};
|
|
298
|
+
</script>
|
|
299
|
+
|
|
300
|
+
<style scoped lang="less">
|
|
301
|
+
@import "./JfbBaseConFlashHomeLess.less";
|
|
302
|
+
|
|
303
|
+
.jfb-base-con-flash-home {
|
|
304
|
+
&__body {
|
|
305
|
+
uni-swiper {
|
|
306
|
+
height: 258rpx !important;
|
|
307
|
+
}
|
|
308
|
+
&-wrap {
|
|
309
|
+
display: flex;
|
|
310
|
+
padding: 20rpx 0 20rpx 20rpx;
|
|
311
|
+
&-session {
|
|
312
|
+
width: 168rpx;
|
|
313
|
+
height: 258rpx;
|
|
314
|
+
border-radius: 8rpx;
|
|
315
|
+
display: flex;
|
|
316
|
+
flex-direction: column-reverse;
|
|
317
|
+
align-items: center;
|
|
318
|
+
&-info {
|
|
319
|
+
border-radius: 28rpx;
|
|
320
|
+
text-align: center;
|
|
321
|
+
padding: 6rpx 0 6rpx 0;
|
|
322
|
+
font-size: 14rpx;
|
|
323
|
+
font-weight: 500;
|
|
324
|
+
width: 148rpx;
|
|
325
|
+
}
|
|
326
|
+
&-time {
|
|
327
|
+
font-size: 24rpx;
|
|
328
|
+
color: #fff;
|
|
329
|
+
display: flex;
|
|
330
|
+
justify-content: space-around;
|
|
331
|
+
margin-bottom: 30rpx;
|
|
332
|
+
margin-top: 16rpx;
|
|
333
|
+
|
|
334
|
+
& > text {
|
|
335
|
+
background: #fff;
|
|
336
|
+
padding: 4rpx;
|
|
337
|
+
border-radius: 4rpx;
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
&-product {
|
|
342
|
+
display: flex;
|
|
343
|
+
flex: 1;
|
|
344
|
+
&-group {
|
|
345
|
+
display: flex;
|
|
346
|
+
&-item {
|
|
347
|
+
width: 152rpx;
|
|
348
|
+
height: 240rpx;
|
|
349
|
+
border-radius: 8rpx;
|
|
350
|
+
padding: 0 0 15rpx 6rpx;
|
|
351
|
+
background: rgba(255, 255, 255, 1);
|
|
352
|
+
display: flex;
|
|
353
|
+
flex-direction: column;
|
|
354
|
+
justify-content: flex-start;
|
|
355
|
+
align-items: center;
|
|
356
|
+
margin-left: 20rpx;
|
|
357
|
+
box-shadow: 0px 8rpx 16rpx rgba(0, 0, 0, 0.1);
|
|
358
|
+
image {
|
|
359
|
+
width: 168rpx;
|
|
360
|
+
height: 168rpx;
|
|
361
|
+
}
|
|
362
|
+
&-name {
|
|
363
|
+
font-size: 14rpx;
|
|
364
|
+
color: #333;
|
|
365
|
+
text-align: left;
|
|
366
|
+
vertical-align: top;
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
.prod_price {
|
|
372
|
+
display: flex;
|
|
373
|
+
align-items: center;
|
|
374
|
+
margin-top: 18rpx;
|
|
375
|
+
width: 100%;
|
|
376
|
+
justify-content: flex-start;
|
|
377
|
+
|
|
378
|
+
.prod_oldPrice {
|
|
379
|
+
font-size: 14rpx;
|
|
380
|
+
text-decoration: line-through;
|
|
381
|
+
color: #888888;
|
|
382
|
+
margin-left: 10rpx;
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
</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-con-flash-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-con-flash-home {
|
|
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-con-flash-home'
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
created() {
|
|
23
|
+
|
|
24
|
+
//@AttrDataCreated
|
|
25
|
+
this.Attr = this.$xdUniHelper.customClone(Attr);
|
|
26
|
+
//@EndAttrDataCreated
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
},
|
|
30
|
+
}
|
|
@@ -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,117 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @description 当表单组件中有联动操作时候,使用方法进行返回
|
|
5
|
+
*/
|
|
6
|
+
export default {
|
|
7
|
+
style: [],
|
|
8
|
+
content: (data) => {
|
|
9
|
+
return [
|
|
10
|
+
{
|
|
11
|
+
label: '是否展示原价:',
|
|
12
|
+
ele: 'xd-radio',
|
|
13
|
+
valueKey: 'isShowDiscount',
|
|
14
|
+
value: data.isShowDiscount || "Y",
|
|
15
|
+
rules: [
|
|
16
|
+
{required: true, message: '请选择', trigger: ['blur', 'change']}
|
|
17
|
+
],
|
|
18
|
+
list: [
|
|
19
|
+
{"label": "显示", "value": "Y"},
|
|
20
|
+
{"label": "隐藏", "value": "N"},
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
data.isShowDiscount==='Y'&&{
|
|
24
|
+
label: '价差大于多少展示原价:',
|
|
25
|
+
ele: 'el-input',
|
|
26
|
+
type: 'number',
|
|
27
|
+
valueKey: 'differ',
|
|
28
|
+
value: data['differ'] || '',
|
|
29
|
+
placeholder: '价差',
|
|
30
|
+
className: 'input80',
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
label: '场次背景图:', //label
|
|
34
|
+
ele: 'xd-upload', //package 名称
|
|
35
|
+
valueKey: 'sessionBackground', //form[valueKey]
|
|
36
|
+
value: data.sessionBackground || null, //v-model
|
|
37
|
+
defaultValue: data.sessionBackground || null, //默认图片对象
|
|
38
|
+
slot: true, //按钮是否使用slot
|
|
39
|
+
tipsformet: '上传文件格式:@imageType@,不超过@size@MB.,建议尺寸:800*800像素',
|
|
40
|
+
type: ['jpg', 'png', 'jpeg'],
|
|
41
|
+
styleType: 'one', //其值:one=>单文件上传 auth=>证件正反面上传 list=>多文件上传
|
|
42
|
+
uploadType: 'aliyun', //''=>API服务上传 qiniu=>七牛云OSS上传 aliyun=> 阿里云OSS上传
|
|
43
|
+
size: 5, //5M
|
|
44
|
+
action: 'aliyun',
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
ele: 'title',
|
|
48
|
+
label: '多场次选中效果',
|
|
49
|
+
size: 'small', //default/mini/small
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
label: '第一场背景图:', //label
|
|
53
|
+
ele: 'xd-upload', //package 名称
|
|
54
|
+
valueKey: 'firstBackground', //form[valueKey]
|
|
55
|
+
value: data.firstBackground || null, //v-model
|
|
56
|
+
defaultValue: data.firstBackground || null, //默认图片对象
|
|
57
|
+
slot: true, //按钮是否使用slot
|
|
58
|
+
tipsformet: '上传文件格式:@imageType@,不超过@size@MB.,建议尺寸:800*800像素',
|
|
59
|
+
type: ['jpg', 'png', 'jpeg'],
|
|
60
|
+
styleType: 'one', //其值:one=>单文件上传 auth=>证件正反面上传 list=>多文件上传
|
|
61
|
+
uploadType: 'aliyun', //''=>API服务上传 qiniu=>七牛云OSS上传 aliyun=> 阿里云OSS上传
|
|
62
|
+
size: 5, //5M
|
|
63
|
+
action: 'aliyun',
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
label: '中间场背景图:', //label
|
|
67
|
+
ele: 'xd-upload', //package 名称
|
|
68
|
+
valueKey: 'middleBackground', //form[valueKey]
|
|
69
|
+
value: data.middleBackground || null, //v-model
|
|
70
|
+
defaultValue: data.middleBackground || null, //默认图片对象
|
|
71
|
+
slot: true, //按钮是否使用slot
|
|
72
|
+
tipsformet: '上传文件格式:@imageType@,不超过@size@MB.,建议尺寸:800*800像素',
|
|
73
|
+
type: ['jpg', 'png', 'jpeg'],
|
|
74
|
+
styleType: 'one', //其值:one=>单文件上传 auth=>证件正反面上传 list=>多文件上传
|
|
75
|
+
uploadType: 'aliyun', //''=>API服务上传 qiniu=>七牛云OSS上传 aliyun=> 阿里云OSS上传
|
|
76
|
+
size: 5, //5M
|
|
77
|
+
action: 'aliyun',
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
label: '最后场背景图:', //label
|
|
81
|
+
ele: 'xd-upload', //package 名称
|
|
82
|
+
valueKey: 'finalBackground', //form[valueKey]
|
|
83
|
+
value: data.finalBackground || null, //v-model
|
|
84
|
+
defaultValue: data.finalBackground || null, //默认图片对象
|
|
85
|
+
slot: true, //按钮是否使用slot
|
|
86
|
+
tipsformet: '上传文件格式:@imageType@,不超过@size@MB.,建议尺寸:800*800像素',
|
|
87
|
+
type: ['jpg', 'png', 'jpeg'],
|
|
88
|
+
styleType: 'one', //其值:one=>单文件上传 auth=>证件正反面上传 list=>多文件上传
|
|
89
|
+
uploadType: 'aliyun', //''=>API服务上传 qiniu=>七牛云OSS上传 aliyun=> 阿里云OSS上传
|
|
90
|
+
size: 5, //5M
|
|
91
|
+
action: 'aliyun',
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
ele: 'title',
|
|
95
|
+
label: '单场次选中效果',
|
|
96
|
+
size: 'small', //default/mini/small
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
label: '单场次背景图:', //label
|
|
100
|
+
ele: 'xd-upload', //package 名称
|
|
101
|
+
valueKey: 'singleBackground', //form[valueKey]
|
|
102
|
+
value: data.singleBackground || null, //v-model
|
|
103
|
+
defaultValue: data.singleBackground || null, //默认图片对象
|
|
104
|
+
slot: true, //按钮是否使用slot
|
|
105
|
+
tipsformet: '上传文件格式:@imageType@,不超过@size@MB.,建议尺寸:800*800像素',
|
|
106
|
+
type: ['jpg', 'png', 'jpeg'],
|
|
107
|
+
styleType: 'one', //其值:one=>单文件上传 auth=>证件正反面上传 list=>多文件上传
|
|
108
|
+
uploadType: 'aliyun', //''=>API服务上传 qiniu=>七牛云OSS上传 aliyun=> 阿里云OSS上传
|
|
109
|
+
size: 5, //5M
|
|
110
|
+
action: 'aliyun',
|
|
111
|
+
},
|
|
112
|
+
].filter(i=>i)
|
|
113
|
+
},
|
|
114
|
+
advanced: [
|
|
115
|
+
|
|
116
|
+
],
|
|
117
|
+
};
|