|
@@ -39,17 +39,17 @@
|
|
|
</span>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <ul class="pinglunList">
|
|
|
- <li>
|
|
|
+ <ul class="pinglunList" id="pinglunList">
|
|
|
+ <li v-for="(e,idx) in anwserList" :key="idx">
|
|
|
<!-- 头像昵称 -->
|
|
|
<view class="txTime">
|
|
|
<image :src="loadImgSrc('/moren.png')"></image>
|
|
|
<view class="time">
|
|
|
- <p>国家乡村振兴局</p>
|
|
|
- <span>2023-2-27 16:04</span>
|
|
|
+ <p>{{ e.deptName }}</p>
|
|
|
+ <span>{{ e.updateTime }}</span>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <text class="plListcont">用好政策效果评估成果,进一步优化巩固拓展脱贫攻坚成果同乡村振兴有效衔接政策供给,为推动工作提质增效提供有力支撑保障。</text>
|
|
|
+ <text class="plListcont">{{ e.desc }}</text>
|
|
|
<button>采纳答案</button>
|
|
|
</li>
|
|
|
</ul>
|
|
@@ -57,10 +57,15 @@
|
|
|
<view class="fabiaoPl">
|
|
|
<view class="shuRu">
|
|
|
<em class="iconfont icon-bianji"></em>
|
|
|
- <input placeholder="请输入内容,友好回答" />
|
|
|
+ <input placeholder="请输入内容,友好回答" v-model="anwserVal"/>
|
|
|
</view>
|
|
|
- <em class="iconfont icon-shoucang"></em>
|
|
|
- <view class="fasong"><em class="iconfont icon-fasong"></em></view>
|
|
|
+ <em
|
|
|
+ class="iconfont icon-shoucang"
|
|
|
+ @click=""
|
|
|
+ :style="isShoucang"
|
|
|
+ >
|
|
|
+ </em>
|
|
|
+ <view class="fasong" @click="answerFunc"><em class="iconfont icon-fasong"></em></view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
@@ -70,8 +75,26 @@
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
+ anwserVal:'',
|
|
|
+ anwserList:[
|
|
|
+ {
|
|
|
+ deptName:'国家乡村振兴局',
|
|
|
+ updateTime:'2023-2-27 16:04',
|
|
|
+ desc:'用好政策效果评估成果,进一步优化巩固拓展脱贫攻坚成果同乡村振兴有效衔接政策供给,为推动工作提质增效提供有力支撑保障。',
|
|
|
+ }
|
|
|
+ ]
|
|
|
};
|
|
|
- }
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ answerFunc(){
|
|
|
+ this.anwserList.push({
|
|
|
+ deptName:'国家烟草局',
|
|
|
+ updateTime:new Date().getFullYear() + "-" + new Date().getMonth() + "-" + new Date().getDay() + " " + (new Date().getHours() < 10 ? "0" + new Date().getHours() : new Date().getHours()) + ':' + (new Date().getMinutes() < 10 ? "0" + new Date().getMinutes() : new Date().getMinutes()),
|
|
|
+ desc:this.anwserVal,
|
|
|
+ })
|
|
|
+ this.anwserVal = null
|
|
|
+ }
|
|
|
+ }
|
|
|
/**
|
|
|
* 生命周期函数--监听页面加载
|
|
|
*/,
|
|
@@ -104,7 +127,6 @@ export default {
|
|
|
* 用户点击右上角分享
|
|
|
*/
|
|
|
onShareAppMessage() {},
|
|
|
- methods: {}
|
|
|
};
|
|
|
</script>
|
|
|
<style>
|