jufubao-base 1.0.116-beta7 → 1.0.116-beta9
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/JfbBaseCardEntry/JfbBaseCardEntry.vue +1 -1
- package/src/components/JfbBaseCardInfo/Attr.js +21 -0
- package/src/components/JfbBaseCardInfo/JfbBaseCardInfo.vue +40 -4
- package/src/components/JfbBaseCardInfoEntry/Attr.js +11 -0
- package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntry.vue +33 -4
- package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntry.vue +10 -10
- package/src/components/JfbBaseConFlashHome/Api.js +60 -0
- package/src/components/JfbBaseConFlashHome/Attr.js +106 -0
- package/src/components/JfbBaseConFlashHome/JfbBaseConFlashHome.vue +110 -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 +106 -0
- package/src/components/JfbBaseConFlashList/JfbBaseConFlashList.vue +110 -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 +1 -1
- package/src/components/JfbBaseMySetting/Api.js +43 -0
- package/src/components/JfbBaseMySetting/Attr.js +23 -0
- package/src/components/JfbBaseMySetting/JfbBaseMySetting.vue +202 -0
- package/src/components/JfbBaseMySetting/JfbBaseMySettingLess.less +80 -0
- package/src/components/JfbBaseMySetting/JfbBaseMySettingMixin.js +30 -0
- package/src/components/JfbBaseMySetting/Mock.js +5 -0
- package/src/components/JfbBaseMySetting/XdListItem.vue +136 -0
|
@@ -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-my-setting {
|
|
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-my-setting {
|
|
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-my-setting'
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
created() {
|
|
23
|
+
|
|
24
|
+
//@AttrDataCreated
|
|
25
|
+
this.Attr = this.$xdUniHelper.customClone(Attr);
|
|
26
|
+
//@EndAttrDataCreated
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
},
|
|
30
|
+
}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view class="xd-my-list-item"
|
|
3
|
+
:class="'size_'+size"
|
|
4
|
+
:style="{
|
|
5
|
+
borderTop: showBottom ? '1px solid #eee':'none',
|
|
6
|
+
marginTop: showBottom? paddingTB: 0,
|
|
7
|
+
paddingLeft: paddingLR,
|
|
8
|
+
paddingRight: paddingLR,
|
|
9
|
+
paddingTop: paddingTB,
|
|
10
|
+
paddingBottom: paddingTB,
|
|
11
|
+
}"
|
|
12
|
+
@click="$emit('click')">
|
|
13
|
+
<view v-if="listIcon" class="my-list_icon">
|
|
14
|
+
<!-- <image mode="widthFix" :src="listIcon" /> -->
|
|
15
|
+
<xd-font-icon :icon="listIcon"></xd-font-icon>
|
|
16
|
+
</view>
|
|
17
|
+
<view class="my-list_label" v-html="label"></view>
|
|
18
|
+
<view class="my-list_value">
|
|
19
|
+
<slot></slot>
|
|
20
|
+
<xd-font-icon
|
|
21
|
+
v-if="showRight"
|
|
22
|
+
:style="{
|
|
23
|
+
marginLeft: '10rpx',
|
|
24
|
+
color: '#B1B1B1'
|
|
25
|
+
}"
|
|
26
|
+
size="24"
|
|
27
|
+
icon="iconxiangyou_xian"
|
|
28
|
+
></xd-font-icon>
|
|
29
|
+
</view>
|
|
30
|
+
|
|
31
|
+
</view>
|
|
32
|
+
</template>
|
|
33
|
+
|
|
34
|
+
<script>
|
|
35
|
+
import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
|
|
36
|
+
export default {
|
|
37
|
+
components: {
|
|
38
|
+
XdFontIcon
|
|
39
|
+
},
|
|
40
|
+
data(){
|
|
41
|
+
return {
|
|
42
|
+
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
props: {
|
|
46
|
+
size: {
|
|
47
|
+
type: String,
|
|
48
|
+
default: "default"
|
|
49
|
+
},
|
|
50
|
+
paddingTB:{
|
|
51
|
+
type: String,
|
|
52
|
+
default: "24rpx"
|
|
53
|
+
},
|
|
54
|
+
paddingLR: {
|
|
55
|
+
type: String,
|
|
56
|
+
default: "0rpx"
|
|
57
|
+
},
|
|
58
|
+
//是否显示border-bottom
|
|
59
|
+
showBottom: {
|
|
60
|
+
type: Boolean,
|
|
61
|
+
default: false
|
|
62
|
+
},
|
|
63
|
+
//是否显示右箭头
|
|
64
|
+
showRight: {
|
|
65
|
+
type: Boolean,
|
|
66
|
+
default: false
|
|
67
|
+
},
|
|
68
|
+
//是否显示图标
|
|
69
|
+
listIcon: {
|
|
70
|
+
type: String,
|
|
71
|
+
default: ''
|
|
72
|
+
},
|
|
73
|
+
//label
|
|
74
|
+
label: {
|
|
75
|
+
type: String,
|
|
76
|
+
default: ''
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
}
|
|
81
|
+
</script>
|
|
82
|
+
|
|
83
|
+
<style lang="less" scoped>
|
|
84
|
+
.xd-my-list-item{
|
|
85
|
+
display: flex;
|
|
86
|
+
align-items: center;
|
|
87
|
+
padding: 30rpx 0;
|
|
88
|
+
font-size: 28rpx;
|
|
89
|
+
background: #FFFFFF;
|
|
90
|
+
color: #666666;
|
|
91
|
+
|
|
92
|
+
&.size_large{
|
|
93
|
+
.my-list_value,
|
|
94
|
+
.my-list_label{
|
|
95
|
+
font-size: 28rpx;
|
|
96
|
+
font-weight: 400;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
&.size_default{
|
|
100
|
+
.my-list_value,
|
|
101
|
+
.my-list_label{
|
|
102
|
+
font-size: 28rpx;
|
|
103
|
+
font-weight: 400;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
&.size_small{
|
|
107
|
+
.my-list_value,
|
|
108
|
+
.my-list_label{
|
|
109
|
+
font-size: 24rpx;
|
|
110
|
+
font-weight: 400;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.my-list_icon{
|
|
115
|
+
width: 32rpx;
|
|
116
|
+
margin-right: 24rpx;
|
|
117
|
+
|
|
118
|
+
image{
|
|
119
|
+
width: 32rpx;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.my-list_label{
|
|
124
|
+
// flex: 1;
|
|
125
|
+
}
|
|
126
|
+
.my-list_value{
|
|
127
|
+
flex: 1;
|
|
128
|
+
display: flex;
|
|
129
|
+
align-items: center;
|
|
130
|
+
justify-content: flex-end;
|
|
131
|
+
}
|
|
132
|
+
.arrow_right{
|
|
133
|
+
width: 44rpx;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
</style>
|