jufubao-base 1.0.425 → 1.0.427

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 (26) hide show
  1. package/get.package.path.js +2 -2
  2. package/package.json +1 -1
  3. package/src/components/JfbBaseAfterSales/JfbBaseAfterSales.vue +21 -4
  4. package/src/components/JfbBaseAfterSalesFast/JfbBaseAfterSalesFast.vue +22 -4
  5. package/src/components/JfbBaseRecharge/Attr.js +5 -262
  6. package/src/components/JfbBaseRecharge/JfbBaseRecharge.vue +6 -8
  7. package/src/components/JfbBaseRecharge/cusAttr/advanced.js +43 -0
  8. package/src/components/JfbBaseRecharge/cusAttr/content.js +272 -0
  9. package/src/components/JfbBaseRechargeNew/Attr.js +17 -20
  10. package/src/components/JfbBaseRechargeNew/JfbBaseRechargeNew.vue +67 -13
  11. package/src/components/JfbBaseRechargeNew/cusAttr/advanced.js +43 -0
  12. package/src/components/JfbBaseRechargeNew/cusAttr/style.js +264 -0
  13. package/src/components/JfbBaseRechargeOrder/Attr.js +7 -169
  14. package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrder.vue +65 -92
  15. package/src/components/JfbBaseRechargeOrder/cusAttr/advanced.js +58 -0
  16. package/src/components/JfbBaseRechargeOrder/cusAttr/content.js +38 -0
  17. package/src/components/JfbBaseRechargeOrder/cusAttr/style.js +293 -0
  18. package/src/components/JfbBaseRechargeOrderDetail/Attr.js +5 -3
  19. package/src/components/JfbBaseRechargeOrderDetail/JfbBaseRechargeOrderDetail.vue +80 -55
  20. package/src/components/JfbBaseRechargeOrderDetail/cusAttr/content.js +38 -0
  21. package/src/components/JfbBaseRechargeOrderDetail/cusAttr/style.js +232 -0
  22. package/src/components/JfbBaseRechargeSuccess/Attr.js +5 -28
  23. package/src/components/JfbBaseRechargeSuccess/JfbBaseRechargeSuccess.vue +99 -29
  24. package/src/components/JfbBaseRechargeSuccess/Mock.js +1 -1
  25. package/src/components/JfbBaseRechargeSuccess/cusAttr/advanced.js +59 -0
  26. package/src/components/JfbBaseRechargeSuccess/cusAttr/style.js +205 -0
@@ -8,11 +8,11 @@
8
8
  */
9
9
  const getPackagePath = (threePackagePath, packname = 'gxd-commands-bussiness')=>{
10
10
  if(packname === 'gxd-commands-bussiness') {
11
- return `/Users/shiyonggao/home/root/Base-Jufubao/xd-commands-bussiness/${threePackagePath}`;
11
+ return `/Users/shiyonggao/Desktop/code/BASE/UNIAPP/xd-commands-bussiness/${threePackagePath}`;
12
12
  }
13
13
 
14
14
  if (packname === 'gxd-uni-library-editx') {
15
- return `/Users/shiyonggao/home/root/Base-Jufubao/xd-uni-library-editx/${threePackagePath}`;
15
+ return `/Users/shiyonggao/Desktop/code/BASE/UNIAPP/xd-uni-library-editx/${threePackagePath}`;
16
16
  }
17
17
 
18
18
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-base",
3
- "version": "1.0.425",
3
+ "version": "1.0.427",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -160,7 +160,7 @@
160
160
  customer_feedback: "",
161
161
  showDialog: false,
162
162
  last_service_order_id: "",
163
-
163
+
164
164
  productList: [],
165
165
  afterSalesTypes: [],
166
166
  baseInfo: {},
@@ -355,6 +355,16 @@
355
355
  })
356
356
  return;
357
357
  }
358
+
359
+ if(this.refundStepPath === '') {
360
+ this.$xdAlert({
361
+ content: '请配置售后详情跳转链接',
362
+ type: "error"
363
+ })
364
+ return;
365
+ }
366
+ this.$xdShowLoading({});
367
+
358
368
  let data = {
359
369
  main_order_id: order_id,
360
370
  sub_order_id: this.service_product_list[0].sub_order_id,
@@ -373,9 +383,16 @@
373
383
  vm: this,
374
384
  data: data
375
385
  }).then(res => {
376
- this.$xdUniHelper.navigateTo({
377
- url: `${this.refundStepPath}?service_order_id=${res.service_order_id}`,
378
- });
386
+ this.$xdHideLoading();
387
+ setTimeout(() => {
388
+ this.$xdUniHelper.navigateTo({
389
+ url: `${this.refundStepPath}?service_order_id=${res.service_order_id}`,
390
+ });
391
+ }, 500);
392
+
393
+ }).catch(err => {
394
+ this.$xdHideLoading();
395
+ console.error(err)
379
396
  })
