diff --git a/pages/mall/index.vue b/pages/mall/index.vue
index f24ea04..bfd34a9 100644
--- a/pages/mall/index.vue
+++ b/pages/mall/index.vue
@@ -3,9 +3,11 @@
-
+
-
+
@@ -205,10 +207,7 @@ export default {
getData() {
let that = this
let isWXPay = this.$config.GetVersion()
- if (isWXPay) {
- that.datas = [];
- return;
- }
+
that.req({
url: 'goods',
data: {
@@ -218,8 +217,20 @@ export default {
use_integral_is: this.isWXPay ? 1 : 2,
},
success(res) {
-
- that.datas = res.data.data
+ if (isWXPay) {
+ // that.datas = [];
+ if (that.datas.length > 0) {
+ that.datas = that.datas.slice(0, that.datas.length);
+ }
+ for (let index = 0; index < res.data.data.length; index++) {
+ const element = res.data.data[index];
+ if (element.title.indexOf('京东卡') == -1) {
+ that.datas.push(element);
+ }
+ }
+ return;
+ }
+ // that.datas = res.data.data
}
});
},