jufubao-mall 2.0.83-beta2 → 2.0.83

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 (28) hide show
  1. package/get.package.path.js +22 -0
  2. package/package.json +1 -1
  3. package/src/components/JfbMallConfirm/JfbMallConfirm.vue +5 -1
  4. package/src/components/JfbMallProductInfo/JfbMallProductInfo.vue +1 -2
  5. package/src/components/JfbMallProductInfo/XdSku.vue +16 -5
  6. package/src/components/JfbMallProductInfo/XdSkuJd.vue +22 -5
  7. package/src/components/JfbMallShop/JfbMallShop.vue +1 -1
  8. package/src/components/JfbMallShop/ShowQp.vue +4 -4
  9. package/.claude/settings.local.json +0 -8
  10. package/src/components/JfbMallCategoryAll/Api.js +0 -40
  11. package/src/components/JfbMallCategoryAll/Attr.js +0 -20
  12. package/src/components/JfbMallCategoryAll/JfbMallCategoryAll.vue +0 -383
  13. package/src/components/JfbMallCategoryAll/JfbMallCategoryAllLess.less +0 -80
  14. package/src/components/JfbMallCategoryAll/JfbMallCategoryAllMixin.js +0 -30
  15. package/src/components/JfbMallCategoryAll/Mock.js +0 -1333
  16. package/src/components/JfbMallCategoryAll/XdStoreProductType.vue +0 -548
  17. package/src/components/JfbMallCategoryAll/cusAttr/advanced.js +0 -28
  18. package/src/components/JfbMallCategoryAll/cusAttr/content.js +0 -158
  19. package/src/components/JfbMallCategoryAll/cusAttr/style.js +0 -527
  20. package/src/components/JfbMallCategoryProduct/Api.js +0 -71
  21. package/src/components/JfbMallCategoryProduct/Attr.js +0 -20
  22. package/src/components/JfbMallCategoryProduct/JfbMallCategoryProduct.vue +0 -1242
  23. package/src/components/JfbMallCategoryProduct/JfbMallCategoryProductLess.less +0 -80
  24. package/src/components/JfbMallCategoryProduct/JfbMallCategoryProductMixin.js +0 -30
  25. package/src/components/JfbMallCategoryProduct/Mock.js +0 -1694
  26. package/src/components/JfbMallCategoryProduct/cusAttr/advanced.js +0 -53
  27. package/src/components/JfbMallCategoryProduct/cusAttr/content.js +0 -279
  28. package/src/components/JfbMallCategoryProduct/cusAttr/style.js +0 -388
@@ -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/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
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-mall",
3
- "version": "2.0.83-beta2",
3
+ "version": "2.0.83",
4
4
  "private": false,
5
5
  "description": "聚福宝商城业务组件插件包",
6
6
  "main": "index.js",
@@ -102,7 +102,7 @@
102
102
  <xd-list-item v-if="shop.takeoutTimeList" :label="shop.time_label" show-right :paddingLR="isCardLayout ? '32rpx' : '48rpx'" paddingTB="24rpx" @click="toSetTakeoutTime(shopIndex,shop)" class="xd-my-list-item">
103
103
  <view style="">{{shop.takeoutTime ? shop.takeoutTime.dateTime : '请选择'}}</view>
104
104
  </xd-list-item>
105
- </template>
105
+ </template>
106
106
  </template>
107
107
  </view>
108
108
  <!-- <xd-list-item v-if="shop.delivery_message" :label="shop.delivery_message" paddingLR="48rpx" size="large"></xd-list-item> -->
@@ -132,6 +132,9 @@
132
132
  <xd-list-item v-if="showLogisticsAmount&&main_show_delivery_price==='Y'" label="商品运费" :paddingLR="isCardLayout ? '32rpx' : '48rpx'">
133
133
  <xd-unit :price="orderFee.user_logistics_amount_origin" :isOld="false" :fontSize="28" :iconSize="0.3"></xd-unit>
134
134
  </xd-list-item>
135
+ <xd-list-item v-if="orderFee.main_user_server_amount" label="平台服务费" :paddingLR="isCardLayout ? '32rpx' : '48rpx'">
136
+ <xd-unit :price="orderFee.main_user_server_amount" :isOld="false" :fontSize="28" :iconSize="0.3"></xd-unit>
137
+ </xd-list-item>
135
138
  </view>
136
139
  <view v-if="showPrice === 'Y' || otherPayMethod.filter(it => it.method!=='third').length" class="money_box">
137
140
  <template v-if="showPrice === 'Y'">
@@ -1554,6 +1557,7 @@
1554
1557
  product_amount: res.product_amount,
