xiaoe_mp_npm 1.0.14-test02 → 1.0.14-test03

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.
@@ -285,17 +285,9 @@ Component({
285
285
  },
286
286
  observers: {
287
287
  item(val) {
288
- if (val) {
289
- if (this.data.isFullScreen) {
290
- this.setData({
291
- is_viewUsingInfo: false,
292
- coupon_type: this.data.couponType
293
- });
294
- }
295
- // 只有列表需要处理
296
- if (this.data.isNewList) {
297
- this.initCouponType();
298
- }
288
+ // 只有列表需要处理
289
+ if (val && this.data.isNewList) {
290
+ this.initCouponType();
299
291
  }
300
292
  }
301
293
  },
@@ -394,10 +386,6 @@ Component({
394
386
  this.triggerEvent('receivedSuccess');
395
387
  // 抛出方法拉起弹窗
396
388
  this.triggerEvent('showReceivePopup', { couponInfo: data });
397
- // 全屏端领取成功关闭优惠券弹窗
398
- if (this.properties.isFullScreen) {
399
- this.triggerEvent('closeCounpon');
400
- }
401
389
  }
402
390
  };
403
391
  const failCb = data => {
@@ -1,5 +1,5 @@
1
1
  <!--subpkg/npm-compoent/miniprogram_npm/xiaoe_mp_npm/CouponReceivePopup/index.wxml-->
2
- <view class="coupon-receive">
2
+ <view class="coupon-receive" catchtap>
3
3
  <van-popup
4
4
  show="{{ showPopup }}"
5
5
  round
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xiaoe_mp_npm",
3
- "version": "1.0.14-test02",
3
+ "version": "1.0.14-test03",
4
4
  "description": "",
5
5
  "main": "miniprogram_dist/index.js",
6
6
  "scripts": {
@@ -285,17 +285,9 @@ Component({
285
285
  },
286
286
  observers: {
287
287
  item(val) {
288
- if (val) {
289
- if (this.data.isFullScreen) {
290
- this.setData({
291
- is_viewUsingInfo: false,
292
- coupon_type: this.data.couponType
293
- });
294
- }
295
- // 只有列表需要处理
296
- if (this.data.isNewList) {
297
- this.initCouponType();
298
- }
288
+ // 只有列表需要处理
289
+ if (val && this.data.isNewList) {
290
+ this.initCouponType();
299
291
  }
300
292
  }
301
293
  },
@@ -394,10 +386,6 @@ Component({
394
386
  this.triggerEvent('receivedSuccess');
395
387
  // 抛出方法拉起弹窗
396
388
  this.triggerEvent('showReceivePopup', { couponInfo: data });
397
- // 全屏端领取成功关闭优惠券弹窗
398
- if (this.properties.isFullScreen) {
399
- this.triggerEvent('closeCounpon');
400
- }
401
389
  }
402
390
  };
403
391
  const failCb = data => {
@@ -1,5 +1,5 @@
1
1
  <!--subpkg/npm-compoent/miniprogram_npm/xiaoe_mp_npm/CouponReceivePopup/index.wxml-->
2
- <view class="coupon-receive">
2
+ <view class="coupon-receive" catchtap>
3
3
  <van-popup
4
4
  show="{{ showPopup }}"
5
5
  round