380
397
  },
381
398
  handleSelectProduct(productList){
@@ -105,7 +105,7 @@
105
105
  return this.fixedStyle({ height: 20, zIndex: 111 });
106
106
  },
107
107
  },
108
-
108
+
109
109
  created() {
110
110
  this.init(this.container);
111
111
 
@@ -116,6 +116,7 @@
116
116
  this.order_id = options.order_id;
117
117
  this.p_getAfterSalesTypeList();
118
118
  },
119
+
119
120
  /**
120
121
  * @description 监听事件变化
121
122
  * @param container {object} 业务组件对象自己
@@ -143,6 +144,16 @@
143
144
  })
144
145
  return;
145
146
  }
147
+
148
+ if(this.refundStepPath === '') {
149
+ this.$xdAlert({
150
+ content: '请配置售后详情跳转链接',
151
+ type: "error"
152
+ })
153
+ return;
154
+ }
155
+
156
+ this.$xdShowLoading({});
146
157
  jfbRootExec("createAfterServiceOrderQuick", {
147
158
  vm: this,
148
159
  data: {
@@ -150,9 +161,16 @@
150
161
  after_sale_type: this.after_sale_type,
151
162
  }
152
163
  }).then(res => {
153
- this.$xdUniHelper.navigateTo({
154
- url: `${this.refundStepPath}?service_order_id=${res.service_order_id}`,
155
- });
164
+ this.$xdHideLoading();
165
+ setTimeout(() => {
166
+ this.$xdUniHelper.navigateTo({
167
+ url: `${this.refundStepPath}?service_order_id=${res.service_order_id}`,
168
+ });
169
+ }, 500);
170
+
171
+ }).catch((err)=>{
172
+ this.$xdHideLoading();
173
+ console.error(err)
156
174
  })
157
175
  },
158
176
  toChoseReason(){
@@ -1,270 +1,13 @@
1
1
  'use strict';
2
+ import advanced from "./cusAttr/advanced";
3
+ import content from "./cusAttr/content";
2
4
 
3
- /**
4
- * @description 当表单组件中有联动操作时候,使用方法进行返回
5
- */
6
5
  export default {
7
6
  style: [],
8
- content: (data) => {
7
+ content: (data, gValue, gColor, oldData) => {
9
8
  return [
10
- {
11
- label: '票券框自定义文案:',
12
- ele: 'el-input',
13
- type: 'text',
14
- valueKey: 'card_num_placeholder',
15
- groupKey:'content',
16
- value: data.card_num_placeholder||'',
17
- placeholder: '请输入票券框自定义文案',
18
- className: 'input80'
19
- },
20
- {
21
- label: '票券充值点数自定义文案:',
22
- ele: 'el-input',
23
- type: 'text',
24
- valueKey: 'point_placeholder',
25
- groupKey:'content',
26
- value: data.point_placeholder || '',
27
- placeholder: '请输入票券充值点数自定义文案',
28
- className: 'input80'
29
- },
30
- {
31
- label: '注意事项:',
32
- ele: 'xd-site-news',
33
- valueKey: 'notice',
34
- groupKey:'content',
35
- value: data.notice || null,
36
- className: 'input70',
37
- setting: {
38
- config: {
39
- sort: true,
40
- maxlen: 100,
41
- action: 'aliyun',
42
- size: 5,
43
- tipsformet: '上传文件格式:@imageType@,不超过@size@MB.',
44
- uploadType: 'aliyun',
45
- type: ['jpg', 'png', 'jpeg']
46
- },
47
- },
48
- handleCustom({action, data}) {
49
- if (data && data.params) {
50
- //当一个插件中出现使用内容分类时候需要设置code值,在页面引用时候容器id + code进行拼接
51
- //data.params = Object.assign({}, data.params, {code: 'g_test_id'});
52
- }
53
-
54
- //获取返回参数(场景类型名称为必填)
55
- //let loading = XdBus.getParentApi('loading')({});
56
-
57
- //获取返回参数(场景类型名称为必填)
58
- let loading = { close(){}}
59
-
60
- //获取显示内容
61
- if (action === 'screen') {
62
- XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_bucket_content_tip'})
63
- .then(res => {
64
- loading.close();
65
- data.cb(res['list'])
66
- })
67
- .catch(error => {
68
- console.error(error);
69
- loading.close();
70
- });
71
-
72
- }
73
-
74
- //获取返回参数(广告位高度必选项)
75
- if (action === 'getNewsInfo') {
76
- XdBus.getParentApi('cmsGetPublishEditxContent')(data.params)
77
- .then(res => {
78
- loading.close()
79
- data.cb({list: res.list, selectId: res.selected})
80
- })
81
- .catch(error => {
82
- loading.close()
83
- console.error(error);
84
- });
85
- }
86
-
87
- //获取产品业务线列表
88
- if (action === 'namespace') {
89
- XdBus.getParentApi('getOptionsNamespaces')({})
90
- .then(res => {
91
- loading.close()
92
- data.cb(res['list'])
93
- })
94
- .catch(error => {
95
- loading.close()
96
- console.error(error);
97
- });
98
- }
99
-
100
- //使用内容分类
101
- if (action === 'cmsPublishEditxContent') {
102
- loading = XdBus.getParentApi('loading')({});
103
- XdBus.getParentApi('cmsPublishEditxContent')(data.params)
104
- .then(res => {
105
- console.log('cmsPublishEditxContent', res)
106
- loading.close();
107
- data.cb(res)
108
- })
109
- .catch(error => {
110
- loading.close();
111
- console.error(error);
112
- });
113
- }
114
-
115
- //位置列表
116
- if (action === 'getListPostion') {
117
- loading = XdBus.getParentApi('loading')({});
118
- XdBus.getParentApi('getListNewsPosition')(data.params)
119
- .then(res => {
120
- loading.close();
121
- data.cb(res)
122
- })
123
- .catch(error => {
124
- loading.close();
125
- console.error(error);
126
- });
127
- }
128
-
129
- //位置创建
130
- if (action === 'addPostion') {
131
- loading = XdBus.getParentApi('loading')({});
132
- XdBus.getParentApi('addNewsPosition')(data.params)
133
- .then(res => {
134
- loading.close();
135
- data.cb(true)
136
- })
137
- .catch(error => {
138
- console.error(error);
139
- loading.close();
140
- data.cb(false)
141
- });
142
- }
143
-
144
- //位置编辑
145
- if (action === 'editPostion') {
146
- loading = XdBus.getParentApi('loading')({});
147
- XdBus.getParentApi('updateNewsPosition')(data.params)
148
- .then(res => {
149
- loading.close();
150
- data.cb(true)
151
- })
152
- .catch(error => {
153
- console.error(error);
154
- loading.close();
155
- data.cb(false)
156
- });
157
- }
158
-
159
- //位置删除
160
- if (action === 'deleltePostion') {
161
- loading = XdBus.getParentApi('loading')({});
162
- XdBus.getParentApi('deleteNewsPosition')(data.params)
163
- .then(res => {
164
- loading.close();
165
- data.cb(true)
166
- })
167
- .catch(error => {
168
- console.error(error);
169
- loading.close();
170
- data.cb(false)
171
- });
172
- }
173
-
174
- //获取广告位内容列表
175
- if (action === 'getListContent') {
176
- loading = XdBus.getParentApi('loading')({});
177
- XdBus.getParentApi('getListNewsContent')(data.params)
178
- .then(res => {
179
- loading.close();
180
- data.cb(res)
181
- })
182
- .catch(error => {
183
- loading.close();
184
- console.error(error);
185
- });
186
- }
187
-
188
- //广告内容创建
189
- if (action === 'addContent') {
190
- loading = XdBus.getParentApi('loading')({});
191
- XdBus.getParentApi('addNewsContent')(data.params)
192
- .then(res => {
193
- loading.close();
194
- data.cb(true)
195
- })
196
- .catch(error => {
197
- console.error(error);
198
- loading.close();
199
- data.cb(false)
200
- });
201
- }
202
-
203
- //广告内容编辑
204
- if (action === 'editContent') {
205
- loading = XdBus.getParentApi('loading')({});
206
- XdBus.getParentApi('updateNewsContent')(data.params)
207
- .then(res => {
208
- loading.close();
209
- data.cb(true)
210
- })
211
- .catch(error => {
212
- console.error(error);
213
- loading.close();
214
- data.cb(false)
215
- });
216
- }
217
-
218
- //广告内容删除
219
- if (action === 'deleteContent') {
220
- loading = XdBus.getParentApi('loading')({});
221
- XdBus.getParentApi('deleteNewsContent')(data.params)
222
- .then(res => {
223
- loading.close();
224
- data.cb(true)
225
- })
226
- .catch(error => {
227
- console.error(error);
228
- loading.close();
229
- data.cb(false)
230
- });
231
- }
232
-
233
- //内容发布
234
- if (action === 'publish') {
235
- loading = XdBus.getParentApi('loading')({});
236
- console.log('publish', data.params)
237
- XdBus.getParentApi('cmsPublishContent')(data.params)
238
- .then(res => {
239
- loading.close();
240
- data.cb(res)
241
- })
242
- .catch(error => {
243
- loading.close();
244
- console.error(error);
245
- });
246
- }
247
-
248
- //通知页面进行刷新
249
- if (action === 'update') {
250
- loading = XdBus.getParentApi('loading')({});
251
- XdBus.getParentApi('getXdBusUpdateView')('onUpdateView', {});
252
- loading.close()
253
- }
254
- },
255
- },
256
- {
257
- label: '票券支付路径:',
258
- ele: 'xd-select-pages-path',
259
- valueKey: 'payPath',
260
- groupKey:'advanced',
261
- placeholder: '请选择票券支付路径',
262
- value: data['payPath'] || {},
263
- setting: {
264
- router: XdBus.getParentApi('getPagesTree'),
265
- },
266
- inline: false,
267
- },
9
+ ...content(data, gValue, gColor, oldData),
10
+ ...advanced(data, gValue, gColor, oldData),
268
11
  ].filter(i=>i)
269
12
  },
270
13
  advanced: [ ],
@@ -65,7 +65,7 @@ import XdButton from "@/components/XdButton/XdButton";
65
65
  import XdUnit from "@/components/XdUnit/XdUnit.vue";
66
66
  import { jfbRootExec } from "@/utils/xd.event";
67
67
  import JfbBaseRechargeMixin from "./JfbBaseRechargeMixin";
68
- import { getContainerPropsValue } from "@/utils/xd.base";
68
+ import { gCPVal } from "@/utils/xd.base";
69
69
  import componentsMixins from "@/mixins/componentsMixins";
70
70
  import extsMixins from "@/mixins/extsMixins";
71
71
  import Color from "color";
@@ -104,7 +104,7 @@ export default {
104
104
  card_point(value) {
105
105
  if(this.timer) clearTimeout(this.timer);
106
106
  this.timer = setTimeout(()=>{
107
- if (value && value != 0) {
107
+ if (value && value !== 0) {
108
108
  this.handleGetPrice();
109
109
  }
110
110
  }, 1000)
@@ -124,9 +124,9 @@ export default {
124
124
  * @param container {object} 业务组件对象自己
125
125
  */
126
126
  init(container) {
127
- this.card_num_placeholder = getContainerPropsValue(this.container, "content.card_num_placeholder", "输入券号");
128
- this.point_placeholder = getContainerPropsValue(this.container, "content.point_placeholder", "充值点数");
129
- this.payPath = getContainerPropsValue(container, "content.payPath", {value: "",}).value;
127
+ this.card_num_placeholder = gCPVal(container, "card_num_placeholder", "输入券号");
128
+ this.point_placeholder = gCPVal(container, "point_placeholder", "充值点数");
129
+ this.payPath = gCPVal(container, "payPath", {value: "",}).value;
130
130
  },
131
131
 
132
132
 
@@ -150,6 +150,7 @@ export default {
150
150
  },
151
151
 
152
152
  toLink(pay_order_id, order_id){
153
+ if (this.$configProject["isPreview"]) return;
153
154
  this.$xdUniHelper.navigateTo({
154
155
  url: `${this.payPath}?order_id=${pay_order_id}&main_order_id=${order_id}&type=recharge`,
155
156
  });
@@ -223,9 +224,6 @@ export default {
223
224
  onJfbShow(options) {
224
225
  this.onJfbLoad(options);
225
226
  },
226
- onJfbCustomEvent(options) {
227
- console.log("event.onJfbReachBottom", options);
228
- },
229
227
  },
230
228
  };
231
229
  </script>
@@ -0,0 +1,43 @@
1
+ 'use strict';
2
+
3
+ import {getAttrPathMsg} from "@/utils/AttrTools";
4
+
5
+ export default (data, gValue, gColor, oldData={})=>{
6
+ const payPath = getAttrPathMsg(data , 'payPath', '票券支持');
7
+ return [
8
+ {
9
+ label: payPath.label,
10
+ ele: 'xd-select-pages-path',
11
+ valueKey: 'payPath',
12
+ groupKey:'advanced',
13
+ placeholder: payPath.hold,
14
+ value: payPath.path,
15
+ labelInline:true,
16
+ className: 'input100',
17
+ setting: {
18
+ mode:'new',
19
+ router: XdBus.getParentApi('getPagesTree'),
20
+ },
21
+ inline: false,
22
+ },
23
+ {
24
+ label: '版本号:',
25
+ ele: 'el-input',
26
+ type: 'text',
27
+ groupKey: 'advanced',
28
+ valueKey: 'version',
29
+ value: 'v2.0',
30
+ hidden: true,
31
+ },
32
+ {
33
+ label: '过滤引用模版字段:',
34
+ ele: 'el-input',
35
+ type: 'text',
36
+ groupKey: 'advanced',
37
+ valueKey: 'refFilterKey',
38
+ value: '["category","productStyle"]',
39
+ hidden: true,
40
+ },
41
+ ]
42
+ }
43
+