Handy_Cao 3 lat temu
rodzic
commit
124972ef5d

+ 10 - 9
GuangZuan/miniprogram/mHome/pages/calculator/index.wxml

@@ -1,12 +1,13 @@
-<!-- 导航栏 -->
-<van-nav-bar custom-style="background-color: #fff">
-    <van-icon slot="left" name="arrow-left" size="25px" color="#333" bind:click="backToParent"/>
-    <text slot="title" style="color: #333;">钻石价格计算器</text>
-</van-nav-bar>
-
-<view class="container" style="position: relative; height: {{windowHeight-safeBottom}}px;">
- <!-- 形状 -->
- <view class="cell-view zsshape" wx:if="{{active !== 2}}"> 
+<view class="container" style="position: relative; height: {{ windowHeight-safeBottom }}px;">
+  <view class="top-view" style="position: sticky; top: 0; z-index: 999;">
+    <!-- 导航栏 -->
+    <van-nav-bar custom-style="background-color: #fff">
+      <van-icon slot="left" name="arrow-left" size="25px" color="#333" bind:click="backToParent"/>
+      <text slot="title" style="color: #333;">钻石价格计算器</text>
+    </van-nav-bar>
+  </view>
+  <!-- 形状 -->
+  <view class="cell-view zsshape" wx:if="{{active !== 2}}"> 
     <text>形状</text>
     <view class="content zsshape">
       <button wx:for="{{zsshapes}}" wx:for-item="itm" wx:for-index="idx" class="{{itm.isCheck ? 'active' : ''}}" id="zsshape {{itm.id}}" wx:key="id" bindtap="onButtonPressed">{{itm.name}}</button>

+ 1 - 1
GuangZuan/miniprogram/pages/home/index.less

@@ -157,7 +157,7 @@
 
 .certsearch {
   right: 5px; 
-  bottom: 16%;
+  bottom: 18%;
 }
 
 .calculator {

+ 2 - 3
GuangZuan/miniprogram/pages/mine/index.wxml

@@ -1,7 +1,6 @@
-<!-- 导航栏 -->
-<nav-bar title="我的" left="{{false}}"></nav-bar>
-
 <view class="container">
+  <!-- 导航栏 -->
+  <nav-bar title="我的" left="{{false}}"></nav-bar>
   <!-- 我的顶部视图 -->
   <view class="minetop" style="background-image: url('http://218.17.158.45:23012/mtp2-onlineopen/uploadFile/gz/mine-bg.png'); background-size: 100% 100%; width: 100%; ">
     <view class="user-info">