From 9465dc404f7e7cd56100e4859ee0946a3fef7b09 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期四, 05 三月 2026 11:14:40 +0800
Subject: [PATCH] 去除视频界面,以通过审核

---
 pages/mLearn/learn/learn.wxml        |    4 +-
 app.json                             |    1 
 /dev/null                            |   73 ------------------------------------
 pages/mLearn/behaviors/bOpenFile.js  |    6 +-
 pages/mLearn/learfile/learnfile.json |    2 
 5 files changed, 6 insertions(+), 80 deletions(-)

diff --git a/app.json b/app.json
index 4e2935a..3804de6 100644
--- a/app.json
+++ b/app.json
@@ -20,7 +20,6 @@
     "pages/mConsult/consultdetailitem/consultdetailitem",
     "pages/mConsult/consultdetailqa/consultdetailqa",
     "pages/mConsult/consultdetailcase/consultdetailcase",
-    "pages/mLearn/pLearnvideo/pLearnvideo",
     "pages/mLearn/learn/learn",
     "pages/mLearn/learfile/learnfile",
     "pages/mLearn/learncase/learncase",
diff --git a/pages/mLearn/behaviors/bOpenFile.js b/pages/mLearn/behaviors/bOpenFile.js
index 49c4757..7674b8f 100644
--- a/pages/mLearn/behaviors/bOpenFile.js
+++ b/pages/mLearn/behaviors/bOpenFile.js
@@ -46,9 +46,9 @@
           url = ""
           break;
           //瑙嗛
