jufubao-base 1.0.192-beta1 → 1.0.193

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.
Files changed (27) hide show
  1. package/commands.js +1 -1
  2. package/package.json +1 -1
  3. package/src/components/JfbBaseAddress/Attr.js +1 -109
  4. package/src/components/JfbBaseAddress/JfbBaseAddress.vue +77 -153
  5. package/src/components/JfbBaseFastLink/Attr.js +6 -22
  6. package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +20 -35
  7. package/src/components/JfbBaseFooter/Attr.js +75 -141
  8. package/src/components/JfbBaseFooter/JfbBaseFooter.vue +15 -50
  9. package/src/components/JfbBaseLogin/Attr.js +1 -6
  10. package/src/components/JfbBaseOrderDetail/Attr.js +65 -147
  11. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +46 -96
  12. package/src/components/JfbBaseOrderList/Attr.js +2 -59
  13. package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +92 -139
  14. package/src/components/JfbBaseOrderList/Mock.js +0 -3
  15. package/src/components/JfbBasePhoneCollect/Attr.js +1 -6
  16. package/src/components/JfbBasePhoneLogin/Attr.js +1 -6
  17. package/src/components/JfbBaseUserCenter/Attr.js +48 -240
  18. package/src/components/JfbBaseUserCenter/JfbBaseUserCenter.vue +30 -101
  19. package/src/components/JfbBaseUserInfo/Attr.js +30 -179
  20. package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +44 -80
  21. package/src/components/JfbBaseUserOrder/Attr.js +25 -291
  22. package/src/components/JfbBaseUserOrder/JfbBaseUserOrder.vue +54 -172
  23. package/src/components/JfbBaseWallet/Attr.js +2 -340
  24. package/src/components/JfbBaseWallet/JfbBaseWallet.vue +49 -173
  25. package/src/ICONS.js +0 -1128
  26. package/src/components/JfbBaseAddress/XdTfkItem.vue +0 -117
  27. package/src/components/JfbBaseOrderList/XdTfkOrderItem.vue +0 -267
