Commit b0948efa authored by lvtz's avatar lvtz

fix

parent e77e9e60
......@@ -168,7 +168,7 @@ Page({
videoId: '',
src: ''
},
placeholder: '请输入打卡作业的具体要求,如:演唱歌曲《小小少年》\r\n演唱歌曲《小小少年》,具体要求\r\n1.跟随伴奏唱一段副歌\r\n2.视频录下唱歌过程\r\n3.上传歌唱视频打卡成功\r\n如果有该歌曲示例视频,你可以点击上传视频,供学员参考。',
placeholder: '请输入打卡作业的具体要求',
audioStorage: {
},
......
......@@ -334,7 +334,7 @@
<sound-recording sid="{{sid}}" show="{{audioStatus.show}}" bind:addVoice="addVoice" bind:pushVoice="pushVoice">
</sound-recording>
</view>
<view class="form-fixbtn" bindtap="saveTheme">发布</view>
<cover-view class="form-fixbtn" bindtap="saveTheme">发布</cover-view>
</view>
<view class="modal-dialog" wx:if="{{changesubjectCountInputShow}}">
<view class="modal-mask"></view>
......
......@@ -3,7 +3,8 @@
<view class="media-content-box {{exchangeIndex - 1 == index ? 'down' : '' }} {{exchangeIndex == index ? 'up' : '' }}" wx:for="{{content}}" wx:key="index">
<view class="media-box-item media-text-item" data-type="{{item.type}}" data-index="{{index}}" wx:if="{{item.type == 'text'}}">
<image class="del-icon" data-type="{{item.type}}" data-index="{{index}}" src="{{imageRoot}}2b/common/icon_delblue.png?{{imageVersion}}" bindtap="delitem"></image>
<basetextarea class="basetextarea-style" bindinput="textareaChange" data-type="{{item.type}}" maxlength="500" data-index="{{index}}" value="{{item.value}}" placeholder="{{placeholder}}"></basetextarea>
<!-- <basetextarea class="basetextarea-style" bindinput="textareaChange" data-type="{{item.type}}" maxlength="500" data-index="{{index}}" value="{{item.value}}" placeholder="{{placeholder}}"></basetextarea> -->
<textarea bindinput="textareaChange" auto-height="{{true}}" maxlength="500" data-index="{{index}}" value="{{item.value}}" placeholder="{{placeholder}}"></textarea>
<text class="word-count">{{item.value.length}}/500</text>
<view class="exchange-btn" wx:if="{{index != 0}}" data-type="{{item.type}}" data-index="{{index}}" bindtap="exchange" >
<image class="exchange-icon" src="{{imageRoot}}2b/common/exchangeicon.png?{{imageVersion}}"></image>更换顺序
......
......@@ -104,6 +104,16 @@
border: 1px dashed #DADBDC;
border-radius: 8rpx;
}
.sjd-media-editor .media-content-box .media-box-item.media-text-item textarea{
line-height: 1.2;
position: relative;
z-index: 1;
padding: 0;
height: 160rpx;
min-height: 160rpx;
width: 100%;
padding: 20rpx;
}
.sjd-media-editor .media-content-box .media-box-item.media-text-item .word-count {
position: absolute;
font-size: 26rpx;
......
......@@ -3,7 +3,9 @@
<view class="media-content-box {{exchangeIndex - 1 == index ? 'down' : '' }} {{exchangeIndex == index ? 'up' : '' }}" wx:for="{{content}}" wx:key="index">
<view class="media-box-item media-text-item" data-type="{{item.type}}" data-index="{{index}}" wx:if="{{item.type == 'text'}}">
<image class="del-icon" data-type="{{item.type}}" data-index="{{index}}" src="{{imageRoot}}2b/common/icon_delblue.png?{{imageVersion}}" bindtap="delitem"></image>
<basetextarea class="basetextarea-style" bindinput="textareaChange" data-type="{{item.type}}" maxlength="500" data-index="{{index}}" value="{{item.value}}" placeholder="{{placeholder}}"></basetextarea>
<!-- <basetextarea class="basetextarea-style" bindinput="textareaChange" data-type="{{item.type}}" maxlength="500" data-index="{{index}}" value="{{item.value}}" placeholder="{{placeholder}}"></basetextarea> -->
<textarea bindinput="textareaChange" auto-height="{{true}}" maxlength="500" data-index="{{index}}" value="{{item.value}}" placeholder="{{placeholder}}"></textarea>
<text class="word-count">{{item.value.length}}/500</text>
<view class="exchange-btn" wx:if="{{index != 0}}" data-type="{{item.type}}" data-index="{{index}}" bindtap="exchange" >
<image class="exchange-icon" src="{{imageRoot}}2b/common/exchangeicon.png?{{imageVersion}}"></image>更换顺序
......
......@@ -104,6 +104,16 @@
border: 1px dashed #DADBDC;
border-radius: 8rpx;
}
.sjd-media-editor .media-content-box .media-box-item.media-text-item textarea{
line-height: 1.2;
position: relative;
z-index: 1;
padding: 0;
height: 160rpx;
min-height: 160rpx;
width: 100%;
padding: 20rpx;
}
.sjd-media-editor .media-content-box .media-box-item.media-text-item .word-count {
position: absolute;
font-size: 26rpx;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment