| @@ -251,6 +251,7 @@ | |||||
| } else { | } else { | ||||
| uni.setStorageSync("fendianindex", 1); //写入缓存 | uni.setStorageSync("fendianindex", 1); //写入缓存 | ||||
| this.infoinit() | this.infoinit() | ||||
| this.getSecond(0) | |||||
| } | } | ||||
| }, | }, | ||||
| @@ -286,7 +287,6 @@ | |||||
| // 获取改学习分类下的数据 | // 获取改学习分类下的数据 | ||||
| getSecond(id) { | getSecond(id) { | ||||
| console.log('1231312我调用') | |||||
| let infoobj = { | let infoobj = { | ||||
| "pageNum": 1, | "pageNum": 1, | ||||
| "pageSize": 100, | "pageSize": 100, | ||||
| @@ -305,8 +305,6 @@ | |||||
| }, | }, | ||||
| data: infoobj, | data: infoobj, | ||||
| success: (data) => { | success: (data) => { | ||||
| console.log(data.data.data.results, | |||||
| "qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq"); | |||||
| if (data.data.code == 10000) { | if (data.data.code == 10000) { | ||||
| this.alllists = data.data.data.results | this.alllists = data.data.data.results | ||||
| } else { | } else { | ||||
| @@ -130,7 +130,7 @@ | |||||
| <textarea :value="content" :focus="textareaFocus" type="text" @input="changeContent" :auto-height="true" class="editor" | <textarea :value="content" :focus="textareaFocus" type="text" @input="changeContent" :auto-height="true" class="editor" | ||||
| :class="{'active':editing}" @click.stop="changeEditing(true)" @confirm="sendComment"> | :class="{'active':editing}" @click.stop="changeEditing(true)" @confirm="sendComment"> | ||||
| </textarea> | </textarea> | ||||
| <view class="placeholder" :class="{'editing':editing}" v-if="!content">写评价</view> | |||||
| <view class="placeholder" :class="{'editing':editing}" v-if="!content && !editing">写评价</view> | |||||
| <image class="edit" v-if="!editing && content == ''" src="/static/images/recordingManagement/edit.png" mode=""></image> | <image class="edit" v-if="!editing && content == ''" src="/static/images/recordingManagement/edit.png" mode=""></image> | ||||
| </view> | </view> | ||||
| <image class="like" v-if="myId != createUser && !editing" @click="changeLike" src="/static/images/recordingManagement/like.png" | <image class="like" v-if="myId != createUser && !editing" @click="changeLike" src="/static/images/recordingManagement/like.png" | ||||
| @@ -150,7 +150,7 @@ | |||||
| <textarea :value="content" :focus="textareaFocus" type="text" @input="changeContent" :auto-height="true" class="editor" | <textarea :value="content" :focus="textareaFocus" type="text" @input="changeContent" :auto-height="true" class="editor" | ||||
| :class="{'active':editing}" @click.stop="changeEditing(true)" @confirm="sendComment"> | :class="{'active':editing}" @click.stop="changeEditing(true)" @confirm="sendComment"> | ||||
| </textarea> | </textarea> | ||||
| <view class="placeholder" :class="{'editing':editing}" v-if="!content">写评价</view> | |||||
| <view class="placeholder" :class="{'editing':editing}" v-if="!content && !editing">写评价</view> | |||||
| <image class="edit" v-if="!editing && content == ''" src="/static/images/recordingManagement/edit.png" mode=""></image> | <image class="edit" v-if="!editing && content == ''" src="/static/images/recordingManagement/edit.png" mode=""></image> | ||||
| </view> | </view> | ||||
| <image class="like" v-if="myId != createUser && !editing" @click="changeLike" src="/static/images/recordingManagement/like.png" | <image class="like" v-if="myId != createUser && !editing" @click="changeLike" src="/static/images/recordingManagement/like.png" | ||||
| @@ -121,7 +121,7 @@ | |||||
| <textarea :value="content" :focus="textareaFocus" type="text" @input="changeContent" :auto-height="true" class="editor" | <textarea :value="content" :focus="textareaFocus" type="text" @input="changeContent" :auto-height="true" class="editor" | ||||
| :class="{'active':editing}" @click.stop="changeEditing(true)" @confirm="sendComment"> | :class="{'active':editing}" @click.stop="changeEditing(true)" @confirm="sendComment"> | ||||
| </textarea> | </textarea> | ||||
| <view class="placeholder" :class="{'editing':editing}" v-if="!content">写评价</view> | |||||
| <view class="placeholder" :class="{'editing':editing}" v-if="!content && !editing">写评价</view> | |||||
| <image class="edit" v-if="!editing && content == ''" src="/static/images/recordingManagement/edit.png" mode=""></image> | <image class="edit" v-if="!editing && content == ''" src="/static/images/recordingManagement/edit.png" mode=""></image> | ||||
| </view> | </view> | ||||
| <image class="like" v-if="myId != createUser && !editing" @click="changeLike" src="/static/images/recordingManagement/like.png" | <image class="like" v-if="myId != createUser && !editing" @click="changeLike" src="/static/images/recordingManagement/like.png" | ||||
| @@ -1528,7 +1528,7 @@ | |||||
| .placeholder { | .placeholder { | ||||
| position: absolute; | position: absolute; | ||||
| left: 70rpx; | left: 70rpx; | ||||
| top: 22rpx; | |||||
| top: 26rpx; | |||||
| color: #26A2FF; | color: #26A2FF; | ||||
| &.editing { | &.editing { | ||||
| @@ -142,7 +142,7 @@ | |||||
| <textarea :value="content" :focus="textareaFocus" type="text" @input="changeContent" :auto-height="true" class="editor" | <textarea :value="content" :focus="textareaFocus" type="text" @input="changeContent" :auto-height="true" class="editor" | ||||
| :class="{'active':editing}" @click.stop="changeEditing(true)" @confirm="sendComment"> | :class="{'active':editing}" @click.stop="changeEditing(true)" @confirm="sendComment"> | ||||
| </textarea> | </textarea> | ||||
| <view class="placeholder" :class="{'editing':editing}" v-if="!content">写评价</view> | |||||
| <view class="placeholder" :class="{'editing':editing}" v-if="!content && !editing">写评价</view> | |||||
| <image class="edit" v-if="!editing && content == ''" src="/static/images/recordingManagement/edit.png" mode=""></image> | <image class="edit" v-if="!editing && content == ''" src="/static/images/recordingManagement/edit.png" mode=""></image> | ||||
| </view> | </view> | ||||
| <image class="like" v-if="myId != createUser && !editing" @click="changeLike" src="/static/images/recordingManagement/like.png" | <image class="like" v-if="myId != createUser && !editing" @click="changeLike" src="/static/images/recordingManagement/like.png" | ||||
| @@ -1455,7 +1455,7 @@ | |||||
| .placeholder { | .placeholder { | ||||
| position: absolute; | position: absolute; | ||||
| left: 70rpx; | left: 70rpx; | ||||
| top: 22rpx; | |||||
| top: 26rpx; | |||||
| color: #26A2FF; | color: #26A2FF; | ||||
| &.editing { | &.editing { | ||||