xiaoe_mp_npm 1.1.36 → 1.1.37-alpha.2

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.
@@ -250,9 +250,9 @@ Component({
250
250
  })
251
251
  }
252
252
  const time = `第${this.data.infoCollectionLoaded.length + 1}_${new Date().getTime()}_${needCollect}`
253
- const infoCollectionLoaded = this.data.infoCollectionLoaded;
253
+ // const infoCollectionLoaded = this.data.infoCollectionLoaded;
254
254
  this.setData({
255
- infoCollectionLoaded: infoCollectionLoaded.push(time)
255
+ infoCollectionLoaded: [...this.data.infoCollectionLoaded, time]
256
256
  })
257
257
  // TODO: 信息采集上报
258
258
  });
@@ -239,9 +239,9 @@ Component({
239
239
  return data.goodsInfo?.goods_img[0];
240
240
  }
241
241
  return data.goodsInfo?.goods_img;
242
- },
243
- goodsTag(data) {
244
- return data.goodsInfo?.goods_tag || RESOURCE_TYPES[data.baseInfo?.spu_type];
242
+ },
243
+ goodsTag(data) {
244
+ return data.goodsInfo?.goods_tag || RESOURCE_TYPES[data.baseInfo?.spu_type];
245
245
  },
246
246
  useSvipPrice(data) {
247
247
  return (
@@ -70,6 +70,7 @@ Component({
70
70
  methods: {
71
71
  // 获取积分规则
72
72
  initRules() {
73
+ if (!this.data.integralData || !this.data.integralData.deduct_rule) return
73
74
  let templist = []
74
75
  this.data.integralData.deduct_rule.forEach((item) => {
75
76
  templist.push({
@@ -22,7 +22,7 @@ const SKU = {
22
22
  BASE_INFO: `${gateway()}/xe.ecommerce.goods_center.get_spu_info/1.0.0`,
23
23
  SKU_PROPERTY: `${gateway()}/xe.ecommerce.goods_center.get_attr_list/1.0.0`,
24
24
  SKU_LIST: `${gateway()}/xe.ecommerce.goods_center.get_sku_list/1.0.0`,
25
- MARKETING: `${gateway()}/xe.marketing.basic.activity.info/1.0.0 `,
25
+ MARKETING: `${gateway()}/xe.marketing.basic.activity.info/1.0.0`,
26
26
  LIMIT_BUY_ORDER: `${gateway()}/xe.transaction.user.has_buy/1.0.0`,
27
27
  SKU_CHILD_LIST: `${gateway()}/xe.ecommerce.goods_detail.c.cop_child_sku_abnormal.check/1.0.0`,
28
28
  SVIP_INFO_DETAIL: `${gateway()}/xe.svip.info.get_by_resource.detail/1.0.0`,
package/package.json CHANGED
@@ -1,12 +1,16 @@
1
1
  {
2
2
  "name": "xiaoe_mp_npm",
3
- "version": "1.1.36",
3
+ "version": "1.1.37-alpha.2",
4
4
  "description": "",
5
5
  "main": "miniprogram_dist/index.js",
6
+ "publishConfig": {
7
+ "registry": "https://registry.npmjs.org",
8
+ "tag": "alpha"
9
+ },
6
10
  "scripts": {
7
- "dev": "gulp dev --develop",
8
- "watch": "gulp watch --develop --watch",
9
- "build": "gulp",
11
+ "dev": "cross-env NODE_OPTIONS=--openssl-legacy-provider gulp dev --develop",
12
+ "watch": "cross-env NODE_OPTIONS=--openssl-legacy-providergulp watch --develop --watch",
13
+ "build": "cross-env NODE_OPTIONS=--openssl-legacy-provider gulp",
10
14
  "dist": "npm run build",
11
15
  "clean-dev": "gulp clean --develop",
12
16
  "clean": "gulp clean",
@@ -71,7 +75,8 @@
71
75
  },
72
76
  "dependencies": {
73
77
  "@vant/weapp": "^1.9.2",
74
- "live-mp-tools": "1.3.3",
78
+ "cross-env": "^10.1.0",
79
+ "live-mp-tools": "1.3.7-alpha.3",
75
80
  "miniprogram-computed": "4.2.1",
76
81
  "mp-plugins-info-collection": "1.1.7"
77
82
  },
@@ -250,9 +250,9 @@ Component({
250
250
  })
251
251
  }
252
252
  const time = `第${this.data.infoCollectionLoaded.length + 1}_${new Date().getTime()}_${needCollect}`
253
- const infoCollectionLoaded = this.data.infoCollectionLoaded;
253
+ // const infoCollectionLoaded = this.data.infoCollectionLoaded;
254
254
  this.setData({
255
- infoCollectionLoaded: infoCollectionLoaded.push(time)
255
+ infoCollectionLoaded: [...this.data.infoCollectionLoaded, time]
256
256
  })
257
257
  // TODO: 信息采集上报
258
258
  });
@@ -239,9 +239,9 @@ Component({
239
239
  return data.goodsInfo?.goods_img[0];
240
240
  }
241
241
  return data.goodsInfo?.goods_img;
242
- },
243
- goodsTag(data) {
244
- return data.goodsInfo?.goods_tag || RESOURCE_TYPES[data.baseInfo?.spu_type];
242
+ },
243
+ goodsTag(data) {
244
+ return data.goodsInfo?.goods_tag || RESOURCE_TYPES[data.baseInfo?.spu_type];
245
245
  },
246
246
  useSvipPrice(data) {
247
247
  return (
@@ -70,6 +70,7 @@ Component({
70
70
  methods: {
71
71
  // 获取积分规则
72
72
  initRules() {
73
+ if (!this.data.integralData || !this.data.integralData.deduct_rule) return
73
74
  let templist = []
74
75
  this.data.integralData.deduct_rule.forEach((item) => {
75
76
  templist.push({
@@ -22,7 +22,7 @@ const SKU = {
22
22
  BASE_INFO: `${gateway()}/xe.ecommerce.goods_center.get_spu_info/1.0.0`,
23
23
  SKU_PROPERTY: `${gateway()}/xe.ecommerce.goods_center.get_attr_list/1.0.0`,
24
24
  SKU_LIST: `${gateway()}/xe.ecommerce.goods_center.get_sku_list/1.0.0`,
25
- MARKETING: `${gateway()}/xe.marketing.basic.activity.info/1.0.0 `,
25
+ MARKETING: `${gateway()}/xe.marketing.basic.activity.info/1.0.0`,
26
26
  LIMIT_BUY_ORDER: `${gateway()}/xe.transaction.user.has_buy/1.0.0`,
27
27
  SKU_CHILD_LIST: `${gateway()}/xe.ecommerce.goods_detail.c.cop_child_sku_abnormal.check/1.0.0`,
28
28
  SVIP_INFO_DETAIL: `${gateway()}/xe.svip.info.get_by_resource.detail/1.0.0`,