xiaoe_mp_npm 1.0.2 → 1.0.4

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.
@@ -77,7 +77,7 @@ Component({
77
77
  methods: {
78
78
  // 显示提货点选择组件
79
79
  clickCell() {
80
- if (this.data.picksiteInfo.place_type === 1) return;
80
+ if (this.data.picksiteInfo && this.data.picksiteInfo.place_type === 1) return;
81
81
  this.triggerEvent('dataChange', {
82
82
  name: 'address',
83
83
  errMsg: '',
@@ -133,7 +133,7 @@ Component({
133
133
  let params = {
134
134
  ...this.data.payParams
135
135
  }
136
- if (this.data.payParams.lastSelfPickInfo && this.data.payParams.lastSelfPickInfo.place_type === 1 ){
136
+ if (this.data.payParams.express_type === 2 && this.data.payParams.lastSelfPickInfo && this.data.payParams.lastSelfPickInfo.place_type === 1 ){
137
137
  params.place_type = 1
138
138
  }
139
139
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xiaoe_mp_npm",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "",
5
5
  "main": "miniprogram_dist/index.js",
6
6
  "scripts": {
@@ -77,7 +77,7 @@ Component({
77
77
  methods: {
78
78
  // 显示提货点选择组件
79
79
  clickCell() {
80
- if (this.data.picksiteInfo.place_type === 1) return;
80
+ if (this.data.picksiteInfo && this.data.picksiteInfo.place_type === 1) return;
81
81
  this.triggerEvent('dataChange', {
82
82
  name: 'address',
83
83
  errMsg: '',
@@ -133,7 +133,7 @@ Component({
133
133
  let params = {
134
134
  ...this.data.payParams
135
135
  }
136
- if (this.data.payParams.lastSelfPickInfo && this.data.payParams.lastSelfPickInfo.place_type === 1 ){
136
+ if (this.data.payParams.express_type === 2 && this.data.payParams.lastSelfPickInfo && this.data.payParams.lastSelfPickInfo.place_type === 1 ){
137
137
  params.place_type = 1
138
138
  }
139
139