浏览代码

活动详情音频修改

jwyu 3 年之前
父节点
当前提交
617c828d6f
共有 5 个文件被更改,包括 12 次插入17 次删除
  1. 6 12
      pages-activity/detail.vue
  2. 3 2
      pages/activity/activity.vue
  3. 二进制
      static/audio-doing-2.png
  4. 1 1
      utils/crypto.js
  5. 2 2
      utils/request.js

+ 6 - 12
pages-activity/detail.vue

@@ -36,24 +36,18 @@
                 :key="item.voiceUrl"
                 @click="handleClickAudioItem(item)"
             >
-                <!-- <image
+                <image
                     class="icon" 
-                    src="../static/audio-doing.png"
+                    src="../static/audio-doing-2.png"
                     mode="aspectFill"
-                    v-if="activeAudioUrl==item.voiceUrl&&audioPlayStatus==true"
+                    v-if="item.voiceUrl==activeAudioUrl&&audioPlayStatus"
                 />
                 <image
                     class="icon" 
                     src="../static/audio-pause-3.png"
                     mode="aspectFill"
-                    v-else-if="activeAudioUrl==item.voiceUrl&&audioPlayStatus==false"
+                    v-else
                 />
-                <image 
-                  class="icon" 
-                  src="../static/audio-pause-2.png" 
-                  model="aspectFill" 
-                  v-else
-                /> -->
                 <view class="name" :style="{color:item.voiceUrl==activeAudioUrl?'#D5AD79':''}">{{ item.voiceName }}</view>
                 <view class="time">{{ item.voicePlaySeconds|formatVoiceTime }}</view>
             </view>
@@ -699,8 +693,8 @@ export default {
             position: absolute;
             top: 50rpx;
             right: 6rpx;
-            width: 48rpx;
-            height: 48rpx;
+            width: 40rpx;
+            height: 40rpx;
         }
         .name {
             margin-bottom: 10rpx;

+ 3 - 2
pages/activity/activity.vue

@@ -980,11 +980,12 @@ export default {
                 align-items: center;
                 position: absolute;
                 right: 0;
-                top: -2rpx;
+                top: -10rpx;
                 font-size: $global-font-size-sm;
                 color:$global-text-color-main;
                 width: 100rpx;
-                height: 50rpx;
+                height: 70rpx;
+                justify-content: center;
                 image{
                     width: 26rpx;
                     height: 26rpx;

二进制
static/audio-doing-2.png


+ 1 - 1
utils/crypto.js

@@ -1,4 +1,4 @@
-const key = 'KHcV1Kgvrf2Nf55SA4SfE1tm';
+const key = 'zDeESsxsXuionhqSLZYHWcDJ';
 
 class CryptoJS {
 	// 3DES加密,CBC/PKCS5Padding

+ 2 - 2
utils/request.js

@@ -91,8 +91,8 @@ const http=(url,params,method)=>{
 				Authorization:store.state.user.token,
 			},
 			success(e) {
-				// let res=JSON.parse(CryptoJS.Des3Decrypt(e.data));//解密
-				let res=e.data
+				let res=JSON.parse(CryptoJS.Des3Decrypt(e.data));//解密
+				// let res=e.data
 				if(res.code!==200&&res.code!==403&&res.code!==4001&&res.code!==401){
 					showError(res)
 				}