jufubao-mall 2.0.72-beta2 → 2.0.72

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.72-beta2",
3
+ "version": "2.0.72",
4
4
  "private": false,
5
5
  "description": "聚福宝商城业务组件插件包",
6
6
  "main": "index.js",
@@ -540,6 +540,7 @@
540
540
  this.shopInfo = shopInfo;
541
541
  this.mapCenter = {lng: shopInfo.longitude, lat: shopInfo.latitude}
542
542
  this.initBaidu = true;
543
+ this.getShowBrandTip(this.shopInfo)
543
544
  this.$nextTick(() => {
544
545
  this.checkTextOverflow();
545
546
  if(this.isShowCodeProduct){
@@ -553,7 +554,6 @@
553
554
  this.$xdLog.catch(error);
554
555
  this.$xdHideLoading();
555
556
  })
556
- this.getShowBrandTip(options['shop_id'])
557
557
  },
558
558
  /**
559
559
  * @description 监听事件变化
@@ -700,14 +700,19 @@
700
700
  .exec();
701
701
 
702
702
  },
703
- getShowBrandTip(shop_id){
703
+ getShowBrandTip(shopInfo){
704
704
  jfbRootExec("showBrandTip", {
705
705
  vm: this,
706
706
  data: {
707
- shop_id: shop_id
707
+ shop_id: shopInfo.shop_id
708
708
  }
709
709
  }).then(res => {
710
- if(res.confirm_notice&&res.prompt_method === 1){
710
+ //res.prompt_method 仅弹窗=1,弹窗和页面双展示=2,仅页面展示=3
711
+ //res.confirm_notice 是否展示
712
+ //shopInfo.show_qrcode 是否展示二维码
713
+ //this.is_plus_site 是否是plus
714
+ //this.showTake 是否显示快捷码
715
+ if(res.confirm_notice&&res.prompt_method === 1&&shopInfo.show_qrcode&&!this.is_plus_site&&this.showTake==='Y'){
711
716
  this.showTipDialog = true;
712
717
  this.notice_title = res.notice_title;
713
718
  this.notice_content = res.notice_content;