DESKTOP-SVI9JE1\muzen преди 1 година
родител
ревизия
aaf19944dc

+ 10 - 0
src/api/devices.js

@@ -0,0 +1,10 @@
+import request from "../utils/request";
+
+// 获取设备操作指南
+export function detail(data) {
+  return request({
+    url: `/device/getOperateGuide`,
+    method: 'get',
+    data
+  })
+}

+ 1 - 1
src/api/guide.js

@@ -1,6 +1,6 @@
 import request from "../utils/request"
 
-export function getContent(data) {
+export function detail(data) {
   return request({
     url: `/device/getGuidePageContent`,
     method: 'get',

+ 1 - 1
src/components/uv-parse/uv-parse.vue

@@ -484,7 +484,7 @@ export default {
 /* #ifndef APP-PLUS-NVUE */
 /* 根节点样式 */
 ._root {
-  padding: 1px 0;
+  /* padding: 1px 0; */
   overflow-x: auto;
   overflow-y: hidden;
   -webkit-overflow-scrolling: touch;

+ 9 - 53
src/pages.json

@@ -11,6 +11,13 @@
 			}
 		},
 		{
+			//设备操控视频页
+			"path": "pages/devices/detail",
+			"style": {
+				"navigationStyle": "custom"
+			}
+		},
+		{
 			// 设备文章
 			"path": "pages/article/index",
 			"style": {
@@ -30,15 +37,13 @@
 			"path": "pages/help/index",
 			"style": {
 				"navigationStyle": "custom",
-				"onReachBottomDistance": 50,
-				"navigationBarTitleText": "帮助与反馈"
+				"onReachBottomDistance": 50
 			}
 		},
 		{ // 我的反馈
 			"path": "pages/help/detail",
 			"style": {
-				"navigationStyle": "custom",
-				"navigationBarTitleText": "我的反馈"
+				"navigationStyle": "custom"
 			}
 		},
 		{
@@ -49,27 +54,6 @@
 			}
 		},
 		{
-			// 关于我们
-			"path": "pages/about/index",
-			"style": {
-				"navigationStyle": "custom"
-			}
-		},
-		{
-			// 用户协议
-			"path": "pages/user/agreement",
-			"style": {
-				"navigationStyle": "custom"
-			}
-		},
-		{
-			// 隐私协议
-			"path": "pages/privacy/agreement",
-			"style": {
-				"navigationStyle": "custom"
-			}
-		},
-		{
 			// 猫王博物馆
 			"path": "pages/museum/index",
 			"style": {
@@ -114,13 +98,6 @@
 			}
 		},
 		{
-			// vip音乐服务
-			"path": "pages/vip/index",
-			"style": {
-				"navigationStyle": "custom"
-			}
-		},
-		{
 			// 抽奖
 			"path": "pages/lottery/index",
 			"style": {
@@ -142,27 +119,6 @@
 			}
 		},
 		{
-			// 爱听付费协议
-			"path": "pages/imusic/agreement",
-			"style": {
-				"navigationStyle": "custom"
-			}
-		},
-		{
-			// 儿童隐私保护指南
-			"path": "pages/imusic/children",
-			"style": {
-				"navigationStyle": "custom"
-			}
-		},
-		{
-			// 音乐服务许可协议
-			"path": "pages/imusic/service",
-			"style": {
-				"navigationStyle": "custom"
-			}
-		},
-		{
 			// 后台运行保护协议
 			"path": "pages/backgrounder/index",
 			"style": {

+ 0 - 22
src/pages/about/index.vue

@@ -1,22 +0,0 @@
-<template>
-  <view class="app-container">
-
-  </view>
-</template>
-
-<script>
-export default {
-  data() {
-    return {
-
-    }
-  },
-  created(){
-    window.location.href = "https://ohplay.radio1964.net/about"
-  }
-}
-</script>
-
-<style lang="scss">
-
-</style>

+ 45 - 0
src/pages/devices/detail.vue

@@ -0,0 +1,45 @@
+<template>
+  <view class="detail">
+    <uv-parse :content="content" :preview-img="false" />
+  </view>
+</template>
+
+<script>
+import { detail } from '@/api/devices'
+export default {
+  data() {
+    return {
+      content: ''
+    }
+  },
+  onLoad(e) {
+    this.getDetail(e)
+  },
+  methods: {
+    getDetail(e) {
+      detail(e).then(res => {
+        if (res.data.code === 0) {
+          this.content = res.data.data.content
+        } else {
+          uni.showToast({
+            title: res.data.message,
+            icon: 'error',
+            mask: true,
+            duration: 2000
+          })
+        }
+      })
+    }
+  }
+}
+</script>
+
+<style lang="scss" scoped>
+.detail {
+  white-space: pre-wrap;
+}
+
+::v-deep img {
+  display: block;
+}
+</style>

+ 9 - 5
src/pages/guide/index.vue

@@ -11,7 +11,7 @@
 </template>
 
 <script>
-import { getContent } from '@/api/guide'
+import { detail } from '@/api/guide'
 export default {
   data() {
     return {
@@ -19,8 +19,12 @@ export default {
     }
   },
   onLoad(e) {
-    if (e.deviceModel) {
-      getContent({ clientType: e.deviceModel }).then(res => {
+    if (e) {
+      let data = {
+        clientType: e.deviceModel,
+        id: e.id
+      }
+      detail(data).then(res => {
         if (res.data.code === 0) {
           this.content = res.data.data.guidePageContent
         }
@@ -44,7 +48,7 @@ export default {
     overflow-y: scroll;
   }
 
-  .no-data{
+  .no-data {
     position: absolute;
     top: 50%;
     left: 50%;
@@ -60,7 +64,7 @@ export default {
   }
 }
 
-img{
+img {
   width: 100%;
 }
 </style>

+ 1 - 0
src/pages/help/detail.vue

@@ -72,6 +72,7 @@ export default {
   display: flex;
   flex-direction: column;
   height: 100vh;
+  word-wrap: break-word;
 
   .list {
     flex: 1;

+ 13 - 9
src/pages/help/index.vue

@@ -4,7 +4,7 @@
       <view class="item margin-bottom">
         <h3>问题类型</h3>
       </view>
-      <view class="item margin-bottom">
+      <view class="item">
         <radio-group @change="radioChange">
           <label v-for="item in typeOptions" :key="item.id">
             <radio :value="item.id.toString()" color="#A4D099" :checked="item.id == active"
@@ -146,13 +146,13 @@ export default {
       uni-radio-group {
         display: flex;
         flex-wrap: wrap;
-        gap: 1rem;
 
         label {
-          width: 144rpx;
+          width: calc(25% - 10px);
           font-size: 24rpx;
           display: flex;
           align-items: flex-start;
+          margin: 0 10px 20px 0;
         }
 
         span {
@@ -188,16 +188,18 @@ export default {
         }
 
         img {
-          width: 160rpx;
-          height: 160rpx;
+          width: 80px;
+          height: 80px;
           border-radius: 16rpx;
         }
       }
 
       button {
-        width: 160rpx;
-        height: 160rpx;
-        line-height: 160rpx;
+        width: 80px;
+        height: 80px;
+        display: flex;
+        align-items: center;
+        justify-content: center;
         margin: 0;
         background-color: #F0F7EE;
         border-radius: 16rpx;
@@ -212,7 +214,9 @@ export default {
     button {
       width: 400rpx;
       height: 80rpx;
-      line-height: 80rpx;
+      display: flex;
+      align-items: center;
+      justify-content: center;
     }
 
     .contact {

Файловите разлики са ограничени, защото са твърде много
+ 0 - 287
src/pages/imusic/agreement.vue


Файловите разлики са ограничени, защото са твърде много
+ 0 - 119
src/pages/imusic/children.vue


+ 2 - 2
src/pages/imusic/index.vue

@@ -8,8 +8,8 @@
           <radio :value="value" />
         </radio-group>
         <text>购买即视为同意</text>
-        <navigator url="/pages/imusic/agreement">《场景歌单付费协议》</navigator>
-        <navigator url="/pages/imusic/service">《音乐服务许可协议》</navigator>
+        <navigator url="/pages/agreement/index?type=5">《场景歌单付费协议》</navigator>
+        <navigator url="/pages/agreement/index?type=2">《音乐服务许可协议》</navigator>
       </span>
     </view>
   </view>

Файловите разлики са ограничени, защото са твърде много
+ 0 - 156
src/pages/imusic/service.vue


Файловите разлики са ограничени, защото са твърде много
+ 0 - 425
src/pages/privacy/agreement.vue


Файловите разлики са ограничени, защото са твърде много
+ 0 - 157
src/pages/user/agreement.vue


Файловите разлики са ограничени, защото са твърде много
+ 0 - 375
src/pages/vip/index.vue