jufubao-base 1.0.197-beta3 → 1.0.197-beta5
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/JfbBaseAddress.vue +4 -13
- package/src/components/JfbBaseCardEntry/Attr.js +472 -443
- package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +123 -98
- package/src/components/JfbBaseCardEntry/Mock.js +1 -0
- package/src/components/JfbBaseCardEntry/XdCardNew.vue +124 -0
- package/src/components/JfbBaseHeader/Attr.js +129 -53
- package/src/components/JfbBaseHeader/JfbBaseHeader.vue +98 -30
- package/src/components/JfbBaseHeaderElephant/Api.js +22 -0
- package/src/components/JfbBaseHeaderElephant/Attr.js +496 -0
- package/src/components/JfbBaseHeaderElephant/JfbBaseHeaderElephant.vue +453 -0
- package/src/components/JfbBaseHeaderElephant/JfbBaseHeaderElephantLess.less +79 -0
- package/src/components/JfbBaseHeaderElephant/JfbBaseHeaderElephantMixin.js +30 -0
- package/src/components/JfbBaseHeaderElephant/Mock.js +5 -0
- package/src/components/JfbBaseNotice/Attr.js +26 -0
- package/src/components/JfbBaseNotice/JfbBaseNotice.vue +13 -1
- package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +1 -1
- package/src/components/JfbBaseUserInfo/Attr.js +136 -2
- package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +107 -17
|
@@ -170,116 +170,132 @@
|
|
|
170
170
|
v-if="tabIndex === 1 && (cardList && cardList.length > 0)"
|
|
171
171
|
class="jfb-base-card-entry__body-card"
|
|
172
172
|
>
|
|
173
|
-
<
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
<view class="card-
|
|
190
|
-
<view>
|
|
191
|
-
<view>{{item['card_type_name']}}</view>
|
|
192
|
-
<view v-if="item['is_login'] === 'Y'"><text></text><text>已登录</text></view>
|
|
193
|
-
</view>
|
|
194
|
-
</view>
|
|
195
|
-
<view class="card-list__content">
|
|
196
|
-
<view>
|
|
197
|
-
<text>券号:</text>
|
|
198
|
-
<text>{{item.card_number}}{{showIndex?(':' + index):''}}</text>
|
|
199
|
-
</view>
|
|
200
|
-
<view @click.stop="toDetail(item)" v-if="subTabIndex !== 3&&isShowCode === 'Y'&&!force">
|
|
173
|
+
<template v-if="cardType==='default'">
|
|
174
|
+
<view
|
|
175
|
+
v-for="(item,index) in cardList"
|
|
176
|
+
:data-index="item.card_number"
|
|
177
|
+
:data-idx="index"
|
|
178
|
+
:data-top="item.top"
|
|
179
|
+
class="card-list"
|
|
180
|
+
:key="item.card_number"
|
|
181
|
+
@click="toDetail(item)"
|
|
182
|
+
v-if="setCardItemShow(item,index)"
|
|
183
|
+
:style="{
|
|
184
|
+
background: item['theme']['color'],
|
|
185
|
+
backgroundSize: '100%',
|
|
186
|
+
height: subTabIndex !== 3 ? item.height + 'px' : '300rpx'
|
|
187
|
+
}"
|
|
188
|
+
>
|
|
189
|
+
<view class="card-list-warp" :style="{backgroundImage: 'url('+ item['theme']['image'] +')'}">
|
|
190
|
+
<view class="card-list__title">
|
|
201
191
|
<view>
|
|
202
|
-
<
|
|
192
|
+
<view>{{item['card_type_name']}}</view>
|
|
193
|
+
<view v-if="item['is_login'] === 'Y'"><text></text><text>已登录</text></view>
|
|
203
194
|
</view>
|
|
204
|
-
<view>点击查看</view>
|
|
205
195
|
</view>
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
<view><text>购买其他物品可抵:</text><text>{{item.other_card_point}} {{ item.unit }}</text></view>
|
|
217
|
-
</view>
|
|
218
|
-
<template v-if="subTabIndex === 1">
|
|
219
|
-
<view class="card-list__entry" v-if="item.is_login==='N'&&force">
|
|
220
|
-
<view
|
|
221
|
-
@click.stop="handleBindLogin(item,item['entries'][0])"
|
|
222
|
-
:style="{
|
|
223
|
-
background: '#fff',
|
|
224
|
-
color: item['theme']['color']}"
|
|
225
|
-
>
|
|
226
|
-
登录
|
|
196
|
+
<view class="card-list__content">
|
|
197
|
+
<view>
|
|
198
|
+
<text>券号:</text>
|
|
199
|
+
<text>{{item.card_number}}{{showIndex?(':' + index):''}}</text>
|
|
200
|
+
</view>
|
|
201
|
+
<view @click.stop="toDetail(item)" v-if="subTabIndex !== 3&&isShowCode === 'Y'&&!force">
|
|
202
|
+
<view>
|
|
203
|
+
<xd-font-icon icon="iconerweima" width="56" height="56" size="50" color="#fff"></xd-font-icon>
|
|
204
|
+
</view>
|
|
205
|
+
<view>点击查看</view>
|
|
227
206
|
</view>
|
|
228
207
|
</view>
|
|
229
|
-
<view class="card-
|
|
230
|
-
<
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
208
|
+
<view class="card-list__date">
|
|
209
|
+
<text>有效期:</text>
|
|
210
|
+
<text>{{item.end_time}}</text>
|
|
211
|
+
</view>
|
|
212
|
+
<view class="card-list__yue">
|
|
213
|
+
<text>余额:</text>
|
|
214
|
+
<text>{{item.card_point}} {{ item.unit }}</text>
|
|
215
|
+
</view>
|
|
216
|
+
<view class="card-list__other" v-if="item.other_card_point && item.card_point_type === 2">
|
|
217
|
+
<view><text>购买其他物品可抵:</text><text>{{item.other_card_point}} {{ item.unit }}</text></view>
|
|
234
218
|
</view>
|
|
235
|
-
<
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
219
|
+
<template v-if="subTabIndex === 1">
|
|
220
|
+
<view class="card-list__entry" v-if="item.is_login==='N'&&force">
|
|
221
|
+
<view
|
|
222
|
+
@click.stop="handleBindLogin(item,item['entries'][0])"
|
|
223
|
+
:style="{
|
|
224
|
+
background: '#fff',
|
|
225
|
+
color: item['theme']['color']}"
|
|
226
|
+
>
|
|
227
|
+
登录
|
|
242
228
|
</view>
|
|
243
229
|
</view>
|
|
244
|
-
<view class="card-
|
|
245
|
-
<
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
230
|
+
<view class="card-list__entry" v-if="item.entries.length === 1&&!force">
|
|
231
|
+
<view
|
|
232
|
+
@click.stop="handleBindLogin(item,item['entries'][0])"
|
|
233
|
+
:style="{color: item['theme']['color']}"
|
|
234
|
+
>进入{{item['entries'][0]['entry_name']}}</view>
|
|
235
|
+
</view>
|
|
236
|
+
<view class="card-list__nodata" v-if="item.entries.length === 0&&!force">暂无支持服务列表</view>
|
|
237
|
+
<view class="card-list__entrys" v-if="item.entries.length > 1&&!force" @click.stop>
|
|
238
|
+
<view class="card-list__entrys-title">
|
|
239
|
+
<view>可兑换权益</view>
|
|
240
|
+
<view @click.stop="toDetail(item, false)">
|
|
241
|
+
<text>查看详情</text>
|
|
242
|
+
<xd-font-icon icon="iconxiangyou_xian" color="#999" size="20"></xd-font-icon>
|
|
243
|
+
</view>
|
|
244
|
+
</view>
|
|
245
|
+
<view class="card-list__entrys-list">
|
|
246
|
+
<scroll-view scroll-x class="card-list__entrys-scroll">
|
|
247
|
+
<view class="card-list__entrys-item">
|
|
248
|
+
<view
|
|
249
|
+
v-for="(entry,idx) in item.entries"
|
|
250
|
+
:key="idx"
|
|
251
|
+
@click.stop="handleBindLogin(item, entry)"
|
|
252
|
+
>
|
|
253
|
+
<view><image :src="entry.image_url"></image></view>
|
|
254
|
+
<view>{{entry|cutstr}}</view>
|
|
255
|
+
<view>
|
|
256
|
+
<text>去兑换</text>
|
|
257
|
+
<xd-font-icon icon="iconxiangyou_xian" color="#999" size="20"></xd-font-icon>
|
|
258
|
+
</view>
|
|
257
259
|
</view>
|
|
258
260
|
</view>
|
|
259
|
-
</view>
|
|
260
|
-
</
|
|
261
|
+
</scroll-view>
|
|
262
|
+
</view>
|
|
261
263
|
</view>
|
|
264
|
+
</template>
|
|
265
|
+
<view class="card-list__entry" v-else-if="subTabIndex===2">
|
|
266
|
+
<view
|
|
267
|
+
@click.stop="handleBindLogin(item,item['entries'][0])"
|
|
268
|
+
:style="{color: item['theme']['color']}"
|
|
269
|
+
>票券转换</view>
|
|
262
270
|
</view>
|
|
263
|
-
</template>
|
|
264
|
-
<view class="card-list__entry" v-else-if="subTabIndex===2">
|
|
265
|
-
<view
|
|
266
|
-
@click.stop="handleBindLogin(item,item['entries'][0])"
|
|
267
|
-
:style="{color: item['theme']['color']}"
|
|
268
|
-
>票券转换</view>
|
|
269
271
|
</view>
|
|
270
272
|
</view>
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
273
|
+
<view
|
|
274
|
+
class="card-content-empty card-list"
|
|
275
|
+
:data-index="item.card_number"
|
|
276
|
+
:data-idx="index"
|
|
277
|
+
:data-top="item.top"
|
|
278
|
+
v-else
|
|
279
|
+
:style="{
|
|
280
|
+
height: item.height + 'px',
|
|
281
|
+
backgroundImage: 'url('+ (tabIndex===2 || item.entries.length <= 1 ? cardItem: cardItemEntry) +')'
|
|
282
|
+
}"
|
|
283
|
+
></view>
|
|
284
|
+
</template>
|
|
285
|
+
<template v-if="cardType==='style2'">
|
|
286
|
+
|
|
287
|
+
<view v-for="(item,index) in cardList" :key="item.card_number">
|
|
288
|
+
<xd-card-new
|
|
289
|
+
:item="item"
|
|
290
|
+
:tabIndex="subTabIndex"
|
|
291
|
+
:cardBgColor="cardBgColor"
|
|
292
|
+
:cardFontColor="cardFontColor"
|
|
293
|
+
:mainColor="mainColor"
|
|
294
|
+
@onLogin="handleBindLogin(item,item['entries'][0])"
|
|
295
|
+
@onClick="toDetail(item)"
|
|
296
|
+
></xd-card-new>
|
|
297
|
+
</view>
|
|
298
|
+
</template>
|
|
283
299
|
</view>
|
|
284
300
|
<view v-if="tabIndex===2&&(couponList&&couponList.length)">
|
|
285
301
|
<view v-if="couponList.length" class="coupon_list">
|
|
@@ -425,6 +441,7 @@
|
|
|
425
441
|
import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
|
|
426
442
|
import XdButton from "@/components/XdButton/XdButton";
|
|
427
443
|
import XdCardV2 from "@/components/XdCardV2/XdCardV2";
|
|
444
|
+
import XdCardNew from "./XdCardNew.vue"
|
|
428
445
|
import { jfbRootExec } from "@/utils/xd.event";
|
|
429
446
|
import JfbBaseCardEntryMixin from "./JfbBaseCardEntryMixin";
|
|
430
447
|
import componentsMixins from "@/mixins/componentsMixins";
|
|
@@ -447,7 +464,8 @@ export default {
|
|
|
447
464
|
XdButton,
|
|
448
465
|
XdNoticeBar,
|
|
449
466
|
XdCardV2,
|
|
450
|
-
CusCouponItem
|
|
467
|
+
CusCouponItem,
|
|
468
|
+
XdCardNew,
|
|
451
469
|
},
|
|
452
470
|
mixins: [componentsMixins, extsMixins, JfbBaseCardEntryMixin, colorCardMixins, cardListMixins],
|
|
453
471
|
computed: {
|
|
@@ -517,6 +535,7 @@ export default {
|
|
|
517
535
|
showCardList: false,
|
|
518
536
|
showIndex:false,
|
|
519
537
|
isQrCode: false,
|
|
538
|
+
cardType: 'default',
|
|
520
539
|
|
|
521
540
|
//活动
|
|
522
541
|
dialogEvent: false,
|
|
@@ -557,7 +576,10 @@ export default {
|
|
|
557
576
|
card_use_rule: '满50减1',
|
|
558
577
|
is_transfering: 'N'
|
|
559
578
|
},
|
|
560
|
-
]
|
|
579
|
+
],
|
|
580
|
+
|
|
581
|
+
cardBgColor: "",
|
|
582
|
+
cardFontColor: "",
|
|
561
583
|
};
|
|
562
584
|
},
|
|
563
585
|
created() {
|
|
@@ -596,6 +618,7 @@ export default {
|
|
|
596
618
|
this.isShowCode = getContainerPropsValue(container, "content.isShowCode", "Y");
|
|
597
619
|
this.isShowCoupon = getContainerPropsValue(container, "content.isShowCoupon", "N");
|
|
598
620
|
this.bindCard = getContainerPropsValue(container,"content.bindCard","1");
|
|
621
|
+
this.cardType = getContainerPropsValue(container,"content.cardType","default");
|
|
599
622
|
//'wechat_mini_program|default'
|
|
600
623
|
this.entryGroupId = getContainerPropsValue(container,"content.entryGroupId","default");
|
|
601
624
|
this.couponBtnRadius = getContainerPropsValue(container, "content.couponBtnRadius", 16);
|
|
@@ -610,6 +633,8 @@ export default {
|
|
|
610
633
|
this.couponRadius = getContainerPropsValue(container, "content.couponRadius", 16);
|
|
611
634
|
this.couponLeftBgColor = getContainerPropsValue(container, "content.couponLeftBgColor", "linear-gradient(180deg, #FFA852 0%, #FF5733 100%)");
|
|
612
635
|
this.couponImageUrl = getContainerPropsValue(container, "content.couponImageUrl", "");
|
|
636
|
+
this.cardBgColor = getContainerPropsValue(container, "content.cardBgColor", "");
|
|
637
|
+
this.cardFontColor = getContainerPropsValue(container, "content.cardFontColor", "");
|
|
613
638
|
if(this.isPreview) {
|
|
614
639
|
this.tabIndex = this.isShowCoupon==='Y'?2:1;
|
|
615
640
|
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
<!-- #小象风格 -->
|
|
2
|
+
<template>
|
|
3
|
+
<view class="xd-card-new" :style="{
|
|
4
|
+
backgroundColor: cardBgColor,
|
|
5
|
+
color: cardFontColor
|
|
6
|
+
}" @click="onClick">
|
|
7
|
+
<view class="card-top">
|
|
8
|
+
<view class="card_name">{{item.card_type_name}}</view>
|
|
9
|
+
<view class="card_number">ID:{{ item.card_number }}</view>
|
|
10
|
+
</view>
|
|
11
|
+
<view class="card-center">
|
|
12
|
+
<view><text class="_b">{{item.card_point}}</text>{{item.unit}}</view>
|
|
13
|
+
<view>
|
|
14
|
+
<xd-button type="primary" size="small"
|
|
15
|
+
:style="{
|
|
16
|
+
backgroundColor: item['is_login'] === 'Y' ? alphaColor: mainColor,
|
|
17
|
+
}"
|
|
18
|
+
@click.stop="doLogin"
|
|
19
|
+
>
|
|
20
|
+
{{ tabIndex === 1 ? (item['is_login'] === 'Y' ? "已登录" : "登录") : "票券转换"}}
|
|
21
|
+
</xd-button>
|
|
22
|
+
</view>
|
|
23
|
+
</view>
|
|
24
|
+
<view class="card-bottom">
|
|
25
|
+
<view>有效期:{{item.end_time}}</view>
|
|
26
|
+
<view class="see_scope">查看使用范围</view>
|
|
27
|
+
</view>
|
|
28
|
+
</view>
|
|
29
|
+
</template>
|
|
30
|
+
|
|
31
|
+
<script>
|
|
32
|
+
import XdButton from "@/components/XdButton/XdButton.vue"
|
|
33
|
+
import Color from "color"
|
|
34
|
+
export default {
|
|
35
|
+
components: {
|
|
36
|
+
XdButton,
|
|
37
|
+
},
|
|
38
|
+
props: {
|
|
39
|
+
item: {
|
|
40
|
+
type: Object,
|
|
41
|
+
default () {
|
|
42
|
+
return {}
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
cardBgColor: {
|
|
46
|
+
type: String,
|
|
47
|
+
},
|
|
48
|
+
cardFontColor: {
|
|
49
|
+
type: String,
|
|
50
|
+
},
|
|
51
|
+
loggedBgColor: {
|
|
52
|
+
type: String,
|
|
53
|
+
},
|
|
54
|
+
mainColor: {
|
|
55
|
+
type: String,
|
|
56
|
+
},
|
|
57
|
+
tabIndex: {
|
|
58
|
+
type: Number,
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
data(){
|
|
62
|
+
return {
|
|
63
|
+
alphaColor: "",
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
created(){
|
|
67
|
+
this.alphaColor = Color(this.mainColor).alpha(0.1).string();
|
|
68
|
+
},
|
|
69
|
+
methods: {
|
|
70
|
+
doLogin(){
|
|
71
|
+
this.$emit('onLogin', this.item)
|
|
72
|
+
},
|
|
73
|
+
onClick(){
|
|
74
|
+
this.$emit('onClick')
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
</script>
|
|
79
|
+
|
|
80
|
+
<style lang="less" scoped>
|
|
81
|
+
.xd-card-new{
|
|
82
|
+
background-color: #EEE;
|
|
83
|
+
margin-top: 20rpx;
|
|
84
|
+
border-radius: 10rpx;
|
|
85
|
+
padding: 20rpx;
|
|
86
|
+
.card-top{
|
|
87
|
+
display: flex;
|
|
88
|
+
align-items: center;
|
|
89
|
+
justify-content: space-between;
|
|
90
|
+
font-size: 26rpx;
|
|
91
|
+
.card_name{
|
|
92
|
+
font-size: 24rpx;
|
|
93
|
+
font-weight: 400;
|
|
94
|
+
}
|
|
95
|
+
.card_number{
|
|
96
|
+
font-weight: 28rpx;
|
|
97
|
+
font-weight: 500;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
.card-center{
|
|
101
|
+
display: flex;
|
|
102
|
+
align-items: center;
|
|
103
|
+
justify-content: space-between;
|
|
104
|
+
margin: 40rpx 0 40rpx 0;
|
|
105
|
+
font-size: 28rpx;
|
|
106
|
+
font-weight: 400;
|
|
107
|
+
._b{
|
|
108
|
+
font-size: 48rpx;
|
|
109
|
+
margin-right: 4rpx;
|
|
110
|
+
font-weight: 700;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
.card-bottom{
|
|
114
|
+
display: flex;
|
|
115
|
+
align-items: center;
|
|
116
|
+
justify-content: space-between;
|
|
117
|
+
font-size: 24rpx;
|
|
118
|
+
font-weight: 500;
|
|
119
|
+
.see_scope{
|
|
120
|
+
font-weight: 400;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
</style>
|
|
@@ -46,6 +46,18 @@ export default {
|
|
|
46
46
|
{label: "不显示", value: "N"}
|
|
47
47
|
]
|
|
48
48
|
},
|
|
49
|
+
{
|
|
50
|
+
label: "定位样式",
|
|
51
|
+
ele: "xd-radio",
|
|
52
|
+
valueKey: "searchBoxPosition",
|
|
53
|
+
value: data.searchBoxPosition || "out",
|
|
54
|
+
list: [
|
|
55
|
+
{label: "搜索框外", value: "out"},
|
|
56
|
+
{label: "搜索框内", value: "in"}
|
|
57
|
+
],
|
|
58
|
+
groupKey:'content',
|
|
59
|
+
hidden: data.showLocation !== 'Y'
|
|
60
|
+
},
|
|
49
61
|
{
|
|
50
62
|
label: "是否显示站点信息",
|
|
51
63
|
ele: "xd-radio",
|
|
@@ -77,6 +89,108 @@ export default {
|
|
|
77
89
|
value: data.placeholder || '',
|
|
78
90
|
className: "input80"
|
|
79
91
|
},
|
|
92
|
+
{
|
|
93
|
+
label: '搜索框圆角',
|
|
94
|
+
ele: 'xd-site-select-list',
|
|
95
|
+
valueKey: 'searchBoxRadius',
|
|
96
|
+
value: data.searchBoxRadius || 30,
|
|
97
|
+
groupKey:'content',
|
|
98
|
+
placeholder: '请选择内容圆角设置',
|
|
99
|
+
multiple: false,
|
|
100
|
+
className: 'input80',
|
|
101
|
+
handleCustom({ action, data }) {
|
|
102
|
+
XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_radius' })
|
|
103
|
+
.then(res => {
|
|
104
|
+
data.cb(res.list)
|
|
105
|
+
})
|
|
106
|
+
.catch(error => {
|
|
107
|
+
console.error(error);
|
|
108
|
+
});
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
label: "放大镜位置",
|
|
113
|
+
ele: "xd-radio",
|
|
114
|
+
valueKey: "searchIconPosition",
|
|
115
|
+
value: data.searchIconPosition || "right",
|
|
116
|
+
list: [
|
|
117
|
+
{label: "靠左", value: "left"},
|
|
118
|
+
{label: "靠右", value: "right"},
|
|
119
|
+
{label: "隐藏", value: "hidden"}
|
|
120
|
+
],
|
|
121
|
+
groupKey:'content',
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
label: "右侧是否展示搜索",
|
|
125
|
+
ele: "xd-radio",
|
|
126
|
+
valueKey: "showSearchBtn",
|
|
127
|
+
value: data.showSearchBtn,
|
|
128
|
+
list: [
|
|
129
|
+
{label: "展示", value: "Y"},
|
|
130
|
+
{label: "隐藏", value: "N"}
|
|
131
|
+
],
|
|
132
|
+
groupKey:'content',
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
label: "搜索位置",
|
|
136
|
+
ele: "xd-radio",
|
|
137
|
+
valueKey: "searchBtnPosition",
|
|
138
|
+
value: data.searchBtnPosition || "out",
|
|
139
|
+
list: [
|
|
140
|
+
{label: "搜索框内", value: "in"},
|
|
141
|
+
{label: "搜索框外", value: "out"}
|
|
142
|
+
],
|
|
143
|
+
groupKey:'content',
|
|
144
|
+
hidden: data.showSearchBtn !== 'Y'
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
label: "右侧搜索按钮文案自定义",
|
|
148
|
+
ele: "el-input",
|
|
149
|
+
placeholder: '请输入搜索按钮文案',
|
|
150
|
+
valueKey: "searchBtnText",
|
|
151
|
+
groupKey:'content',
|
|
152
|
+
value: data.searchBtnText || '',
|
|
153
|
+
className: "input80",
|
|
154
|
+
hidden: data.showSearchBtn !== 'Y'
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
label: "搜索按钮背景颜色",
|
|
158
|
+
ele: "xd-color",
|
|
159
|
+
placeholder: '请输入搜索按钮背景颜色',
|
|
160
|
+
valueKey: "searchBtnBgColor",
|
|
161
|
+
groupKey:'content',
|
|
162
|
+
value: data.searchBtnBgColor || '',
|
|
163
|
+
hidden: data.showSearchBtn !== 'Y'
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
label: "搜索按钮文字颜色",
|
|
167
|
+
ele: "xd-color",
|
|
168
|
+
placeholder: '请输入搜索按钮文字颜色',
|
|
169
|
+
valueKey: "searchBtnTextColor",
|
|
170
|
+
groupKey:'content',
|
|
171
|
+
value: data.searchBtnTextColor || '',
|
|
172
|
+
hidden: data.showSearchBtn !== 'Y'
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
label: "搜索按钮圆角",
|
|
176
|
+
ele: 'xd-site-select-list',
|
|
177
|
+
valueKey: 'searchBtnRadius',
|
|
178
|
+
value: data.searchBtnRadius || 0,
|
|
179
|
+
groupKey:'content',
|
|
180
|
+
placeholder: '请选择内容圆角设置',
|
|
181
|
+
multiple: false,
|
|
182
|
+
className: 'input80',
|
|
183
|
+
handleCustom({ action, data }) {
|
|
184
|
+
XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_radius' })
|
|
185
|
+
.then(res => {
|
|
186
|
+
data.cb(res.list)
|
|
187
|
+
})
|
|
188
|
+
.catch(error => {
|
|
189
|
+
console.error(error);
|
|
190
|
+
});
|
|
191
|
+
},
|
|
192
|
+
hidden: data.showSearchBtn !== 'Y'
|
|
193
|
+
},
|
|
80
194
|
{
|
|
81
195
|
label: '背景颜色:',
|
|
82
196
|
ele: 'xd-color',
|
|
@@ -86,6 +200,14 @@ export default {
|
|
|
86
200
|
classNmae: 'input80',
|
|
87
201
|
groupKey:'style',
|
|
88
202
|
},
|
|
203
|
+
{
|
|
204
|
+
label: "底部边框设置:",
|
|
205
|
+
ele: "xd-border",
|
|
206
|
+
valueKey: "bottomBorder",
|
|
207
|
+
value: data['bottomBorder'] || {},
|
|
208
|
+
className: 'input80',
|
|
209
|
+
groupKey: 'style',
|
|
210
|
+
},
|
|
89
211
|
{
|
|
90
212
|
ele: 'title',
|
|
91
213
|
label: '定位功能样式设置',
|
|
@@ -152,7 +274,7 @@ export default {
|
|
|
152
274
|
value: data['inputBackgroundColor'] || '',
|
|
153
275
|
groupKey:'style',
|
|
154
276
|
placeholder: '请选择背景颜色',
|
|
155
|
-
|
|
277
|
+
className: 'input80',
|
|
156
278
|
},
|
|
157
279
|
{
|
|
158
280
|
label: '输入框文字颜色:',
|
|
@@ -161,64 +283,15 @@ export default {
|
|
|
161
283
|
groupKey:'style',
|
|
162
284
|
value: data['inputTextColor'] || '',
|
|
163
285
|
placeholder: '请选择输入框文字颜色',
|
|
164
|
-
classNmae: 'input80',
|
|
165
|
-
},
|
|
166
|
-
{
|
|
167
|
-
ele: 'title',
|
|
168
|
-
label: '投影设置',
|
|
169
|
-
size: 'small',
|
|
170
|
-
groupKey:'style',
|
|
171
|
-
},
|
|
172
|
-
{
|
|
173
|
-
label: '是否有投影:',
|
|
174
|
-
ele: 'xd-radio',
|
|
175
|
-
valueKey: 'is_shadow',
|
|
176
|
-
value: data['is_shadow'] || 'N',
|
|
177
|
-
placeholder: '请选择是否投影',
|
|
178
|
-
groupKey:'style',
|
|
179
|
-
multiple: false,
|
|
180
|
-
className: 'input80',
|
|
181
|
-
list: [
|
|
182
|
-
{label: '是', value: 'Y'},
|
|
183
|
-
{label: '否', value: 'N'},
|
|
184
|
-
]
|
|
185
|
-
},
|
|
186
|
-
data['is_shadow'] === 'Y' && {
|
|
187
|
-
label: '投影颜色:',
|
|
188
|
-
ele: 'xd-color',
|
|
189
|
-
valueKey: 'is_shadow_bg',
|
|
190
|
-
value: data['is_shadow_bg'] || '',
|
|
191
|
-
groupKey:'style',
|
|
192
|
-
placeholder: '请选择投影颜色',
|
|
193
|
-
classNmae: 'input80',
|
|
194
|
-
},
|
|
195
|
-
data['is_shadow'] === 'Y' && {
|
|
196
|
-
label: '投影范围:',
|
|
197
|
-
ele: 'xd-site-select-list',
|
|
198
|
-
groupKey:'style',
|
|
199
|
-
valueKey: 'is_shadow_w',
|
|
200
|
-
value: data['is_shadow_w'] || '10',
|
|
201
|
-
placeholder: '请选择投影范围',
|
|
202
|
-
multiple: false,
|
|
203
286
|
className: 'input80',
|
|
204
|
-
handleCustom({action, data}) {
|
|
205
|
-
XdBus.getParentApi('getOptionsSettingList')({
|
|
206
|
-
setting_id: 'edtix_style_radius',
|
|
207
|
-
key: Date.now()
|
|
208
|
-
})
|
|
209
|
-
.then(res => {
|
|
210
|
-
data.cb(res.list)
|
|
211
|
-
})
|
|
212
|
-
.catch(error => {
|
|
213
|
-
console.error(error);
|
|
214
|
-
});
|
|
215
|
-
},
|
|
216
287
|
},
|
|
288
|
+
|
|
217
289
|
{
|
|
218
290
|
ele: 'title',
|
|
219
291
|
label: '边框设置',
|
|
220
292
|
size: 'small',
|
|
221
293
|
groupKey:'style',
|
|
294
|
+
hidden: true,
|
|
222
295
|
},
|
|
223
296
|
{
|
|
224
297
|
label: '是否有边框:',
|
|
@@ -232,7 +305,8 @@ export default {
|
|
|
232
305
|
list: [
|
|
233
306
|
{label: '是', value: 'Y'},
|
|
234
307
|
{label: '否', value: 'N'},
|
|
235
|
-
]
|
|
308
|
+
],
|
|
309
|
+
hidden: true,
|
|
236
310
|
},
|
|
237
311
|
data['is_border'] === 'Y' && {
|
|
238
312
|
label: '边框颜色:',
|
|
@@ -242,6 +316,7 @@ export default {
|
|
|
242
316
|
value: data['is_border_c'] || '',
|
|
243
317
|
placeholder: '请选择边框颜色',
|
|
244
318
|
classNmae: 'input80',
|
|
319
|
+
hidden: true,
|
|
245
320
|
},
|
|
246
321
|
data['is_border'] === 'Y' && {
|
|
247
322
|
label: '边框大小:',
|
|
@@ -252,6 +327,7 @@ export default {
|
|
|
252
327
|
value: data['is_border_w'] || '',
|
|
253
328
|
placeholder: '请输入边框颜色',
|
|
254
329
|
className: 'input80',
|
|
330
|
+
hidden: true,
|
|
255
331
|
},
|
|
256
332
|
{
|
|
257
333
|
label: '搜索页面链接:',
|