jufubao-mall 2.0.121 → 2.0.122-beta2
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,29 @@
|
|
|
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
|
+
"Bash(cp src/components/JfbMallResourceShop/cusAttr/content.js /tmp/_check.js)",
|
|
11
|
+
"Bash(sed -i '' 's|from \"@/utils/AttrTools\"|from \"../../../utils/AttrTools\"|; s|from \"@/utils/Attr/PosterAttr\"|from \"../../../utils/Attr/PosterAttr\"|; s|from \"@/utils/Attr/ProductAttr\"|from \"../../../utils/Attr/ProductAttr\"|' /tmp/_check.js)",
|
|
12
|
+
"Bash(node --check /tmp/_check.js)",
|
|
13
|
+
"Bash(rm /tmp/_check.js)",
|
|
14
|
+
"Bash(node --input-type=module --check)",
|
|
15
|
+
"Bash(grep -v \"\\\\.js$\")",
|
|
16
|
+
"Bash(cp /Users/zxd/Workspaces/jufubao-mall/src/components/JfbMallNewShopList/cusAttr/content.js /Users/zxd/Workspaces/editx-templates/src/preview/components/JfbMallNewShopList/cusAttr/content.js)",
|
|
17
|
+
"Bash(cp /Users/zxd/Workspaces/jufubao-mall/src/components/JfbMallNewShopList/JfbMallNewShopList.vue /Users/zxd/Workspaces/editx-templates/src/preview/components/JfbMallNewShopList/JfbMallNewShopList.vue)",
|
|
18
|
+
"Read(//Users/zxd/Workspaces/jufubao-base/src/common/**)",
|
|
19
|
+
"Read(//Users/zxd/Workspaces/**)",
|
|
20
|
+
"Bash(node -e \"const p=require\\('./package.json'\\);console.log\\(JSON.stringify\\(p.scripts,null,2\\)\\)\")",
|
|
21
|
+
"Bash(node -e \"const p=require\\('./package.json'\\);console.log\\('jest:',p.devDependencies&&p.devDependencies.jest,'| vue-jest:',p.devDependencies&&p.devDependencies['vue-jest']\\)\")",
|
|
22
|
+
"Read(//private/tmp/skutest/**)",
|
|
23
|
+
"Bash(perl -0pi -e \"s/module:\\\\{exports:\\\\{\\\\}\\\\}, console,/module:{exports:{}}, console: {log\\(\\){},error\\(\\){},warn\\(\\){}},/\" harness.js)",
|
|
24
|
+
"Bash(node run.js)",
|
|
25
|
+
"Bash(node *)",
|
|
26
|
+
"Bash(grep -E \"^vue\\( |-|$\\)\")"
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
}
|
package/package.json
CHANGED
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
>({{ sku.values.length }})</text
|
|
63
63
|
></view
|
|
64
64
|
>
|
|
65
|
-
<template v-if="sku.
|
|
65
|
+
<template v-if="sku.hasImage">
|
|
66
66
|
<view
|
|
67
67
|
v-if="imageSkuLayout === 'vertical'"
|
|
68
68
|
class="sort_sku"
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
:class="[
|
|
86
86
|
{
|
|
87
87
|
'attr-active': ii === sku.checked,
|
|
88
|
-
'is-img': sku.
|
|
88
|
+
'is-img': sku.hasImage,
|
|
89
89
|
},
|
|
90
90
|
imageSkuLayout,
|
|
91
91
|
]"
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
},
|
|
103
103
|
]"
|
|
104
104
|
>
|
|
105
|
-
<view :class="{name: sku.
|
|
105
|
+
<view :class="{name: sku.hasImage,no_image_name:!sku.hasImage}">{{ value }}</view>
|
|
106
106
|
</view>
|
|
107
107
|
</view>
|
|
108
108
|
</view>
|
|
@@ -416,7 +416,8 @@ export default {
|
|
|
416
416
|
attr_id,
|
|
417
417
|
name,
|
|
418
418
|
values: [value],
|
|
419
|
-
images
|
|
419
|
+
//images 与 values 下标一一对应,无图时占位空字符串
|
|
420
|
+
images: [image ? getServiceUrl(image, "size3") : ""],
|
|
420
421
|
checked: "",
|
|
421
422
|
disabled: [],
|
|
422
423
|
};
|
|
@@ -428,10 +429,10 @@ export default {
|
|
|
428
429
|
if (item.name == stand.name) {
|
|
429
430
|
if (!item["values"].includes(stand.value)) {
|
|
430
431
|
item["values"].push(stand.value);
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
432
|
+
//不同规格值可能复用同一张图片,不能按图片去重,否则 images 会和 values 错位
|
|
433
|
+
item["images"].push(
|
|
434
|
+
stand.image ? getServiceUrl(stand.image, "size3") : ""
|
|
435
|
+
);
|
|
435
436
|
}
|
|
436
437
|
}
|
|
437
438
|
});
|
|
@@ -439,6 +440,11 @@ export default {
|
|
|
439
440
|
}
|
|
440
441
|
return pre;
|
|
441
442
|
}, []);
|
|
443
|
+
//是否有规格图(决定是否用大图模式展示),与 values 下标无关
|
|
444
|
+
skuList = skuList.map((item) => {
|
|
445
|
+
item["hasImage"] = item.images.some((img) => !!img);
|
|
446
|
+
return item;
|
|
447
|
+
});
|
|
442
448
|
// 激活默认选中项
|
|
443
449
|
if (this.currSku!==undefined) {
|
|
444
450
|
skuList = skuList.map((item) => {
|
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
|
-
}
|