2 İşlemeler e5fb2f5ee2 ... d91d8f7544

Yazar SHA1 Mesaj Tarih
  Jing-Jiu d91d8f7544 Merge branch 'master' of http://121.40.40.223:3000/zizhong.wang/konggang-city-miniprogram 4 yıl önce
  Jing-Jiu 4811bf348d 对接口 4 yıl önce

+ 35 - 25
pages.json

@@ -1,10 +1,9 @@
 {
-	"pages": [ 
-		{
+	"pages": [{
 			"path": "pages/index/index",
 			"style": {
 				"navigationBarTitleText": "空i企",
-				 "navigationStyle":"custom"  
+				"navigationStyle": "custom"
 			}
 		},
 		{
@@ -12,14 +11,14 @@
 			"style": {
 				"navigationBarTitleText": "园区概况",
 				"navigationBarBackgroundColor": "#02A7F0",
-				"navigationBarTextStyle":"white"
+				"navigationBarTextStyle": "white"
 			}
 		},
 		{
 			"path": "pages/selfCenter/index",
 			"style": {
 				"navigationBarTitleText": "我的",
-				 "navigationStyle":"custom"  
+				"navigationStyle": "custom"
 			}
 		},
 		{
@@ -27,36 +26,39 @@
 			"style": {
 				"navigationBarTitleText": "我的收藏",
 				"navigationBarBackgroundColor": "#02A7F0",
-				"navigationBarTextStyle":"white"
+				"navigationBarTextStyle": "white"
 			}
 		},
 		{
 			"path": "pages/appeal/index",
 			"style": {
-				"navigationBarTitleText": "提建议",	
+				"navigationBarTitleText": "提建议",
 				"navigationBarBackgroundColor": "#02A7F0",
-				"navigationBarTextStyle":"white"
+				"navigationBarTextStyle": "white"
 			}
 		},
 		{
 			"path": "pages/appeal/myAppeal",
 			"style": {
-				"navigationBarTitleText": "我的诉求",				"navigationBarBackgroundColor": "#02A7F0",
-				"navigationBarTextStyle":"white"
+				"navigationBarTitleText": "我的诉求",
+				"navigationBarBackgroundColor": "#02A7F0",
+				"navigationBarTextStyle": "white"
 			}
 		},
 		{
 			"path": "pages/appeal/putAppeal",
 			"style": {
-				"navigationBarTitleText": "提交诉求",				"navigationBarBackgroundColor": "#02A7F0",
-				"navigationBarTextStyle":"white"
+				"navigationBarTitleText": "提交诉求",
+				"navigationBarBackgroundColor": "#02A7F0",
+				"navigationBarTextStyle": "white"
 			}
 		},
 		{
 			"path": "pages/appeal/appeal_detail",
 			"style": {
-				"navigationBarTitleText": "诉求详情",				"navigationBarBackgroundColor": "#02A7F0",
-				"navigationBarTextStyle":"white"
+				"navigationBarTitleText": "诉求详情",
+				"navigationBarBackgroundColor": "#02A7F0",
+				"navigationBarTextStyle": "white"
 			}
 		},
 		{
@@ -72,11 +74,19 @@
 			}
 		},
 		{
+			"path": "pages/policy/search",
+			"style": {
+				"navigationBarTitleText": "政策搜索",
+				"navigationBarBackgroundColor": "#02A7F0",
+				"navigationBarTextStyle": "white"
+			}
+		},
+		{
 			"path": "pages/park/index",
 			"style": {
 				"navigationBarTitleText": "园区专区",
 				"navigationBarBackgroundColor": "#02A7F0",
-				"navigationBarTextStyle":"white"
+				"navigationBarTextStyle": "white"
 			}
 		},
 		{
@@ -84,10 +94,10 @@
 			"style": {
 				"navigationBarTitleText": "地图找园区",
 				"navigationBarBackgroundColor": "#02A7F0",
-				"navigationBarTextStyle":"white"
+				"navigationBarTextStyle": "white"
 			}
 		},
-	
+
 		{
 			"path": "pages/activity/index",
 			"style": {
@@ -105,7 +115,7 @@
 			"style": {
 				"navigationBarTitleText": "供需管理",
 				"navigationBarBackgroundColor": "#02A7F0",
-				"navigationBarTextStyle":"white"
+				"navigationBarTextStyle": "white"
 			}
 		},
 		{
@@ -113,7 +123,7 @@
 			"style": {
 				"navigationBarTitleText": "发布供需",
 				"navigationBarBackgroundColor": "#02A7F0",
-				"navigationBarTextStyle":"white"
+				"navigationBarTextStyle": "white"
 			}
 		},
 		{
@@ -121,7 +131,7 @@
 			"style": {
 				"navigationBarTitleText": "我的供需",
 				"navigationBarBackgroundColor": "#02A7F0",
-				"navigationBarTextStyle":"white"
+				"navigationBarTextStyle": "white"
 			}
 		},
 		{
@@ -129,7 +139,7 @@
 			"style": {
 				"navigationBarTitleText": "供需详情",
 				"navigationBarBackgroundColor": "#02A7F0",
-				"navigationBarTextStyle":"white"
+				"navigationBarTextStyle": "white"
 			}
 		},
 		{
@@ -137,7 +147,7 @@
 			"style": {
 				"navigationBarTitleText": "查企业",
 				"navigationBarBackgroundColor": "#02A7F0",
-				"navigationBarTextStyle":"white"
+				"navigationBarTextStyle": "white"
 			}
 		},
 		{
@@ -145,7 +155,7 @@
 			"style": {
 				"navigationBarTitleText": "企业详情",
 				"navigationBarBackgroundColor": "#02A7F0",
-				"navigationBarTextStyle":"white"
+				"navigationBarTextStyle": "white"
 			}
 		},
 		{
@@ -153,7 +163,7 @@
 			"style": {
 				"navigationBarTitleText": "企业详情",
 				"navigationBarBackgroundColor": "#02A7F0",
-				"navigationBarTextStyle":"white"
+				"navigationBarTextStyle": "white"
 			}
 		},
 		{
@@ -199,4 +209,4 @@
 		"navigationBarBackgroundColor": "#F8F8F8",
 		"backgroundColor": "#F8F8F8"
 	}
-}
+}

+ 1 - 0
pages/enterprise/enterprise_detail.vue

@@ -172,6 +172,7 @@ export default {
 <style lang="scss" scoped>
 .content {
   padding: 4%;
+  font-size: 30rpx;
   .blue{
       color: #02a7f0;
     }

+ 1 - 0
pages/enterprise/product_detail.vue

@@ -36,6 +36,7 @@ export default {
 <style lang="scss">
 .content {
   padding: 4%;
+  font-size: 30rpx;
   .title {
     display: flex;
     align-items: center;

+ 0 - 1
pages/notice/notice_deatil.vue

@@ -46,7 +46,6 @@ export default {
       let postData = {
         id: this.id,
       };
-
       //获取文章
       uni.request({
         url: url,

+ 7 - 37
pages/policy/index.vue

@@ -19,7 +19,7 @@
     </view>
     <view class="input-box">
       <image src="/static/policy/u377.png" alt="" />
-      <input type="text" placeholder="请输入政策关键词搜索" confirm-type="search" @confirm="searchPoliy()" v-model="searchVal"/>
+      <input type="text" placeholder="请输入政策关键词搜索" confirm-type="search" @confirm="searchPoliy()" v-model="searchVal" @focus="search"/>
     </view>
     <view class="policy-box">
       <view class="policy-title"><p>最新政策</p></view>
@@ -64,12 +64,6 @@ export default {
   data() {
     return {
       swiperList: [
-        // {
-        //   img: "/static/swiper/swiper1.jpg",
-        // },
-        // {
-        //   img: "/static/swiper/swiper2.jpg",
-        // },
       ],
       policyList: ["省级政策", "市级政策", "区级政策", "新城政策"],
       active: 0,
@@ -88,6 +82,11 @@ export default {
 	  this.getPolicyList()
   },
   methods: {
+    search() {
+      uni.redirectTo({
+        url: "./search",
+      });
+    },
     enterPolicyDeatil(id) {
       uni.navigateTo({
         url: "/pages/policy/policy_deatil?id=" + id,
@@ -111,35 +110,6 @@ export default {
 				break;			
 		}
 	},
-	searchPoliy(){
-		let md5Sign = md5(
-		  "method=" +
-		    "common" +
-		    "&timestamp=" +
-		    getApp().globalData.globalTimestamp +
-		    "&secret=" +
-		    getApp().globalData.secret
-		);
-		let url = getApp().globalData.shareUrl +"api/api.php" +"?method=common&source=policy&action=list&timestamp=" +getApp().globalData.globalTimestamp +"&sign=" +md5Sign;
-			  uni.request({
-				url: url,
-				method: "POST",
-				header: {
-				  "content-type": "application/x-www-form-urlencoded",
-				},
-				data: {
-				  ss_content_text:this.searchVal   //1.省 2.市 3.区 4.新城
-				},
-				success: (res) => {
-				  console.log(res);
-				  if (res.data.code === 200) {
-				  }
-				},
-				fail: () => {
-				  console.log("连接失败");
-				},
-		});
-	},
 	getPolicySwiper() {
 	  let md5Sign = md5(
 	    "method=" +
@@ -229,7 +199,7 @@ export default {
   .input-box {
     width: 100%;
     height: 100rpx;
-    background-color: #6ea0ec;
+    background-color: #02a7f0;
     display: flex;
     justify-content: center;
     align-items: center;

Dosya farkı çok büyük olduğundan ihmal edildi
+ 308 - 165
pages/policy/policy_deatil.vue


+ 186 - 0
pages/policy/search.vue

@@ -0,0 +1,186 @@
+<template>
+  <view class="content">
+    <view class="input-box">
+      <image src="/static/policy/u377.png" alt="" />
+      <input type="text" placeholder="请输入政策关键词搜索" confirm-type="search" @confirm="searchPoliy()" v-model="searchVal"/>
+    </view>
+    <view class="policy-box">
+      <view class="policy-content">
+        <view
+          class="policy-content-item"
+          v-for="(item, idx) in policyData"
+          :key="idx"
+          @click="enterPolicyDeatil(item.id)"
+        >
+          <view class="policy-content-item-left">
+            <p class="policy-content-item-left-title" style="height: 70rpx;">{{ item.title }}</p>
+            <view class="policy-content-item-left-time">
+              <p class="moment">{{ item.publish_time | globalTime }}</p>
+              <p class="maxMony">{{ item.project_money }}</p>
+              <p class="leftDay">{{ (item.project_end_date | globalTime) || '长期可申报' }}</p>
+            </view>
+          </view>
+          <view class="policy-content-item-img">
+            <image :src="'https://kiq.xazhima.com'+item.pic_url" alt="" />
+          </view>
+        </view>
+      </view>
+    </view>
+  </view>
+</template>
+
+<script>
+import md5 from "@/common/md5.js";
+export default {
+  data() {
+    return {
+      active: 0,
+	    searchVal:'',
+      policyData: [],
+    };
+  },
+  methods: {
+    enterPolicyDeatil(id) {
+      uni.navigateTo({
+        url: "/pages/policy/policy_deatil?id=" + id,
+      });
+    },
+	searchPoliy(){
+		let md5Sign = md5(
+		  "method=" +
+		    "common" +
+		    "&timestamp=" +
+		    getApp().globalData.globalTimestamp +
+		    "&secret=" +
+		    getApp().globalData.secret
+		);
+		let url = getApp().globalData.shareUrl +"api/api.php" +"?method=common&source=policy&action=list&timestamp=" +getApp().globalData.globalTimestamp +"&sign=" +md5Sign;
+			  uni.request({
+				url: url,
+				method: "POST",
+				header: {
+				  "content-type": "application/x-www-form-urlencoded",
+				},
+				data: {
+				  ss_content_text:this.searchVal   //1.省 2.市 3.区 4.新城
+				},
+				success: (res) => {
+          if (res.data.code === 200) {
+            this.policyData = res.data.data.list
+            console.log(res.data.data.list);
+				  }
+				},
+				fail: () => {
+				  console.log("连接失败");
+				},
+		});
+	},
+  },
+};
+</script>
+
+<style lang="scss">
+.content {
+  display: flex;
+  flex-direction: column;
+  align-items: center;
+  justify-content: center;
+  box-sizing: border-box;
+  .input-box {
+    width: 100%;
+    height: 100rpx;
+    background-color: #02a7f0;
+    display: flex;
+    justify-content: center;
+    align-items: center;
+    position: relative;
+    image {
+      position: absolute;
+      left: 72rpx;
+	  width: 30rpx;
+	  height: 30rpx;
+    }
+    input {
+      background-color: #ffffff;
+      width: 90%;
+      height: 70%;
+      border-radius: 50rpx;
+      padding: 3rpx;
+      font-size: 26rpx;
+      padding-left: 80rpx;
+      box-sizing: border-box;
+    }
+  }
+  .policy-box {
+    width: 100%;
+    display: flex;
+    flex-direction: column;
+    .policy-content {
+      width: 100%;
+      display: flex;
+      box-sizing: border-box;
+      flex-direction: column;
+	  margin-top: 10rpx;
+      .policy-content-item {
+        margin: 0 20rpx;
+        display: flex;
+        box-shadow: 0px 4rpx 32rpx rgba(0, 0, 0, 0.1);
+        border-radius: 32rpx;
+        padding-bottom: 10rpx;
+        margin-top: 20rpx;
+        padding: 30rpx;
+        justify-content: space-between;
+        .policy-content-item-left {
+          display: flex;
+          flex-direction: column;
+          width: 70%;
+          .policy-content-item-left-title {
+            text-overflow: -o-ellipsis-lastline;
+            overflow: hidden;
+            text-overflow: ellipsis;
+            display: -webkit-box;
+            -webkit-line-clamp: 2;
+            line-clamp: 2;
+            -webkit-box-orient: vertical;
+            font-size: 25rpx;
+            margin-bottom: 10rpx;
+          }
+          .policy-content-item-left-time {
+            width: 100%;
+            display: flex;
+            align-items: center;
+            .moment {
+              color: #c1c1c1;
+              font-size: 20rpx;
+              margin-right: 20rpx;
+            }
+            .maxMony {
+              font-size: 20rpx;
+              color: #00bfbf;
+              border: 1px solid #00bfbf;
+              padding: 10rpx;
+              margin-right: 20rpx;
+              border-radius: 12rpx;
+            }
+            .leftDay {
+              font-size: 20rpx;
+              background: #f7bbc3;
+              color: #e32579;
+              padding: 10rpx;
+              border: 1px solid #f7bbc3;
+              border-radius: 12rpx;
+            }
+          }
+        }
+        .policy-content-item-img {
+          image {
+            width: 180rpx;
+            height: 120rpx;
+            border-radius: 12rpx;
+          }
+        }
+      }
+    }
+  }
+}
+</style>

BIN
static/attract/u2043.png