| | |
| | | }, |
| | | showDialog(e) { |
| | | this.setData({ |
| | | submitTitle: this.data.bookName, |
| | | submitTitle: this.data.titleName, |
| | | dialogKey: true, |
| | | textvalue: '' |
| | | }); |
| | |
| | | </view> |
| | | |
| | | <view class="audioPlayerBox"> |
| | | <view class="audioBackground" style="background-image: url('http://182.92.203.7:3007/jsek/website/image/video-bg.png');"> |
| | | <view class="audioBackground" style="background-image: url('https://jsek.bnuic.com/website/image/video-bg.png');"> |
| | | <image src="/static/images/resourceDetailsMyAudio/cd.png" alt="" /> |
| | | </view> |
| | | <!-- 视频播放的按钮 --> |
| | |
| | | border-bottom: 1px #f4f4f4 solid; |
| | | padding-bottom: 20rpx; |
| | | font-weight: bold; |
| | | |
| | | } |
| | | |
| | | .contentBox { |
| | |
| | | |
| | | .custom-panel { |
| | | width: 750rpx; |
| | | |
| | | } |
| | | |
| | | .contentBox .takeNotes { |
| | | |
| | | position: absolute; |
| | | top: 5rpx; |
| | | top: 0rpx; |
| | | right: 0; |
| | | width: 350rpx; |
| | | border-bottom: 1px solid #f4f4f4; |
| | | width: 353rpx; |
| | | border-bottom: 1rpx solid #e7e7e7; |
| | | } |
| | | |
| | | .takeNotes image { |
| | |
| | | .buttonBox { |
| | | display: flex; |
| | | justify-content: center; |
| | | |
| | | } |
| | | |
| | | .detailsName { |
| | |
| | | |
| | | .audioBackground { |
| | | flex: 1; |
| | | background-image: url('http://182.92.203.7:3007/jsek/website/image/video-bg.png'); |
| | | background-image: url('https://jsek.bnuic.com/website/image/video-bg.png'); |
| | | background-repeat: no-repeat; |
| | | background-position: center center; |
| | | background-size: 100% 100%; |
| | |
| | | noteList: [], |
| | | navBarHeight: '', |
| | | barHeight: '', |
| | | flag: false, // 输入框是否显示 |
| | | flag: true, // 输入框是否显示 |
| | | tabPanelstyle: 'display:flex;justify-content:center;align-items:center;', |
| | | activeValues: [0], |
| | | dialogKey: false, |
| | |
| | | showDialog(e) { |
| | | |
| | | this.setData({ |
| | | submitTitle: this.data.bookName, |
| | | dialogKey: true, |
| | | textvalue: '' |
| | | |
| | | dialogKey: true, |
| | | textvalue: '', |
| | | submitTitle: this.data.titleName |
| | | |
| | | }); |
| | | }, |
| | |
| | | // 标题输入框值 |
| | | inputChange(e) { |
| | | this.setData({ |
| | | titleName: e.detail.value |
| | | submitTitle: e.detail.value |
| | | }) |
| | | }, |
| | | |
| | |
| | | icon: 'error', |
| | | title: '请填写笔记内容', |
| | | }) |
| | | } else if (!this.data.titleName) { |
| | | } else if (!this.data.submitTitle) { |
| | | return wx.showToast({ |
| | | icon: 'error', |
| | | title: '请填写笔记标题', |
| | |
| | | submitType: "edit", |
| | | textvalue: note.content, |
| | | submitTitle: note.name, |
| | | |
| | | noteId: note.id, |
| | | dialogKey: true, |
| | | }) |
| | | console.log(this.data.submitTitle); |
| | | // this.showDialog() |
| | | }, |
| | | |
| | |
| | | return wx.getUserProfile({ |
| | | desc: '用户登录', |
| | | success: (res) => { |
| | | // console.log(res); |
| | | console.log(res); |
| | | } |
| | | }) |
| | | } |
| | |
| | | <import src="index.skeleton.wxml" /> |
| | | <template is="skeleton" wx:if="{{loading}}" /> |
| | | |
| | | <view hidden="{{hidden}}"> |
| | | |
| | | <view wx:if="{{!hidden}}"> |
| | | <view style="width: 100%; height: {{barHeight}}px; "></view> |
| | | <view class="nacigationBar" style="width: 70%; height: {{navBarHeight}}px;"> |
| | | <view> |
| | |
| | | <view class="popup"> |
| | | <view slot="title"> |
| | | <view class="title-text" wx:if="{{!flag}}"> |
| | | <text class="note-title">{{titleName}}</text> |
| | | <text class="note-title">{{submitTitle}}</text> |
| | | <t-image src="/static/images/bookService/detail/edit.png" class="edit-icon" bind:tap="changeTitle" data-value="{{true}}"></t-image> |
| | | </view> |
| | | <view wx:else> |
| | | <t-input value="{{titleName}}" style="{{inputStyle}}" data-value="{{false}}" bind:enter="changeTitle" bind:blur="changeTitle" maxlength="{{50}}" bind:change="inputChange"></t-input> |
| | | <t-input value="{{submitTitle}}" style="{{inputStyle}}" data-value="{{false}}" bind:enter="changeTitle" bind:blur="changeTitle" maxlength="{{50}}" bind:change="inputChange"></t-input> |
| | | </view> |
| | | </view> |
| | | |
| | |
| | | } |
| | | |
| | | .contentBox .takeNotes { |
| | | |
| | | position: absolute; |
| | | top: 5rpx; |
| | | top: 0rpx; |
| | | right: 0; |
| | | width: 350rpx; |
| | | border-bottom: 1px solid #f4f4f4; |
| | | |
| | | width: 353rpx; |
| | | border-bottom: 1rpx solid #e7e7e7; |
| | | } |
| | | |
| | | .takeNotes image { |
| | |
| | | </view> |
| | | </view> |
| | | <view wx:else class="aboutText" style="margin: 5rpx;"> |
| | | <rich-text style="width: 100%;" space="emsp" nodes="{{aboutText}}"></rich-text> |
| | | <rich-text class="richTextBox" style="width: 100%;" space="emsp" nodes="{{aboutText}}" mode="compat"></rich-text> |
| | | </view> |
| | | </view> |
| | |
| | | position: sticky; |
| | | top: 0px; |
| | | background-color: #fff; |
| | | } |
| | | |
| | | |
| | | .richTextBox { |
| | | line-height: 1.4; |
| | | font-size: 14px; |
| | | } |
| | | |
| | | .richTextBox { |
| | | margin: revert; |
| | | padding: revert; |
| | | border: revert; |
| | | font: revert; |
| | | vertical-align: revert; |
| | | color: #000; |
| | | } |
| | | |
| | | .richTextBox p { |
| | | display: block; |
| | | text-align: center; |
| | | -webkit-margin-before: 1em; |
| | | margin-block-start: 1em; |
| | | -webkit-margin-after: 1em; |
| | | margin-block-end: 1em; |
| | | -webkit-margin-start: 0; |
| | | margin-inline-start: 0; |
| | | -webkit-margin-end: 0; |
| | | margin-inline-end: 0; |
| | | } |
| | | |
| | | .richTextBox td { |
| | | border-bottom: 1px dashed; |
| | | border-right: 1px dashed; |
| | | border-width: 1px !important; |
| | | } |
| | | |
| | | .richTextBox table { |
| | | border-width: 2px !important; |
| | | } |
| | |
| | | }, |
| | | // 下拉函数 |
| | | onPullDownRefresh() { |
| | | |
| | | this.setData({ |
| | | start: 1, |
| | | checkAll: false, |