Commit c8415ac4 authored by Mac's avatar Mac

11

parent 382849a2
...@@ -341,7 +341,7 @@ ...@@ -341,7 +341,7 @@
<view style="width: 100%;height: 85px;"></view> <view style="width: 100%;height: 85px;"></view>
</scroll-view> </scroll-view>
<!-- 输入框 --> <!-- 输入框 -->
<view class="comment" v-if="focu==true" :style="{'bottom':inputheight}"> <view class="comment" v-if="focu==true" :style="{'bottom':inputheight,'height':is_bang}">
<input type="text" v-model="commentMsg.Content" :placeholder='placeholder' class="commentinput" :focus='focu' @focus='getfocus' @blur='inputheight=0'> <input type="text" v-model="commentMsg.Content" :placeholder='placeholder' class="commentinput" :focus='focu' @focus='getfocus' @blur='inputheight=0'>
<view class="comment-pl" :style="{background:mainColor}" @click="addComment">评论</view> <view class="comment-pl" :style="{background:mainColor}" @click="addComment">评论</view>
</view> </view>
...@@ -419,10 +419,12 @@ ...@@ -419,10 +419,12 @@
playindex:0, playindex:0,
controls:false,//显示默认控件 controls:false,//显示默认控件
dianindex:0,//点的索引 dianindex:0,//点的索引
inputheight:0,//键盘的高度 inputheight:0,//键盘的高度
is_bang:0
} }
}, },
created() { created() {
this.is_bang = this.$uiConfig.is_bang ? 80 : 52;
this.contentHeight = this.$utils.calcContentHeight(-40) + "px"; this.contentHeight = this.$utils.calcContentHeight(-40) + "px";
this.mainColor = this.$uiConfig.mainColor; this.mainColor = this.$uiConfig.mainColor;
this.secondary = this.$uiConfig.secondary; this.secondary = this.$uiConfig.secondary;
......
...@@ -295,7 +295,7 @@ ...@@ -295,7 +295,7 @@
</view> </view>
</view> </view>
<!-- 输入框 --> <!-- 输入框 -->
<view class="comment" :style="{'bottom':inputheight}" > <view class="comment" :style="{'bottom':inputheight,'height':is_bang}" >
<input type="text" <input type="text"
v-model="commentMsg.Content" v-model="commentMsg.Content"
:placeholder='placeholder' :placeholder='placeholder'
...@@ -355,6 +355,7 @@ ...@@ -355,6 +355,7 @@
showdelete:false,//提示删除的弹框 showdelete:false,//提示删除的弹框
index:0,//上个页面的索引 index:0,//上个页面的索引
inputheight:0,//键盘的高度 inputheight:0,//键盘的高度
is_bang:0,
} }
}, },
onLoad(options) { onLoad(options) {
...@@ -369,6 +370,7 @@ ...@@ -369,6 +370,7 @@
uni.setNavigationBarTitle({ uni.setNavigationBarTitle({
title: '详情', title: '详情',
}); });
this.is_bang = this.$uiConfig.is_bang ? 80 : 52;
this.mainColor = this.$uiConfig.mainColor; this.mainColor = this.$uiConfig.mainColor;
this.secondary = this.$uiConfig.secondary; this.secondary = this.$uiConfig.secondary;
this.pricecolor = this.$uiConfig.pricecolor; this.pricecolor = this.$uiConfig.pricecolor;
......
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