wzh 1 rok pred
rodič
commit
3cb88e6d38

+ 10 - 3
pages/device/detail.vue

@@ -1,10 +1,13 @@
 <template>
   <view class="content"  >
-    <view class="header" :style='"background-image:url("+imgUrl+"/detail/bg.png);background-repeat: no-repeat;background-size: 100% 200%;"'>
+    <view class="header"  :style='"background-image:url("+imgUrl+"/detail/bg.png);background-repeat: no-repeat;background-size: 100% 200%;top:-5vh;height:110vh"'>
 
-      <view v-if="isH5"  @click='goBack()' style="font-size: 17px;
+      <view v-if="isH5"  @click='goBack()' style="    font-size: 16px;
     padding-top: 7px;
-    position: absolute;">
+    position: absolute;
+    top: 5vh;
+    left: 20px;
+}">
         返回
       </view>
 
@@ -1412,6 +1415,10 @@ export default {
             }
             let imgHeight = windowWidth*0.85;
             let imageWidth = windowWidth * 1;
+            if(this.isH5){
+              imgHeight = windowWidth*0.6;
+              imageWidth = windowWidth * 0.8;
+            }
             self.productSize = ";width:"+imageWidth+"px;height:"+imgHeight+"px;";
           }else{
             let rate = 0.35;

+ 10 - 3
pages/device/detail_6.vue

@@ -1,10 +1,13 @@
 <template>
   <view class="content"  >
-    <view class="header" :style='"background-image:url("+imgUrl+"/detail/bg.png);background-repeat: no-repeat;background-size: 100% 200%;"'>
+    <view class="header"  :style='"background-image:url("+imgUrl+"/detail/bg.png);background-repeat: no-repeat;background-size: 100% 200%;top:-5vh;height:110vh"'>
 
-      <view v-if="isH5"  @click='goBack()' style="font-size: 17px;
+      <view v-if="isH5"  @click='goBack()' style="    font-size: 16px;
     padding-top: 7px;
-    position: absolute;">
+    position: absolute;
+    top: 5vh;
+    left: 20px;
+}">
         返回
       </view>
 
@@ -1332,6 +1335,10 @@ export default {
             }
             let imgHeight = windowWidth*0.85;
             let imageWidth = windowWidth * 1;
+            if(this.isH5){
+              imgHeight = windowWidth*0.6;
+              imageWidth = windowWidth * 0.8;
+            }
             self.productSize = ";width:"+imageWidth+"px;height:"+imgHeight+"px;";
           }else{
             let rate = 0.35;

+ 10 - 3
pages/device/detail_new_5.vue

@@ -1,10 +1,13 @@
 <template>
   <view class="content"  >
-    <view class="header" :style='"background-image:url("+imgUrl+"/detail/bg.png);background-repeat: no-repeat;background-size: 100% 200%;"'>
+    <view class="header" :style='"background-image:url("+imgUrl+"/detail/bg.png);background-repeat: no-repeat;background-size: 100% 200%;top:-5vh;height:110vh"'>
 
-      <view v-if="isH5"  @click='goBack()' style="font-size: 17px;
+      <view v-if="isH5"  @click='goBack()' style="    font-size: 16px;
     padding-top: 7px;
-    position: absolute;">
+    position: absolute;
+    top: 5vh;
+    left: 20px;
+}">
         返回
       </view>
 
@@ -1344,6 +1347,10 @@ export default {
             }
             let imgHeight = windowWidth*0.85;
             let imageWidth = windowWidth * 1;
+            if(this.isH5){
+              imgHeight = windowWidth*0.6;
+              imageWidth = windowWidth * 0.8;
+            }
             self.productSize = ";width:"+imageWidth+"px;height:"+imgHeight+"px;";
           }else{
             let rate = 0.35;