Browse Source

处理合作商家边框点击失效问题

Administrator 7 years ago
parent
commit
51ff9d15d6

+ 6 - 11
components/home/Partner.vue

@@ -2,13 +2,11 @@
   <div class="partner">
     <div class="partner-container container">
       <h3>合作案例</h3>
-      <ul class="list-unstyled">
-        <li v-for="p in partners">
-          <a :href="p.href" target="_blank">
+      <div class="list clearfix">
+        <a :href="p.href" v-for="p in partners" target="_blank">
             <img :src="p.img"/>
-          </a>
-        </li>
-      </ul>
+        </a>
+      </div>
     </div>
   </div>
 </template>
@@ -51,18 +49,15 @@
   .partner {
     text-align: center;
     margin-bottom: $xlg-pad;
-
-    ul {
+    .list {
       width: 1204px;
       overflow: hidden;
-
-      li {
+      a {
         float: left;
         width: 155px;
         height: 61px;
         margin-right: 15px;
         border: $border;
-
         img {
           max-width: 155px;
           max-height: 59px;

+ 6 - 3
pages/mobile/center/user/cart.vue

@@ -1,5 +1,5 @@
 <template>
-  <div class="mobile-fix-content mobile-centerfix-content mobile-cart" :class="{'empty-mobile-cart': !cartList.length}" id="mobileFixContent">
+  <div class="mobile-cart" :class="{'empty-mobile-cart': !cartList.length}" id="mobileFixContent" @touchmove="blurEvent()">
     <template v-if="cartList.length">
       <ul class="store-list">
         <li class="store-item" v-for="(item, storeIndex) in cartList">
@@ -176,7 +176,9 @@
       blurEvent (type, obj) {
         this.$refs.buyWrap.hidden = false
         this.$store.commit('option/SET_SHOW_MOBILE_FOOTER', true)
-        this.setGoods(type, obj)
+        if (type && obj) {
+          this.setGoods(type, obj)
+        }
       },
       // 获得焦点事件
       focusEvent () {
@@ -360,7 +362,8 @@
 </script>
 <style lang="scss" scoped>
   .mobile-cart {
-    bottom: 3.02rem;
+    margin-bottom: 3rem;
+    padding-top:1.26rem;
     &.empty-mobile-cart {
       bottom: .98rem;
     }

+ 4 - 2
pages/mobile/center/user/pay/_orderId.vue

@@ -1,5 +1,5 @@
 <template>
-  <div class="mobile-content mobile-content-long mobile-pay">
+  <div class="mobile-content mobile-content-long mobile-pay" @touchmove="blurEvent()">
     <!--<div class="pay-head" @click="openAddrModal">
       <template v-if="selectedAddress && selectedAddress.name">
         <p class="info">
@@ -532,7 +532,9 @@
       blurEvent (type, obj) {
         this.$refs.buyWrap.hidden = false
         this.$store.commit('option/SET_SHOW_MOBILE_FOOTER', true)
-        this.setGoods(type, obj)
+        if (type && obj) {
+          this.setGoods(type, obj)
+        }
       },
       // 获得焦点事件
       focusEvent () {