jufubao-base 1.0.20 → 1.0.21

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 (35) hide show
  1. package/package.json +1 -1
  2. package/src/components/JfbBaseAfterOrderList/Api.js +60 -0
  3. package/src/components/JfbBaseAfterOrderList/Attr.js +154 -0
  4. package/src/components/JfbBaseAfterOrderList/JfbBaseAfterOrderList.vue +203 -0
  5. package/src/components/JfbBaseAfterOrderList/JfbBaseAfterOrderListLess.less +57 -0
  6. package/src/components/JfbBaseAfterOrderList/JfbBaseAfterOrderListMixin.js +222 -0
  7. package/src/components/JfbBaseBlock/JfbBaseBlock.vue +20 -0
  8. package/src/components/JfbBaseBlock/JfbBaseBlockMixin.js +41 -3
  9. package/src/components/JfbBaseCard/JfbBaseCardMixin.js +41 -3
  10. package/src/components/JfbBaseCardBind/JfbBaseCardBindMixin.js +41 -3
  11. package/src/components/JfbBaseCardDetail/JfbBaseCardDetailMixin.js +41 -3
  12. package/src/components/JfbBaseCardInfo/JfbBaseCardInfoMixin.js +41 -3
  13. package/src/components/JfbBaseCardMy/JfbBaseCardMyMixin.js +41 -3
  14. package/src/components/JfbBaseCardShift/JfbBaseCardShiftMixin.js +41 -3
  15. package/src/components/JfbBaseFooter/JfbBaseFooterMixin.js +41 -3
  16. package/src/components/JfbBaseLine/JfbBaseLineMixin.js +41 -3
  17. package/src/components/JfbBaseLogin/JfbBaseLogin.vue +172 -51
  18. package/src/components/JfbBaseLogin/JfbBaseLoginMixin.js +41 -3
  19. package/src/components/JfbBaseMy/Api.js +60 -0
  20. package/src/components/JfbBaseMy/Attr.js +54 -0
  21. package/src/components/JfbBaseMy/JfbBaseMy.vue +262 -0
  22. package/src/components/JfbBaseMy/JfbBaseMyLess.less +57 -0
  23. package/src/components/JfbBaseMy/JfbBaseMyMixin.js +222 -0
  24. package/src/components/JfbBaseOrderList/Api.js +60 -0
  25. package/src/components/JfbBaseOrderList/Attr.js +154 -0
  26. package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +285 -0
  27. package/src/components/JfbBaseOrderList/JfbBaseOrderListLess.less +57 -0
  28. package/src/components/JfbBaseOrderList/JfbBaseOrderListMixin.js +222 -0
  29. package/src/components/JfbBaseSetPwd/JfbBaseSetPwdMixin.js +41 -3
  30. package/src/components/JfbBaseSuccess/JfbBaseSuccess.vue +51 -1
  31. package/src/components/JfbBaseSuccess/JfbBaseSuccessMixin.js +41 -3
  32. package/src/components/JfbBaseTestApi/JfbBaseTestApiMixin.js +41 -3
  33. package/src/components/JfbBaseTestBody/JfbBaseTestBodyMixin.js +36 -2
  34. package/src/components/JfbBaseTestBottom/JfbBaseTestBottomMixin.js +36 -2
  35. package/src/components/JfbBaseTestTop/JfbBaseTestTopMixin.js +36 -2
@@ -93,16 +93,31 @@ export default {
93
93
  //#ifdef H5
94
94
 
95
95
  //@AttrData
96
- Attr, //对外开发编辑属性
96
+ Attr:{}, //对外开发编辑属性
97
97
  //@EndAttrData
98
98
 
99
99
  active: false, //是否选择当前状态
100
100
  isEditx: true, //当前为Editx模式
101
101
  edit: false, //是否开启编辑模式
102
102
  // #endif
103
+
104
+ //风格键
105
+ mainColor: '',
106
+ successColor: '',
107
+ warningColor: '',
108
+ subMainColor: '',
109
+ infoColor: '',
110
+ defaultColor: '',
111
+ dangerColor: ''
103
112
  }
104
113
  },
