Просмотр исходного кода

Merge branch 'dev' of http://git.izouma.com/panhui/card-wechat into dev

xuqiang 4 лет назад
Родитель
Сommit
a01ca8bf85
3 измененных файлов с 8 добавлено и 5 удалено
  1. 3 1
      src/mixins/store.js
  2. 3 4
      src/pages/details.vue
  3. 2 0
      src/pages/store/homePage.vue

+ 3 - 1
src/mixins/store.js

@@ -1,7 +1,9 @@
 export default {
     data() {
         return {
-            storeInfo: {}
+            storeInfo: {
+                storeName: ''
+            }
         };
     },
     computed: {

+ 3 - 4
src/pages/details.vue

@@ -153,10 +153,9 @@ export default {
                 })
                 .catch(e => {
                     this.hideLoading();
-                    wx.showToast({
-                        icon: 'none',
-                        title: e.error
-                    });
+                    if (e.error) {
+                        this.toast(e.error);
+                    }
                 });
         },
         // 确认订单

+ 2 - 0
src/pages/store/homePage.vue

@@ -176,8 +176,10 @@ export default {
     },
     methods: {
         loginMethods() {
+            this.showLoading();
             this.loading = true;
             this.getStore().then(res => {
+                console.log(res);
                 this.storeInfo = res;
                 this.getData();
                 setTimeout(() => {