yangc преди 8 години
родител
ревизия
5d58946895

+ 11 - 11
components/mobile/Home.vue

@@ -23,27 +23,27 @@
       </div>
     </div>
     <div class="home-main">
-      <nuxt-link to="/mobile/brand" class="home-main-content">
+      <a class="home-main-content">
         <div>
           <img src="/imgs/home/brand@2x.png" alt="1">
         </div>
         <h2>4036万</h2>
         <p>品牌</p>
-      </nuxt-link>
-      <nuxt-link to="/mobile/brand" class="home-main-content">
+      </a>
+      <a class="home-main-content">
         <div>
           <img src="/imgs/home/modelbrand@2x.png" alt="1">
         </div>
         <h2>3250万</h2>
         <p>型号</p>
-      </nuxt-link>
-      <nuxt-link to="/brand" class="home-main-content">
+      </a>
+      <a class="home-main-content">
         <div>
           <img src="/imgs/home/bookbrand@2x.png" alt="1">
         </div>
         <h2>926万</h2>
         <p>规格书</p>
-      </nuxt-link>
+      </a>
       <nuxt-link to="/mobile/shop" class="home-main-content">
         <div>
           <img src="/imgs/home/shopbrand@2x.png" alt="1">
@@ -79,7 +79,7 @@
         <div class="search-list-bottom">
           <h5><i class="iconfont icon-remensousuo"></i>热搜器件</h5>
           <span v-for="item in hotwords">
-          <nuxt-link to="item.url" >{{item.name}}</nuxt-link>
+          <nuxt-link :to="item.url" >{{item.name}}</nuxt-link>
         </span>
         </div>
       </div>
@@ -102,10 +102,9 @@
         type: Array,
         default () {
           return [
-            {name: 'SCT2080KEC', url: '/product/component/1100400300009990'},
-            {name: '电池组', url: '/product/kind/346'},
-            {name: 'Vishay', url: '/product/brand/30327265e42a871be050007f01003d96'},
-            {name: 'Panasonic', url: '/product/brand/30327265e47d871be050007f01003d96'}
+            {name: 'SCT2080KEC', url: '/mobile/brand/componentDetail/1100400300009990'},
+            {name: 'Vishay', url: '/mobile/brand/30327265e42a871be050007f01003d96'},
+            {name: 'Panasonic', url: '/mobile/brand/30327265e47d871be050007f01003d96'}
           ]
         }
       }
@@ -128,6 +127,7 @@
 
 <style lang="scss" scoped>
   .home{
+    margin-top: .88rem;
     font-size:.28rem;
     margin-bottom:1rem;
     .home-header{

+ 7 - 1
components/mobile/MobileHeader.vue

@@ -86,7 +86,11 @@
       initHeader: function (val) {
         let title = '优软商城'
         if (val.startsWith('/mobile/brand/')) {
-          title = this.brandDetail.nameCn
+          if (this.brandDetail.nameCn !== this.brandDetail.nameEn) {
+            title = this.brandDetail.nameEn + '(' + this.brandDetail.nameCn + ')'
+          } else {
+            title = this.brandDetail.nameCn
+          }
           this.rightIcon = 'share'
         } else if (val.startsWith('/mobile/shop')) {
           title = '店铺列表'
@@ -121,6 +125,8 @@
   @import '~assets/scss/mobileCommon';
   .mobile-header{
     width:100%;
+    position: fixed;
+    top: 0;
     z-index:10000;
     height:.88rem;
     display:flex;

+ 1 - 0
components/mobile/brand/BrandDetail.vue

@@ -199,6 +199,7 @@
 <style lang="scss" scoped>
   .brand-detail {
     margin: 0 auto;
+    margin-top: .88rem;
     margin-bottom: .98rem;
     text-align: center;
     .brand-logo {

+ 1 - 0
components/mobile/brand/ComponentDetail.vue

@@ -165,6 +165,7 @@
 <style lang="scss" scoped>
   .component-detail {
     font-size: .28rem;
+    margin-top: .88rem;
     margin-bottom: .98rem;
     .base-detail {
       margin: .34rem .66rem .34rem .40rem;

+ 2 - 0
pages/mobile/merchantDescription/_uuid.vue

@@ -23,6 +23,8 @@
 </script>
 <style scoped>
   .merchant-description{
+    margin-top: .88rem;
+    margin-bottom: .98rem;
     width:100%;
   }
   .merchant-description div{

+ 1 - 0
pages/mobile/search/_keycode.vue

@@ -40,6 +40,7 @@
   .search-list{
     width:100%;
     margin-bottom: .98rem;
+    margin-top: .88rem;
   .search-item{
     justify-content: space-around;
     text-align: center;

+ 1 - 0
pages/mobile/shop/index.vue

@@ -47,6 +47,7 @@
 
 <style scoped lang="scss">
   .shop{
+    margin-top: .88rem;
     margin-bottom: .98rem;
     min-height: 10rem;
     background: #e2e4e6;

+ 1 - 0
pages/mobile/user/_uuid.vue

@@ -42,6 +42,7 @@
 <style scoped lang="scss">
   .user-content{
     margin-bottom: .98rem;
+    margin-top: .88rem;
     min-height: 10rem;
     background: #e2e4e6;
     .user-name{