Przeglądaj źródła

TA的主页下面作品增加观看量及其他调整

bayi 2 lat temu
rodzic
commit
3614cad4b3

+ 7 - 2
components/uploadFile/index.js

@@ -63,9 +63,13 @@ Component({
           const formateRes = JSON.parse(res.data);
           let audioPath = formateRes.data;
           this.uploadWorks(audioPath);
-
         },
-        complete: () => {
+        fail: () => {
+          wx.showToast({
+            title: '上传失败请重试',
+            icon: 'error',
+            duration: 2000
+          })
           this.setData({
             uploadFlag: false
           })
@@ -111,6 +115,7 @@ Component({
         "score": _data.myOverall
       })
       this.setData({
+        uploadFlag: false,
         uploadState: true,
         uploadSuccess: true,
       })

+ 3 - 1
pages/friend/index.less

@@ -4,7 +4,8 @@
   .screening {
     display: flex;
     align-items: center;
-    justify-content: space-between;
+    // justify-content: space-between;
+    justify-content: space-around;
     box-sizing: border-box;
     padding-left: 20rpx;
 
@@ -16,6 +17,7 @@
 
     .currentType {
       color: #333;
+      font-size: 32rpx;
       font-weight: bold;
       border-bottom: 6rpx solid #00C657;
     }

+ 2 - 2
pages/friend/index.wxml

@@ -4,10 +4,10 @@
   <view class="screening">
     <view class="type {{currentType==1?'currentType':''}}" data-type="1" bindtap="setType">我的关注({{c1}})</view>
     <view class="type {{currentType==2?'currentType':''}}" data-type="2" bindtap="setType">我的粉丝({{c2}})</view>
-    <view class="searchFriend" bindtap="searchFriend">
+    <!--  <view class="searchFriend" bindtap="searchFriend">
       <image src="/static/search.png" />
       找朋友
-    </view>
+    </view> -->
   </view>
   <view class="follow" wx:for="{{list}}" wx:key="index">
     <view class="userInfo" bindtap="jumpUserInfo" data-uid='{{item.user.uid}}'>

+ 2 - 1
pages/friend/index.wxss

@@ -4,7 +4,7 @@
 .followBox .screening {
   display: flex;
   align-items: center;
-  justify-content: space-between;
+  justify-content: space-around;
   box-sizing: border-box;
   padding-left: 20rpx;
 }
@@ -15,6 +15,7 @@
 }
 .followBox .screening .currentType {
   color: #333;
+  font-size: 32rpx;
   font-weight: bold;
   border-bottom: 6rpx solid #00C657;
 }

+ 0 - 1
pages/index/index.json

@@ -1,6 +1,5 @@
 {
   "usingComponents": {
-    "rewardedVideo": "/components/rewardedVideo/index",
     "navigationBar": "/components/navigationBar/index",
     "banner": "/components/banner/index",
     "worksList": "/components/worksList/index",

+ 7 - 7
pages/personal/index.wxml

@@ -12,7 +12,7 @@
           <view class="gradeText textOver">学号:{{userInfo.user.eid}}</view>
         </view>
         <view class="follow {{userInfo.like?'isFans':''}}" bindtap="setFans">
-          <image src="{{userInfo.like?'/static/follow_2.png':'/static/follow_1.png'}}" class="character" mode="" />
+          <image src="{{userInfo.like?'/static/follow_2.png':'/static/follow_1.png'}}" class="character" />
           <text>{{userInfo.like?'已关注':'关注'}}</text>
         </view>
       </view>
@@ -62,16 +62,16 @@
           <view class="work">
             <view class="title textOver">{{item.userRead.title}}</view>
             <view class="statistics">
-              <button class="resetBtn statistic" open-type="share" data-info='{{item}}'>
-                <image src="/static/f.png" class="playImg" mode="" />
-                <view class="num">分享</view>
-              </button>
               <view class="statistic">
-                <image src="/static/p.png" class="playImg" mode="" />
+                <image src="/static/play2.png" class="playImg" />
+                <view class="num">{{filters.numFilter(item.userRead.playAmount||0)}}</view>
+              </view>
+              <view class="statistic">
+                <image src="/static/p.png" class="playImg" />
                 <view class="num">{{filters.numFilter(item.userRead.commentAmount||0)}}</view>
               </view>
               <view class="statistic">
-                <image src="/static/d.png" class="playImg" mode="" />
+                <image src="/static/d.png" class="playImg" />
                 <view class="num">{{filters.numFilter(item.userRead.likeAmount||0)}}</view>
               </view>
             </view>

+ 2 - 2
utils/request.js

@@ -10,8 +10,8 @@ if (envVersion == 'develop') {
   baseUrl = 'https://reader-api.efunbox.cn/wx'
   oldUrl = 'https://reader-api.efunbox.cn'
 } else {
-  baseUrl = 'https://reader-api.ai160.com/wx'
-  oldUrl = 'https://reader-api.ai160.com'
+baseUrl = 'https://reader-api.ai160.com/wx'
+oldUrl = 'https://reader-api.ai160.com'
 }
 
 function request(url, method, data, oldBaseUrl = false) {