105
114
  created() {
115
+
116
+ //@AttrDataCreated
117
+ this.Attr = this.$xdUniHelper.customClone(Attr);
118
+ //@EndAttrDataCreated
119
+
120
+
106
121
  //设置插件cid
107
122
  if (this.cid) {
108
123
  this.containerId = this.cid;
@@ -110,6 +125,9 @@ export default {
110
125
  this.containerId = this.$xdUniHelper.randomChar(20);
111
126
  }
112
127
 
128
+ //初始化风格
129
+ this.initThemesToData();
130
+
113
131
  //#ifdef H5
114
132
  //监听用户点击状态显示虚框
115
133
  XdBus.addEvent('select', ({containerId}) => {
@@ -132,6 +150,26 @@ export default {
132
150
  onCheck() {
133
151
  },
134
152
 
153
+ /***
154
+ * @description 业务组件风格map到data中
155
+ */
156
+ initThemesToData() {
157
+ Object.keys(this.styles).map(key => {
158
+ let k = key.replace('$', '');
159
+ if (this[k] !== undefined) this[k] = this.styles[key];
160
+ });
161
+ console.log('initThemesToData',this)
162
+ },
163
+
164
+ /**
165
+ * @description 其子级插件获取当前插件的业务组件风格列表
166
+ * @returns {*}
167
+ */
168
+ getParentThemes(){
169
+ return this.styles;
170
+ },
171
+
172
+
135
173
  //#ifdef H5
136
174
  /**
137
175
  * @description 点击删除操作按钮
@@ -153,8 +191,8 @@ export default {
153
191
  //#ifdef H5
154
192
  if (this.active) return;
155
193
  this.active = true;
156
- let AttrObj = this.$xdUniHelper.checkVarType(Attr) === 'object' ?
157
- Attr: { style: [], advanced: [], content: []};
194
+ let AttrObj = this.$xdUniHelper.checkVarType(this.Attr) === 'object' ?
195
+ this.Attr : { style: [], advanced: [], content: []};
158
196
  console.log('handleSelect.Attr', AttrObj);
159
197
 
160
198
  //设置已绑定数据
@@ -231,8 +231,9 @@
231
231
 
232
232
  console.log('getOrderStatus.start', this.statusUrl);
233
233
  getNoUrl({url:this.statusUrl, params: {...this.params, order_id: this.order_id}})
234
- .then(res=>{
234
+ .then(([res])=>{
235
235
  console.log(res);
236
+ resolve(this.handleOrderResolve(res));
236
237
  })
237
238
  .catch(error => {
238
239
  console.error(error);
@@ -240,6 +241,52 @@
240
241
  })
241
242
  },
242
243
 
244
+ handleOrderResolve({info, order}){
245
+ let icon = "iconshijian";
246
+ let iconColor = '#333';
247
+ let btn = [{'label': '返回首页', type: 'info', radius: '10rpx', value: 1}];
248
+ if(order.orderStatus == '3000'){
249
+ icon = "icondingdanwancheng";
250
+ iconColor = "green";
251
+ btn = btn.concat([
252
+ {
253
+ label: getContainerPropsValue(this.container, 'content.custom_btn_name'),
254
+ type: 'primary',
255
+ radius: '12rpx',
256
+ value: 2
257
+ }
258
+ ])
259
+ }else if(order.orderStatus == '3002'){
260
+ iconColor = "red";
261
+ icon = "icongerenzhongxinchufabaocuo";
262
+ btn = btn.concat([
263
+ {'label': '重新支付', type: 'info', radius: '10rpx', value: 3},
264
+ ])
265
+ }
266
+
267
+ let result = {
268
+ //基础信息
269
+ info: {
270
+ descTitle: info.descTitle,
271
+ desc: info.desc,
272
+ tips: order.tips,
273
+ btn: btn,
274
+ },
275
+
276
+ //订单信息
277
+ order: {
278
+ icon: icon,
279
+ iconSize: 80, //图标大小
280
+ iconColor: iconColor, //图标颜色
281
+ orderName: order.orderName, //订单状态名称
282
+ orderStatus: order.orderStatus, //订单状态名称,
283
+ content: '',
284
+ tips: order.tips,
285
+ },
286
+ };
287
+ return result;
288
+ },
289
+
243
290
  handleOnBtnClick({btn}) {
244
291
  if (btn['value'] === 1) {
245
292
  this.$xdUniHelper.redirectTo({
@@ -252,6 +299,9 @@
252
299
  url: `${this.detail}?${other}`
253
300
  })
254
301
  }
302
+ if (btn['value'] === 3) {
303
+ this.$xdUniHelper.navigateBack();
304
+ }
255
305
  },
256
306
 
257
307
  /**
@@ -93,16 +93,31 @@ export default {
93
93
  //#ifdef H5
94
94
 
95
95
  //@AttrData
96
- Attr, //对外开发编辑属性
96
+ Attr:{}, //对外开发编辑属性
97
97
  //@EndAttrData
98
98
 
99
99
  active: false, //是否选择当前状态
100
100
  isEditx: true, //当前为Editx模式
101
101
  edit: false, //是否开启编辑模式
102
102
  // #endif
103
+
104
+ //风格键
105
+ mainColor: '',
106
+ successColor: '',
107
+ warningColor: '',
108
+ subMainColor: '',
109
+ infoColor: '',
110
+ defaultColor: '',
111
+ dangerColor: ''
103
112
  }
104
113
  },
105
114
  created() {
115
+
116
+ //@AttrDataCreated
117
+ this.Attr = this.$xdUniHelper.customClone(Attr);
118
+ //@EndAttrDataCreated
119
+
120
+
106
121
  //设置插件cid
107
122
  if (this.cid) {
108
123
  this.containerId = this.cid;
@@ -110,6 +125,9 @@ export default {
110
125
  this.containerId = this.$xdUniHelper.randomChar(20);
111
126
  }
112
127
 
128
+ //初始化风格
129
+ this.initThemesToData();
130
+
113
131
  //#ifdef H5
114
132
  //监听用户点击状态显示虚框
115
133
  XdBus.addEvent('select', ({containerId}) => {
@@ -132,6 +150,26 @@ export default {
132
150
  onCheck() {
133
151
  },
134
152
 
153
+ /***
154
+ * @description 业务组件风格map到data中
155
+ */
156
+ initThemesToData() {
157
+ Object.keys(this.styles).map(key => {
158
+ let k = key.replace('$', '');
159
+ if (this[k] !== undefined) this[k] = this.styles[key];
160
+ });
161
+ console.log('initThemesToData',this)
162
+ },
163
+
164
+ /**
165
+ * @description 其子级插件获取当前插件的业务组件风格列表
166
+ * @returns {*}
167
+ */
168
+ getParentThemes(){
169
+ return this.styles;
170
+ },
171
+
172
+
135
173
  //#ifdef H5
136
174
  /**
137
175
  * @description 点击删除操作按钮
@@ -153,8 +191,8 @@ export default {
153
191
  //#ifdef H5
154
192
  if (this.active) return;
155
193
  this.active = true;
156
- let AttrObj = this.$xdUniHelper.checkVarType(Attr) === 'object' ?
157
- Attr: { style: [], advanced: [], content: []};
194
+ let AttrObj = this.$xdUniHelper.checkVarType(this.Attr) === 'object' ?
195
+ this.Attr : { style: [], advanced: [], content: []};
158
196
  console.log('handleSelect.Attr', AttrObj);
159
197
 
160
198
  //设置已绑定数据
@@ -93,16 +93,31 @@ export default {
93
93
  //#ifdef H5
94
94
 
95
95
  //@AttrData
96
- Attr, //对外开发编辑属性
96
+ Attr:{}, //对外开发编辑属性
97
97
  //@EndAttrData
98
98
 
99
99
  active: false, //是否选择当前状态
100
100
  isEditx: true, //当前为Editx模式
101
101
  edit: false, //是否开启编辑模式
102
102
  // #endif
103
+
104
+ //风格键
105
+ mainColor: '',
106
+ successColor: '',
107
+ warningColor: '',
108
+ subMainColor: '',
109
+ infoColor: '',
110
+ defaultColor: '',
111
+ dangerColor: ''
103
112
  }
104
113
  },
105
114
  created() {
115
+
116
+ //@AttrDataCreated
117
+ this.Attr = this.$xdUniHelper.customClone(Attr);
118
+ //@EndAttrDataCreated
119
+
120
+
106
121
  //设置插件cid
107
122
  if (this.cid) {
108
123
  this.containerId = this.cid;
@@ -110,6 +125,9 @@ export default {
110
125
  this.containerId = this.$xdUniHelper.randomChar(20);
111
126
  }
112
127
 
128
+ //初始化风格
129
+ this.initThemesToData();
130
+
113
131
  //#ifdef H5
114
132
  //监听用户点击状态显示虚框
115
133
  XdBus.addEvent('select', ({containerId}) => {
@@ -132,6 +150,26 @@ export default {
132
150
  onCheck() {
133
151
  },
134
152
 
153
+ /***
154
+ * @description 业务组件风格map到data中
155
+ */
156
+ initThemesToData() {
157
+ Object.keys(this.styles).map(key => {
158
+ let k = key.replace('$', '');
159
+ if (this[k] !== undefined) this[k] = this.styles[key];
160
+ });
161
+ console.log('initThemesToData',this)
162
+ },
163
+
164
+ /**
165
+ * @description 其子级插件获取当前插件的业务组件风格列表
166
+ * @returns {*}
167
+ */
168
+ getParentThemes(){
169
+ return this.styles;
170
+ },
171
+
172
+
135
173
  //#ifdef H5
136
174
  /**
137
175
  * @description 点击删除操作按钮
@@ -153,8 +191,8 @@ export default {
153
191
  //#ifdef H5
154
192
  if (this.active) return;
155
193
  this.active = true;
156
- let AttrObj = this.$xdUniHelper.checkVarType(Attr) === 'object' ?
157
- Attr: { style: [], advanced: [], content: []};
194
+ let AttrObj = this.$xdUniHelper.checkVarType(this.Attr) === 'object' ?
195
+ this.Attr : { style: [], advanced: [], content: []};
158
196
  console.log('handleSelect.Attr', AttrObj);
159
197
 
160
198
  //设置已绑定数据
@@ -92,9 +92,20 @@ export default {
92
92
  isEditx: true, //当前为Editx模式
93
93
  edit: false, //是否开启编辑模式
94
94
  // #endif
95
+
96
+ //风格键
97
+ mainColor: '',
98
+ successColor: '',
99
+ warningColor: '',
100
+ subMainColor: '',
101
+ infoColor: '',
102
+ defaultColor: '',
103
+ dangerColor: ''
95
104
  }
96
105
  },
97
106
  created() {
107
+
108
+
98
109
  //设置插件cid
99
110
  if (this.cid) {
100
111
  this.containerId = this.cid;
@@ -102,6 +113,9 @@ export default {
102
113
  this.containerId = this.$xdUniHelper.randomChar(20);
103
114
  }
104
115
 
116
+ //初始化风格
117
+ this.initThemesToData();
118
+
105
119
  //#ifdef H5
106
120
  //监听用户点击状态显示虚框
107
121
  XdBus.addEvent('select', ({containerId}) => {
@@ -124,6 +138,26 @@ export default {
124
138
  onCheck() {
125
139
  },
126
140
 
141
+ /***
142
+ * @description 业务组件风格map到data中
143
+ */
144
+ initThemesToData() {
145
+ Object.keys(this.styles).map(key => {
146
+ let k = key.replace('$', '');
147
+ if (this[k] !== undefined) this[k] = this.styles[key];
148
+ });
149
+ console.log('initThemesToData',this)
150
+ },
151
+
152
+ /**
153
+ * @description 其子级插件获取当前插件的业务组件风格列表
154
+ * @returns {*}
155
+ */
156
+ getParentThemes(){
157
+ return this.styles;
158
+ },
159
+
160
+
127
161
  //#ifdef H5
128
162
  /**
129
163
  * @description 点击删除操作按钮
@@ -145,8 +179,8 @@ export default {
145
179
  //#ifdef H5
146
180
  if (this.active) return;
147
181
  this.active = true;
148
- let AttrObj = this.$xdUniHelper.checkVarType(Attr) === 'object' ?
149
- Attr: { style: [], advanced: [], content: []};
182
+ let AttrObj = this.$xdUniHelper.checkVarType(this.Attr) === 'object' ?
183
+ this.Attr : { style: [], advanced: [], content: []};
150
184
  console.log('handleSelect.Attr', AttrObj);
151
185
 
152
186
  //设置已绑定数据
@@ -92,9 +92,20 @@ export default {
92
92
  isEditx: true, //当前为Editx模式
93
93
  edit: false, //是否开启编辑模式
94
94
  // #endif
95
+
96
+ //风格键
97
+ mainColor: '',
98
+ successColor: '',
99
+ warningColor: '',
100
+ subMainColor: '',
101
+ infoColor: '',
102
+ defaultColor: '',
103
+ dangerColor: ''
95
104
  }
96
105
  },
97
106
  created() {
107
+
108
+
98
109
  //设置插件cid
99
110
  if (this.cid) {
100
111
  this.containerId = this.cid;
@@ -102,6 +113,9 @@ export default {
102
113
  this.containerId = this.$xdUniHelper.randomChar(20);
103
114
  }
104
115
 
116
+ //初始化风格
117
+ this.initThemesToData();
118
+
105
119
  //#ifdef H5
106
120
  //监听用户点击状态显示虚框
107
121
  XdBus.addEvent('select', ({containerId}) => {
@@ -124,6 +138,26 @@ export default {
124
138
  onCheck() {
125
139
  },
126
140
 
141
+ /***
142
+ * @description 业务组件风格map到data中
143
+ */
144
+ initThemesToData() {
145
+ Object.keys(this.styles).map(key => {
146
+ let k = key.replace('$', '');
147
+ if (this[k] !== undefined) this[k] = this.styles[key];
148
+ });
149
+ console.log('initThemesToData',this)
150
+ },
151
+
152
+ /**
153
+ * @description 其子级插件获取当前插件的业务组件风格列表
154
+ * @returns {*}
155
+ */
156
+ getParentThemes(){
157
+ return this.styles;
158
+ },
159
+
160
+
127
161
  //#ifdef H5
128
162
  /**
129
163
  * @description 点击删除操作按钮
@@ -145,8 +179,8 @@ export default {
145
179
  //#ifdef H5
146
180
  if (this.active) return;
147
181
  this.active = true;
148
- let AttrObj = this.$xdUniHelper.checkVarType(Attr) === 'object' ?
149
- Attr: { style: [], advanced: [], content: []};
182
+ let AttrObj = this.$xdUniHelper.checkVarType(this.Attr) === 'object' ?
183
+ this.Attr : { style: [], advanced: [], content: []};
150
184
  console.log('handleSelect.Attr', AttrObj);
151
185
 
152
186
  //设置已绑定数据
@@ -92,9 +92,20 @@ export default {
92
92
  isEditx: true, //当前为Editx模式
93
93
  edit: false, //是否开启编辑模式
94
94
  // #endif
95
+
96
+ //风格键
97
+ mainColor: '',
98
+ successColor: '',
99
+ warningColor: '',
100
+ subMainColor: '',
101
+ infoColor: '',
102
+ defaultColor: '',
103
+ dangerColor: ''
95
104
  }
96
105
  },
97
106
  created() {
107
+
108
+
98
109
  //设置插件cid
99
110
  if (this.cid) {
100
111
  this.containerId = this.cid;
@@ -102,6 +113,9 @@ export default {
102
113
  this.containerId = this.$xdUniHelper.randomChar(20);
103
114
  }
104
115
 
116
+ //初始化风格
117
+ this.initThemesToData();
118
+
105
119
  //#ifdef H5
106
120
  //监听用户点击状态显示虚框
107
121
  XdBus.addEvent('select', ({containerId}) => {
@@ -124,6 +138,26 @@ export default {
124
138
  onCheck() {
125
139
  },
126
140
 
141
+ /***
142
+ * @description 业务组件风格map到data中
143
+ */
144
+ initThemesToData() {
145
+ Object.keys(this.styles).map(key => {
146
+ let k = key.replace('$', '');
147
+ if (this[k] !== undefined) this[k] = this.styles[key];
148
+ });
149
+ console.log('initThemesToData',this)
150
+ },
151
+
152
+ /**
153
+ * @description 其子级插件获取当前插件的业务组件风格列表
154
+ * @returns {*}
155
+ */
156
+ getParentThemes(){
157
+ return this.styles;
158
+ },
159
+
160
+
127
161
  //#ifdef H5
128
162
  /**
129
163
  * @description 点击删除操作按钮
@@ -145,8 +179,8 @@ export default {
145
179
  //#ifdef H5
146
180
  if (this.active) return;
147
181
  this.active = true;
148
- let AttrObj = this.$xdUniHelper.checkVarType(Attr) === 'object' ?
149
- Attr: { style: [], advanced: [], content: []};
182
+ let AttrObj = this.$xdUniHelper.checkVarType(this.Attr) === 'object' ?
183
+ this.Attr : { style: [], advanced: [], content: []};
150
184
  console.log('handleSelect.Attr', AttrObj);
151
185
 
152
186
  //设置已绑定数据