1002884655 il y a 4 ans
Parent
révision
1f86627fb3

+ 7
- 7
src/components/MainPage/index.vue Voir le fichier

@@ -6,10 +6,10 @@
6 6
         <text>授权手机号</text>
7 7
         <text>申请使用您的手机号</text>
8 8
         <view class="flex-h">
9
-          <text @tap="ShowPhoneAuthPopup = false; $emit('UserInfoChange')">拒绝</text>
10
-          <view class="flex-item"></view>
11
-          <text>允许</text>
12
-          <button open-type="getUserInfo" @getuserinfo="GetUserPhone">获取授权</button>
9
+          <!-- <text @tap="ShowPhoneAuthPopup = false; $emit('UserInfoChange')">拒绝</text>
10
+          <view class="flex-item"></view> -->
11
+          <text class="flex-item">允许</text>
12
+          <button open-type="getPhoneNumber" @getuserinfo="GetUserPhone">获取授权</button>
13 13
         </view>
14 14
       </view>
15 15
     </view>
@@ -18,9 +18,9 @@
18 18
         <text>授权头像</text>
19 19
         <text>申请使用您的头像</text>
20 20
         <view class="flex-h">
21
-          <text @tap="ShowUserIconAuthPopup = false; $emit('UserInfoChange')">拒绝</text>
22
-          <view class="flex-item"></view>
23
-          <text>允许</text>
21
+          <!-- <text @tap="ShowUserIconAuthPopup = false; $emit('UserInfoChange')">拒绝</text>
22
+          <view class="flex-item"></view> -->
23
+          <text class="flex-item">允许</text>
24 24
           <button open-type="getUserInfo" @getuserinfo="GetUserIcon">获取授权</button>
25 25
         </view>
26 26
       </view>

+ 5
- 5
src/components/MainPage/page.scss Voir le fichier

@@ -47,15 +47,15 @@
47 47
           text-align: center;
48 48
           position: relative;
49 49
           z-index: 1;
50
-          &:first-child {
51
-            background: #ccc;
52
-          }
50
+          // &:first-child {
51
+          //   background: #ccc;
52
+          // }
53 53
         }
54 54
         > button {
55 55
           display: block;
56
-          width: 200px;
56
+          width: 100%;
57 57
           position: absolute;
58
-          right: 60px;
58
+          left: 0;
59 59
           line-height: 80px;
60 60
           height: 80px;
61 61
           max-height: 80px;

+ 1
- 1
src/pages/Index/BookAnswer/index.vue Voir le fichier

@@ -6,7 +6,7 @@
6 6
           <view class="QuestionList" v-if="ArticleInfo.postTestList && ArticleInfo.postTestList !== null && ArticleInfo.postTestList.length">
7 7
             <view v-for="(item, index) in ArticleInfo.postTestList" :key="index">
8 8
               <view class="Title">
9
-                <text>{{item.title}}</text>
9
+                <text>{{index + 1}}、 {{item.title}}({{item.answerType === 'checkbox' ? '多选题' : item.answerType === 'radio' ? '单选题' : '判断题'}})</text>
10 10
               </view>
11 11
 
12 12
               <checkbox-group @change="CheckboxChange(item, index, $event)" v-if="item.answerType === 'checkbox'" style="padding-top: 10px;">

+ 3
- 2
src/pages/Index/BookDetail/index.vue Voir le fichier

@@ -50,7 +50,7 @@
50 50
               </view>
51 51
 
52 52
               <!-- 去答题 -->
53
-              <view class="ToAnswer">
53
+              <view class="ToAnswer" v-show="ArticleInfo.name">
54 54
                 <navigator :url="`/pages/Index/BookAnswer/index?id=${ArticleInfo.postId}`" hover-class="none">去答题</navigator>
55 55
               </view>
56 56
 
@@ -61,7 +61,8 @@
61 61
         </view>
62 62
 
63 63
         <!-- 底部 -->
64
-        <view class="flex-h Bottom">
64
+        <view class="flex-h Bottom" v-show="ArticleInfo.name">
65
+          <button open-type="share" class="ShareBtn">分享</button>
65 66
           <view class="Share" @tap="ShareArticle">
66 67
             <text class="iconfont iconfenxiang"></text>
67 68
             <text>分享</text>

+ 11
- 0
src/pages/Index/BookDetail/page.scss Voir le fichier

@@ -113,11 +113,22 @@
113 113
     padding-left: 30px;
114 114
     z-index: 2;
115 115
     box-shadow: 0 0 10px 10px rgba(0, 0, 0, 0.05);
116
+    >.ShareBtn {
117
+      width: 92px;
118
+      opacity: 0;
119
+      display: block;
120
+      position: absolute;
121
+      z-index: 2;
122
+      left: 0;
123
+      top: 0;
124
+    }
116 125
     > .Share,
117 126
     .Like {
118 127
       font-size: 0;
119 128
       white-space: nowrap;
120 129
       margin-right: 30px;
130
+      position: relative;
131
+      z-index: 1;
121 132
       > text {
122 133
         display: inline-block;
123 134
         vertical-align: middle;