panhui vor 4 Jahren
Ursprung
Commit
ff99b87fc3

+ 1 - 1
.env.development

@@ -1 +1 @@
-VUE_APP_BASE_URL=http:localhost:8080
+VUE_APP_BASE_URL=http:localhost:8080

+ 2 - 1
src/components/AllorderInfo.vue

@@ -192,6 +192,7 @@ export default {
             });
         },
         sales() {
+            console.log(this.storeId);
             this.navigateTo('/pages/chat?toUserId=' + this.userId + '&toName=' + this.storeName);
         },
         logisticCopy() {
@@ -398,7 +399,7 @@ export default {
     },
     created() {
         this.rufundApply();
-        this.userIds();
+        // this.userIds();
     }
 };
 </script>

+ 1 - 0
src/pages/confirmorder.vue

@@ -167,6 +167,7 @@ export default {
                     console.log(res);
                     this.total = res.total;
                     this.store = res.store;
+                    console.log(this.store);
                     this.Boxes = res.selectedBoxes;
                     this.postage = res.selectedCase.postage;
                     // console.log(this.postage);

+ 1 - 0
src/pages/details.vue

@@ -150,6 +150,7 @@ export default {
                 .then(res => {
                     console.log(res);
                     this.storeInfo = res;
+                    console.log(this.storeInfo.id);
                 })
                 .catch(e => {
                     this.hideLoading();

+ 15 - 10
src/pages/mine.vue

@@ -53,13 +53,10 @@
         </div>
 
         <van-grid class="menu" column-num="3" :border="false" clickable>
-            <van-grid-item text="我发布的" @click="navigateTo('/pages/minePublish')">
+            <van-grid-item text="我发布的" @click="publish">
                 <img class="gird-icon" src="/native/svgs/info_icon_fabu.svg" slot="icon" alt="" />
             </van-grid-item>
-            <!-- <van-grid-item text="我发布的" @click="publish">
-                <img class="gird-icon" src="/native/svgs/info_icon_fabu.svg" slot="icon" alt="" />
-            </van-grid-item> -->
-            <van-grid-item text="我卖出的" @click="navigateTo('/pages/allsellout')">
+            <van-grid-item text="我卖出的" @click="allsell">
                 <img class="gird-icon" src="/native/svgs/info_icon_maichu.svg" slot="icon" alt="" />
             </van-grid-item>
             <van-grid-item text="我买到的" @click="navigateTo('/pages/allorder')">
@@ -184,11 +181,19 @@ export default {
             });
         },
         publish() {
-            // if () {
-            //     this.navigateTo('/pages/store/apply');
-            // } else {
-            //     this.navigateTo('/pages/minePublish');
-            // }
+            if (this.userStoreInfo == null) {
+                this.navigateTo('/pages/store/apply');
+            } else {
+                this.navigateTo('/pages/minePublish');
+            }
+        },
+        allsell() {
+            console.log(this.userStoreInfo);
+            if (this.userStoreInfo == null) {
+                this.navigateTo('/pages/store/apply');
+            } else {
+                this.navigateTo('/pages/allsellout');
+            }
         }
     },
     onShow() {

+ 1 - 1
src/pages/store/homePage.vue

@@ -197,7 +197,7 @@ export default {
             });
         },
         getStore() {
-            console.log(this.userStoreInfo);
+            // console.log(this.userStoreInfo);
             if (this.userStoreInfo) {
                 if (this.userStoreInfo.id.toString() === this.$mp.options.id || !this.$mp.options.id) {
                     this.isMineShop = true;

+ 4 - 1
src/pages/walletreview.vue

@@ -13,7 +13,7 @@
             <div class="text2">{{ desc }}</div>
 
             <template>
-                <van-button type="primary" block @click="navigateBack">返回</van-button>
+                <van-button type="primary" block @click="jump">返回</van-button>
             </template>
         </div>
     </div>
@@ -60,6 +60,9 @@ export default {
                     console.log(res);
                 });
         }
+        // jump(){
+
+        // }
     }
 };
 </script>