浏览代码

五常h5下单地址

zhangjinxing 3 年之前
父节点
当前提交
dad562ca02

二进制
src/assets/images/home/paddy-bottom.png


二进制
src/assets/images/home/paddy-detail.png


二进制
src/assets/images/home/paddy-middle.png


二进制
src/assets/images/home/paddy.png


二进制
src/assets/images/home/pic-1.png


二进制
src/assets/images/home/rice-active.png


+ 3 - 4
src/views/order/orderRes.vue

@@ -27,7 +27,7 @@
         </svg>
       </div>
       <div class="tc" style="margin: -10px 0 30px 0">
-        <p style="color:#959595">恭喜您,下单成功!</p>
+        <p style="color: #959595">恭喜您,下单成功!</p>
       </div>
       <div class="yingdao clear" v-if="ok">
         <van-button
@@ -38,7 +38,7 @@
           @click="goto('/oDetail')"
           >订单详情</van-button
         >
-        <van-button round class="fr" size="small" @click="goto('/home/live')"
+        <van-button round class="fr" size="small" @click="goto('/home/paddy')"
           >返回首页</van-button
         >
       </div>
@@ -173,7 +173,7 @@ export default {
         margin: 0 6.5% 0 13%;
         color: #333;
         background: #f2f2f2;
-        border:0px;
+        border: 0px;
         // border-color: rgb(255, 131, 39);
         // color: rgb(255, 131, 39);
       }
@@ -492,5 +492,4 @@ input[type="search"]::-webkit-search-cancel-button {
     }
   }
 }
-
 </style>

+ 80 - 21
src/views/paddy/index.vue

@@ -1,6 +1,18 @@
 <template>
-  <div class="paddy" style="padding-top:44px">
-  <div class="paddy-title">
+  <div class="paddy">
+    <div class="top">
+      <img src="@/assets/images/home/paddy.png" alt="" />
+    </div>
+    <div class="detail">
+      <img src="@/assets/images/home/paddy-detail.png" alt="" />
+    </div>
+    <div class="middle">
+      <img src="@/assets/images/home/paddy-middle.png" alt="" />
+    </div>
+    <div class="bottom">
+      <img src="@/assets/images/home/paddy-bottom.png" alt="" />
+    </div>
+    <!-- <div class="paddy-title">
       <van-nav-bar
         title="我的稻田"
         class="van-nav-bar-my-fixed"
@@ -11,8 +23,7 @@
       src="https://retailcloud-oss-bucket.oss-cn-hangzhou.aliyuncs.com/20210302/824b52ce-ba5a-4418-b299-c3d91b010a5c.jpg?Expires=1615516693&OSSAccessKeyId=LTAIT3bnC94ivUGf&Signature=RNwkapvSZfdzxdaGb21vl3BIP1c%3D"
       alt=""
     />
-    </div>
-   
+    </div> -->
   </div>
 </template>
 
@@ -21,27 +32,75 @@
 
 <style lang="scss" scoped>
 .paddy {
-    .paddy-title {
-    position: fixed;
-    padding: 0;
+  overflow: scroll;
+  .top {
     width: 100%;
-    margin: 0;
-    top: 0;
-    left: 0;
-    z-index: 3;
-    border: 0;
-    height: 44px;
+    height: 30%;
+    margin: 0 auto;
+    img {
+      width: 100%;
+      height: 100%;
+      // background-size: 50% 50%;
+    }
+  }
+  .detail {
+    width: 90%;
+    height: 40%;
+    margin: 0 auto;
+    position: relative;
+    padding-bottom: 30px;
+
+    top: -2%;
+    img {
+      width: 100%;
+      height: 100%;
+      // background-size: 50% 50%;
+    }
+  }
+  .middle {
+    width: 90%;
+    height: 50%;
+    margin: 0 auto;
+    padding-bottom: 30px;
+
+    img {
+      width: 100%;
+      height: 100%;
+      // background-size: 50% 50%;
+    }
   }
-  .paddy-main{
-    display: block;
-    padding:16px;
-    img{
+  .bottom {
+    width: 100%;
+    height: 50%;
+    overflow: hidden;
+    margin: 0 auto;
+    img {
       width: 100%;
-      height: auto;
-      min-height: 30vh;
-      display: block;
-      border: 1px solid #b0b0b0;
+      height: 100%;
+      // background-size: 50% 50%;
     }
   }
+  // .paddy-title {
+  //   position: fixed;
+  //   padding: 0;
+  //   width: 100%;
+  //   margin: 0;
+  //   top: 0;
+  //   left: 0;
+  //   z-index: 3;
+  //   border: 0;
+  //   height: 44px;
+  // }
+  // .paddy-main {
+  //   display: block;
+  //   padding: 16px;
+  //   img {
+  //     width: 100%;
+  //     height: auto;
+  //     min-height: 30vh;
+  //     display: block;
+  //     border: 1px solid #b0b0b0;
+  //   }
+  // }
 }
 </style>

+ 3 - 2
src/views/product/index.vue

@@ -76,9 +76,10 @@ export default {
     this.num = isNaN(getGoodsNum()) ? 0 : parseInt(getGoodsNum());
     if (this.ad && this.ad.id) {
       this.initData(this.ad.id);
+    } else {
+      this.address = [];
     }
     this.getStock();
-  
   },
 
   methods: {
@@ -107,7 +108,7 @@ export default {
         let res = await asyncRequest.get_stock({});
         if (res && res.code == 0) {
           this.total = parseInt(res.data.stock);
-            await this.getUnitist();
+          await this.getUnitist();
         } else if (res && res.code >= 100 && res.code <= 104) {
           await this.logout();
         } else {