jufubao-mall 2.0.86-beta3 → 2.0.86

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.
@@ -0,0 +1,22 @@
1
+ 'use strict';
2
+
3
+ /**
4
+ * @description 第三方库
5
+ * @param threePackagePath {String} 第三方库所在项目路径存放路径路
6
+ * @param packname {String} 包名字
7
+ * @returns {string|*}
8
+ */
9
+ const getPackagePath = (threePackagePath, packname = 'gxd-commands-bussiness')=>{
10
+ if(packname === 'gxd-commands-bussiness') {
11
+ return `/Users/shiyonggao/Desktop/code/BASE/UNIAPP/xd-commands-bussiness/${threePackagePath}`;
12
+ }
13
+
14
+ if (packname === 'gxd-uni-library-editx') {
15
+ return `/Users/shiyonggao/Desktop/code/BASE/UNIAPP/xd-uni-library-editx/${threePackagePath}`;
16
+ }
17
+
18
+ };
19
+
20
+ module.exports = {
21
+ getPackagePath
22
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-mall",
3
- "version": "2.0.86-beta3",
3
+ "version": "2.0.86",
4
4
  "private": false,
5
5
  "description": "聚福宝商城业务组件插件包",
6
6
  "main": "index.js",
@@ -116,17 +116,4 @@ module.exports = [
116
116
  isConsole: true,
117
117
  disabled: true,
118
118
  },
119
- {
120
- title: "根据供应商ID更新在线客服内容",
121
- path: "/aftersale/v1/online-customer-service/update",
122
- mapFnName: "updateCustomerService",
123
- isRule: false,
124
- data: {
125
- supplier_id: ['供应商ID', 'Number', true],
126
- content: ['在线客服内容', 'String', true],
127
- namespace: ['业务线', 'String', true],
128
- },
129
- isConsole: true,
130
- disabled: true,
131
- }
132
119
  ];
@@ -222,12 +222,6 @@
222
222
  <xd-font-icon :icon="indexIcon" :color="iconColor"></xd-font-icon>
223
223
  <view v-if="showIconText === 'Y'" :style="{color: iconColor}">首页</view>
224
224
  </view>
225
- <view v-if="showService === 'Y'" class="icon_tab"
226
- :style="{width: iconWidth + 'rpx'}"
227
- @click="toService">
228
- <xd-font-icon :icon="serviceIcon" :color="iconColor"></xd-font-icon>
229
- <view v-if="showIconText === 'Y'" :style="{color: iconColor}">客服</view>
230
- </view>
231
225
  <view v-if="showCart === 'Y'" class="icon_tab"
232
226
  :style="{width: iconWidth + 'rpx'}"
233
227
  @click="toCart">
@@ -437,7 +431,6 @@
437
431
  showCart: "Y", //是否展示购物车
438
432
  showBuyNow: "Y",
439
433
  showAddCart: "Y",
440
- showService: "Y",
441
434
  shopPath: "",
442
435
  cartPath: "",
443
436
  vipPath: "",
@@ -455,7 +448,6 @@
455
448
  //icon
456
449
  indexIcon: '',
457
450
  cartIcon: '',
458
- serviceIcon: '',
459
451
  iconColor: '',
460
452
  noticeBackgroundColor: "",
461
453
  detailBackground: "",
@@ -767,8 +759,6 @@
767
759
  this.showCart = gCPVal(value, 'showCart', "Y");
768
760
  this.showBuyNow = gCPVal(value, 'showBuyNow', "Y");
769
761
  this.showAddCart = gCPVal(value, 'showAddCart', "Y");
770
- this.showService = gCPVal(value, 'showService', "");
771
- this.serviceIcon = gCPVal(value, 'serviceIcon', 'iconkefu');
772
762
  this.showIndexIcon = gCPVal(value, 'showIndexIcon', "Y");
773
763
  this.indexIcon = gCPVal(value, 'indexIcon', 'iconbhhome');
