Jelajahi Sumber

feature: 增加点击头像进行登录,增大整条实现更多反馈和关于我们的点击范围

332777428@qq.com 4 bulan lalu
induk
melakukan
56a52d54ec
4 mengubah file dengan 34 tambahan dan 11 penghapusan
  1. TEMPAT SAMPAH
      img/login_agree_nor.png
  2. TEMPAT SAMPAH
      img/login_agree_sel.png
  3. 13 8
      pages/pageA/index/index.wxml
  4. 21 3
      pages/pageA/index/index.wxss

TEMPAT SAMPAH
img/login_agree_nor.png


TEMPAT SAMPAH
img/login_agree_sel.png


+ 13 - 8
pages/pageA/index/index.wxml

@@ -148,11 +148,13 @@
         </view>
 
         <!-- 我的 -->
-        <view wx:elif="{{indexPage==2}}" class="me" style="height: calc(100vh - 105rpx - {{safeBottomHeight}}rpx - 22rpx - {{navBarHeight}}px);">
-          <view class="head-logo">
+        <view wx:elif="{{indexPage==2}}" class="me" style="height: calc(100vh - 105rpx - {{safeBottomHeight}}rpx - 22rpx - {{navBarHeight}}px); display: flex; flex-direction: column;">
+
+          <view class="head-logo" bind:tap="{{isLogin?'':'onTapLogin'}}">
             <image mode="scaleToFill" src="{{userPic}}"></image>
             <text class="nick_name" wx:if="{{nickName}}">{{nickName}}</text>
           </view>
+
           <view class="br"></view>
           <view class="list">
             <view class="li">
@@ -160,8 +162,10 @@
                 <image mode="widthFix" style="width: 40rpx; height: 40rpx;" src="./../../../img/o.png"></image>
               </view>
               <view class="button">
-                <button open-type="feedback">建议与反馈</button>
-                <image class="j" src="./../../../img/b.png"></image>
+                <button class="between_text" open-type="feedback">建议与反馈</button>
+                <button class="between_image" open-type="feedback">
+                  <image class="j" src="./../../../img/b.png"></image>
+                </button>
               </view>
             </view>
             <view class="li">
@@ -174,14 +178,15 @@
               </view>
             </view>
           </view>
-          <view wx:if="{{isLogin}}" class="login">
-            <view bindtap="onTapLogin" class="{{!isLogin ? 'action' : ''}}">
-              {{isLogin ? '退出登录' : "登录"}}
+          <view wx:if="{{isLogin}}" style="flex: 1;display: flex;">
+            <view class="login">
+              <view bindtap="onTapLogin" class="{{!isLogin ? 'action' : ''}}">
+                {{isLogin ? '退出登录' : "登录"}}
+              </view>
             </view>
           </view>
         </view>
       </view>
-
     </view>
 
     <view style="height: calc(105rpx + {{safeBottomHeight}}rpx); flex-direction: column; display: flex;background-color: white;">

+ 21 - 3
pages/pageA/index/index.wxss

@@ -665,6 +665,23 @@
   align-items: center;
 }
 
+
+.between_text {
+  height: 105rpx;
+  display: flex;
+  align-items: center;
+  font-size: 30rpx;
+  background-color: transparent;
+}
+
+.between_image {
+  height: 105rpx;
+  display: flex;
+  align-items: center;
+  background-color: transparent;
+  justify-content: flex-end;
+}
+
 .me .list .li .button button,
 .me .list .li .button text {
   margin: 0;
@@ -685,11 +702,12 @@
   right: 0rpx;
 }
 
+/* position: fixed; display: flex; */
 .login {
-  position: fixed;
-  bottom: 184rpx;
-  width: 100vw;
   display: flex;
+  width: 100vw;
+  align-items: flex-end;
+  margin-bottom: 50rpx;
   justify-content: center;
 }