feat(绕太阳): 人
天天
BREAKING CHANGE: 二
热帖
1个文件已删除
11个文件已修改
16个文件已添加
3 文件已重命名
| | |
| | | { |
| | | "pages": [ |
| | | "pages/resourceDetails/index", |
| | | "pages/resourceDetails/myAudio/index", |
| | | "pages/resourceDetails/myVideo/index", |
| | | "pages/resourceDetails/document/index", |
| | | "pages/retrievalPage/index", |
| | | "pages/cart/paymentPage/index", |
| | | "pages/cart/index", |
| | |
| | | bookCreator: '', |
| | | bookContent: '', |
| | | bookImage: '', |
| | | bookExhibitionList: [] |
| | | bookExhibitionList: [], |
| | | navBarHeight: '', |
| | | barHeight: '', |
| | | bookName: '' |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å è½½ |
| | | */ |
| | | onLoad(options) { |
| | | const systInfo = wx.getSystemInfoSync(); |
| | | const menu = wx.getMenuButtonBoundingClientRect(); // è¶åä¿¡æ¯ |
| | | const navBarHeight = (menu.top - systInfo.statusBarHeight) * 2 + menu.height; // å¯¼èªæ é«åº¦ |
| | | this.setData({ |
| | | navBarHeight: navBarHeight, |
| | | barHeight: systInfo.statusBarHeight, |
| | | }) |
| | | console.log(); |
| | | |
| | | |
| | | this.setData({ |
| | | bookName: options.bookName |
| | | }) |
| | | |
| | | const passId = options.id |
| | | |
| | |
| | | // wx.navigateTo({ |
| | | // url: '/pages/bookExhibitionDetails/index?id?name=' + item.id + item.name // å设跳转å°è¯¦æ
页é¢ï¼å¹¶ä¼ éäºidåæ° |
| | | // }); |
| | | } |
| | | }, |
| | | goBack() { |
| | | wx.navigateBack(); |
| | | }, |
| | | |
| | | }) |
| | |
| | | { |
| | | "usingComponents": {} |
| | | "usingComponents": { |
| | | "t-icon": "tdesign-miniprogram/icon/icon" |
| | | }, |
| | | "navigationStyle": "custom" |
| | | } |
| | |
| | | <!--pages/bookExhibitionDetails/index.wxml--> |
| | | |
| | | <view style="width: 100%; height: {{barHeight}}px; "></view> |
| | | <view class="nacigationBar" style="width: 70%; height: {{navBarHeight}}px;"> |
| | | <view> |
| | | <t-icon name="chevron-left" size="30" data-name="{{item}}" bind:click="goBack" /> |
| | | </view> |
| | | <view class="navbar-title">{{bookName}}</view> |
| | | </view> |
| | | |
| | | <view class="headBox"> |
| | | <text class="titleBox">{{bookName}}</text> |
| | |
| | | /* pages/bookExhibitionDetails/index.wxss */ |
| | | .headBox {} |
| | | |
| | | .nacigationBar { |
| | | background-color: #fff; |
| | | display: flex; |
| | | align-items: center; |
| | | |
| | | } |
| | | |
| | | .navbar-title { |
| | | white-space: nowrap; |
| | | /* overflow: hidden; */ |
| | | text-overflow: ellipsis; |
| | | color: #0F1214; |
| | | font-size: 40rpx; |
| | | font-weight: bold; |
| | | margin-bottom: 5rpx; |
| | | } |
| | | |
| | | .titleBox { |
| | | font-weight: 800; |
| | | font-size: 45rpx; |
| | |
| | | value: [], |
| | | options: [], |
| | | }, |
| | | navBarHeight: '', |
| | | barHeight: '' |
| | | |
| | | }, |
| | | |
| | | |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å è½½ |
| | | */ |
| | | onLoad(options) { |
| | | // console.log(this.data.filteredItems, 88888); |
| | | const systInfo = wx.getSystemInfoSync(); |
| | | const menu = wx.getMenuButtonBoundingClientRect(); // è¶åä¿¡æ¯ |
| | | const navBarHeight = (menu.top - systInfo.statusBarHeight) * 2 + menu.height; // å¯¼èªæ é«åº¦ |
| | | this.setData({ |
| | | navBarHeight: navBarHeight, |
| | | barHeight: systInfo.statusBarHeight, |
| | | }) |
| | | |
| | | // ååéæ©å¨é项 |
| | | const singleSelectOptions = this.data.filteredItems.map(item => ({ |
| | | label: item.name, |
| | | value: item.value, |
| | | disabled: false, |
| | | })) |
| | | |
| | | if (this.data.filteredItems = []) { |
| | | console.log(11111); |
| | | singleSelectOptions.push({ |
| | | label: 'ç¦ç¨é项', |
| | | value: 'disabled', |
| | | disabled: true, |
| | | }); |
| | | } |
| | | |
| | | // singleSelectOptions.push({ |
| | | // label: 'ç¦ç¨é项', |
| | | // value: 'disabled', |
| | | // disabled: true, |
| | | // }); |
| | | |
| | | |
| | | // æ´æ°æ°æ® |
| | | this.setData({ |
| | | 'multipleSelect.options': singleSelectOptions, |
| | | }); |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å次渲æå®æ |
| | |
| | | this.setData({ |
| | | bookExhibitionList: list |
| | | }) |
| | | |
| | | //åæ¶ |
| | | wx.hideLoading() |
| | | // console.log(this.data.bookExhibitionList, 'æ°æ®'); |
| | |
| | | }, |
| | | |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å è½½ |
| | | */ |
| | | onLoad(options) { |
| | | // console.log(this.data.filteredItems, 88888); |
| | | |
| | | // ååéæ©å¨é项 |
| | | const singleSelectOptions = this.data.filteredItems.map(item => ({ |
| | | label: item.name, |
| | | value: item.value, |
| | | disabled: false, |
| | | })) |
| | | |
| | | if (this.data.filteredItems = []) { |
| | | console.log(11111); |
| | | singleSelectOptions.push({ |
| | | label: 'ç¦ç¨é项', |
| | | value: 'disabled', |
| | | disabled: true, |
| | | }); |
| | | } |
| | | |
| | | // singleSelectOptions.push({ |
| | | // label: 'ç¦ç¨é项', |
| | | // value: 'disabled', |
| | | // disabled: true, |
| | | // }); |
| | | |
| | | |
| | | // æ´æ°æ°æ® |
| | | this.setData({ |
| | | 'multipleSelect.options': singleSelectOptions, |
| | | }); |
| | | |
| | | }, |
| | | |
| | | |
| | | // æ»åç±» |
| | |
| | | const item = event.currentTarget.dataset.item; |
| | | console.log(item); |
| | | wx.navigateTo({ |
| | | url: '/pages/bookExhibitionDetails/index?id=' + item.id // å设跳转å°è¯¦æ
页é¢ï¼å¹¶ä¼ éäºidåæ° |
| | | url: '/pages/bookExhibitionDetails/index?id=' + item.id + '&bookName=' + item.name // å设跳转å°è¯¦æ
页é¢ï¼å¹¶ä¼ éäºidåæ° |
| | | }); |
| | | }, |
| | | // æç´¢æ¡ |
| | |
| | | }) |
| | | console.log(this.data.keyword, 'keyword'); |
| | | this.bookExhibitionGet() |
| | | } |
| | | }, |
| | | goBack() { |
| | | wx.navigateBack(); |
| | | }, |
| | | }) |
| | |
| | | "t-toast": "tdesign-miniprogram/toast/toast", |
| | | "t-icon": "tdesign-miniprogram/icon/icon" |
| | | }, |
| | | "onReachBottomDistance": 200 |
| | | "onReachBottomDistance": 200, |
| | | "navigationStyle": "custom" |
| | | } |
| | |
| | | <!-- å¼¹åºæ¡ ç¦æ¢ --> |
| | | <t-toast id="t-toast" /> |
| | | |
| | | |
| | | <view class="example-search"> |
| | | <t-search model:value="{{value}}" placeholder="请è¾å
¥ä¹¦å±åç§°" bind:submit="onSearchSubmit" /> |
| | | <view style="width: 100%; height: {{barHeight}}px; "></view> |
| | | <view class="nacigationBar" style="width: 70%; height: {{navBarHeight}}px;"> |
| | | <view> |
| | | <t-icon name="chevron-left" size="30" data-name="{{item}}" bind:click="goBack" /> |
| | | </view> |
| | | <view class="example-search"> |
| | | <t-search model:value="{{value}}" placeholder="请è¾å
¥ä¹¦å±åç§°" bind:submit="onSearchSubmit" /> |
| | | </view> |
| | | </view> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | <view class="menuBox"> |
| | |
| | | <view class="outside"> |
| | | |
| | | <view class="contentBox" wx:for="{{bookExhibitionList}}" wx:key="index" wx:for-item="item" wx:for-index="index" bindtap="onBookExhibitionDetails" data-item="{{item}}"> |
| | | <image wx:if="{{item.icon}}" src="{{item.icon}}" mode="" /> |
| | | <image wx:if="{{item.icon}}" src="{{item.icon}}" mode="aspectFit" /> |
| | | <image wx:else="" src="/static/images/bookExhibitionList/banner.png" mode="" /> |
| | | <view class="textBox" title="{{item.name}}"> <text>{{item.name}}</text></view> |
| | | </view> |
| | |
| | | /* pages/bookExhibitionList/index.wxss */ |
| | | |
| | | .nacigationBar { |
| | | background-color: #fff; |
| | | display: flex; |
| | | align-items: center; |
| | | |
| | | } |
| | | |
| | | .navbar-title { |
| | | white-space: nowrap; |
| | | /* overflow: hidden; */ |
| | | text-overflow: ellipsis; |
| | | color: #0F1214; |
| | | font-size: 40rpx; |
| | | font-weight: bold; |
| | | margin-bottom: 5rpx; |
| | | } |
| | | |
| | | |
| | | .outside { |
| | |
| | | const parent = e.currentTarget.dataset.parent |
| | | console.log(this.properties.bookInfo); |
| | | wx.navigateTo({ |
| | | url: `/pages/resourceDetails/index?productLinkPath=${item.productLinkPath}&parentProductLinkPath=${parent.productLinkPath}&parentName=${parent.name}&activeId=${item.id}&bookId=${this.properties.bookInfo.id}&bookName=${this.properties.bookInfo.name}&cmsId=${this.properties.bookInfo.rootCmsItemId}`, |
| | | url: `/pages/resourceDetails/myVideo/index?productLinkPath=${item.productLinkPath}&parentProductLinkPath=${parent.productLinkPath}&parentName=${parent.name}&activeId=${item.id}&bookId=${this.properties.bookInfo.id}&bookName=${this.properties.bookInfo.name}&cmsId=${this.properties.bookInfo.rootCmsItemId}`, |
| | | }) |
| | | console.log(e); |
| | | |
| | | console.log(item.productLinkPath, parent.productLinkPath, parent.name, item.id, this.properties.bookInfo.id, this.properties.bookInfo.name, this.properties.bookInfo.rootCmsItemId, 'add'); |
| | | } |
| | | } |
| | | }) |
| | |
| | | |
| | | |
| | | |
| | | |
| | | <!-- |
| | | <t-button t-class="wrapper" theme="primary" size="large" variant="outline" data-key="showCloseBtn" bind:tap="showDialog" block> |
| | | 带å
³éæé® |
| | | </t-button> |
| | | </t-button> --> |
| | | <t-dialog visible="{{showCloseBtn}}" close-btn bind:confirm="closeDialog" bind:cancel="closeDialog"> |
| | | <view slot="content" class="slotContent"> |
| | | <view class="myQrcodeBox"> |
New file |
| | |
| | | // pages/resourceDetails/document/index.js |
| | | Page({ |
| | | |
| | | /** |
| | | * 页é¢çåå§æ°æ® |
| | | */ |
| | | data: { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å è½½ |
| | | */ |
| | | onLoad(options) { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å次渲æå®æ |
| | | */ |
| | | onReady() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢æ¾ç¤º |
| | | */ |
| | | onShow() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢éè |
| | | */ |
| | | onHide() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å¸è½½ |
| | | */ |
| | | onUnload() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页é¢ç¸å
³äºä»¶å¤ç彿°--çå¬ç¨æ·ä¸æå¨ä½ |
| | | */ |
| | | onPullDownRefresh() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页é¢ä¸æè§¦åºäºä»¶çå¤ç彿° |
| | | */ |
| | | onReachBottom() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * ç¨æ·ç¹å»å³ä¸è§å享 |
| | | */ |
| | | onShareAppMessage() { |
| | | |
| | | } |
| | | }) |
New file |
| | |
| | | { |
| | | "usingComponents": {} |
| | | } |
New file |
| | |
| | | <!--pages/resourceDetails/document/index.wxml--> |
| | | <text>pages/resourceDetails/document/index.wxml</text> |
| | | <view> |
| | | |
| | | |
| | | </view> |
New file |
| | |
| | | /* pages/resourceDetails/document/index.wxss */ |
New file |
| | |
| | | // audio.js |
| | | Page({ |
| | | data: { |
| | | poster: 'http://y.gtimg.cn/music/photo_new/T002R300x300M000003rsKF44GyaSk.jpg?max_age=2592000', |
| | | name: 'æ¤æ¶æ¤å»', |
| | | author: '许å·', |
| | | src: 'http://182.92.203.7:3001/file/api/ApiDownload?md5=aa72e586dd93b7c2633bee6320bc6c76', |
| | | navBarHeight: '', |
| | | barHeight: '', |
| | | |
| | | }, |
| | | onLoad(options) { |
| | | const systInfo = wx.getSystemInfoSync(); |
| | | const menu = wx.getMenuButtonBoundingClientRect(); // è¶åä¿¡æ¯ |
| | | const navBarHeight = (menu.top - systInfo.statusBarHeight) * 2 + menu.height; // å¯¼èªæ é«åº¦ |
| | | |
| | | this.setData({ |
| | | navBarHeight: navBarHeight, |
| | | barHeight: systInfo.statusBarHeight, |
| | | }) |
| | | }, |
| | | onReady: function (e) { |
| | | // ä½¿ç¨ wx.createAudioContext è·å audio ä¸ä¸æ context |
| | | this.audioCtx = wx.createAudioContext('myAudio') |
| | | }, |
| | | |
| | | audioPlay: function () { |
| | | this.audioCtx.play() |
| | | }, |
| | | audioPause: function () { |
| | | this.audioCtx.pause() |
| | | }, |
| | | audio14: function () { |
| | | this.audioCtx.seek(14) |
| | | }, |
| | | audioStart: function () { |
| | | this.audioCtx.seek(0) |
| | | }, |
| | | goBack() { |
| | | wx.navigateBack() |
| | | }, |
| | | |
| | | |
| | | MusicStart: function (e) { |
| | | var progress = parseInt((e.detail.currentTime / e.detail.duration) * 100) |
| | | var that = this |
| | | that.setData({ |
| | | progress: progress |
| | | }) |
| | | console.log('é³ä¹ææ¾è¿åº¦ä¸º' + progress + '%') |
| | | }, |
| | | }) |
New file |
| | |
| | | { |
| | | "usingComponents": { |
| | | "t-icon": "tdesign-miniprogram/icon/icon" |
| | | }, |
| | | "navigationStyle": "custom" |
| | | } |
New file |
| | |
| | | <view style="width: 100%; height: {{barHeight}}px; "></view> |
| | | <view class="nacigationBar" style="width: 70%; height: {{navBarHeight}}px;"> |
| | | <view> |
| | | <t-icon name="chevron-left" size="30" data-name="{{item}}" bind:click="goBack" /> |
| | | </view> |
| | | <view class="navbar-title">èµæºè¯¦æ
-é³é¢</view> |
| | | </view> |
| | | |
| | | |
| | | |
| | | |
| | | <view class="audioBox"> |
| | | <view class=""> |
| | | <image class="imageFront" src="/static/images/resourceDetailsMyAudio/cd.png" mode="aspectFit" /> |
| | | <image class=" imageAfter" src="/static/images/resourceDetailsMyAudio/video-bg.png" mode="aspectFit" /> |
| | | </view> |
| | | <view class="controlBox"> |
| | | |
| | | <image src="/static/images/resourceDetailsMyAudio/shangyizhang.png" mode="" /> |
| | | <image bindtap="audioPlay" src="/static/images/resourceDetailsMyAudio/zanting.png" mode="" /> |
| | | <image bindtap="audioPause" src="/static/images/resourceDetailsMyAudio/xiayizhang.png" mode="" /> |
| | | |
| | | |
| | | <image src="/static/images/resourceDetailsMyAudio/Full screen.png" mode="" /> |
| | | <!-- <view class="free-MusicProgress"> |
| | | <view style="width:{{progress}}%;"></view> |
| | | </view> --> |
| | | </view> |
| | | |
| | | |
| | | </view> |
| | | <audio wx:if="{{false}}" bindtimeupdate="MusicStart" poster="{{poster}}" name="{{name}}" author="{{author}}" src="{{src}}" id="myAudio" controls loop> |
| | | |
| | | |
| | | </audio> |
| | | <!-- <button type="primary" >ææ¾</button> |
| | | <button type="primary">æå</button> |
| | | <button type="primary" bindtap="audio14">设置å½åææ¾æ¶é´ä¸º14ç§</button> |
| | | <button type="primary" bindtap="audioStart">åå°å¼å¤´</button> --> |
New file |
| | |
| | | /* pages/resourceDetails/myAudio/index.wxss */ |
| | | .nacigationBar { |
| | | background-color: #fff; |
| | | display: flex; |
| | | align-items: center; |
| | | |
| | | } |
| | | |
| | | .navbar-title { |
| | | white-space: nowrap; |
| | | /* overflow: hidden; */ |
| | | text-overflow: ellipsis; |
| | | color: #0F1214; |
| | | font-size: 40rpx; |
| | | font-weight: bold; |
| | | margin-bottom: 5rpx; |
| | | } |
| | | |
| | | .audioBox { |
| | | width: 100%; |
| | | height: 350rpx; |
| | | } |
| | | |
| | | .imageFront { |
| | | width: 300rpx; |
| | | height: 300rpx; |
| | | position: absolute; |
| | | top: 150rpx; |
| | | left: 250rpx; |
| | | } |
| | | |
| | | .imageAfter { |
| | | width: 100%; |
| | | } |
| | | |
| | | .controlBox { |
| | | width: 750rpx; |
| | | height: 96rpx; |
| | | background: #000000; |
| | | border-radius: 0rpx 0rpx 0rpx 0rpx; |
| | | opacity: 0.6; |
| | | position: relative; |
| | | } |
| | | |
| | | .controlBox image { |
| | | width: 45rpx; |
| | | height: 45rpx; |
| | | margin: 20rpx 35rpx; |
| | | } |
| | | |
| | | audio { |
| | | position: relative; |
| | | } |
| | | |
| | | .free-MusicProgress { |
| | | position: absolute; |
| | | width: 78%; |
| | | left: 21.7%; |
| | | bottom: 1px; |
| | | background: #C3C3C3; |
| | | } |
| | | |
| | | .free-MusicProgress>view { |
| | | background: #48c23d; |
| | | height: 5px; |
| | | } |
New file |
| | |
| | | // pages/resourceDetails/index.js |
| | | const app = getApp() |
| | | |
| | | Page({ |
| | | |
| | | /** |
| | | * 页é¢çåå§æ°æ® |
| | | */ |
| | | data: { |
| | | navBarHeight: '', |
| | | barHeight: '', |
| | | |
| | | tabPanelstyle: 'display:flex;justify-content:center;align-items:center;', |
| | | activeValues: [0], |
| | | dialogKey: true, |
| | | style: 'border: 2rpx solid rgba(220,220,220,1);border-radius: 12rpx;', |
| | | activeId: '', |
| | | bookId: '', |
| | | bookName: '', |
| | | cmsId: '', |
| | | parentName: '', |
| | | parentProductLinkPath: '', |
| | | productLinkPath: '', |
| | | threeLeveData: [], |
| | | showData: '', |
| | | src: '', |
| | | selectedId: null, |
| | | topicId: '' |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å è½½ |
| | | */ |
| | | onLoad(options) { |
| | | console.log(this.data.dialogKey, 'dialogKey'); |
| | | const systInfo = wx.getSystemInfoSync(); |
| | | const menu = wx.getMenuButtonBoundingClientRect(); // è¶åä¿¡æ¯ |
| | | const navBarHeight = (menu.top - systInfo.statusBarHeight) * 2 + menu.height; // å¯¼èªæ é«åº¦ |
| | | |
| | | this.setData({ |
| | | navBarHeight: navBarHeight, |
| | | barHeight: systInfo.statusBarHeight, |
| | | activeId: options.activeId, |
| | | bookId: options.bookId, |
| | | bookName: options.bookName, |
| | | cmsId: options.cmsId, |
| | | parentName: options.parentName, |
| | | parentProductLinkPath: options.parentProductLinkPath, |
| | | productLinkPath: options.productLinkPath |
| | | }) |
| | | console.log(this.data.parentProductLinkPath, 'parentProductLinkPath'); |
| | | this.resourceDetailsData() |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å次渲æå®æ |
| | | */ |
| | | onReady() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢æ¾ç¤º |
| | | */ |
| | | onShow() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢éè |
| | | */ |
| | | onHide() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * çå½å¨æå½æ°--çå¬é¡µé¢å¸è½½ |
| | | */ |
| | | onUnload() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页é¢ç¸å
³äºä»¶å¤ç彿°--çå¬ç¨æ·ä¸æå¨ä½ |
| | | */ |
| | | onPullDownRefresh() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页é¢ä¸æè§¦åºäºä»¶çå¤ç彿° |
| | | */ |
| | | onReachBottom() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * ç¨æ·ç¹å»å³ä¸è§å享 |
| | | */ |
| | | onShareAppMessage() { |
| | | |
| | | }, |
| | | onTabsChange(event) { |
| | | |
| | | }, |
| | | |
| | | onTabsClick(event) { |
| | | |
| | | }, handleChange(e) { |
| | | this.setData({ |
| | | activeValues: e.detail.value, |
| | | }); |
| | | }, |
| | | onTakeNotes() { |
| | | |
| | | }, |
| | | showDialog(e) { |
| | | const { key } = e.currentTarget.dataset; |
| | | this.setData({ [key]: true, dialogKey: key }); |
| | | }, |
| | | |
| | | closeDialog() { |
| | | |
| | | this.setData({ |
| | | dialogKey: false |
| | | }); |
| | | }, |
| | | goBack() { |
| | | wx.navigateBack(); |
| | | }, |
| | | resourceDetailsData() { |
| | | |
| | | |
| | | let query = { |
| | | path: '*', |
| | | queryType: '*', |
| | | productId: this.data.bookId, |
| | | cmsPath: this.data.parentProductLinkPath, |
| | | itemFields: { |
| | | SysType: 'CmsFolder', |
| | | // èµæºç±»åï¼è¯è¯»æä»¶ï¼æ¯å¦å
许ä¸è½½çåæ° |
| | | selectType: [], |
| | | freeFile: [], |
| | | file: [], |
| | | protectedFile: [], |
| | | resourcesClassification: [], |
| | | isDownload: [], |
| | | jsek_resourceBrief: [], |
| | | jsek_link: [], |
| | | jsek_questionBank: [], |
| | | learnSelectType: [] |
| | | }, |
| | | pading: { |
| | | start: 0, |
| | | size: 999 |
| | | } |
| | | } |
| | | |
| | | app.MG.store.getProductDetail(query).then(res => { |
| | | console.log(res, 'res'); |
| | | |
| | | const list = [] |
| | | |
| | | res.datas.cmsDatas[0].datas.forEach((item) => { |
| | | this.data.threeLeveData.push(item) |
| | | list.push(item) |
| | | this.setData({ |
| | | threeLeveData: list |
| | | }) |
| | | |
| | | if (this.data.productLinkPath == item.productLinkPath) { |
| | | console.log(item, 'item'); |
| | | this.setData({ |
| | | showData: app.config.requestCtx + '/file/api/ApiDownload?md5=' + item.file |
| | | }) |
| | | } |
| | | // console.log(this.data.threeLeveData, 'threeLeveData'); |
| | | }) |
| | | |
| | | }) |
| | | }, |
| | | onVideo(e) { |
| | | |
| | | this.setData({ |
| | | selectedId: e.currentTarget.dataset.index, |
| | | }) |
| | | |
| | | |
| | | |
| | | // console.log(e); |
| | | const item = e.currentTarget.dataset.item |
| | | // console.log(item); |
| | | if (item.selectType == "video") { |
| | | console.log(item.file); |
| | | this.setData({ |
| | | showData: app.config.requestCtx + '/file/api/ApiDownload?md5=' + item.file |
| | | }) |
| | | console.log(this.data.showData); |
| | | } else { |
| | | console.log(app.config.requestCtx + '/file/api/ApiDownload?md5=' + item.file); |
| | | } |
| | | }, |
| | | |
| | | getProductUserSubmitTopicGet() { |
| | | app.MG.ugc.getProductUserSubmitTopic({ |
| | | productId: this.data.bookId, |
| | | appRefCode: app.config.appRefCode |
| | | }).then((res) => { |
| | | console.log(res); |
| | | |
| | | this.setData({ |
| | | topicId: res.id |
| | | }) |
| | | }) |
| | | }, |
| | | |
| | | |
| | | |
| | | newTopicMessageGet() { |
| | | let query = { |
| | | topicIdOrRefCode: topicId + '', |
| | | name: titleText.value, |
| | | content: form.value.noteContent, |
| | | type: 'note', |
| | | cmsTypeRefCode: '', |
| | | newDataListRequest: [] |
| | | } |
| | | app.MG.ugc.newTopicMessage(query).then(res => { |
| | | console.log(res); |
| | | }) |
| | | }, |
| | | // currentTarget |
| | | onConfirm() { |
| | | console.log(1111); |
| | | |
| | | }, |
| | | onCancellation() { |
| | | console.log(222); |
| | | |
| | | this.data.dialogKey = false |
| | | |
| | | } |
| | | }) |
File was renamed from pages/resourceDetails/index.wxml |
| | |
| | | <view> |
| | | <t-icon name="chevron-left" size="30" data-name="{{item}}" bind:click="goBack" /> |
| | | </view> |
| | | <view class="navbar-title">èµæºè¯¦æ
</view> |
| | | <view class="navbar-title">èµæºè¯¦æ
-è§é¢</view> |
| | | </view> |
| | | |
| | | |
| | | <!-- è§é¢ ç --> |
| | | <view class="videoBox"> |
| | | <video src="{{vURL}}" play-btn-position='center' object-fit='fill' controls enable-play-gesture enable-auto-rotation></video> |
| | | <video src="{{showData}}" play-btn-position='center' object-fit='fill' controls enable-play-gesture enable-auto-rotation></video> |
| | | |
| | | </view> |
| | | |
| | | <!-- æ é¢ --> |
| | |
| | | <t-tab-panel label="èµæºå表" value="0" style="{{tabPanelstyle}}" style="width: 750rpx;"> |
| | | <view class="wrapper"> |
| | | <t-collapse value="{{activeValues}}" bind:change="handleChange"> |
| | | <t-collapse-panel header="ä¸ãèæ¯ãæä¹ä¸æ»ä½è®¾è®¡" value="{{0}}" expandIcon> |
| | | <view wx:for="{{3}}"> |
| | | <view>第ä¸è¯¾</view> |
| | | <view>第äºè¯¾</view> |
| | | <view>第ä¸è¯¾</view> |
| | | <view>第å课</view> |
| | | <t-collapse-panel header="{{parentName}}" value="{{0}}" expandIcon> |
| | | |
| | | <view class="detailsName" wx:for="{{threeLeveData}}" wx:key="index" wx:for-item="item" wx:for-index="index" bind:tap="onVideo" data-item="{{item}}" data-index="{{index}}"> |
| | | <view style="color: {{selectedId == index ? '#ff6c00' : '#000'}}">{{item.name}}</view> |
| | | </view> |
| | | |
| | | |
| | | </t-collapse-panel> |
| | | </t-collapse> |
| | | </view> |
| | |
| | | </view> |
| | | <view class="buttonBox"> |
| | | <view> |
| | | <t-button style="margin: 20rpx 30rpx;" variant="outline" size="extra-small">åæ¶</t-button> |
| | | <t-button style="margin: 20rpx 30rpx;" theme="primary" size="extra-small">确认</t-button> |
| | | <t-button bind:tap="onCancellation" style="margin: 20rpx 30rpx;" variant="outline" size="extra-small">åæ¶</t-button> |
| | | <t-button bind:tap="onConfirm" style="margin: 20rpx 30rpx;" theme="primary" size="extra-small">确认</t-button> |
| | | </view> |
| | | </view> |
| | | </view> |
File was renamed from pages/resourceDetails/index.wxss |
| | |
| | | border-bottom: 1px #f4f4f4 solid; |
| | | padding-bottom: 20rpx; |
| | | font-weight: bold; |
| | | |
| | | } |
| | | |
| | | .contentBox { |
| | |
| | | |
| | | /* .inputBox { |
| | | height: 500rpx; |
| | | } */ |
| | | } */ |
| | | |
| | | |
| | | .detailsName { |
| | | margin: 30rpx; |
| | | width: 90%; |
| | | height: 60rpx; |
| | | display: flex; |
| | | align-items: center; |
| | | background: #F4F4F4; |
| | | padding-left: 20rpx; |
| | | } |
| | | |
| | | .detailsName:hover { |
| | | background-color: #fff0e6; |
| | | width: 90%; |
| | | height: 60rpx; |
| | | color: #ff6c00; |
| | | } |
| | | |
| | | .audioBox { |
| | | width: 750rpx; |
| | | height: 200rpx; |
| | | } |