jwyu 2 年之前
父節點
當前提交
dd1bc5c867
共有 8 個文件被更改,包括 31 次插入16 次删除
  1. 13 0
      api/voice.js
  2. 1 1
      mixin/index.js
  3. 6 6
      pages.json
  4. 3 1
      pages/voice/voice.vue
  5. 二進制
      static/tabbar/voice-s.png
  6. 二進制
      static/tabbar/voice.png
  7. 7 7
      utils/config.js
  8. 1 1
      utils/request.js

+ 13 - 0
api/voice.js

@@ -0,0 +1,13 @@
+// 语音播报模块
+
+import { httpGet, httpPost } from "@/utils/request.js";
+
+/**
+ * 语音列表
+ * @param page_index 
+ * @param page_size
+ * @param broadcast_id 语音id
+ */
+export const apiVoiceList=params=>{
+    return httpPost('/voice/broadcast/list',params)
+}

+ 1 - 1
mixin/index.js

@@ -5,7 +5,7 @@ moment.locale('zh-cn');
 import {globalImgUrls} from "../utils/config"
 import store from '@/store'
 
-const tabbarPathList=['pages/activity/activity','pages/pricedriven/pricedriven','pages/video/videoList','pages/report/report','pages/question/question']
+const tabbarPathList=['pages/voice/voice','pages/pricedriven/pricedriven','pages/video/videoList','pages/report/report','pages/question/question']
 
 module.exports = {
   watch: {

+ 6 - 6
pages.json

@@ -303,17 +303,17 @@
 				"iconPath": "./static/tabbar/video.png",
 				"selectedIconPath": "./static/tabbar/video-s.png"
 			},
-			{
-				"pagePath": "pages/activity/activity",
-				"text": "活动",
-				"iconPath": "./static/tabbar/activity.png",
-				"selectedIconPath": "./static/tabbar/activity-s.png"
-			},
 			{
 				"pagePath": "pages/question/question",
 				"text": "问答",
 				"iconPath": "./static/tabbar/question.png",
 				"selectedIconPath": "./static/tabbar/question-s.png"
+			},
+			{
+				"pagePath": "pages/voice/voice",
+				"text": "语音播报",
+				"iconPath": "./static/tabbar/voice.png",
+				"selectedIconPath": "./static/tabbar/voice-s.png"
 			}
 		]
 	},

+ 3 - 1
pages/voice/voice.vue

@@ -25,6 +25,7 @@
 </template>
 
 <script>
+import {apiVoiceList} from '@/api/voice'
 export default {
     data() {
         return {
@@ -109,7 +110,8 @@ export default {
     color: #E3B377;
     font-size: 32rpx;
     left: 50%;
-    bottom: 100rpx;
+    bottom: calc(80px + constant(safe-area-inset-bottom));
+    bottom: calc(80px + env(safe-area-inset-bottom));
     transform: translateX(-50%);
     background: #333333;
     box-shadow: 0px 4rpx 20rpx rgba(160, 126, 84, 0.25);

二進制
static/tabbar/voice-s.png


二進制
static/tabbar/voice.png


+ 7 - 7
utils/config.js

@@ -64,13 +64,13 @@ const defaultTabBarListConfig=[
         iconPath: "../static/tabbar/question.png",
         selectedIconPath: "../static/tabbar/question-s.png",
     },
-	 {
-	     key: "activity",
-	     pagePath: "pages/activity/activity",
-	     text: "活动",
-	     iconPath: "../static/tabbar/activity.png",
-	     selectedIconPath: "../static/tabbar/activity-s.png",
-	 },
+	{
+	    key: "voice_broadcast",
+	    pagePath: "pages/voice/voice",
+	    text: "语音播报",
+	    iconPath: "../static/tabbar/voice.png",
+	    selectedIconPath: "../static/tabbar/voice-s.png",
+	},
 ]
 
 

+ 1 - 1
utils/request.js

@@ -95,7 +95,7 @@ const http=(url,params,method)=>{
 			method:method,
 			header:{
 				Authorization:store.state.user.token,
-				version:'yb8.0'
+				version:'yb9.0'
 			},
 			success(e) {
 				// 接口404