@@ -6,6 +6,12 @@ export default {
6
6
  style: [],
7
7
  content: (data)=>{
8
8
  return [
9
+ {
10
+ label: '',
11
+ ele: 'slot',
12
+ slot: 'is_reference_title',
13
+ groupKey:'advanced',
14
+ },
9
15
  {
10
16
  label: '内容排版:',
11
17
  ele: 'xd-radio',
@@ -21,39 +27,30 @@ export default {
21
27
  ]
22
28
  },
23
29
  {
24
- label: '退出登录自定义名称:',
25
- ele: 'el-input',
26
- type: 'text',
27
- groupKey:'content',
28
- valueKey: 'logoutName',
29
- value: data['logoutName'] || '',
30
- notice: '退出登录自定义名称设置,默认值:<span style="color:red">[退出登录]</span>',
31
- inline: false,
32
- className: 'input60',
33
- },
34
-
35
- {
36
- ele: 'title',
37
- label: '用户图像设置',
38
- size: 'small',
39
- groupKey:'content',
30
+ label: '内容文字颜色:',
31
+ ele: 'xd-color',
32
+ valueKey: 'textColor',
33
+ groupKey:'style',
34
+ value: data.textColor || '',
35
+ placeholder: '请选择内容文字颜色',
36
+ classNmae: 'input80',
40
37
  },
41
38
  {
42
- label: '边框颜色:',
39
+ label: '内容背景颜色:',
43
40
  ele: 'xd-color',
44
- groupKey:'content',
45
- valueKey: 'imageColor',
46
- value: data['imageColor'] || '',
47
- placeholder: '请选择背景颜色',
41
+ valueKey: 'backgroundColor',
42
+ groupKey:'style',
43
+ value: data.backgroundColor || '',
44
+ placeholder: '请选择内容背景颜色',
48
45
  classNmae: 'input80',
49
46
  },
50
47
  {
51
- label: '圆角设置:',
48
+ label: '内容圆角设置:',
52
49
  ele: 'xd-site-select-list',
53
- valueKey: 'imageRadius',
54
- value: data['imageRadius'] || '50%',
55
- groupKey:'content',
56
- placeholder: '请选择圆角设置',
50
+ valueKey: 'radius',
51
+ value: data['radius'] || '',
52
+ groupKey:'style',
53
+ placeholder: '请选择内容圆角设置',
57
54
  multiple: false,
58
55
  className: 'input60',
59
56
  handleCustom({action, data}) {
@@ -62,21 +59,15 @@ export default {
62
59
  key: Date.now()
63
60
  })
64
61
  .then(res => {
65
- data.cb(res.list.map(item=>{
66
- return {
67
- ...item,
68
- value: item.value + 'rpx'
69
- }
70
- }).concat({label: '圆角', value:'50%'}))
62
+ data.cb(res.list)
71
63
  })
72
64
  .catch(error => {
73
65
  console.error(error);
74
66
  });
75
67
  },
76
68
  },
77
-
78
69
  {
79
- label: '设置外边距:',
70
+ label: '内容设置外边距:',
80
71
  ele: 'xd-margin-padding',
81
72
  valueKey: 'margin',
82
73
  groupKey:'style',
@@ -84,11 +75,12 @@ export default {
84
75
  setting: {
85
76
  type: 'margin',
86
77
  },
78
+ placeholder: '请设置外边距',
87
79
  inline: false,
88
- notice: '设置外边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
80
+ notice: '设置外边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">0</span>像素',
89
81
  },
90
82
  {
91
- label: '设置填充:',
83
+ label: '内容设置内边距:',
92
84
  groupKey:'style',
93
85
  ele: 'xd-margin-padding',
94
86
  valueKey: 'padding',
@@ -96,127 +88,15 @@ export default {
96
88
  setting: {
97
89
  type: 'padding',
98
90
  },
99
- placeholder: '设置填充',
91
+ placeholder: '请设置边距',
100
92
  inline: false,
101
- notice: '设置填充,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
102
- },
103
- {
104
- label: '背景颜色:',
105
- ele: 'xd-color',
106
- valueKey: 'backgroundColor',
107
- groupKey:'style',
108
- value: data.backgroundColor || '',
109
- placeholder: '请选择背景颜色',
110
- classNmae: 'input80',
111
- },
112
- {
113
- label: '圆角设置:',
114
- ele: 'xd-site-select-list',
115
- valueKey: 'radius',
116
- value: data['radius'] || '0',
117
- groupKey:'style',
118
- placeholder: '请选择圆角设置',
119
- multiple: false,
120
- className: 'input60',
121
- handleCustom({action, data}) {
122
- XdBus.getParentApi('getOptionsSettingList')({
123
- setting_id: 'edtix_style_radius',
124
- key: Date.now()
125
- })
126
- .then(res => {
127
- data.cb(res.list)
128
- })
129
- .catch(error => {
130
- console.error(error);
131
- });
132
- },
133
- },
134
- {
135
- label: '投影设置:',
136
- ele: 'xd-shadow',
137
- groupKey:'style',
138
- valueKey: 'contShadow',
139
- value: data['contShadow'] || '',
140
- setting: {
141
- selected: 'N'
142
- },
143
- handleCustom({action, data}) {
144
- XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
145
- .then(res => {
146
- data.cb(res.list)
147
- })
148
- .catch(error => {
149
- console.error(error);
150
- data.cb([])
151
- });
152
- },
153
- },
154
- {
155
- label: '边框设置:',
156
- ele: 'xd-border',
157
- groupKey:'style',
158
- valueKey: 'contBorder',
159
- value: data['contBorder'] || '',
160
- setting: {
161
- selected:'N'
162
- },
93
+ notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
163
94
  },
164
- {
165
- label: "昵称字体样式设置",
166
- ele: "xd-text-and-bgc",
167
- groupKey:'style',
168
- valueKey: 'nickStyle',
169
- value: data['nickStyle'] || null,
170
- setting: {
171
- fontSize: true,
172
- color: true,
173
- bgColor: false,
174
- weight: true,
175
- selected:false
176
- },
177
- handleCustom({action, data}) {
178
- XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
179
- .then(res => {
180
- data.cb(res.list)
181
- })
182
- .catch(error => {
183
- console.error(error);
184
- data.cb([])
185
- });
186
- },
187
- },
188
- {
189
- label: "退出字体样式设置",
190
- ele: "xd-text-and-bgc",
191
- groupKey:'style',
192
- valueKey: 'logoutStyle',
193
- value: data['logoutStyle'] || null,
194
- setting: {
195
- fontSize: true,
196
- color: true,
197
- bgColor: false,
198
- weight: true,
199
- selected:false
200
- },
201
- handleCustom({action, data}) {
202
- XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
203
- .then(res => {
204
- data.cb(res.list)
205
- })
206
- .catch(error => {
207
- console.error(error);
208
- data.cb([])
209
- });
210
- },
211
- },
212
-
213
- //=====属性已废弃(不能删除,已隐藏)====
214
95
  {
215
96
  ele: 'title',
216
97
  label: '投影设置',
217
98
  size: 'small',
218
99
  groupKey:'style',
219
- hidden: true,
220
100
  },
221
101
  {
222
102
  label: '是否有投影:',
@@ -227,7 +107,6 @@ export default {
227
107
  placeholder: '请选择是否投影',
228
108
  multiple: false,
229
109
  className: 'input80',
230
- hidden: true,
231
110
  list: [
232
111
  {label: '是', value: 'Y'},
233
112
  {label: '否', value: 'N'},
@@ -241,7 +120,6 @@ export default {
241
120
  value: data['is_shadow_bg'] || '',
242
121
  placeholder: '请选择投影颜色',
243
122
  classNmae: 'input80',
244
- hidden: true,
245
123
  },
246
124
  data['is_shadow'] === 'Y' && {
247
125
  label: '投影范围:',
@@ -264,19 +142,16 @@ export default {
264
142
  console.error(error);
265
143
  });
266
144
  },
267
- hidden: true,
268
145
  },
269
146
  {
270
147
  ele: 'title',
271
148
  label: '边框设置',
272
149
  size: 'small',
273
150
  groupKey:'style',
274
- hidden: true,
275
151
  },
276
152
  {
277
153
  label: '是否有边框:',
278
154
  ele: 'xd-radio',
279
- hidden: true,
280
155
  valueKey: 'is_border',
281
156
  groupKey:'style',
282
157
  value: data['is_border'] || 'N',
@@ -290,7 +165,6 @@ export default {
290
165
  },
291
166
  data['is_border'] === 'Y' && {
292
167
  label: '边框颜色:',
293
- hidden: true,
294
168
  ele: 'xd-color',
295
169
  groupKey:'style',
296
170
  valueKey: 'is_border_c',
@@ -299,7 +173,6 @@ export default {
299
173
  classNmae: 'input80',
300
174
  },
301
175
  data['is_border'] === 'Y' && {
302
- hidden: true,
303
176
  label: '边框大小:',
304
177
  ele: 'el-input',
305
178
  type: 'number',
@@ -309,28 +182,6 @@ export default {
309
182
  placeholder: '请输入边框颜色',
310
183
  className: 'input80',
311
184
  },
312
- //=====属性已废弃====
313
-
314
- 0&&{
315
- label: '是否显示设置:',
316
- ele: 'xd-radio',
317
- valueKey: 'isSetting',
318
- value: data['isSetting'] || 'N',
319
- groupKey:'advanced',
320
- placeholder: '是否显示设置',
321
- multiple: false,
322
- className: 'input80',
323
- list: [
324
- {label: '不显示', value: 'N'},
325
- {label: '显示', value: 'Y'},
326
- ]
327
- },
328
- {
329
- label: '',
330
- ele: 'slot',
331
- slot: 'is_reference_title',
332
- groupKey:'advanced',
333
- },
334
185
  {
335
186
  label: '',
336
187
  ele: 'slot',
@@ -18,9 +18,10 @@
18
18
  <view
19
19
  class="jfb-base-user-info__body-header"
20
20
  :style="{
21
- margin: marginComp,
22
- background : backgroundColor,
23
- padding: paddingComp,
21
+ margin: outMargin,
22
+ background:backgroundColor,
23
+ color: color,
24
+ padding: outPadding,
24
25
  boxShadow: shadow,
25
26
  borderRadius: radius + 'rpx',
26
27
  border: borderBox
@@ -33,26 +34,26 @@
33
34
  >
34
35
  <template v-if="logined">
35
36
  <image v-if="userInfo['head_url']" :src="userInfo['head_url']"></image>
36
- <view class="no-image" :style="{borderColor: imageColor, borderRadius:imageRadius}" v-else>
37
- <xd-font-icon :color="imageColor" icon="iconwode_mian" size="100"></xd-font-icon>
37
+ <view class="no-image" :style="{borderColor: color}" v-else>
38
+ <xd-font-icon :color="color" icon="iconwode_mian" size="100"></xd-font-icon>
38
39
  </view>
39
40
  </template>
40
- <view v-else class="no-image" :style="{borderColor: imageColor, borderRadius:imageRadius}">
41
- <xd-font-icon :color="imageColor" icon="iconwode_mian" size="90"></xd-font-icon>
41
+ <view v-else class="no-image" :style="{borderColor: color}">
42
+ <xd-font-icon :color="color" icon="iconwode_mian" size="90"></xd-font-icon>
42
43
  </view>
43
- <view v-if="logined && textType ==='N'" :style="[nickNameStyle]">{{userInfo|getName}}</view>
44
- <view class="vertical-user" v-if="logined && textType ==='Y'">
45
- <view :style="[nickNameStyle]">{{userInfo|getName}}</view>
44
+ <view v-if="logined && textType ==='N'" :style="{color:color}">{{userInfo|getName}}</view>
45
+ <view class="vertical-user" v-if="logined && textType ==='Y'" :style="{color:color}">
46
+ <view>{{userInfo|getName}}</view>
46
47
  <view class="logout" @click="handleLogout()">
47
- <view :style="[logoutStyleComp]">{{logoutName}}</view>
48
+ <view :style="{color:color}">[退出登录]</view>
48
49
  </view>
49
- <view @click="handleToLink()" v-if="isSetting === 'Y'">
50
- <xd-font-icon size="26" icon="iconshezhi_mian"></xd-font-icon>
50
+ <view @click="handleToLink()" v-if="0">
51
+ <xd-font-icon :color="color" size="40" icon="iconshezhi_mian"></xd-font-icon>
51
52
  </view>
52
53
  </view>
53
54
  </view>
54
55
  <view @click="handleLogout()" v-if="logined && textType ==='N'" class="logout">
55
- <view :style="[logoutStyleComp]">{{logoutName}}</view>
56
+ <view :style="{color:color}">[退出登录]</view>
56
57
  </view>
57
58
  </view>
58
59
  </view>
@@ -78,14 +79,14 @@
78
79
  computed: {
79
80
  ...mapState(['jfbAuthorize']),
80
81
 
81
- marginComp() {
82
+ outMargin() {
82
83
  let str = `${this.checkValue(this.margin.top, 20)}rpx`;
83
84
  str = `${str} ${this.checkValue(this.margin.right, 20)}rpx`;
84
85
  str = `${str} ${this.checkValue(this.margin.bottom, 20)}rpx`;
85
86
  str = `${str} ${this.checkValue(this.margin.left, 20)}rpx`;
86
87
  return str
87
88
  },
88
- paddingComp() {
89
+ outPadding() {
89
90
  let str = `${this.checkValue(this.padding.top, 20)}rpx`;
90
91
  str = `${str} ${this.checkValue(this.padding.right, 20)}rpx`;
91
92
  str = `${str} ${this.checkValue(this.padding.bottom, 20)}rpx`;
@@ -97,22 +98,8 @@
97
98
  else return '0 0 0 rgba(0,0,0,0)';
98
99
  },
99
100
  borderBox(){
100
- if (this.is_border === 'Y') return `${this.is_border_w}rpx ${this.is_border_s} ${this.is_border_c}`;
101
+ if (this.is_border === 'Y') return `${this.is_border_w}rpx solid ${this.is_border_c}`;
101
102
  else return '0';
102
- },
103
- nickNameStyle(){
104
- return {
105
- fontSize: this.nickStyle.fontSize || '32rpx',
106
- color: `${this.nickStyle.color || '#333'}`,
107
- fontWeight: `${this.nickStyle.fontWeight || 'normal'}`,
108
- }
109
- },
110
- logoutStyleComp(){
111
- return {
112
- fontSize: this.logoutStyle.fontSize || '20rpx',
113
- color: `${this.logoutStyle.color || '#333'}`,
114
- fontWeight: `${this.logoutStyle.fontWeight || 'normal'}`,
115
- }
116
103
  }
117
104
  },
118
105
  filters:{
@@ -124,32 +111,39 @@
124
111
  return {
125
112
  logined: false,
126
113
  userInfo: null,
127
- isSetting:'N',
128
- logoutName:'[退出登录]',
129
- imageRadius:'50%',
114
+ address_url: '',
130
115
 
131
116
  //基础
132
- imageColor: '#333',
117
+ color: '#333',
133
118
  backgroundColor: 'rgba(0,0,0,0)',
134
119
  textType: 'N', //默认水平
135
120
  radius: 0,
136
121
 
137
122
  //投影
138
- is_shadow: 'N',
123
+ is_shadow: 'Y',
139
124
  is_shadow_bg: 0,
140
125
  is_shadow_w: 0,
141
126
 
127
+
142
128
  //边框
143
- is_border: 'N',
129
+ is_border: 'Y',
144
130
  is_border_w: 0,
145
131
  is_border_c: '',
146
- is_border_s:'solid',
147
132
 
148
133
  //其他
149
- margin: {},
150
- padding: {},
151
- nickStyle:{},
152
- logoutStyle:{},
134
+ margin: {
135
+ top: 0,
136
+ left: 0,
137
+ right: 0,
138
+ bottom: 0
139
+ },
140
+ padding: {
141
+ top: 0,
142
+ left: 0,
143
+ right: 0,
144
+ bottom: 0
145
+ },
146
+
153
147
  }
154
148
  },
155
149
  watch: {
@@ -222,44 +216,21 @@
222
216
  * @param container {object} 业务组件对象自己
223
217
  */
224
218
  init(container) {
225
- this.margin = getContainerPropsValue(container, 'content.margin', {});
226
- this.padding = getContainerPropsValue(container, 'content.padding', {});
219
+ this.margin = getContainerPropsValue(container, 'content.margin', {top: 20, left: 20, right: 20, bottom: 20});
220
+ this.padding = getContainerPropsValue(container, 'content.padding', {top: 20, left: 20, right: 20, bottom: 20});
221
+ this.address_url = getContainerPropsValue(container, 'content.address_url', {value: ''});
222
+ this.color = getContainerPropsValue(container, 'content.textColor', '#333');
227
223
  this.backgroundColor = getContainerPropsValue(container, 'content.backgroundColor', '#f8f8f8');
228
224
  this.textType = getContainerPropsValue(container, 'content.text_type', 'N');
229
- this.radius = getContainerPropsValue(container, 'content.radius', '10');
230
- this.isSetting = getContainerPropsValue(container, 'content.isSetting', 'N');
231
- this.logoutName = getContainerPropsValue(container, 'content.logoutName', '[退出登录]');
232
- this.imageRadius = getContainerPropsValue(container, 'content.imageRadius', '50%');
233
- this.imageColor = getContainerPropsValue(container, 'content.imageColor', '#333');
234
225
 
235
- //Shadow
236
- this.contShadow = getContainerPropsValue(container, 'content.contShadow', {})
237
226
  this.is_shadow = getContainerPropsValue(container, 'content.is_shadow', 'N');
238
227
  this.is_shadow_bg = getContainerPropsValue(container, 'content.is_shadow_bg', '#fff');
239
228
  this.is_shadow_w = getContainerPropsValue(container, 'content.is_shadow_w', '10');
240
- if(this.contShadow.type === 'Y') {
241
- this.is_shadow = 'Y';
242
- if(this.contShadow.value && this.contShadow.value.width) this.is_shadow_w = this.contShadow.value.width;
243
- if(this.contShadow.value && this.contShadow.value.color) this.is_shadow_bg = this.contShadow.value.color;
244
- }
245
229
 
246
- //边框
247
- this.contBorder = getContainerPropsValue(container, 'content.contBorder', {});
248
230
  this.is_border = getContainerPropsValue(container, 'content.is_border', 'N');
249
231
  this.is_border_c = getContainerPropsValue(container, 'content.is_border_c', '#fff');
250
232
  this.is_border_w = getContainerPropsValue(container, 'content.is_border_w', 0);
251
- this.is_border_s = 'solid';
252
- if(this.contBorder.type === 'Y') {
253
- this.is_border = 'Y';
254
- if(this.contBorder.value && this.contBorder.value.width) this.is_border_w = this.contBorder.value.width;
255
- if(this.contBorder.value && this.contBorder.value.color) this.is_border_c = this.contBorder.value.color;
256
- if(this.contBorder.value && this.contBorder.value.style) this.is_border_s = this.contBorder.value.style;
257
-
258
- }
259
-
260
- this.nickStyle = getContainerPropsValue(container, 'content.nickStyle', {});
261
- this.logoutStyle = getContainerPropsValue(container, 'content.logoutStyle', {});
262
-
233
+ this.radius = getContainerPropsValue(container, 'content.radius', '10');
263
234
  },
264
235
  }
265
236
  }
@@ -274,15 +245,7 @@
274
245
  justify-content: center;
275
246
  align-items: center;
276
247
  & > view:nth-child(2) {
277
- margin-left: unit(15, rpx);
278
- }
279
- & > view:nth-child(3) {
280
- width: 26rpx;
281
- height: 26rpx;
282
- margin-left: unit(15, rpx);
283
- display: flex;
284
- justify-content: center;
285
- align-items: center;
248
+ margin-left: unit(10, rpx);
286
249
  }
287
250
  }
288
251
 
@@ -318,7 +281,8 @@
318
281
  & > image, .no-image {
319
282
  width: unit(140, rpx);
320
283
  height: unit(140, rpx);
321
- margin-right: unit(30, rpx);;
284
+ margin-right: unit(30, rpx);
285
+ border-radius: 50%;
322
286
  display: flex;
323
287
  justify-content: center;
324
288
  align-items: center;