-        case 4:
-          url = "/pages/mLearn/pLearnvideo/pLearnvideo"
-          break;
+        // case 4:
+        //   url = "/pages/mLearn/pLearnvideo/pLearnvideo"
+        //   break;
       }
       if (url != "") {
         wx.navigateTo({
diff --git a/pages/mLearn/learfile/learnfile.json b/pages/mLearn/learfile/learnfile.json
index 82e62af..876f315 100644
--- a/pages/mLearn/learfile/learnfile.json
+++ b/pages/mLearn/learfile/learnfile.json
@@ -1,5 +1,5 @@
 {
-  "navigationBarTitleText": "瀹堟硶瑙嗛",
+  "navigationBarTitleText": "瀹堟硶妗堜緥",
   "navigationBarBackgroundColor": "#65EAD2",
   "navigationBarTextStyle": "white",
   "usingComponents": {
diff --git a/pages/mLearn/learn/learn.wxml b/pages/mLearn/learn/learn.wxml
index f851a3b..fd4c24f 100644
--- a/pages/mLearn/learn/learn.wxml
+++ b/pages/mLearn/learn/learn.wxml
@@ -35,8 +35,8 @@
       <view class="image-btn" bindtap="goto" data-index="0">
         <image src="{{icon2}}" class="image-btn__2" mode="aspectFit" />
         <view class="image-btn_title">
-          <view class="image-btn_title_t">瀹堟硶瑙嗛</view>
-          <view>瀹堟硶鍩硅瑙嗛</view>
+          <view class="image-btn_title_t">瀹堟硶妗堜緥</view>
+          <view>瀹堟硶妗堜緥</view>
           <mp-icon class="image-btn_goto" icon="arrow" color="#7F7F7F" size="8" type="filled"></mp-icon>
         </view>
 
diff --git a/pages/mLearn/pLearnvideo/pLearnvideo.js b/pages/mLearn/pLearnvideo/pLearnvideo.js
deleted file mode 100644
index 914b82d..0000000
--- a/pages/mLearn/pLearnvideo/pLearnvideo.js
+++ /dev/null
@@ -1,86 +0,0 @@
-// pages/module_common/pagevideo/pagevideo.js
-import ListPage from '../../../base/ListPage'
-import bFetch from '../behaviors/bFetch'
-import bOpenFile from '../behaviors/bOpenFile'
-
-const lawservice = require("../../../service/lawservice")
-const moment = require('../../../utils/moment.min')
-const app = getApp()
-
-ListPage({
-  behaviors: [bFetch, bOpenFile],
-  /**
-   * 椤甸潰鐨勫垵濮嬫暟鎹�
-   */
-  data: {
-    video: {},
-    series: [],
-
-    thisVideo: 1,
-    showDialog: false,
-    groups: [
-      'actionSlot1',
-    ]
-  },
-
-  /**
-   * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍔犺浇
-   */
-  onLoad(options) {
-    var that = this
-    this.getOpenerEventChannel().on('acceptDataFromOpenerPage', function (data) {
-      setTimeout(() => {
-        that.setData({
-          video: data
-        })  
-      }, 500);
-      
-      // 椤甸潰鏍囬
-      if (data.lrResourcetitle) {
-        wx.setNavigationBarTitle({
-          title: data.lrResourcetitle,
-        })
-      }
-
-      // 瑙嗛鎵�鍦ㄥ悎闆�
-      if (data.lrExtension2 && data.lrExtension2 != '') {
-        if (data.lrExtension3) {
-          that.setData({
-            thisVideo: parseInt(data.lrExtension3)
-          }) 
-        }
-        that.getSerise(data.lrExtension2)
-      }
-    })
-
-    this.getResources({fileType: 4})
-  },
-
-  getSerise(seriesId) {
-    var that = this
-    lawservice.getSerise(app.globalData.userInfo.guid, seriesId, {
-      success(data) {
-        that.setData({
-          series: data
-        })
-      },
-    })
-  },
-
-  showSeries() {
-    this.setData({
-      showDialog: true
-    })
-  },
-
-  selectVideo(e) {
-    let thisVideo = e.currentTarget.dataset.index
-    const video = this.data.series[thisVideo]
-    thisVideo++
-    this.setData({
-      video,
-      thisVideo,
-      showDialog: false
-    })
-  }
-})
\ No newline at end of file
diff --git a/pages/mLearn/pLearnvideo/pLearnvideo.json b/pages/mLearn/pLearnvideo/pLearnvideo.json
deleted file mode 100644
index adcf95a..0000000
--- a/pages/mLearn/pLearnvideo/pLearnvideo.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
-  "navigationBarTitleText": "瑙嗛鎾斁",
-  "navigationBarBackgroundColor": "#65EAD2",
-  "navigationBarTextStyle": "white",
-  "usingComponents": {
-    "mp-icon": "/component/icon/icon",
-    "c-learn-item": "../baseC/cLearnItem/cLearnItem",
-    "mp-actionSheet": "/component/actionsheet/actionsheet"
-  }
-}
\ No newline at end of file
diff --git a/pages/mLearn/pLearnvideo/pLearnvideo.wxml b/pages/mLearn/pLearnvideo/pLearnvideo.wxml
deleted file mode 100644
index 120db5a..0000000
--- a/pages/mLearn/pLearnvideo/pLearnvideo.wxml
+++ /dev/null
@@ -1,102 +0,0 @@
-<!--pages/module_common/pagevideo/pagevideo.wxml-->
-<view class="page">
-  <view class="page__hd">
-    <video
-      class="video"
-      id="myVideo"
-      src="{{video.lrBodyurl}}"
-      binderror="videoErrorCallback"
-      show-center-play-btn="{{false}}"
-      show-play-btn="{{true}}"
-      controls
-      autoplay
-      custom-cache="{{false}}"
-      poster="{{video.lrPicurl}}"
-      picture-in-picture-mode="{{['push', 'pop']}}"
-      bindenterpictureinpicture="bindVideoEnterPictureInPicture"
-      bindleavepictureinpicture="bindVideoLeavePictureInPicture"
-    ></video>
-  </view>
-  <view class="page__bd">
-    <view class="fyui-box fyui-box__text">
-      <view class="fyui-box__hd"> {{video.lrResourcetitle}} </view>
-      <view class="fyui-box__bd">
-        <view class="fyui-box__content">{{video.lrResourcedesc}}</view>
-      </view>
-      <view class="fyui-box__ft">
-        <view>{{video.lrPublishdate}}</view>
-        <view class="flex-h">
-          <image
-            src="/res/icons/view.png"
-            class="icon"
-            style="margin-right: 4px"
-          ></image
-          >{{video.views}}
-        </view>
-      </view>
-    </view>
-
-    <view>
-      <view wx:if="{{series.length > 0}}" class="fyui-box fyui-box__text">
-        <view class="video-series" bindtap="showSeries">
-          <view>瑙嗛鍚堥泦({{thisVideo}}/{{series.length}})</view>
-          <mp-icon
-            icon="arrow"
-            class="icon-down"
-            size="14"
-            color="#7F7F7F"
-          ></mp-icon>
-        </view>
-      </view>
-    </view>
-  </view>
-  <view class="page__ft">
-    <view class="title">鐩稿叧瑙嗛</view>
-    <!-- <c-learn-item results="{{results}}" loading="{{loading}}" needLoadMore="{{needLoadMore}}"></c-learn-item> -->
-
-    <view wx:for="{{results}}" wx:key="index" wx:item="item">
-      <view class="fyui-box" bindtap="openFile" data-index="{{index}}">
-        <view class="fyui-box__hd">
-          <image src="{{item.lrPicurl}}" class="" mode="aspectFill" />
-        </view>
-        <view class="fyui-box__bd">
-          <view class="fyui-box__content">{{item.lrResourcetitle}}</view>
-          <view class="fyui-box__tag">
-            <view>{{item.lrPublishdate}}</view>
-            <view class="flex-h">
-              <image
-                src="/res/icons/view.png"
-                class="icon"
-                style="margin-right: 4px"
-              ></image
-              >{{item.views}}
-            </view>
-          </view>
-        </view>
-      </view>
-    </view>
-  </view>
-
-  <mp-actionSheet
-    show="{{showDialog}}"
-    actions="{{groups}}"
-    showCancel="{{false}}"
-  >
-    <view slot="actionSlot1" class="custom-action">
-      <view class="custom-action__series">
-        <view
-          wx:for="{{series}}"
-          wx:key="index"
-          data-index="{{index}}"
-          bindtap="selectVideo"
-        >
-          <view
-            class="custom-action__video {{thisVideo == index + 1 ? 'selected' : ''}}"
-          >
-            {{index+1}}. {{item.lrResourcetitle}}
-          </view>
-        </view>
-      </view>
-    </view>
-  </mp-actionSheet>
-</view>
diff --git a/pages/mLearn/pLearnvideo/pLearnvideo.wxss b/pages/mLearn/pLearnvideo/pLearnvideo.wxss
deleted file mode 100644
index 598f2cb..0000000
--- a/pages/mLearn/pLearnvideo/pLearnvideo.wxss
+++ /dev/null
@@ -1,73 +0,0 @@
-/* pages/module_common/pagevideo/pagevideo.wxss */
-.page__hd{
-  padding: 0;
-}
-
-.page__ft{
-  text-align: left;
-}
-
-.video{
-  width: 100%;
-}
-
-.video-series {
-  display: flex;
-  justify-content: space-between;
-  align-items: center;
-  border: 1px solid var(--fyui-BG_1);
-  border-radius: 4px;
-  padding: 2px 16px;
-  font-size: 14px;
-  color: var(--fyui-text-color_2);
-}
-
-.title{
-  text-align: start;
-  padding: 0 16px;
-  font-weight: 600;
-  font-size: 16px;
-}
-
-.fyui-box__content {
-  text-align: start;
-}
-
-.custom-action {
-  position: relative;
-  min-height: 40vh;
-}
-
-.custom-action__series {
-  display: flex;
-  flex-wrap: wrap;
-  justify-content: space-between;
-  align-items: center;
-  /* background-color: blueviolet; */
-}
-
-.custom-action__series>view {
-  width: 50%;
-  /* background-color: rosybrown; */
-  display: flex;
-  align-items: center;
-  justify-content: center;
-  padding: 4px 0;
-}
-
-.custom-action__video {
-  width: 86%;
-  color: var(--fyui-text-color_2);
-  border: 1px solid var(--fyui-text-color_2);
-  border-radius: 4px;
-  padding: 2px 4px;
-  white-space: nowrap;
-  overflow: hidden;
-  text-overflow: ellipsis;
-}
-
-.selected{
-  color: white;
-  border: 1px solid var(--fyui-primary-color);
-  background-color: var(--fyui-primary-color);
-}
\ No newline at end of file

--
Gitblit v1.9.3