774
764
  this.cartIcon = gCPVal(value, 'cartIcon', 'icongouwuche');
@@ -1340,36 +1330,6 @@
1340
1330
  url: this.cartPath
1341
1331
  })
1342
1332
  },
1343
- toService() {
1344
- if(this.$configProject['isPreview']) return;
1345
- const product = this.base_info;
1346
- const price = this.choseSkuPrice.sale_price || (product.prices && product.prices.sale_price) || 0;
1347
- const content = {
1348
- title: product ? product.product_name : '',
1349
- desc: this.choseSkuName || '',
1350
- picture: product && product.thumb ? getServiceUrl(product.thumb, 'size4') : '',
1351
- url: location.href,
1352
- goodsId: product ? product.product_id + '' : 0,
1353
- note: "¥" + price/100,
1354
- };
1355
- jfbRootExec("updateCustomerService", {
1356
- vm: this,
1357
- data: {
1358
- namespace: this.xnamespace,
1359
- supplier_id: this.brand_info.supplier_id,
1360
- content: JSON.stringify(content)
1361
- }
1362
- }).then(res => {
1363
- this.doOpenCustomerService(res);
1364
- })
1365
- },
1366
- doOpenCustomerService(data) {
1367
- const isSandbox = this.projectAttr.api_host && this.projectAttr.api_host.includes('sandbox');
1368
- let host = isSandbox ? 'sandbox-misc.jufubao.cn' : location.host;
1369
- let query = `from=product&sdk_key=${data.app_key}&data_key=${data.redis_key}&api=${this.projectAttr.api_host}`;
1370
- let url = `http://${host}/cm/index.html?${query}`;
1371
- this.$xdUniHelper.redirectTo({ url });
1372
- },
1373
1333
  handleConfirmJdSku({ number, type }){
1374
1334
  this.jdSkuShow = false;
1375
1335
  this.curSku = {number};
@@ -245,39 +245,6 @@ export default (data, gValue, gColor, oldData) => {
245
245
  ele: 'xd-line',
246
246
  groupKey: 'content',
247
247
  },
248
- {
249
- label: '底部客服',
250
- ele: 'xd-cus-switch',
251
- valueKey: 'showService',
252
- value: dataVal({ data, key: 'showService', dValue: gValue.isAdd && gValue.isFirst ? 'Y' : "N", gValue }),
253
- className: 'input100',
254
- groupKey: 'content',
255
- labelInline: true,
256
- cusStyle: { marginBottom: '10px' },
257
- hidden: data.showBuyNow !== 'Y',
258
- setting: {
259
- tips: ['显示', '不显示'],
260
- isBackType: 'string'
261
- },
262
- },
263
- { ele: 'group_start' },
264
- {
265
- label: '图标样式',
266
- ele: 'xd-select-list',
267
- valueKey: 'serviceIcon',
268
- labelInline: true,
269
- value: dataVal({ data, key: 'serviceIcon', dValue: '', gValue }),
270
- placeholder: '请输入客服ICON',
271
- className: 'input60',
272
- groupKey: 'content',
273
- list: ICONS,
274
- hidden: data.showService !== 'Y'
275
- },
276
- { ele: 'group_end' },
277
- {
278
- ele: 'xd-line',
279
- groupKey: 'content',
280
- },
281
248
  {
282
249
  label: '自定义内容',
283
250
  ele: 'xd-cus-switch',
@@ -1,12 +0,0 @@
1
- {
2
- "permissions": {
3
- "allow": [
4
- "Bash(git checkout *)",
5
- "Bash(npx lessc *)",
6
- "Bash(python3 *)",
7
- "Bash(sips -g pixelWidth -g pixelHeight \"/Users/zxd/Workspaces/jufubao-mall/temp_screenshot.jpg\")",
8
- "Bash(identify \"/Users/zxd/Workspaces/jufubao-mall/temp_screenshot.jpg\")",
9
- "Bash(sips *)"
10
- ]
11
- }
12
- }