jufubao-mall 2.0.91 → 2.0.92-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.
- package/.claude/settings.local.json +12 -0
- package/package.json +1 -1
- package/src/components/JfbMallCategoryProduct/JfbMallCategoryProduct.vue +0 -51
- package/src/components/JfbMallConfirm/JfbMallConfirm.vue +18 -2
- package/src/components/JfbMallConfirm/Mock.js +2 -0
- package/src/components/JfbMallConfirm/cusAttr/content.js +13 -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
|
@@ -306,8 +306,6 @@
|
|
|
306
306
|
is_plus_site: false,
|
|
307
307
|
productKey: 'productKey',
|
|
308
308
|
curParentIndex: 0,
|
|
309
|
-
pid: '',
|
|
310
|
-
cateId: '',
|
|
311
309
|
|
|
312
310
|
// 排序功能
|
|
313
311
|
sortType: 'default',
|
|
@@ -451,9 +449,6 @@
|
|
|
451
449
|
selectNav: {
|
|
452
450
|
deep: true,
|
|
453
451
|
handler(n, o) {
|
|
454
|
-
// 切换分类时清空已选品牌,避免筛选条件残留到新分类
|
|
455
|
-
this.selectedBrandIds = [];
|
|
456
|
-
this.showBrandAll = false;
|
|
457
452
|
this.page_token = '1';
|
|
458
453
|
this.getProductList()
|
|
459
454
|
// 获取品牌列表
|
|
@@ -471,13 +466,6 @@
|
|
|
471
466
|
onJfbLoad(options) {
|
|
472
467
|
this.setNameSpace(options);
|
|
473
468
|
this.onLoadStatus = true;
|
|
474
|
-
// 路由参数:pid 一级分类、cateId 二级分类,用于定位对应分类
|
|
475
|
-
if (options.pid) {
|
|
476
|
-
this.pid = Number(options.pid);
|
|
477
|
-
}
|
|
478
|
-
if (options.cateId) {
|
|
479
|
-
this.cateId = Number(options.cateId);
|
|
480
|
-
}
|
|
481
469
|
this.getType2Nav()
|
|
482
470
|
},
|
|
483
471
|
init(container) {
|
|
@@ -676,10 +664,6 @@
|
|
|
676
664
|
return item;
|
|
677
665
|
});
|
|
678
666
|
this.allNavList = items;
|
|
679
|
-
// 路由带分类id时,定位到对应分类
|
|
680
|
-
if ((this.pid || this.cateId) && this.locateCategory(items)) {
|
|
681
|
-
return;
|
|
682
|
-
}
|
|
683
667
|
// layoutStyle=2: 无顶部导航,左侧直接显示一级导航
|
|
684
668
|
if (this.layoutStyle === '2') {
|
|
685
669
|
this.navChildrenList = this.allNavList;
|
|
@@ -695,41 +679,6 @@
|
|
|
695
679
|
})
|
|
696
680
|
},
|
|
697
681
|
|
|
698
|
-
// 根据路由参数定位分类(pid 一级分类、cateId 二级分类),命中则选中对应分类并返回true
|
|
699
|
-
locateCategory(items) {
|
|
700
|
-
// 1. 定位一级分类 index:优先 pid 直接匹配,否则用 cateId 反查父级
|
|
701
|
-
let parentIndex = -1;
|
|
702
|
-
if (this.pid) {
|
|
703
|
-
parentIndex = items.findIndex(item => Number(item.category_id) === this.pid);
|
|
704
|
-
}
|
|
705
|
-
if (parentIndex === -1 && this.cateId) {
|
|
706
|
-
parentIndex = items.findIndex(item =>
|
|
707
|
-
(item.children || []).some(child => Number(child.category_id) === this.cateId)
|
|
708
|
-
);
|
|
709
|
-
}
|
|
710
|
-
if (parentIndex === -1) return false;
|
|
711
|
-
|
|
712
|
-
// 2. 定位二级分类 index:用 cateId 匹配父级下子分类,未命中或未传则选中第一个
|
|
713
|
-
let childIndex = 0;
|
|
714
|
-
if (this.cateId) {
|
|
715
|
-
const cIndex = (items[parentIndex].children || []).findIndex(child => Number(child.category_id) === this.cateId);
|
|
716
|
-
if (cIndex > -1) childIndex = cIndex;
|
|
717
|
-
}
|
|
718
|
-
|
|
719
|
-
this.curParentIndex = parentIndex;
|
|
720
|
-
if (this.layoutStyle === '2') {
|
|
721
|
-
// 无顶部导航:左侧保持一级列表并高亮一级分类;有 cateId 时选中二级分类
|
|
722
|
-
this.navChildrenList = this.allNavList;
|
|
723
|
-
this.selectNavIndex = parentIndex;
|
|
724
|
-
this.selectNav = this.cateId ? items[parentIndex].children[childIndex] : items[parentIndex];
|
|
725
|
-
} else {
|
|
726
|
-
this.navChildrenList = items[parentIndex].children;
|
|
727
|
-
this.selectNav = this.navChildrenList[childIndex];
|
|
728
|
-
this.selectNavIndex = childIndex;
|
|
729
|
-
}
|
|
730
|
-
return true;
|
|
731
|
-
},
|
|
732
|
-
|
|
733
682
|
getContentStyle(type = 'cont') {
|
|
734
683
|
let outerWidth = (uni.getSystemInfoSync().safeArea.width * this.$pxNum) - 180;
|
|
735
684
|
|
|
@@ -62,6 +62,9 @@
|
|
|
62
62
|
:style="{color:priceTextColor,fontSize:'24rpx'}">活动价</view>
|
|
63
63
|
</view>
|
|
64
64
|
</view>
|
|
65
|
+
<view v-if="showLogisticsTip === 'Y' &&
|
|
66
|
+
logisticsTipType === 'prod' &&
|
|
67
|
+
shop.deliveryPickValue === 'logistics'" class="postage_tip">{{ prod.postage_tip || logisticsTipText }}</view>
|
|
65
68
|
<view v-if="prod.blessingKey" class="wish_comment">
|
|
66
69
|
<input :maxlength="prod.blessingData.struct.maxlength||16" v-model="prod.blessing" :placeholder="prod.blessingData.value" />
|
|
67
70
|
<view class="bless_tip"
|
|
@@ -107,8 +110,8 @@
|
|
|
107
110
|
</template>
|
|
108
111
|
</view>
|
|
109
112
|
<!-- <xd-list-item v-if="shop.delivery_message" :label="shop.delivery_message" paddingLR="48rpx" size="large"></xd-list-item> -->
|
|
110
|
-
<view v-if="showLogisticsTip === 'Y' && shop.deliveryPickValue === 'logistics'" class="logistics_tip">
|
|
111
|
-
{{logisticsTipText}}
|
|
113
|
+
<view v-if="showLogisticsTip === 'Y' && logisticsTipType === 'shop' && shop.deliveryPickValue === 'logistics'" class="logistics_tip">
|
|
114
|
+
{{shop.postage_tip || logisticsTipText}}
|
|
112
115
|
</view>
|
|
113
116
|
<view v-if="shop.is_support_delivery == 'N'" :style="{background:bgColor,color:warningColor}" class="err_message">
|
|
114
117
|
{{shop.message}}
|
|
@@ -580,6 +583,7 @@
|
|
|
580
583
|
guidePay: "",
|
|
581
584
|
showLogisticsTip: "Y",
|
|
582
585
|
logisticsTipText: "",
|
|
586
|
+
logisticsTipType: "", //shop:拆单, prod: 商品
|
|
583
587
|
checkPayMethod: [],
|
|
584
588
|
ticketPositionStatus: "N",
|
|
585
589
|
openVipBtnBgImg: "",
|
|
@@ -942,6 +946,7 @@
|
|
|
942
946
|
this.guidePay = getContainerPropsValue(container, "content.guidePay", "");
|
|
943
947
|
this.showLogisticsTip = gCPVal(container, 'showLogisticsTip', "Y");
|
|
944
948
|
this.logisticsTipText = gCPVal(container, 'logisticsTipText', '订单生成后72小时发货,如遇节假日发货顺延');
|
|
949
|
+
this.logisticsTipType = gCPVal(container, 'logisticsTipType', "shop");
|
|
945
950
|
this.ticketPositionStatus = gCPVal(container, 'ticketPositionStatus', "N")
|
|
946
951
|
console.log("this.showLogisticsTip", this.showLogisticsTip);
|
|
947
952
|
if(this.useMode === "market"){
|
|
@@ -1952,6 +1957,11 @@
|
|
|
1952
1957
|
font-size: 24rpx;
|
|
1953
1958
|
color: var(--g-theme-dangerColor);
|
|
1954
1959
|
}
|
|
1960
|
+
.shop_postage{
|
|
1961
|
+
padding: 0 var(--cont-lr-padding) 24rpx;
|
|
1962
|
+
font-size: 24rpx;
|
|
1963
|
+
color: var(--g-theme-dangerColor);
|
|
1964
|
+
}
|
|
1955
1965
|
.err_message{
|
|
1956
1966
|
padding: 20rpx var(--cont-lr-padding);
|
|
1957
1967
|
font-size: 24rpx;
|
|
@@ -2027,6 +2037,12 @@
|
|
|
2027
2037
|
justify-content: space-between;
|
|
2028
2038
|
}
|
|
2029
2039
|
}
|
|
2040
|
+
.postage_tip{
|
|
2041
|
+
color: rgb(229, 116, 112);
|
|
2042
|
+
font-size: 24rpx;
|
|
2043
|
+
padding: 0 var(--cont-lr-padding);
|
|
2044
|
+
margin: 10px 0;
|
|
2045
|
+
}
|
|
2030
2046
|
.wish_comment{
|
|
2031
2047
|
padding: 0 var(--cont-lr-padding);
|
|
2032
2048
|
input{
|
|
@@ -163,6 +163,7 @@ module.exports = {
|
|
|
163
163
|
group_id: "61527_3_1_1_1_0_YLYO6_3-vLG2sP8ytvmHF",
|
|
164
164
|
is_support_delivery: "Y",
|
|
165
165
|
message: "可以配送.",
|
|
166
|
+
postage_tip: "订单将在活动结算后5个工作日内完成发货",
|
|
166
167
|
user_logistics_amount_origin: "50",
|
|
167
168
|
supplier_partner_id: 161,
|
|
168
169
|
show_subscribe_time_list: [],
|
|
@@ -207,6 +208,7 @@ module.exports = {
|
|
|
207
208
|
"https://sandbox-img.jufubao.cn/uploads/20230406/0b890cd5a947d9c5724b412d34cd4000.png",
|
|
208
209
|
product_form_data:
|
|
209
210
|
'[{"id":"blessing","type":"input","struct":{"title":"祝福语","explain":"请务必准确填写号码,号码错误将无法进行退还操作。","default":"","placeholder":"","required":true},"options":[],"value":"祝福语"}]',
|
|
211
|
+
postage_tip: "订单生成后72小时发货",
|
|
210
212
|
brand_id: 3,
|
|
211
213
|
brand_name: "北京味多美蛋糕叔叔/HEYTEA/喜茶/凯蒂猫/Quange/全格",
|
|
212
214
|
aftersale_service: ",refund,exchange",
|
|
@@ -339,6 +339,19 @@ export default function (data, gValue,gColor,oldData){
|
|
|
339
339
|
notice:'仅针对配送方式为快递的商品展示',
|
|
340
340
|
},
|
|
341
341
|
{ele: 'group_start'},
|
|
342
|
+
{
|
|
343
|
+
label: "展示方式",
|
|
344
|
+
ele: "xd-radio",
|
|
345
|
+
valueKey: "logisticsTipType",
|
|
346
|
+
value: dataVal({data, key:'logisticsTipType', dValue: 'shop', gValue}),
|
|
347
|
+
groupKey:'content',
|
|
348
|
+
list: [
|
|
349
|
+
{ label: "按拆单展示", value: "shop"},
|
|
350
|
+
{ label: "按商品展示", value: "prod"},
|
|
351
|
+
],
|
|
352
|
+
hidden: data.showLogisticsTip === 'N',
|
|
353
|
+
labelInline: true,
|
|
354
|
+
},
|
|
342
355
|
{
|
|
343
356
|
label: "",
|
|
344
357
|
ele: "el-input",
|
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/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
|
-
}
|