Silent 6 lat temu
rodzic
commit
2eda5c1d94

+ 9 - 6
wechat/pages/login/index.wxml

xqd
@@ -2,14 +2,17 @@
 <view id='login-container' class='{{ loginDialogClass }}'>
   <view class='login-wrapper'>
     <view class='login-dialog'>
+      <view class='login-body'>
+        <view class='login-avatar-container'>
+          <view class='login-avatar-wrapper'>
+            <open-data type='userAvatarUrl' class='wxAvatarUrl'></open-data>
+          </view>
+        </view>
+        <view class='login-header'>首次使用需允许授权</view>
+      </view>
       <zan-row>
         <zan-col col="24" col-class="custom-zan-col">
-          <view class='login-header'>登录确认</view>
-        </zan-col>
-      </zan-row>
-      <zan-row>
-        <zan-col col="24" col-class="custom-zan-col">
-          <zan-button type="primary" openType='getUserInfo' bindgetuserinfo="bindGetUserInfo">确认</zan-button>
+          <zan-button type="primary" openType='getUserInfo' bindgetuserinfo="bindGetUserInfo">确认授权</zan-button>
         </zan-col>
       </zan-row>
     </view>

+ 16 - 0
wechat/pages/login/index.wxss

xqd
@@ -16,4 +16,20 @@
   background-color: #ffffff;
   text-align: center;
   padding: 20px;
+}
+.login-avatar-wrapper {
+  width: 65px;
+  height: 65px;
+  border-radius: 50px;
+  overflow:hidden;
+  border:3px #e3e3e3 solid;
+}
+.login-avatar-container {
+  display: flex;
+  justify-content: center;
+}
+.login-dialog {
+  padding-top: 20px;
+  background-color: white;
+  border-radius: 5px;
 }

+ 9 - 7
wechat/pages/rate/rate.js

xqd xqd
@@ -19,7 +19,6 @@ Page({
       method: 'GET',
       success: res => {
         if (res.data.status == 'success') {
-          console.log(res)
           that.setData({
             titles: res.data.titles
           })
@@ -36,20 +35,23 @@ Page({
       data: data,
       success: res => {
         if (res.data.status == 'success') {
-          wx.showToast({
+          wx.showModal({
             title: '评价成功',
-            icon: 'none',
-            duration: 800
-          })
-          wx.switchTab({
-            url: '/pages/userinfo/userinfo'
+            content: '感谢评价',
+            success: function (res) {
+              wx.switchTab({
+                url: '/pages/userinfo/userinfo',
+              })
+            }
           })
+          
         } else {
           wx.showToast({
             title: res.data.info,
             icon: 'none',
             duration: 800
           })
+          
         }
       }
     })