jufubao-base 1.0.232-beta2 → 1.0.232-beta4
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/JfbBaseBalance/Api.js +58 -0
- package/src/components/JfbBaseBalance/Attr.js +48 -0
- package/src/components/JfbBaseBalance/JfbBaseBalance.vue +111 -0
- package/src/components/JfbBaseBalance/JfbBaseBalanceLess.less +79 -0
- package/src/components/JfbBaseBalance/JfbBaseBalanceMixin.js +30 -0
- package/src/components/JfbBaseBalance/Mock.js +13 -0
- package/src/components/JfbBaseCardDelay/JfbBaseCardDelay.vue +30 -29
- package/src/components/JfbBaseCodeOpenVip/Api.js +58 -0
- package/src/components/JfbBaseCodeOpenVip/Attr.js +250 -0
- package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVip.vue +213 -0
- package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVipLess.less +79 -0
- package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVipMixin.js +30 -0
- package/src/components/JfbBaseCodeOpenVip/Mock.js +13 -0
- package/src/components/JfbBaseConsumpCode/Api.js +58 -0
- package/src/components/JfbBaseConsumpCode/Attr.js +48 -0
- package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCode.vue +657 -0
- package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCodeLess.less +79 -0
- package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCodeMixin.js +30 -0
- package/src/components/JfbBaseConsumpCode/Mock.js +13 -0
- package/src/components/JfbBaseLogin/JfbBaseLogin.vue +16 -7
- package/src/components/JfbBaseOpenVip/Api.js +58 -0
- package/src/components/JfbBaseOpenVip/Attr.js +250 -0
- package/src/components/JfbBaseOpenVip/JfbBaseOpenVip.vue +363 -0
- package/src/components/JfbBaseOpenVip/JfbBaseOpenVipLess.less +79 -0
- package/src/components/JfbBaseOpenVip/JfbBaseOpenVipMixin.js +30 -0
- package/src/components/JfbBaseOpenVip/Mock.js +13 -0
- package/src/components/JfbBaseOpenVip/XdVipList.vue +81 -0
- package/src/components/JfbBaseOpenVipCard/Api.js +58 -0
- package/src/components/JfbBaseOpenVipCard/Attr.js +48 -0
- package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCard.vue +111 -0
- package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCardLess.less +79 -0
- package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCardMixin.js +30 -0
- package/src/components/JfbBaseOpenVipCard/Mock.js +13 -0
- package/src/components/JfbBaseOpenVipDetail/Api.js +58 -0
- package/src/components/JfbBaseOpenVipDetail/Attr.js +48 -0
- package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetail.vue +140 -0
- package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetailLess.less +79 -0
- package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetailMixin.js +30 -0
- package/src/components/JfbBaseOpenVipDetail/Mock.js +13 -0
- package/src/components/JfbBasePersonalData/Api.js +58 -0
- package/src/components/JfbBasePersonalData/Attr.js +48 -0
- package/src/components/JfbBasePersonalData/JfbBasePersonalData.vue +111 -0
- package/src/components/JfbBasePersonalData/JfbBasePersonalDataLess.less +79 -0
- package/src/components/JfbBasePersonalData/JfbBasePersonalDataMixin.js +30 -0
- package/src/components/JfbBasePersonalData/Mock.js +13 -0
- package/src/components/JfbBasePointsCard/Api.js +58 -0
- package/src/components/JfbBasePointsCard/Attr.js +223 -0
- package/src/components/JfbBasePointsCard/JfbBasePointsCard.vue +291 -0
- package/src/components/JfbBasePointsCard/JfbBasePointsCardLess.less +79 -0
- package/src/components/JfbBasePointsCard/JfbBasePointsCardMixin.js +30 -0
- package/src/components/JfbBasePointsCard/Mock.js +13 -0
- package/src/components/JfbBasePointsDetail/Api.js +23 -0
- package/src/components/JfbBasePointsDetail/Attr.js +304 -0
- package/src/components/JfbBasePointsDetail/JfbBasePointsDetail.vue +221 -0
- package/src/components/JfbBasePointsDetail/JfbBasePointsDetailLess.less +79 -0
- package/src/components/JfbBasePointsDetail/JfbBasePointsDetailMixin.js +30 -0
- package/src/components/JfbBasePointsDetail/Mock.js +13 -0
- package/src/components/JfbBaseRechargeOrder/Api.js +3 -13
- package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrder.vue +16 -34
- package/src/components/JfbBaseSavingDetail/Api.js +58 -0
- package/src/components/JfbBaseSavingDetail/Attr.js +48 -0
- package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetail.vue +111 -0
- package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetailLess.less +79 -0
- package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetailMixin.js +30 -0
- package/src/components/JfbBaseSavingDetail/Mock.js +13 -0
- package/src/components/JfbBaseShare/Api.js +58 -0
- package/src/components/JfbBaseShare/Attr.js +48 -0
- package/src/components/JfbBaseShare/JfbBaseShare.vue +217 -0
- package/src/components/JfbBaseShare/JfbBaseShareLess.less +79 -0
- package/src/components/JfbBaseShare/JfbBaseShareMixin.js +30 -0
- package/src/components/JfbBaseShare/Mock.js +13 -0
- package/src/components/JfbBaseTfkSearch/Attr.js +8 -82
- package/src/components/JfbBaseTfkSearch/ContentProduct.vue +13 -5
- package/src/components/JfbBaseTfkSearch/JfbBaseTfkSearch.vue +1 -1
- package/src/components/JfbBaseUserInfo/Attr.js +102 -10
- package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +301 -114
- package/src/components/JfbBaseWithDrawAgain/Api.js +58 -0
- package/src/components/JfbBaseWithDrawAgain/Attr.js +48 -0
- package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgain.vue +111 -0
- package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgainLess.less +79 -0
- package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgainMixin.js +30 -0
- package/src/components/JfbBaseWithDrawAgain/Mock.js +13 -0
- package/src/components/JfbBaseWithDrawRecord/Api.js +58 -0
- package/src/components/JfbBaseWithDrawRecord/Attr.js +48 -0
- package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecord.vue +111 -0
- package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecordLess.less +79 -0
- package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecordMixin.js +30 -0
- package/src/components/JfbBaseWithDrawRecord/Mock.js +13 -0
- package/src/components/JfbBaseWithdraw/Api.js +58 -0
- package/src/components/JfbBaseWithdraw/Attr.js +48 -0
- package/src/components/JfbBaseWithdraw/JfbBaseWithdraw.vue +111 -0
- package/src/components/JfbBaseWithdraw/JfbBaseWithdrawLess.less +79 -0
- package/src/components/JfbBaseWithdraw/JfbBaseWithdrawMixin.js +30 -0
- package/src/components/JfbBaseWithdraw/Mock.js +13 -0
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view class="jfb-base-points-card" @click="handleEditxSelect" :class="{ editx : isEditx && active }">
|
|
3
|
+
<!--#ifdef H5-->
|
|
4
|
+
<view class="jfb-base-points-card__edit" :class="{ editx : isEditx && active }" v-if="isEditx && active">
|
|
5
|
+
<view class="jfb-base-points-card__edit-icon" @click="delEdit">删除</view>
|
|
6
|
+
</view>
|
|
7
|
+
<!-- #endif -->
|
|
8
|
+
<view class="jfb-base-points-card__body">
|
|
9
|
+
<view :style="[bodyStyleComp]" class="jfb-base-points-card__body-list">
|
|
10
|
+
<view :style="[itemStyleComp]" @click="handleTo(item)" v-for="(item,index) in typeList" :key="index" class="jfb-base-points-card__body-list-item">
|
|
11
|
+
<view class="jfb-base-points-card__body-list-item-label">
|
|
12
|
+
{{item.label}}
|
|
13
|
+
<view :style="{background:is_vip==='N'?mainColor:'',color:is_vip==='N'?'#fff':''}" class="jfb-base-points-card__body-list-item-operate" v-if="item.operate">{{item.operate}}</view>
|
|
14
|
+
</view>
|
|
15
|
+
<view class="jfb-base-points-card__body-list-item-value">{{item.value}}</view>
|
|
16
|
+
</view>
|
|
17
|
+
</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 JfbBasePointsCardMixin from "./JfbBasePointsCardMixin";
|
|
26
|
+
import { getContainerPropsValue } from "@/utils/xd.base";
|
|
27
|
+
import componentsMixins from "@/mixins/componentsMixins";
|
|
28
|
+
import extsMixins from "@/mixins/extsMixins";
|
|
29
|
+
export default {
|
|
30
|
+
name: "JfbBasePointsCard",
|
|
31
|
+
components: {
|
|
32
|
+
XdFontIcon
|
|
33
|
+
},
|
|
34
|
+
mixins: [
|
|
35
|
+
componentsMixins, extsMixins, JfbBasePointsCardMixin
|
|
36
|
+
],
|
|
37
|
+
computed: {
|
|
38
|
+
bodyStyleComp() {
|
|
39
|
+
return {
|
|
40
|
+
background: this.is_vip === 'Y' ? this.plusBodyBgColor : this.normalBodyBgColor,
|
|
41
|
+
borderRadius: `${this.radius}rpx`,
|
|
42
|
+
margin: this.getMarginAndPadding(this.margin, 20),
|
|
43
|
+
padding: this.getMarginAndPadding(this.padding, 32),
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
itemStyleComp() {
|
|
47
|
+
return {
|
|
48
|
+
background: this.is_vip === 'Y' ? this.plusItemBgColor : this.normalItemBgColor,
|
|
49
|
+
borderRadius: `${this.itemRadius}rpx`,
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
data() {
|
|
54
|
+
return {
|
|
55
|
+
isPoints: '',
|
|
56
|
+
isYue: '',
|
|
57
|
+
isConpon: '',
|
|
58
|
+
typeList: [
|
|
59
|
+
{
|
|
60
|
+
label: "积分",
|
|
61
|
+
key: "points",
|
|
62
|
+
value: 0
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
label: "余额",
|
|
66
|
+
key: "yue",
|
|
67
|
+
operate: '提现',
|
|
68
|
+
value: 0
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
label: "优惠券",
|
|
72
|
+
key: "conpon",
|
|
73
|
+
value: 0
|
|
74
|
+
},
|
|
75
|
+
],
|
|
76
|
+
is_vip: 'N',
|
|
77
|
+
plusBodyBgColor: '',
|
|
78
|
+
plusItemBgColor: '',
|
|
79
|
+
normalBodyBgColor: '',
|
|
80
|
+
normalItemBgColor: '',
|
|
81
|
+
is_plus_preview: 'N',
|
|
82
|
+
radius: 0,
|
|
83
|
+
itemRadius: 0,
|
|
84
|
+
margin: {},
|
|
85
|
+
padding: {},
|
|
86
|
+
is_vip: 'N',
|
|
87
|
+
pointsPath: '',
|
|
88
|
+
withdrawPath: '',
|
|
89
|
+
couponPath: '',
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
watch: {
|
|
93
|
+
container(value, oldValue) {
|
|
94
|
+
if (JSON.stringify(value) === JSON.stringify(oldValue)) return;
|
|
95
|
+
if (this.$configProject['isPreview']) this.init(value)
|
|
96
|
+
},
|
|
97
|
+
isPoints(n, o) {
|
|
98
|
+
if (n === "Y") {
|
|
99
|
+
let flag = this.typeList.find((item) => item.key === "points");
|
|
100
|
+
if (!flag) {
|
|
101
|
+
this.typeList.splice(0, 0, {
|
|
102
|
+
label: "积分",
|
|
103
|
+
key: "points",
|
|
104
|
+
operate: '兑换'
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
} else {
|
|
108
|
+
let flagIndex = this.typeList.findIndex(
|
|
109
|
+
(item) => item.key === "points"
|
|
110
|
+
);
|
|
111
|
+
if (flagIndex !== -1) {
|
|
112
|
+
this.typeList.splice(flagIndex, 1);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
isYue(n, o) {
|
|
117
|
+
if (n === "Y") {
|
|
118
|
+
let flag = this.typeList.find((item) => item.key === "yue");
|
|
119
|
+
if (!flag) {
|
|
120
|
+
this.typeList.splice(1, 0, {
|
|
121
|
+
label: "余额",
|
|
122
|
+
key: "yue",
|
|
123
|
+
operate: '提现'
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
} else {
|
|
127
|
+
let flagIndex = this.typeList.findIndex(
|
|
128
|
+
(item) => item.key === "yue"
|
|
129
|
+
);
|
|
130
|
+
if (flagIndex !== -1) {
|
|
131
|
+
this.typeList.splice(flagIndex, 1);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
isConpon(n, o) {
|
|
136
|
+
if (n === "Y") {
|
|
137
|
+
let flag = this.typeList.find((item) => item.key === "conpon");
|
|
138
|
+
if (!flag) {
|
|
139
|
+
this.typeList.splice(2, 0, {
|
|
140
|
+
label: "优惠券",
|
|
141
|
+
key: "conpon",
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
} else {
|
|
145
|
+
let flagIndex = this.typeList.findIndex(
|
|
146
|
+
(item) => item.key === "conpon"
|
|
147
|
+
);
|
|
148
|
+
if (flagIndex !== -1) {
|
|
149
|
+
this.typeList.splice(flagIndex, 1);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
is_plus_preview() {
|
|
154
|
+
if (this.$configProject['isPreview']) {
|
|
155
|
+
this.is_vip = this.is_plus_preview
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
created() {
|
|
160
|
+
this.init(this.container);
|
|
161
|
+
|
|
162
|
+
//todo
|
|
163
|
+
},
|
|
164
|
+
methods: {
|
|
165
|
+
onJfbLoad(options) {
|
|
166
|
+
this.typeList = this.typeList.map(item => {
|
|
167
|
+
if (item.key === 'points') {
|
|
168
|
+
// item.value = 'score_amount'
|
|
169
|
+
item.value = 89144
|
|
170
|
+
}
|
|
171
|
+
if (item.key === 'yue') {
|
|
172
|
+
// item.value = 'total_amount'
|
|
173
|
+
item.value = 4545
|
|
174
|
+
}
|
|
175
|
+
if (item.key === 'conpon') {
|
|
176
|
+
// item.value = 'coupon_count'
|
|
177
|
+
item.value = 3
|
|
178
|
+
}
|
|
179
|
+
return item
|
|
180
|
+
})
|
|
181
|
+
},
|
|
182
|
+
/**
|
|
183
|
+
* @description 监听事件变化
|
|
184
|
+
* @param container {object} 业务组件对象自己
|
|
185
|
+
*/
|
|
186
|
+
init(container) {
|
|
187
|
+
this.isPoints = getContainerPropsValue(container, "content.isPoints", "Y");
|
|
188
|
+
this.isYue = getContainerPropsValue(container, "content.isYue", "Y");
|
|
189
|
+
this.isConpon = getContainerPropsValue(container, "content.isConpon", "Y");
|
|
190
|
+
this.plusBodyBgColor = getContainerPropsValue(container, 'content.plusBodyBgColor', 'linear-gradient(180deg, #FFFCF8 0%, #FFF3E2 100%)');
|
|
191
|
+
this.plusItemBgColor = getContainerPropsValue(container, 'content.plusItemBgColor', 'linear-gradient(136.55deg, #FFECD1 0%, #F6D6AB 100%)');
|
|
192
|
+
this.normalBodyBgColor = getContainerPropsValue(container, 'content.normalBodyBgColor', '#fff');
|
|
193
|
+
this.normalItemBgColor = getContainerPropsValue(container, 'content.normalItemBgColor', '#F7F7F7');
|
|
194
|
+
this.is_plus_preview = getContainerPropsValue(container, 'content.is_plus_preview', 'N');
|
|
195
|
+
this.radius = getContainerPropsValue(container, 'content.radius', '20');
|
|
196
|
+
this.itemRadius = getContainerPropsValue(container, 'content.itemRadius', '16');
|
|
197
|
+
this.margin = getContainerPropsValue(container, 'content.bodyMargin', {});
|
|
198
|
+
this.padding = getContainerPropsValue(container, 'content.bodyPadding', {});
|
|
199
|
+
this.pointsPath = getContainerPropsValue(container, 'content.pointsPath', { value: "" }).value;
|
|
200
|
+
this.withdrawPath = getContainerPropsValue(container, 'content.withdrawPath', { value: "" }).value;
|
|
201
|
+
this.couponPath = getContainerPropsValue(container, 'content.couponPath', { value: "" }).value;
|
|
202
|
+
},
|
|
203
|
+
handleTo(item) {
|
|
204
|
+
if (item.key === 'points') {
|
|
205
|
+
this.$router.push(this.pointsPath)
|
|
206
|
+
}
|
|
207
|
+
if (item.key === 'yue') {
|
|
208
|
+
this.$router.push(this.withdrawPath)
|
|
209
|
+
}
|
|
210
|
+
if (item.key === 'conpon') {
|
|
211
|
+
this.$router.push(this.couponPath)
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
onJfbScroll(options) {
|
|
215
|
+
console.log('event.onJfbScroll', options)
|
|
216
|
+
},
|
|
217
|
+
onJfbReachBottom(options) {
|
|
218
|
+
console.log('event.onJfbReachBottom', options)
|
|
219
|
+
},
|
|
220
|
+
onJfbShow(options) {
|
|
221
|
+
console.log('event.onJfbShow', options)
|
|
222
|
+
},
|
|
223
|
+
onJfbHide(options) {
|
|
224
|
+
console.log('event.onJfbHide', options)
|
|
225
|
+
},
|
|
226
|
+
onJfbBack(options) {
|
|
227
|
+
console.log('event.onJfbBack', options)
|
|
228
|
+
},
|
|
229
|
+
onJfbUpdate(...data) {
|
|
230
|
+
console.log('event.onJfbUpdate', data)
|
|
231
|
+
},
|
|
232
|
+
onJfbCustomEvent(options) {
|
|
233
|
+
console.log('event.onJfbReachBottom', options)
|
|
234
|
+
},
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
</script>
|
|
239
|
+
|
|
240
|
+
<style scoped lang="less">
|
|
241
|
+
@import "./JfbBasePointsCardLess.less";
|
|
242
|
+
|
|
243
|
+
.jfb-base-points-card {
|
|
244
|
+
&__body {
|
|
245
|
+
&-list {
|
|
246
|
+
display: flex;
|
|
247
|
+
justify-content: center;
|
|
248
|
+
align-items: center;
|
|
249
|
+
background: linear-gradient(180deg, #FFFCF8 0%, #FFF3E2 100%);
|
|
250
|
+
|
|
251
|
+
&-item:last-child {
|
|
252
|
+
margin-right: 0;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
&-item {
|
|
256
|
+
flex: 1;
|
|
257
|
+
display: flex;
|
|
258
|
+
flex-direction: column;
|
|
259
|
+
justify-content: center;
|
|
260
|
+
align-items: center;
|
|
261
|
+
padding: 20rpx 0;
|
|
262
|
+
margin-right: 32rpx;
|
|
263
|
+
background: linear-gradient(136.55deg, #FFECD1 0%, #F6D6AB 100%);
|
|
264
|
+
border-radius: 16rpx;
|
|
265
|
+
font-size: 24rpx;
|
|
266
|
+
|
|
267
|
+
&-label {
|
|
268
|
+
display: flex;
|
|
269
|
+
margin-bottom: 8rpx;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
&-operate {
|
|
273
|
+
background: linear-gradient(90deg, #333231 0%, #6C5A46 100%);
|
|
274
|
+
border-radius: 24rpx;
|
|
275
|
+
padding: 4rpx 8rpx;
|
|
276
|
+
color: #F8DCB4;
|
|
277
|
+
font-size: 20rpx;
|
|
278
|
+
margin-left: 8rpx;
|
|
279
|
+
text-align: center;
|
|
280
|
+
vertical-align: middle;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
&-value {
|
|
284
|
+
color: #333332;
|
|
285
|
+
font-weight: 700;
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
</style>
|
|
@@ -0,0 +1,79 @@
|
|
|
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-points-card {
|
|
16
|
+
box-sizing: border-box;
|
|
17
|
+
|
|
18
|
+
&__body{
|
|
19
|
+
position: relative;
|
|
20
|
+
overflow: hidden;
|
|
21
|
+
z-index: 2
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&.editx,&.editx:hover {
|
|
25
|
+
position: relative;
|
|
26
|
+
min-height: unit(100, rpx);
|
|
27
|
+
z-index: 3;
|
|
28
|
+
&::after {
|
|
29
|
+
border: 2rpx dashed blue;
|
|
30
|
+
content: " ";
|
|
31
|
+
position: absolute;
|
|
32
|
+
top:0;
|
|
33
|
+
left:0;
|
|
34
|
+
bottom:0;
|
|
35
|
+
right:0;
|
|
36
|
+
z-index: 4;
|
|
37
|
+
cursor: pointer;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
&__edit {
|
|
44
|
+
cursor: pointer;
|
|
45
|
+
position: absolute;
|
|
46
|
+
right: unit(0, rpx);
|
|
47
|
+
top: unit(-52, rpx);
|
|
48
|
+
height: unit(50, rpx);
|
|
49
|
+
line-height: unit(50, rpx);
|
|
50
|
+
display: flex;
|
|
51
|
+
justify-content: center;
|
|
52
|
+
align-items: center;
|
|
53
|
+
background: rgba(0, 0, 0, .6);
|
|
54
|
+
border-radius: unit(10, rpx);
|
|
55
|
+
box-shadow: 0 0 10px rbga(0, 0, 0, 0.3);
|
|
56
|
+
color: #fff;
|
|
57
|
+
font-size: unit(22, rpx);
|
|
58
|
+
|
|
59
|
+
&-icon{
|
|
60
|
+
padding: 0 unit(20, rpx);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&.editx {
|
|
64
|
+
box-sizing: border-box;
|
|
65
|
+
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
//end
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
/**notPreview**/
|
|
73
|
+
.jfb-base-points-card {
|
|
74
|
+
//&:before {
|
|
75
|
+
//content: " ";
|
|
76
|
+
//display: table;
|
|
77
|
+
//}
|
|
78
|
+
}
|
|
79
|
+
/**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-points-card'
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
created() {
|
|
23
|
+
|
|
24
|
+
//@AttrDataCreated
|
|
25
|
+
this.Attr = this.$xdUniHelper.customClone(Attr);
|
|
26
|
+
//@EndAttrDataCreated
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
},
|
|
30
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
/**
|
|
3
|
+
* @description 接口配置,
|
|
4
|
+
* 在设置方法名字当时候,别忘记加上【模块名字】:Points
|
|
5
|
+
* @type {*[]}
|
|
6
|
+
*/
|
|
7
|
+
module.exports = [
|
|
8
|
+
{
|
|
9
|
+
mapFnName: 'getListBaseNewsContent', //自定义方法名字(必选)
|
|
10
|
+
title: '获取内容',
|
|
11
|
+
path: '/cms/v1/news-content',
|
|
12
|
+
isRule: false,
|
|
13
|
+
params: {
|
|
14
|
+
scene: ['使用场景', 'String', '选填'],
|
|
15
|
+
container_id: ['插件ID', 'String', '必填'],
|
|
16
|
+
page_id: ['页面ID', 'String', '必填'],
|
|
17
|
+
page_size: ['记录条数', 'Number', '必填', 1],
|
|
18
|
+
code: ['业务线id', 'String', '选填'],
|
|
19
|
+
},
|
|
20
|
+
isConsole: true,
|
|
21
|
+
disabled: true,
|
|
22
|
+
},
|
|
23
|
+
];
|