jufubao-base 1.0.238 → 1.0.239-beta1
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 +46 -0
- package/src/components/JfbBaseBalance/Attr.js +316 -0
- package/src/components/JfbBaseBalance/JfbBaseBalance.vue +334 -0
- package/src/components/JfbBaseBalance/JfbBaseBalanceLess.less +79 -0
- package/src/components/JfbBaseBalance/JfbBaseBalanceMixin.js +30 -0
- package/src/components/JfbBaseBalance/Mock.js +9 -0
- package/src/components/JfbBaseCodeOpenVip/Api.js +35 -0
- package/src/components/JfbBaseCodeOpenVip/Attr.js +281 -0
- package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVip.vue +251 -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 +133 -0
- package/src/components/JfbBaseConsumpCode/Attr.js +61 -0
- package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCode.vue +1044 -0
- package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCodeLess.less +79 -0
- package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCodeMixin.js +30 -0
- package/src/components/JfbBaseConsumpCode/Mock.js +22 -0
- package/src/components/JfbBaseFastLink/Attr.js +12 -1
- package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +66 -0
- package/src/components/JfbBaseHeader/Attr.js +82 -0
- package/src/components/JfbBaseHeader/JfbBaseHeader.vue +47 -1
- package/src/components/JfbBaseHeaderColumn/Attr.js +82 -0
- package/src/components/JfbBaseHeaderColumn/JfbBaseHeaderColumn.vue +48 -2
- package/src/components/JfbBaseLogin/JfbBaseLogin.vue +11 -0
- package/src/components/JfbBaseNoticeDialog/Api.js +1 -1
- package/src/components/JfbBaseNoticeDialog/Attr.js +26 -0
- package/src/components/JfbBaseNoticeDialog/JfbBaseNoticeDialog.vue +27 -8
- package/src/components/JfbBaseNoticeGroup/Api.js +23 -0
- package/src/components/JfbBaseNoticeGroup/Attr.js +237 -0
- package/src/components/JfbBaseNoticeGroup/JfbBaseNoticeGroup.vue +174 -0
- package/src/components/JfbBaseNoticeGroup/JfbBaseNoticeGroupLess.less +79 -0
- package/src/components/JfbBaseNoticeGroup/JfbBaseNoticeGroupMixin.js +30 -0
- package/src/components/JfbBaseNoticeGroup/Mock.js +13 -0
- package/src/components/JfbBaseOpenVip/Api.js +39 -0
- package/src/components/JfbBaseOpenVip/Attr.js +331 -0
- package/src/components/JfbBaseOpenVip/JfbBaseOpenVip.vue +457 -0
- package/src/components/JfbBaseOpenVip/JfbBaseOpenVipLess.less +79 -0
- package/src/components/JfbBaseOpenVip/JfbBaseOpenVipMixin.js +30 -0
- package/src/components/JfbBaseOpenVip/Mock.js +7 -0
- package/src/components/JfbBaseOpenVip/XdVipList.vue +131 -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 +35 -0
- package/src/components/JfbBaseOpenVipDetail/Attr.js +37 -0
- package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetail.vue +234 -0
- package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetailLess.less +79 -0
- package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetailMixin.js +30 -0
- package/src/components/JfbBaseOpenVipDetail/Mock.js +15 -0
- package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +179 -18
- package/src/components/JfbBasePay/Attr.js +52 -0
- package/src/components/JfbBasePay/JfbBasePay.vue +30 -6
- package/src/components/JfbBasePay/Mock.js +0 -9
- package/src/components/JfbBasePersonalData/Api.js +26 -0
- package/src/components/JfbBasePersonalData/Attr.js +13 -0
- package/src/components/JfbBasePersonalData/JfbBasePersonalData.vue +200 -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/JfbBasePhoneLogin/JfbBasePhoneLogin.vue +11 -1
- package/src/components/JfbBasePointsCard/Api.js +18 -0
- package/src/components/JfbBasePointsCard/Attr.js +187 -0
- package/src/components/JfbBasePointsCard/JfbBasePointsCard.vue +212 -0
- package/src/components/JfbBasePointsCard/JfbBasePointsCardLess.less +79 -0
- package/src/components/JfbBasePointsCard/JfbBasePointsCardMixin.js +30 -0
- package/src/components/JfbBasePointsCard/Mock.js +5 -0
- package/src/components/JfbBasePointsDetail/Api.js +48 -0
- package/src/components/JfbBasePointsDetail/Attr.js +305 -0
- package/src/components/JfbBasePointsDetail/JfbBasePointsDetail.vue +267 -0
- package/src/components/JfbBasePointsDetail/JfbBasePointsDetailLess.less +79 -0
- package/src/components/JfbBasePointsDetail/JfbBasePointsDetailMixin.js +30 -0
- package/src/components/JfbBasePointsDetail/Mock.js +6 -0
- package/src/components/JfbBasePoster/Attr.js +1 -1
- package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmall.vue +2 -2
- package/src/components/JfbBasePosterGroup/Api.js +22 -0
- package/src/components/JfbBasePosterGroup/Attr.js +156 -0
- package/src/components/JfbBasePosterGroup/JfbBasePosterGroup.vue +268 -0
- package/src/components/JfbBasePosterGroup/JfbBasePosterGroupLess.less +79 -0
- package/src/components/JfbBasePosterGroup/JfbBasePosterGroupMixin.js +30 -0
- package/src/components/JfbBasePosterGroup/Mock.js +13 -0
- package/src/components/JfbBaseSavingDetail/Api.js +41 -0
- package/src/components/JfbBaseSavingDetail/Attr.js +70 -0
- package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetail.vue +710 -0
- package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetailLess.less +79 -0
- package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetailMixin.js +30 -0
- package/src/components/JfbBaseSavingDetail/Mock.js +10 -0
- package/src/components/JfbBaseSavingDetail/components/echarts.min.js +26 -0
- package/src/components/JfbBaseSavingDetail/components/echarts.vue +254 -0
- package/src/components/JfbBaseSavingDetail/components/wx-canvas.js +105 -0
- package/src/components/JfbBaseShare/Api.js +20 -0
- package/src/components/JfbBaseShare/Attr.js +14 -0
- package/src/components/JfbBaseShare/JfbBaseShare.vue +273 -0
- package/src/components/JfbBaseShare/JfbBaseShareLess.less +79 -0
- package/src/components/JfbBaseShare/JfbBaseShareMixin.js +30 -0
- package/src/components/JfbBaseShare/Mock.js +16 -0
- package/src/components/JfbBaseSuccess/JfbBaseSuccess.vue +12 -2
- package/src/components/JfbBaseTfkSearch/ContentProduct.vue +12 -22
- package/src/components/JfbBaseTfkSearch/JfbBaseTfkSearch.vue +12 -1
- package/src/components/JfbBaseTfkSearch/Mock.js +51 -3
- package/src/components/JfbBaseTfkSearch/listMixins.js +2 -1
- package/src/components/JfbBaseUserInfo/Attr.js +175 -11
- package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +337 -115
- package/src/components/JfbBaseUserOrder/Attr.js +16 -0
- package/src/components/JfbBaseUserOrder/JfbBaseUserOrder.vue +11 -2
- package/src/components/JfbBaseWithDrawAgain/Api.js +41 -0
- package/src/components/JfbBaseWithDrawAgain/Attr.js +92 -0
- package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgain.vue +354 -0
- package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgainLess.less +79 -0
- package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgainMixin.js +30 -0
- package/src/components/JfbBaseWithDrawAgain/Mock.js +10 -0
- package/src/components/JfbBaseWithDrawRecord/Api.js +19 -0
- package/src/components/JfbBaseWithDrawRecord/Attr.js +79 -0
- package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecord.vue +233 -0
- package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecordLess.less +79 -0
- package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecordMixin.js +30 -0
- package/src/components/JfbBaseWithDrawRecord/Mock.js +7 -0
- package/src/components/JfbBaseWithdraw/Api.js +48 -0
- package/src/components/JfbBaseWithdraw/Attr.js +328 -0
- package/src/components/JfbBaseWithdraw/JfbBaseWithdraw.vue +272 -0
- package/src/components/JfbBaseWithdraw/JfbBaseWithdrawLess.less +79 -0
- package/src/components/JfbBaseWithdraw/JfbBaseWithdrawMixin.js +30 -0
- package/src/components/JfbBaseWithdraw/Mock.js +7 -0
- package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorize.vue +10 -0
|
@@ -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-share {
|
|
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-share {
|
|
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-share'
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
created() {
|
|
23
|
+
|
|
24
|
+
//@AttrDataCreated
|
|
25
|
+
this.Attr = this.$xdUniHelper.customClone(Attr);
|
|
26
|
+
//@EndAttrDataCreated
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
},
|
|
30
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
getInviteCardList: {
|
|
5
|
+
total_size: 1,
|
|
6
|
+
next_page_token: "",
|
|
7
|
+
list: [
|
|
8
|
+
{
|
|
9
|
+
jump_url: "111111?x-common=eyJzaGFyZV9jb2RlIjogVWY0eng2RVBmVn0",
|
|
10
|
+
share_image_url:
|
|
11
|
+
"https://sandbox-img.jufubao.cn/uploads/20250410/34559f90dd5a01e7368c02bf33f1b484.png?x-oss-process=style/size8"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
request_id: "e081f3a16f40bfbe"
|
|
15
|
+
}
|
|
16
|
+
};
|
|
@@ -63,7 +63,11 @@
|
|
|
63
63
|
<view class="settle-item" v-for="(settle,index) in info.settleInfo" :key="index">
|
|
64
64
|
<view>{{settle.label}}:</view>
|
|
65
65
|
<view v-if="settle.type === 'price'">
|
|
66
|
-
<xd-unit
|
|
66
|
+
<xd-unit
|
|
67
|
+
:largeZero="false"
|
|
68
|
+
:isShowIcon="isShowIcon"
|
|
69
|
+
:colorNew="is_plus_site ? '#999':''"
|
|
70
|
+
:price="settle.value" :is-old="false"></xd-unit>
|
|
67
71
|
</view>
|
|
68
72
|
<view v-else v-html="settle.value"></view>
|
|
69
73
|
</view>
|
|
@@ -429,6 +433,7 @@ export default {
|
|
|
429
433
|
payBgColor:'',
|
|
430
434
|
bgColor:'',
|
|
431
435
|
ticket_method_msg:'', //取票提示文案
|
|
436
|
+
is_plus_site: false,
|
|
432
437
|
|
|
433
438
|
//按钮
|
|
434
439
|
btnTextColor:'',
|
|
@@ -456,14 +461,19 @@ export default {
|
|
|
456
461
|
},
|
|
457
462
|
},
|
|
458
463
|
computed: {
|
|
459
|
-
...mapState(["brandInfo"]),
|
|
464
|
+
...mapState(["brandInfo", "siteInfo"]),
|
|
460
465
|
...styleForm.getComputedItem(),
|
|
466
|
+
isShowIcon() {
|
|
467
|
+
if(this.$configProject['isPreview']) return true;
|
|
468
|
+
return this.siteInfo.mapping.is_show_coin_icon==='Y'
|
|
469
|
+
},
|
|
461
470
|
},
|
|
462
471
|
created() {
|
|
463
472
|
this.isPreview = this.$configProject.isPreview;
|
|
464
473
|
this.noUserLoding = !this.$root['isLogined']; //判断是否需要已登录
|
|
465
474
|
if(this.isPreview) this.noUserLoding = false;
|
|
466
475
|
this.init(this.container);
|
|
476
|
+
this.is_plus_site = this.projectAttr.headers['X-Site-Group']==="vip";
|
|
467
477
|
},
|
|
468
478
|
destroyed() {
|
|
469
479
|
if (this.timeer) {
|
|
@@ -28,25 +28,13 @@
|
|
|
28
28
|
</view>
|
|
29
29
|
<view class="prodcut-content-btn" v-if="isBtn">
|
|
30
30
|
<view :class="{onePrice: cell === 1}">
|
|
31
|
-
<
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
</view>
|
|
39
|
-
<view
|
|
40
|
-
v-if="productConfig.isShowDiscount==='Y' && checkDiscountPrice"
|
|
41
|
-
:style="{color:oldPriceColor}" class="oldPrice">
|
|
42
|
-
<xd-unit
|
|
43
|
-
:price="dividePrice"
|
|
44
|
-
:iconSize="0.21"
|
|
45
|
-
:fontSize="24"
|
|
46
|
-
delete-line
|
|
47
|
-
is-gray
|
|
48
|
-
/>
|
|
49
|
-
</view>
|
|
31
|
+
<CusPrice
|
|
32
|
+
v-if="productConfig.isPrice === 'Y'"
|
|
33
|
+
type="two"
|
|
34
|
+
:showPrice="item['show_prices']"
|
|
35
|
+
:isShowIcon="productConfig.isShowIcon"
|
|
36
|
+
:isPlus="productConfig.is_plus_site">
|
|
37
|
+
</CusPrice>
|
|
50
38
|
</view>
|
|
51
39
|
<view>
|
|
52
40
|
<view @click.stop="handleDetail()" v-if="productConfig.isAddCart === 'Y'">
|
|
@@ -68,13 +56,15 @@ import getServiceUrl from "@/common/getServiceUrl";
|
|
|
68
56
|
import XdFontIcon from "@/components/XdFontIcon/XdFontIcon.vue";
|
|
69
57
|
import XdProductStatus from "@/components/XdProductStatus/XdProductStatus";
|
|
70
58
|
import XdUnit from "@/components/XdUnit/XdUnit.vue";
|
|
59
|
+
import CusPrice from "@/components/CusPrice/CusPrice";
|
|
71
60
|
|
|
72
61
|
export default {
|
|
73
62
|
name: "ContentProduct",
|
|
74
63
|
components:{
|
|
75
64
|
XdFontIcon,
|
|
76
65
|
XdUnit,
|
|
77
|
-
XdProductStatus
|
|
66
|
+
XdProductStatus,
|
|
67
|
+
CusPrice
|
|
78
68
|
},
|
|
79
69
|
props:{
|
|
80
70
|
keyword:{
|
|
@@ -250,10 +240,10 @@ export default {
|
|
|
250
240
|
& > view:first-child {
|
|
251
241
|
flex: 1;
|
|
252
242
|
& > view:first-child {
|
|
253
|
-
height: 40rpx;
|
|
254
243
|
display: flex;
|
|
244
|
+
flex-direction: column;
|
|
255
245
|
justify-content: flex-start;
|
|
256
|
-
align-items:
|
|
246
|
+
align-items: flex-start;
|
|
257
247
|
overflow: hidden;
|
|
258
248
|
}
|
|
259
249
|
& > view:nth-child(2) {
|
|
@@ -73,6 +73,7 @@
|
|
|
73
73
|
import listMixins from "./listMixins";
|
|
74
74
|
import CustomList from "./CustomList.vue";
|
|
75
75
|
import AllList from "./AllList.vue";
|
|
76
|
+
import { mapState } from 'vuex';
|
|
76
77
|
|
|
77
78
|
class EmitParent {
|
|
78
79
|
constructor(options) {
|
|
@@ -86,7 +87,7 @@
|
|
|
86
87
|
CustomList,
|
|
87
88
|
XdFontIcon,
|
|
88
89
|
AllList,
|
|
89
|
-
XdSearchHistory
|
|
90
|
+
XdSearchHistory,
|
|
90
91
|
},
|
|
91
92
|
mixins: [
|
|
92
93
|
componentsMixins, extsMixins, JfbBaseTfkSearchMixin,listMixins
|
|
@@ -127,9 +128,13 @@
|
|
|
127
128
|
allModuleItemContRadius: 16,
|
|
128
129
|
allModuleItemContBgColor: "#FFFFFF",
|
|
129
130
|
emitParent:{},
|
|
131
|
+
is_plus_site: false
|
|
130
132
|
}
|
|
131
133
|
},
|
|
132
134
|
computed: {
|
|
135
|
+
...mapState({
|
|
136
|
+
siteInfo: state => state.siteInfo,
|
|
137
|
+
}),
|
|
133
138
|
showMenuList(){
|
|
134
139
|
return [{label: "全部", value: "all"}, ...this.menuList]
|
|
135
140
|
},
|
|
@@ -231,6 +236,7 @@
|
|
|
231
236
|
return this;
|
|
232
237
|
}
|
|
233
238
|
})
|
|
239
|
+
this.is_plus_site = this.projectAttr.headers['X-Site-Group']==="vip";
|
|
234
240
|
this.init(this.container);
|
|
235
241
|
this.cusInit(this.container);
|
|
236
242
|
},
|
|
@@ -246,6 +252,11 @@
|
|
|
246
252
|
if(this.tabId === 'all'){
|
|
247
253
|
data['search_range'] = this.searchScope.map(item => item.value.split("@")[0]).join(',');
|
|
248
254
|
}
|
|
255
|
+
if(this.productConfig.isShowDiscount==='Y'){
|
|
256
|
+
data.is_show_uprice=this.$xdUniHelper.multiplyFloatNumber(this.productConfig.differ,100)
|
|
257
|
+
} else {
|
|
258
|
+
data.is_show_uprice=-1
|
|
259
|
+
}
|
|
249
260
|
|
|
250
261
|
jfbRootExec("getTfkSearchList", {
|
|
251
262
|
vm: this,
|
|
@@ -28,6 +28,18 @@ module.exports = {
|
|
|
28
28
|
sale_price: 3000,
|
|
29
29
|
status: "ok",
|
|
30
30
|
thumb: "/uploads/20231215/b2ce0235129aa592044f96343f25c338.jpeg",
|
|
31
|
+
show_prices: [
|
|
32
|
+
{
|
|
33
|
+
"p": 6500,
|
|
34
|
+
"n": "PLUS价",
|
|
35
|
+
"t": "S"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"p": 7500,
|
|
39
|
+
"n": "原价",
|
|
40
|
+
"t": "U"
|
|
41
|
+
}
|
|
42
|
+
]
|
|
31
43
|
},
|
|
32
44
|
{
|
|
33
45
|
brand_id: 30000,
|
|
@@ -43,7 +55,19 @@ module.exports = {
|
|
|
43
55
|
sale_price: 2195,
|
|
44
56
|
status: "ok",
|
|
45
57
|
thumb:
|
|
46
|
-
"https://img1.winxuancdn.com/1305/10251305_9.jpg?1530683968642"
|
|
58
|
+
"https://img1.winxuancdn.com/1305/10251305_9.jpg?1530683968642",
|
|
59
|
+
show_prices: [
|
|
60
|
+
{
|
|
61
|
+
"p": 8500,
|
|
62
|
+
"n": "PLUS价",
|
|
63
|
+
"t": "S"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"p": 7500,
|
|
67
|
+
"n": "原价",
|
|
68
|
+
"t": "U"
|
|
69
|
+
}
|
|
70
|
+
]
|
|
47
71
|
},
|
|
48
72
|
{
|
|
49
73
|
brand_id: 30000,
|
|
@@ -59,7 +83,19 @@ module.exports = {
|
|
|
59
83
|
sale_price: 4219,
|
|
60
84
|
status: "ok",
|
|
61
85
|
thumb:
|
|
62
|
-
"https://img2.winxuancdn.com/9564/10309564_9.jpg?1530754178039"
|
|
86
|
+
"https://img2.winxuancdn.com/9564/10309564_9.jpg?1530754178039",
|
|
87
|
+
show_prices: [
|
|
88
|
+
{
|
|
89
|
+
"p": 100,
|
|
90
|
+
"n": "PLUS价",
|
|
91
|
+
"t": "S"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"p": 200,
|
|
95
|
+
"n": "原价",
|
|
96
|
+
"t": "U"
|
|
97
|
+
}
|
|
98
|
+
]
|
|
63
99
|
},
|
|
64
100
|
{
|
|
65
101
|
brand_id: 30000,
|
|
@@ -75,7 +111,19 @@ module.exports = {
|
|
|
75
111
|
sale_price: 4388,
|
|
76
112
|
status: "ok",
|
|
77
113
|
thumb:
|
|
78
|
-
"https://img3.winxuancdn.com/9416/10309416_9.jpg?1530754178039"
|
|
114
|
+
"https://img3.winxuancdn.com/9416/10309416_9.jpg?1530754178039",
|
|
115
|
+
show_prices: [
|
|
116
|
+
{
|
|
117
|
+
"p": 100,
|
|
118
|
+
"n": "PLUS价",
|
|
119
|
+
"t": "S"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"p": 200,
|
|
123
|
+
"n": "原价",
|
|
124
|
+
"t": "U"
|
|
125
|
+
}
|
|
126
|
+
]
|
|
79
127
|
}
|
|
80
128
|
]
|
|
81
129
|
},
|
|
@@ -24,7 +24,8 @@ export default {
|
|
|
24
24
|
let differ = getContainerPropsValue(container, 'content.differ', 1);
|
|
25
25
|
let showActivityPrice = getContainerPropsValue(container, 'content.showActivityPrice', 'N');
|
|
26
26
|
let isShowExchange = getContainerPropsValue(container, 'content.isShowExchange', 'N');
|
|
27
|
-
|
|
27
|
+
let isShowIcon = this.siteInfo && this.siteInfo.mapping.is_show_coin_icon==='Y'
|
|
28
|
+
this.productConfig = {is_show_brand, isPrice, isShowTag, isShowDiscount, isAddCart, differ, showActivityPrice, isShowExchange,is_plus_site: this.is_plus_site,isShowIcon};
|
|
28
29
|
|
|
29
30
|
//内容
|
|
30
31
|
let brandColor = getContainerPropsValue(container, 'content.brandColor', '#aaa');
|
|
@@ -20,6 +20,34 @@ export default {
|
|
|
20
20
|
|
|
21
21
|
return [
|
|
22
22
|
{
|
|
23
|
+
label: '是否plus站点:',
|
|
24
|
+
ele: 'xd-radio',
|
|
25
|
+
valueKey: 'is_plus_site',
|
|
26
|
+
value: data['is_plus_site'] || 'N',
|
|
27
|
+
groupKey:'content',
|
|
28
|
+
placeholder: '请选择是否plus',
|
|
29
|
+
multiple: false,
|
|
30
|
+
className: 'input80',
|
|
31
|
+
list: [
|
|
32
|
+
{label: '否', value: 'N'},
|
|
33
|
+
{label: '是', value: 'Y'},
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
data['is_plus_site']==='Y'&&{
|
|
37
|
+
label: '预览plus样式:',
|
|
38
|
+
ele: 'xd-radio',
|
|
39
|
+
valueKey: 'is_plus_preview',
|
|
40
|
+
value: data['is_plus_preview'] || 'Y',
|
|
41
|
+
groupKey:'content',
|
|
42
|
+
placeholder: '请选择预览plus样式',
|
|
43
|
+
multiple: false,
|
|
44
|
+
className: 'input80',
|
|
45
|
+
list: [
|
|
46
|
+
{label: 'plus用户样式', value: 'Y'},
|
|
47
|
+
{label: '普通用户样式', value: 'N'},
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
data['is_plus']==='N'&&{
|
|
23
51
|
label: '内容排版:',
|
|
24
52
|
ele: 'xd-radio',
|
|
25
53
|
valueKey: 'text_type',
|
|
@@ -33,7 +61,7 @@ export default {
|
|
|
33
61
|
{label: '垂直', value: 'Y'},
|
|
34
62
|
]
|
|
35
63
|
},
|
|
36
|
-
{
|
|
64
|
+
data['is_plus']==='N'&&{
|
|
37
65
|
label: "头像右侧内容:",
|
|
38
66
|
ele: "xd-radio-self",
|
|
39
67
|
valueKey: "rightContent",
|
|
@@ -91,7 +119,7 @@ export default {
|
|
|
91
119
|
inline: false,
|
|
92
120
|
notice: '设置填充,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
|
|
93
121
|
},
|
|
94
|
-
{
|
|
122
|
+
data['is_plus_site']==='N'&&{
|
|
95
123
|
label: '背景颜色:',
|
|
96
124
|
ele: 'xd-color',
|
|
97
125
|
valueKey: 'backgroundColor',
|
|
@@ -101,7 +129,47 @@ export default {
|
|
|
101
129
|
placeholder: '请选择背景颜色',
|
|
102
130
|
classNmae: 'input80',
|
|
103
131
|
},
|
|
104
|
-
{
|
|
132
|
+
data['is_plus_site']==='Y'&&{
|
|
133
|
+
label: 'plus用户上半部分背景颜色:',
|
|
134
|
+
ele: 'el-input',
|
|
135
|
+
valueKey: 'plusTopBackgroundColor',
|
|
136
|
+
groupKey:'style',
|
|
137
|
+
value: data.plusTopBackgroundColor || '',
|
|
138
|
+
labelInline:true,
|
|
139
|
+
placeholder: '请输入背景颜色',
|
|
140
|
+
classNmae: 'input80',
|
|
141
|
+
},
|
|
142
|
+
data['is_plus_site']==='Y'&&{
|
|
143
|
+
label: 'plus用户下半部分背景颜色:',
|
|
144
|
+
ele: 'el-input',
|
|
145
|
+
valueKey: 'plusBottomBackgroundColor',
|
|
146
|
+
groupKey:'style',
|
|
147
|
+
value: data.plusBottomBackgroundColor || '',
|
|
148
|
+
labelInline:true,
|
|
149
|
+
placeholder: '请输入背景颜色',
|
|
150
|
+
classNmae: 'input80',
|
|
151
|
+
},
|
|
152
|
+
data['is_plus_site']==='Y'&&{
|
|
153
|
+
label: '普通用户上半部分背景颜色:',
|
|
154
|
+
ele: 'el-input',
|
|
155
|
+
valueKey: 'normalTopBackgroundColor',
|
|
156
|
+
groupKey:'style',
|
|
157
|
+
value: data.normalTopBackgroundColor || '',
|
|
158
|
+
labelInline:true,
|
|
159
|
+
placeholder: '请输入背景颜色',
|
|
160
|
+
classNmae: 'input80',
|
|
161
|
+
},
|
|
162
|
+
data['is_plus_site']==='Y'&&{
|
|
163
|
+
label: '普通用户下半部分背景颜色:',
|
|
164
|
+
ele: 'el-input',
|
|
165
|
+
valueKey: 'normalBottomBackgroundColor',
|
|
166
|
+
groupKey:'style',
|
|
167
|
+
value: data.normalBottomBackgroundColor || '',
|
|
168
|
+
labelInline:true,
|
|
169
|
+
placeholder: '请输入背景颜色',
|
|
170
|
+
classNmae: 'input80',
|
|
171
|
+
},
|
|
172
|
+
data['is_plus_site']==='N'&&{
|
|
105
173
|
label: '内容背景图片:', //label
|
|
106
174
|
ele: 'xd-upload', //package 名称
|
|
107
175
|
valueKey: 'bgImage', //form[valueKey]
|
|
@@ -125,7 +193,7 @@ export default {
|
|
|
125
193
|
label: '圆角设置:',
|
|
126
194
|
ele: 'xd-site-select-list',
|
|
127
195
|
valueKey: 'radius',
|
|
128
|
-
value: data['radius'] || '
|
|
196
|
+
value: data['radius'] || '20',
|
|
129
197
|
labelInline:true,
|
|
130
198
|
groupKey:'style',
|
|
131
199
|
placeholder: '请选择圆角设置',
|
|
@@ -176,7 +244,55 @@ export default {
|
|
|
176
244
|
selected:defContBorder.type
|
|
177
245
|
},
|
|
178
246
|
},
|
|
179
|
-
{
|
|
247
|
+
data['is_plus_site']==='Y'&&{
|
|
248
|
+
label: "plus用户昵称字体样式设置",
|
|
249
|
+
ele: "xd-text-and-bgc",
|
|
250
|
+
groupKey:'style',
|
|
251
|
+
valueKey: 'plusNickStyle',
|
|
252
|
+
value: data['plusNickStyle'] || null,
|
|
253
|
+
setting: {
|
|
254
|
+
fontSize: true,
|
|
255
|
+
color: true,
|
|
256
|
+
bgColor: false,
|
|
257
|
+
weight: true,
|
|
258
|
+
selected:false
|
|
259
|
+
},
|
|
260
|
+
handleCustom({action, data}) {
|
|
261
|
+
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
|
|
262
|
+
.then(res => {
|
|
263
|
+
data.cb(res.list)
|
|
264
|
+
})
|
|
265
|
+
.catch(error => {
|
|
266
|
+
console.error(error);
|
|
267
|
+
data.cb([])
|
|
268
|
+
});
|
|
269
|
+
},
|
|
270
|
+
},
|
|
271
|
+
data['is_plus_site']==='Y'&&{
|
|
272
|
+
label: "普通用户昵称字体样式设置",
|
|
273
|
+
ele: "xd-text-and-bgc",
|
|
274
|
+
groupKey:'style',
|
|
275
|
+
valueKey: 'normalNickStyle',
|
|
276
|
+
value: data['normalNickStyle'] || null,
|
|
277
|
+
setting: {
|
|
278
|
+
fontSize: true,
|
|
279
|
+
color: true,
|
|
280
|
+
bgColor: false,
|
|
281
|
+
weight: true,
|
|
282
|
+
selected:false
|
|
283
|
+
},
|
|
284
|
+
handleCustom({action, data}) {
|
|
285
|
+
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
|
|
286
|
+
.then(res => {
|
|
287
|
+
data.cb(res.list)
|
|
288
|
+
})
|
|
289
|
+
.catch(error => {
|
|
290
|
+
console.error(error);
|
|
291
|
+
data.cb([])
|
|
292
|
+
});
|
|
293
|
+
},
|
|
294
|
+
},
|
|
295
|
+
data['is_plus_site']==='N'&&{
|
|
180
296
|
label: "昵称字体样式设置",
|
|
181
297
|
ele: "xd-text-and-bgc",
|
|
182
298
|
groupKey:'style',
|
|
@@ -363,13 +479,13 @@ export default {
|
|
|
363
479
|
{label: '显示', value: 'Y'},
|
|
364
480
|
]
|
|
365
481
|
},
|
|
366
|
-
{
|
|
482
|
+
data['is_plus_site']==='N'&&{
|
|
367
483
|
label: "头像右侧内容配置",
|
|
368
484
|
ele: "title",
|
|
369
485
|
size: "small",
|
|
370
486
|
groupKey: "style"
|
|
371
487
|
},
|
|
372
|
-
{
|
|
488
|
+
data['is_plus_site']==='N'&&{
|
|
373
489
|
label: "头像右侧内容背景颜色:",
|
|
374
490
|
ele: "xd-color",
|
|
375
491
|
valueKey: "rightContentBgColor",
|
|
@@ -377,7 +493,7 @@ export default {
|
|
|
377
493
|
placeholder: '请选择头像右侧内容背景颜色',
|
|
378
494
|
groupKey: "style",
|
|
379
495
|
},
|
|
380
|
-
{
|
|
496
|
+
data['is_plus_site']==='N'&&{
|
|
381
497
|
label: "头像右侧内容文字颜色",
|
|
382
498
|
ele: "xd-text-and-bgc",
|
|
383
499
|
groupKey:'style',
|
|
@@ -409,7 +525,7 @@ export default {
|
|
|
409
525
|
// placeholder: '请选择头像右侧内容文字颜色',
|
|
410
526
|
// groupKey: "style",
|
|
411
527
|
// },
|
|
412
|
-
{
|
|
528
|
+
data['is_plus_site']==='N'&&{
|
|
413
529
|
label: "头像右侧内容内边距配置:",
|
|
414
530
|
ele: 'xd-margin-padding',
|
|
415
531
|
valueKey: 'rightContentPadding',
|
|
@@ -421,7 +537,7 @@ export default {
|
|
|
421
537
|
inline: false,
|
|
422
538
|
notice: '设置外填充,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
|
|
423
539
|
},
|
|
424
|
-
{
|
|
540
|
+
data['is_plus_site']==='N'&&{
|
|
425
541
|
label: "头像右侧内容圆角:",
|
|
426
542
|
ele: 'xd-site-select-list',
|
|
427
543
|
valueKey: 'rightContentRadius',
|
|
@@ -440,7 +556,7 @@ export default {
|
|
|
440
556
|
});
|
|
441
557
|
},
|
|
442
558
|
},
|
|
443
|
-
{
|
|
559
|
+
data['is_plus_site']==='N'&&{
|
|
444
560
|
label: '编辑地址路径:',
|
|
445
561
|
ele: 'xd-select-pages-path',
|
|
446
562
|
valueKey: 'addressUrl',
|
|
@@ -452,6 +568,54 @@ export default {
|
|
|
452
568
|
},
|
|
453
569
|
inline: false,
|
|
454
570
|
},
|
|
571
|
+
data['is_plus_site']==='Y'&&{
|
|
572
|
+
label: '开通vip路径:',
|
|
573
|
+
ele: 'xd-select-pages-path',
|
|
574
|
+
valueKey: 'openVipPath',
|
|
575
|
+
groupKey:'advanced',
|
|
576
|
+
placeholder: '请选择编辑地址路径',
|
|
577
|
+
value: data['openVipPath'] || null,
|
|
578
|
+
setting: {
|
|
579
|
+
router: XdBus.getParentApi('getPagesTree'),
|
|
580
|
+
},
|
|
581
|
+
inline: false,
|
|
582
|
+
},
|
|
583
|
+
data['is_plus_site']==='Y'&&{
|
|
584
|
+
label: '立即查看路径:',
|
|
585
|
+
ele: 'xd-select-pages-path',
|
|
586
|
+
valueKey: 'viewPath',
|
|
587
|
+
groupKey:'advanced',
|
|
588
|
+
placeholder: '请选择编辑地址路径',
|
|
589
|
+
value: data['viewPath'] || null,
|
|
590
|
+
setting: {
|
|
591
|
+
router: XdBus.getParentApi('getPagesTree'),
|
|
592
|
+
},
|
|
593
|
+
inline: false,
|
|
594
|
+
},
|
|
595
|
+
data['is_plus_site']==='Y'&&{
|
|
596
|
+
label: '二维码路径:',
|
|
597
|
+
ele: 'xd-select-pages-path',
|
|
598
|
+
valueKey: 'codePath',
|
|
599
|
+
groupKey:'advanced',
|
|
600
|
+
placeholder: '请选择二维码路径',
|
|
601
|
+
value: data['codePath'] || null,
|
|
602
|
+
setting: {
|
|
603
|
+
router: XdBus.getParentApi('getPagesTree'),
|
|
604
|
+
},
|
|
605
|
+
inline: false,
|
|
606
|
+
},
|
|
607
|
+
data['is_plus_site']==='Y'&&{
|
|
608
|
+
label: '个人资料路径:',
|
|
609
|
+
ele: 'xd-select-pages-path',
|
|
610
|
+
valueKey: 'profilePath',
|
|
611
|
+
groupKey:'advanced',
|
|
612
|
+
placeholder: '请选择二维码路径',
|
|
613
|
+
value: data['profilePath'] || null,
|
|
614
|
+
setting: {
|
|
615
|
+
router: XdBus.getParentApi('getPagesTree'),
|
|
616
|
+
},
|
|
617
|
+
inline: false,
|
|
618
|
+
},
|
|
455
619
|
{
|
|
456
620
|
label: '',
|
|
457
621
|
ele: 'slot',
|