浏览代码

Merge remote-tracking branch 'origin/master'

wangzhe 1 年之前
父节点
当前提交
7650112719
共有 3 个文件被更改,包括 38 次插入234 次删除
  1. 0 222
      pages/iconfont/iconfont.css
  2. 6 2
      pages/index/index.vue
  3. 32 10
      pages/wenbaxiangqing/wenbaxiangqing.vue

+ 0 - 222
pages/iconfont/iconfont.css

@@ -1,222 +0,0 @@
-@font-face {
-    font-family: 'iconfont'; /* Project id 3934749 */
-    src: url('http://at.alicdn.com/t/c/font_3934749_vw3yr60jge.woff2?t=1678514567333') format('woff2'),
-        url('http://at.alicdn.com/t/c/font_3934749_vw3yr60jge.woff?t=1678514567333') format('woff'),
-        url('http://at.alicdn.com/t/c/font_3934749_vw3yr60jge.ttf?t=1678514567333') format('truetype');
-}
-
-.iconfont {
-    font-family: 'iconfont' !important;
-    font-size: 16px;
-    font-style: normal;
-    -webkit-font-smoothing: antialiased;
-    -moz-osx-font-smoothing: grayscale;
-}
-
-.icon-zaixiankefu:before {
-    content: '\e617';
-}
-
-.icon-dianpu:before {
-    content: '\e678';
-}
-
-.icon-fenlei:before {
-    content: '\e620';
-}
-
-.icon-tuijianma:before {
-    content: '\e6a7';
-}
-
-.icon-shangpin:before {
-    content: '\e648';
-}
-
-.icon-shangpin2:before {
-    content: '\e622';
-}
-
-.icon-mingxi:before {
-    content: '\e689';
-}
-
-.icon-xinshouyindao:before {
-    content: '\e72f';
-}
-
-.icon-gengduo1:before {
-    content: '\e68b';
-}
-
-.icon-gongxiaoshelogo:before {
-    content: '\e629';
-}
-
-.icon-xinlizixun:before {
-    content: '\e655';
-}
-
-.icon-zhishi:before {
-    content: '\e62f';
-}
-
-.icon-wenzhen:before {
-    content: '\e856';
-}
-
-.icon-jurassic_nav:before {
-    content: '\e69e';
-}
-
-.icon-jurassic_nav1:before {
-    content: '\e69f';
-}
-
-.icon-youdaijiuzhu:before {
-    content: '\e6a0';
-}
-
-.icon-zhibo:before {
-    content: '\e605';
-}
-
-.icon-S_dianhuaxinlizixun:before {
-    content: '\e656';
-}
-
-.icon-zhishi1:before {
-    content: '\e813';
-}
-
-.icon-linshijiuzhu:before {
-    content: '\e653';
-}
-
-.icon-wenzhenguanli:before {
-    content: '\e613';
-}
-
-.icon-bianji:before {
-    content: '\e600';
-}
-
-.icon-shoucang1:before {
-    content: '\e659';
-}
-
-.icon-icon-:before {
-    content: '\e612';
-}
-
-.icon-shoucang2:before {
-    content: '\e603';
-}
-
-.icon-fasong:before {
-    content: '\e604';
-}
-
-.icon-xiangyoujiantou:before {
-    content: '\e641';
-}
-
-.icon-zhishiku1:before {
-    content: '\e650';
-}
-
-.icon-yuandianxiao:before {
-    content: '\e82f';
-}
-
-.icon-iclike:before {
-    content: '\e628';
-}
-
-.icon-falv1:before {
-    content: '\e619';
-}
-
-.icon-pinglun:before {
-    content: '\e63a';
-}
-
-.icon-licaiwenda:before {
-    content: '\e652';
-}
-
-.icon-lvyou:before {
-    content: '\e601';
-}
-
-.icon-jifen:before {
-    content: '\e897';
-}
-
-.icon--fuwu:before {
-    content: '\e8aa';
-}
-
-.icon-zhiku:before {
-    content: '\e6d8';
-}
-
-.icon-chakan:before {
-    content: '\e642';
-}
-
-.icon-shoucang:before {
-    content: '\e633';
-}
-
-.icon-zhishiku:before {
-    content: '\e621';
-}
-
-.icon-gonggao:before {
-    content: '\e60f';
-}
-
-.icon-jiuzhen:before {
-    content: '\ea4b';
-}
-
-.icon-jiuzhen1:before {
-    content: '\e610';
-}
-
-.icon-jiuye:before {
-    content: '\100dd';
-}
-
-.icon-sannongzhengce:before {
-    content: '\100de';
-}
-
-.icon-sannongzhengce1:before {
-    content: '\100e8';
-}
-
-.icon-gengduo:before {
-    content: '\e73a';
-}
-
-.icon-shangcheng11:before {
-    content: '\e67b';
-}
-
-.icon-hangqing:before {
-    content: '\e66c';
-}
-
-.icon-banshidating:before {
-    content: '\e602';
-}
-
-.icon-banshidating1:before {
-    content: '\e606';
-}
-
-.icon-wenhaofill:before {
-    content: '\e72c';
-}

+ 6 - 2
pages/index/index.vue

@@ -12,7 +12,7 @@
                     <span>问吧</span>
                 </li>
                 <li>
-                    <view class="hq"><em class="iconfont icon-hangqing"></em></view>
+                    <view class="hq" @tap="goHangQing"><em class="iconfont icon-hangqing"></em></view>
                     <span>行情</span>
                 </li>
                 <li>
@@ -332,7 +332,11 @@ export default {
                 url: '/pages/wenba/wenba'
             });
         },
-
+      goHangQing() {
+        uni.navigateTo({
+          url: '/pages/hangqing/hangqing'
+        });
+      },
         goShangCheng() {
             uni.navigateTo({
                 url: '/pages/shangcheng/shangcheng'

+ 32 - 10
pages/wenbaxiangqing/wenbaxiangqing.vue

@@ -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>