jufubao-mall 2.0.85 → 2.0.86-beta1
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/.claude/settings.local.json +12 -0
- package/package.json +1 -1
- package/src/components/JfbMallProductInfo/Api.js +13 -0
- package/src/components/JfbMallProductInfo/JfbMallProductInfo.vue +35 -0
- package/src/components/JfbMallProductInfo/cusAttr/content.js +19 -0
- package/get.package.path.js +0 -22
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
}
|
package/package.json
CHANGED
|
@@ -116,4 +116,17 @@ 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
|
+
}
|
|
119
132
|
];
|
|
@@ -229,6 +229,12 @@
|
|
|
229
229
|
<view v-if="showIconText === 'Y'" :style="{color: iconColor}">购物车</view>
|
|
230
230
|
<view v-if="cart_total" class="badge">{{cart_total}}</view>
|
|
231
231
|
</view>
|
|
232
|
+
<view v-if="showService === 'Y'" class="icon_tab"
|
|
233
|
+
:style="{width: iconWidth + 'rpx'}"
|
|
234
|
+
@click="toService">
|
|
235
|
+
<xd-font-icon icon="iconkefu" :color="iconColor"></xd-font-icon>
|
|
236
|
+
<view v-if="showIconText === 'Y'" :style="{color: iconColor}">客服</view>
|
|
237
|
+
</view>
|
|
232
238
|
<view class="btns" :style="[bottomBtnWrapStyle]">
|
|
233
239
|
<xd-button
|
|
234
240
|
v-if="btnAddBuy"
|
|
@@ -431,6 +437,7 @@
|
|
|
431
437
|
showCart: "Y", //是否展示购物车
|
|
432
438
|
showBuyNow: "Y",
|
|
433
439
|
showAddCart: "Y",
|
|
440
|
+
showService: "Y",
|
|
434
441
|
shopPath: "",
|
|
435
442
|
cartPath: "",
|
|
436
443
|
vipPath: "",
|
|
@@ -759,6 +766,7 @@
|
|
|
759
766
|
this.showCart = gCPVal(value, 'showCart', "Y");
|
|
760
767
|
this.showBuyNow = gCPVal(value, 'showBuyNow', "Y");
|
|
761
768
|
this.showAddCart = gCPVal(value, 'showAddCart', "Y");
|
|
769
|
+
this.showService = gCPVal(value, 'showService', "Y");
|
|
762
770
|
this.showIndexIcon = gCPVal(value, 'showIndexIcon', "Y");
|
|
763
771
|
this.indexIcon = gCPVal(value, 'indexIcon', 'iconbhhome');
|
|
764
772
|
this.cartIcon = gCPVal(value, 'cartIcon', 'icongouwuche');
|
|
@@ -1330,6 +1338,33 @@
|
|
|
1330
1338
|
url: this.cartPath
|
|
1331
1339
|
})
|
|
1332
1340
|
},
|
|
1341
|
+
toService() {
|
|
1342
|
+
if(this.$configProject['isPreview']) return;
|
|
1343
|
+
const product = this.base_info;
|
|
1344
|
+
const content = {
|
|
1345
|
+
title: product ? product.product_name : '',
|
|
1346
|
+
desc: this.choseSkuName || '',
|
|
1347
|
+
picture: product && product.thumb ? getServiceUrl(product.thumb, 'size4') : '',
|
|
1348
|
+
url: location.href,
|
|
1349
|
+
};
|
|
1350
|
+
jfbRootExec("updateCustomerService", {
|
|
1351
|
+
vm: this,
|
|
1352
|
+
data: {
|
|
1353
|
+
namespace: this.xnamespace,
|
|
1354
|
+
supplier_id: this.brand_info.brand_id,
|
|
1355
|
+
content: JSON.stringify(content)
|
|
1356
|
+
}
|
|
1357
|
+
}).then(res => {
|
|
1358
|
+
this.doOpenCustomerService(res);
|
|
1359
|
+
})
|
|
1360
|
+
},
|
|
1361
|
+
doOpenCustomerService(data) {
|
|
1362
|
+
const isSandbox = this.projectAttr.api_host && this.projectAttr.api_host.includes('sandbox');
|
|
1363
|
+
let host = isSandbox ? 'sandbox-misc.jufubao.cn' : location.host;
|
|
1364
|
+
let query = `from=product&sdk_key=${data.app_key}&data_key=${data.redis_key}&api=${this.projectAttr.api_host}`;
|
|
1365
|
+
let url = `http://${host}/cm/index.html?${query}`;
|
|
1366
|
+
this.$xdUniHelper.redirectTo({ url });
|
|
1367
|
+
},
|
|
1333
1368
|
handleConfirmJdSku({ number, type }){
|
|
1334
1369
|
this.jdSkuShow = false;
|
|
1335
1370
|
this.curSku = {number};
|
|
@@ -163,6 +163,25 @@ export default (data, gValue, gColor, oldData) => {
|
|
|
163
163
|
ele: 'xd-line',
|
|
164
164
|
groupKey: 'content',
|
|
165
165
|
},
|
|
166
|
+
{
|
|
167
|
+
label: '在线客服',
|
|
168
|
+
ele: 'xd-cus-switch',
|
|
169
|
+
valueKey: 'showService',
|
|
170
|
+
value: dataVal({ data, key: 'showService', dValue: 'Y', gValue }),
|
|
171
|
+
className: 'input100',
|
|
172
|
+
groupKey: 'content',
|
|
173
|
+
labelInline: true,
|
|
174
|
+
cusStyle: { marginBottom: '10px' },
|
|
175
|
+
hidden: data.showBuyNow !== 'Y',
|
|
176
|
+
setting: {
|
|
177
|
+
tips: ['显示', '不显示'],
|
|
178
|
+
isBackType: 'string'
|
|
179
|
+
},
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
ele: 'xd-line',
|
|
183
|
+
groupKey: 'content',
|
|
184
|
+
},
|
|
166
185
|
{
|
|
167
186
|
label: '加入购物车',
|
|
168
187
|
ele: 'xd-cus-switch',
|
package/get.package.path.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
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/home/root/Base-Jufubao/xd-commands-bussiness/${threePackagePath}`;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
if (packname === 'gxd-uni-library-editx') {
|
|
15
|
-
return `/Users/shiyonggao/home/root/Base-Jufubao/xd-uni-library-editx/${threePackagePath}`;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
module.exports = {
|
|
21
|
-
getPackagePath
|
|
22
|
-
}
|