1555
1558
  plus_saving_money: res.plus_saving_money,
1556
1559
  origin_amount: res.origin_amount,
1560
+ main_user_server_amount: res.main_user_server_amount,
1557
1561
  }
1558
1562
  //支付方式跟用户相关,与订单无关。
1559
1563
  //只获取一次。
@@ -832,8 +832,7 @@
832
832
  }
833
833
  }).then(res => {
834
834
 
835
- //res = {"base_info":{"product_id":66359621,"partner_id":161,"product_type":"good","category_id":142028,"product_name":"LUOLAI\/罗莱家纺月冉晓杏全棉可水洗夏被","sub_title":"","thumb":"\/uploads\/20250609\/b24185b5c38d3018cadf48c91d159e62.jpg","product_tags":[],"market_tags":[],"tags":[],"prices":{"sale_price":29000,"activity_price":0,"market_price":59900,"wholesale_prices":[],"vip_price":0,"show_prices":[{"p":29000,"n":"","t":"S"},{"p":59900,"n":"","t":"U"}]},"sale_num":4,"region_limit_tpl_id":"MxAZmuFFEX_wzGPmnoUYF","channel_code":"anVmdWJhb3w2NjM1OTYyMQ%3D%3D","notice_text":""},"images":[{"src":"\/uploads\/20250611\/90b6ec501ea7591fc006871c1fb78869.jpg"},{"src":"\/uploads\/20250609\/dec58372f4e7f1ef1ee8792820104e1f.jpg"},{"src":"\/uploads\/20250609\/27300fe6c336db75b18593823b5471cc.jpg"},{"src":"\/uploads\/20250609\/0ce25a57e372377223ec76d45409bfe4.jpg"},{"src":"\/uploads\/20250609\/9c3a9c7bd8d9361c23aee0d64c47409e.jpg"}],"videos":[],"parameters":[{"label":"品牌","value":"LUOLAI\/罗莱家纺","key":"brand"}],"delivery_methods":[{"label":"快递配送","value":"logistics"}],"brand_info":{"brand_id":40064,"brand_name":"LUOLAI\/罗莱家纺","brand_icon":"https:\/\/jfb-public-images.oss-cn-qingdao.aliyuncs.com\/admin-upload\/202105081449057244.jpg?x-oss-process=style\/common","brand_type":"MA","supplier_id":1358505},"skus":[{"product_sku":70199044,"standards":[{"attr_id":"","name":"月冉晓杏全棉可水洗夏被","value":"150*200cm\/950g","image":"\/\/img1-b.jufubao.cn\/uploads\/20250611\/a9c8fd6dc54918eb6687c65fea034e55.jpg?ver=1749625095120","desc":""}],"prices":{"sale_price":29000,"activity_price":0,"market_price":59900,"wholesale_prices":[],"vip_price":0,"show_prices":[{"p":29000,"n":"","t":"S"},{"p":59900,"n":"","t":"U"}]},"enabled":true},{"product_sku":70199045,"standards":[{"attr_id":"","name":"月冉晓杏全棉可水洗夏被","value":"200*230cm\/1450g","image":"\/\/img1-b.jufubao.cn\/uploads\/20250611\/0eca2b62949531ce2e22137ab7580a2c.jpg?ver=1749625100584","desc":""}],"prices":{"sale_price":36600,"activity_price":0,"market_price":69900,"wholesale_prices":[],"vip_price":0,"show_prices":[{"p":36600,"n":"","t":"S"},{"p":69900,"n":"","t":"U"}]},"enabled":true}],"sms_activity":{"status":"","activity_type":"","activity_tips":"","activity_price":0,"end_time":0,"start_time":0,"distance_start_time":0,"distance_end_time":0,"max_buy_num":0,"is_today":""},"similar_products":[],"request_id":"c4fa548ce8fa2185"}
836
-
835
+ //res = {"base_info":{"product_id":66845221,"partner_id":161,"product_type":"good","category_id":141883,"product_name":"雀氏玩彩派小规格纸尿裤\/拉拉裤","sub_title":"","thumb":"\/uploads\/20260420\/296831222afb2f9409ce6a3504b0a910.jpg","product_tags":[],"market_tags":[],"tags":[],"prices":{"sale_price":4000,"activity_price":0,"market_price":5990,"wholesale_prices":[],"vip_price":0,"show_prices":[{"p":4000,"n":"","t":"S"},{"p":5990,"n":"","t":"U"}]},"sale_num":7,"region_limit_tpl_id":"tNveLAGXZiFUkwCrV3OVj","channel_code":"anVmdWJhb3w2Njg0NTIyMQ%3D%3D","notice_text":""},"images":[{"src":"\/uploads\/20260420\/45ecf7c80566ad26c3f6228f4637045a.jpg"},{"src":"\/uploads\/20260420\/b2106b35bd21ab2aaab0aa8657cd60a0.jpg"},{"src":"\/uploads\/20260420\/07ea8eb581a65d31fc8c2c62fb3278a5.jpg"},{"src":"\/uploads\/20260420\/00d0e6cf38a35350fbe7194ad7aaf184.jpg"},{"src":"\/uploads\/20260420\/d062963ef139bc7f92af988f666dc23e.jpg"}],"videos":[],"parameters":[{"label":"品牌","value":"Chiaus\/雀氏","key":"brand"}],"delivery_methods":[{"label":"快递配送","value":"logistics"}],"brand_info":{"brand_id":104993,"brand_name":"Chiaus\/雀氏","brand_icon":"\/uploads\/20260420\/182197dd71e55725c9a4d0268666169b.jpg","brand_type":"MA","supplier_id":1359319},"skus":[{"product_sku":70559700,"standards":[{"attr_id":"","name":"规格","value":"纸尿裤s码28片","image":"\/\/img-b.jufubao.cn\/uploads\/20260420\/8422ea7a61612b2b4409946d4ef6278c.jpg?ver=1776667353534","desc":""}],"prices":{"sale_price":4000,"activity_price":0,"market_price":5990,"wholesale_prices":[],"vip_price":0,"show_prices":[{"p":4000,"n":"","t":"S"},{"p":5990,"n":"","t":"U"}]},"enabled":true},{"product_sku":70559701,"standards":[{"attr_id":"","name":"规格","value":"纸尿裤M码26片","image":"\/\/img1-b.jufubao.cn\/uploads\/20260420\/d1c5a3287280b6d0015ae20817b4b7cd.png?ver=1776667360202","desc":""}],"prices":{"sale_price":4000,"activity_price":0,"market_price":5990,"wholesale_prices":[],"vip_price":0,"show_prices":[{"p":4000,"n":"","t":"S"},{"p":5990,"n":"","t":"U"}]},"enabled":true},{"product_sku":70559702,"standards":[{"attr_id":"","name":"规格","value":"纸尿裤L码24片","image":"\/\/img1-b.jufubao.cn\/uploads\/20260420\/32da49d6b25e690b3de2872207eca0a4.png?ver=1776667367077","desc":""}],"prices":{"sale_price":4000,"activity_price":0,"market_price":5990,"wholesale_prices":[],"vip_price":0,"show_prices":[{"p":4000,"n":"","t":"S"},{"p":5990,"n":"","t":"U"}]},"enabled":true},{"product_sku":70559703,"standards":[{"attr_id":"","name":"规格","value":"纸尿裤XL码22片","image":"\/\/img1-b.jufubao.cn\/uploads\/20260420\/9b5a229a5585734b46032d4581e5cb80.png?ver=1776667373241","desc":""}],"prices":{"sale_price":4000,"activity_price":0,"market_price":5990,"wholesale_prices":[],"vip_price":0,"show_prices":[{"p":4000,"n":"","t":"S"},{"p":5990,"n":"","t":"U"}]},"enabled":true},{"product_sku":70559704,"standards":[{"attr_id":"","name":"规格","value":"纸尿裤XXL码20片","image":"\/\/img1-b.jufubao.cn\/uploads\/20260420\/09df8070e5800397fb911726e8db30c2.png?ver=1776667379739","desc":""}],"prices":{"sale_price":4000,"activity_price":0,"market_price":5990,"wholesale_prices":[],"vip_price":0,"show_prices":[{"p":4000,"n":"","t":"S"},{"p":5990,"n":"","t":"U"}]},"enabled":true},{"product_sku":70559705,"standards":[{"attr_id":"","name":"规格","value":"拉拉裤L码24片","image":"\/\/img1-b.jufubao.cn\/uploads\/20260420\/dcba95afbefaf0b2a0f2297b3f4c0e83.png?ver=1776667393453","desc":""}],"prices":{"sale_price":4000,"activity_price":0,"market_price":5990,"wholesale_prices":[],"vip_price":0,"show_prices":[{"p":4000,"n":"","t":"S"},{"p":5990,"n":"","t":"U"}]},"enabled":true},{"product_sku":70559706,"standards":[{"attr_id":"","name":"规格","value":"拉拉裤XL码22片","image":"\/\/img1-b.jufubao.cn\/uploads\/20260420\/82104e623678645d88af4f1655d77ae7.png?ver=1776667399277","desc":""}],"prices":{"sale_price":4000,"activity_price":0,"market_price":5990,"wholesale_prices":[],"vip_price":0,"show_prices":[{"p":4000,"n":"","t":"S"},{"p":5990,"n":"","t":"U"}]},"enabled":true},{"product_sku":70559707,"standards":[{"attr_id":"","name":"规格","value":"拉拉裤XXL码20片","image":"\/\/img-b.jufubao.cn\/uploads\/20260420\/0d9cba83a0c5e27602f8959d8519c276.png?ver=1776667404852","desc":""}],"prices":{"sale_price":4000,"activity_price":0,"market_price":5990,"wholesale_prices":[],"vip_price":0,"show_prices":[{"p":4000,"n":"","t":"S"},{"p":5990,"n":"","t":"U"}]},"enabled":true},{"product_sku":70559708,"standards":[{"attr_id":"","name":"规格","value":"拉拉裤XXXL码18片","image":"\/\/img-b.jufubao.cn\/uploads\/20260420\/4c79cc2882d162ed2d559feb62f900ed.png?ver=1776667411874","desc":""}],"prices":{"sale_price":4000,"activity_price":0,"market_price":5990,"wholesale_prices":[],"vip_price":0,"show_prices":[{"p":4000,"n":"","t":"S"},{"p":5990,"n":"","t":"U"}]},"enabled":true}],"sms_activity":{"status":"","activity_type":"","activity_tips":"","activity_price":0,"end_time":0,"start_time":0,"distance_start_time":0,"distance_end_time":0,"max_buy_num":0,"is_today":""},"similar_products":[],"request_id":"e411788a53577bce"}
837
836
 
838
837
  this.$xdHideLoading({});
839
838
  this.loadingInfo = false;
@@ -721,10 +721,19 @@ export default {
721
721
  padding: 0 32rpx;
722
722
  margin-right: 16rpx;
723
723
  margin-bottom: 32rpx;
724
- // max-width: 208rpx;
725
724
  box-sizing: border-box;
726
- .uni-one-cut(72);
727
725
  position: relative;
726
+ display: flex;
727
+ align-items: center;
728
+ min-width: 0;
729
+
730
+ &:not(.is-img) {
731
+ max-width: 100%;
732
+ .sku_name {
733
+ flex: 1;
734
+ min-width: 0;
735
+ }
736
+ }
728
737
 
729
738
  &.is-img {
730
739
  border: 1px solid #f8f8f8;
@@ -764,10 +773,10 @@ export default {
764
773
  }
765
774
  &.horizontal {
766
775
  flex-direction: row;
767
- // width: 48%;
768
776
  min-width: 48%;
769
777
  margin-right: 2%;
770
778
  line-height: 1;
779
+ //flex: 1;
771
780
  border: 1px solid #f8f8f8;
772
781
  display: flex;
773
782
  align-items: center;
@@ -803,6 +812,7 @@ export default {
803
812
  text-align: left;
804
813
  padding: 0 20rpx;
805
814
  color: #333;
815
+ min-width: 0;
806
816
  max-width: 100%;
807
817
  }
808
818
  .active_sku_name {
@@ -810,11 +820,12 @@ export default {
810
820
  background-color: var(--bg-color) !important;
811
821
  }
812
822
  .name {
813
- width: 95%;
823
+ flex: 1;
824
+ min-width: 0;
814
825
  overflow: hidden;
815
826
  text-overflow: ellipsis;
816
827
  white-space: nowrap;
817
- padding-right:10rpx;
828
+ padding-right: 10rpx;
818
829
  }
819
830
  }
820
831
  }
@@ -643,10 +643,22 @@ export default {
643
643
  padding: 0 32rpx;
644
644
  margin-right: 16rpx;
645
645
  margin-bottom: 32rpx;
646
- // max-width: 208rpx;
647
646
  box-sizing: border-box;
648
- .uni-one-cut(72);
649
647
  position: relative;
648
+ display: flex;
649
+ align-items: center;
650
+ min-width: 0;
651
+
652
+ &:not(.is-img) {
653
+ max-width: 100%;
654
+ .sku_name {
655
+ flex: 1;
656
+ min-width: 0;
657
+ overflow: hidden;
658
+ text-overflow: ellipsis;
659
+ white-space: nowrap;
660
+ }
661
+ }
650
662
 
651
663
  &.is-img{
652
664
  border: 1px solid #f8f8f8;
@@ -686,12 +698,12 @@ export default {
686
698
  }
687
699
  &.horizontal{
688
700
  flex-direction: row;
689
- // width: 48%;
690
701
  min-width: 48%;
691
702
  margin-right: 2%;
692
703
  line-height: 1;
693
704
  border: 1px solid #f8f8f8;
694
705
  display: flex;
706
+ //flex: 1;
695
707
  align-items: center;
696
708
  border-radius: 10rpx;
697
709
  background-color: #f8f8f8;
@@ -725,18 +737,23 @@ export default {
725
737
  text-align: left;
726
738
  padding: 0 20rpx;
727
739
  color: #333;
740
+ min-width: 0;
728
741
  max-width: 100%;
742
+ overflow: hidden;
743
+ text-overflow: ellipsis;
744
+ white-space: nowrap;
729
745
  }
730
746
  .active_sku_name {
731
747
  color: var(--main-color) !important;
732
748
  background-color: var(--bg-color) !important;
733
749
  }
734
750
  .name {
735
- width: 80%;
751
+ flex: 1;
752
+ min-width: 0;
736
753
  overflow: hidden;
737
754
  text-overflow: ellipsis;
738
755
  white-space: nowrap;
739
- padding-right:10rpx;
756
+ padding-right: 10rpx;
740
757
  }
741
758
  }
742
759
  }
@@ -64,7 +64,7 @@
64
64
  </view>
65
65
  </view>
66
66
  </view>
67
- <view class="shop_addr">
67
+ <view class="shop_addr" v-if="shopInfo.brand_about">
68
68
  <view class="addr_foot">
69
69
  <view id="textRef" class="textRef">{{shopInfo.brand_about}}
70
70
  </view>
@@ -203,7 +203,7 @@
203
203
  * @description 监听事件变化
204
204
  * @param container {object} 业务组件对象自己
205
205
  */
206
-
206
+
207
207
  handleRefreshCode(){
208
208
  if (this.$configProject['isPreview']) return;
209
209
  this.onRefreshPage();
@@ -223,9 +223,9 @@
223
223
  // this.jwxSDK = res.jwxSDK;
224
224
  })
225
225
  .catch(error => {
226
- this.$xdAlert({
227
- content: error,
228
- });
226
+ // this.$xdAlert({
227
+ // content: error,
228
+ // });
229
229
  });
230
230
  },
231
231
  refreshQrCode(){
@@ -1,8 +0,0 @@
1
- {
2
- "permissions": {
3
- "allow": [
4
- "Bash(git checkout *)",
5
- "Bash(npx lessc *)"
6
- ]
7
- }
8
- }
@@ -1,40 +0,0 @@
1
- 'use strict';
2
-
3
- /**
4
- * @description API模型
5
- * 建议:Ffff=>模块 Xxxx=>自定义名字
6
- * 获取单记录(getByIdFfffXxxx)
7
- * 获取列表记录(getByListFfffXxxx)
8
- * 添加列表记录(addFfffXxxxx)
9
- * 删除列表记录(removeFfffXxxxx|deleteFfffXxxx)
10
- * 更新列表记录(updateFfffXxxxx)
11
- * @type {*[]}
12
- */
13
- module.exports = [
14
- {
15
- mapFnName: 'getMallCategoryTree',
16
- title: '分类 - 树列表',
17
- path: '/product/v1/:xnamespace/category/index',
18
- isRule: false,
19
- params: {
20
- xnamespace: ['xnamespace', 'String', '必选'],
21
- group_id: ['分组ID', 'Number', '必选'],
22
- need_tag: ['分类', 'Number', '必选'],
23
- },
24
- isConsole: true,
25
- disabled: true,
26
- },
27
- {
28
- mapFnName: 'getMallCategoryChildren',
29
- title: '分类 - 获取子级',
30
- path: '/product/v1/:xnamespace/category/children',
31
- isRule: false,
32
- params: {
33
- xnamespace: ['xnamespace', 'String', '必选'],
34
- group_id: ['分组ID', 'Number', '必选'],
35
- parent_id: ['父级ID 0时只获取第一级', 'Number', '必选'],
36
- },
37
- isConsole: true,
38
- disabled: true,
39
- },
40
- ];
@@ -1,20 +0,0 @@
1
- 'use strict';
2
- import style from "./cusAttr/style";
3
- import advanced from "./cusAttr/advanced";
4
- import content from "./cusAttr/content";
5
-
6
- /**
7
- * @description 当表单组件中有联动操作时候,使用方法进行返回
8
- */
9
- export default {
10
- style: [],
11
- advanced: [],
12
- content: (data, gValue, gColor, oldData={})=>{
13
-
14
- return [
15
- ...content(data, gValue,gColor,oldData),
16
- ...style(data, gValue,gColor,oldData),
17
- ...advanced(data),
18
- ].filter(i=>i)
19
- },
20
- };