Explorar o código

Merge remote-tracking branch 'origin/master'

wangzhe hai 1 ano
pai
achega
69644b4810

+ 2 - 3
pages/asking/asking.vue

@@ -4,7 +4,7 @@
         <!-- 问答类别 -->
 		<ul class="wendaFL" v-for="(e,idx) in typeList" :key="idx" style="width: 48%;">
 		    <li class="sanNong" style="width: 100%;">
-		        <image :src="loadImgSrcLocalhost('e.path')" class="lbBj" @tap="goSanNong"></image>
+		        <image :src="loadImgSrcLocalhost(e.path)" class="lbBj" @tap="goSanNong"></image>
 		        <h2>{{obj.type}}</h2>
 		        <span>1566</span>
 		    </li>
@@ -13,7 +13,7 @@
 </template>
 
 <script>
-import upload from '../../components/upload/index.vue'
+import upload from '@/components/upload/index.vue'
 import {getTypeList} from '@/api/asking/asking.js'
 export default {
 	components: {
@@ -48,7 +48,6 @@ export default {
          //获取类型列表
         getTypeList(){
             getTypeList(this.queryParams).then(res =>{
-				debugger
                 this.typeList = res.rows
             })
         },

+ 212 - 42
pages/handleAffairs/mattercontent/mattercontent.vue

@@ -1,74 +1,244 @@
-<template>
 
+<template>
 	<view>
-		<view class="rnwdList">
-			<ul >
-				<li >
-					<h3>{{matterlist.title }}</h3>
-				    <p>{{ matterlist.content }}</p>
-					<image class="uni-header-image" :src="'http://127.0.0.1:8080'+matterlist.picture"></image>
-					   <button @click="toggleFavorite">{{ isFavorite ? '❤️' : '🤍' }}</button>
-				</li>
-				</ul>
+		<!-- 心理咨询详情 -->
+		<view class="container">
+			<h1 class="title">{{matterlist.title}}</h1>
+            <view class="fengexian"></view>
+			<view class="wenzhangCont article">
+				<view v-html="matterlist.content"></view>
+				<image class="uni-header-image" :src="loadImgSrcLocalhost(matterlist.picture)"></image>
+				<button class="likeBtn" @click="toggleFavorite">{{ isFavorite ? '❤️' : '🤍' }}</button>
+			</view>
 		</view>
 	</view>
-
-
 </template>
 
+
 <script>
 	import {
-		 getDept, scadd, delDept, getsc
+		getDept, scadd, delDept, getsc
 	} from '@/api/handleAffairs/matter.js';
 
 	export default {
 		data() {
 			return {
 				matterlist:[],
-				 isFavorite: false,
+				isFavorite: false,
 			};
 		},
 		created() {
-		    this.getList();
+			this.getList();
 
 		},
 
 		methods: {
-		      getList(){
-		        const _that = this;
-		        const id = uni.getStorageSync('id');
+			getList(){
+				const _that = this;
+				const id = uni.getStorageSync('id');
 
-		        getDept(id).then(res =>{
-		          _that.matterlist = res.data
+				getDept(id).then(res =>{
+					_that.matterlist = res.data
 					this.checkFavorite();
-		        })
-		      },
-		      toggleFavorite() {
-		        const userId = getApp().globalData.userId;
-		        if (this.isFavorite) {
-		          delDept(this.matterlist.id).then(() => {
-		            this.isFavorite = false;
-		          });
-		        } else {
+				})
+			},
+			toggleFavorite() {
+				const userId = getApp().globalData.userId;
+				if (this.isFavorite) {
+					delDept(this.matterlist.id).then(() => {
+						this.isFavorite = false;
+					});
+				} else {
 					const userId = getApp().globalData.userId
 					const matterId = this.matterlist.id
-		         scadd({ matterId:this.matterlist.id , userId }).then(() => {
-		             this.isFavorite = true;
-		         });
-		        }
-		      },
+					scadd({ matterId:this.matterlist.id , userId }).then(() => {
+						this.isFavorite = true;
+					});
+				}
+			},
 
-		   checkFavorite() {
-		   	const userId = getApp().globalData.userId
-		   	const matterId = this.matterlist.id
-		     getsc({ matterId , userId }).then(res => {
-		       this.isFavorite = res.data;
-		     });
-		   },
-	},
+			checkFavorite() {
+				const userId = getApp().globalData.userId
+				const matterId = this.matterlist.id
+				getsc({ matterId , userId }).then(res => {
+					this.isFavorite = res.data;
+				});
+			},
+		},
 	}
 </script>
 <style scoped>
+	/* pages/wenbaxiangqing.wxss */
+	.title {
+		font-size: 44rpx;
+		text-align: center;
+		line-height: 70rpx;
+		color: #333;
+		margin: 30rpx 0;
+	}
+	.wenzhangLy {
+		width: 100%;
+		display: flex;
+		justify-content: space-between;
+		border-bottom: solid 2rpx #e8e8e8;
+		padding: 0 0 14rpx 0;
+	}
+	.txTime {
+		display: flex;
+		flex-direction: row;
+	}
+	.txTime image {
+		width: 80rpx;
+		height: 80rpx;
+	}
+	.time {
+		display: flex;
+		flex-direction: column;
+		padding: 10rpx 0 0 8px;
+	}
+	.time p {
+		font-size: 28rpx;
+		color: #9c9c9c;
+	}
+	.time span {
+		font-size: 24rpx;
+		color: #c4c4c4;
+	}
 
+	.jf {
+		color: #07c160;
+		line-height: 80rpx;
+		font-size: 24rpx;
+	}
+	.icon-jifen {
+		font-size: 28rpx;
+		color: #07c160;
+		margin: 0 0 0 6rpx;
+	}
+	.ck {
+		color: #c4c4c4;
+		font-size: 28rpx;
+	}
+	.icon-pinglun,
+	.icon-chakan,
+	.ck .icon-shoucang {
+		font-size: 28rpx;
+		margin: 0 6rpx 0 20rpx;
+		color: #c4c4c4;
+		line-height: 0;
+	}
+	.wenzhangCont {
+		font-size: 34rpx;
+		margin: 30rpx 0;
+	}
+	.wenzhangCont image {
+		width: 100%;
+		height: 320rpx;
+		margin: 20rpx auto;
+	}
+	.pinglunTj {
+		width: 100%;
+		display: flex;
+		justify-content: space-between;
+		margin: 30rpx 0;
+	}
+	.pinglunTitle {
+		font-size: 34rpx;
+		color: #2e2e2e;
+		font-weight: 600;
+	}
+	.pinglunTitle em {
+		font-size: 34rpx;
+		color: #9b9b9b;
+		font-weight: normal;
+		margin: 0 0 0 10rpx;
+	}
+	.pinglunList {
+		width: 100%;
+		padding: 0 0 120rpx 0;
+	}
+	.pinglunList li {
+		margin: 20rpx 0;
+		border-bottom: solid 2rpx #e8e8e8;
+		padding: 0 0 20rpx 0;
+		display: flex;
+		flex-direction: column;
+	}
+	.plListcont {
+		font-size: 30rpx;
+		color: #696868;
+		margin: 20rpx 0;
+	}
+	.pinglunList li button {
+		width: 80%;
+		border-radius: 10rpx;
+		background: #07c160;
+		color: #fff;
+		font-size: 28rpx;
+		font-weight: normal;
+		margin: 16rpx auto;
+	}
+	.fabiaoPl {
+		width: 100%;
+		display: flex;
+		justify-content: space-between;
+		position: fixed;
+		left: 0;
+		bottom: 0;
+		height: 112rpx;
+		background: #e8e8e8;
+		box-shadow: 0rpx 0rpx 16rpx #999;
+	}
+	.shuRu {
+		width: 72%;
+		display: flex;
+		flex-direction: row;
+		height: 76rpx;
+		background: #e0e0e0;
+		border-radius: 60rpx;
+		margin: 20rpx 0 0 20rpx;
+	}
+	.shuRu input {
+		line-height: 38px;
+		height: 76rpx;
+		font-size: 30rpx;
+		width: 83%;
+	}
+	.icon-bianji {
+		font-size: 38rpx;
+		line-height: 76rpx;
+		margin: 0 10rpx 0 20rpx;
+		color: #828181;
+	}
+	.icon-shoucang {
+		font-size: 50rpx;
+		line-height: 112rpx;
+		color: #828181;
+	}
+	.fasong {
+		width: 58rpx;
+		height: 58rpx;
+		border-radius: 50rpx;
+		background: #07c160;
+		margin: 26rpx 20rpx 0 10rpx;
+		text-align: center;
+		line-height: 58rpx;
+	}
+	.icon-fasong {
+		font-size: 40rpx;
+		color: #fff;
+	}
+	.likeBtn{
+		width: 15vw;
+		height: 9vh;
+		border-radius: 50%;
+		background-color: #007AFF;
+		position: absolute;
+		right: 3%;
+		bottom: 3%;
+		font-size: 218%;
+		text-indent: -16%;
+		line-height: 190%;
+	}
 </style>
 

+ 1 - 1
pages/index/index.vue

@@ -387,7 +387,7 @@
 				let id = e.id || ''
 				let type = 10
 				uni.navigateTo({
-					url: `../information/informationDetail/informationDetail?id=${id}&type=${type}`
+					url: `/pages/information/informationDetail/informationDetail?id=${id}&type=${type}`
 				});
 			},
 			//封面与轮播图

+ 2 - 2
pages/information/fuwu/fuwu.vue

@@ -186,13 +186,13 @@ export default {
 			let id = e.id || ''
 			let type = 12
 		    uni.navigateTo({
-		        url: `../informationDetail/informationDetail?id=${id}&type=${type}`
+		        url: `/pages/information/informationDetail/informationDetail?id=${id}&type=${type}`
 		    });
 		},
 		// 新增资讯
 		addInfomation(){
 			uni.navigateTo({
-			    url: `../informationAdd/informationAdd`
+			    url: `/pages/information/informationAdd/informationAdd`
 			});
 		}
 	},

+ 2 - 2
pages/information/toGovernmentList/toGovernmentList.vue

@@ -181,13 +181,13 @@ export default {
 			let id = e.id || ''
 			let type = 10
 		    uni.navigateTo({
-		        url: `../informationDetail/informationDetail?id=${id}&type=${type}`
+		        url: `/pages/information/informationDetail/informationDetail?id=${id}&type=${type}`
 		    });
 		},
 		// 新增资讯
 		addInfomation(){
 			uni.navigateTo({
-			    url: `../informationAdd/informationAdd`
+			    url: `/pages/information/informationAdd/informationAdd`
 			});
 		}
 	},

+ 2 - 2
pages/information/toLegal/toLegal.vue

@@ -183,13 +183,13 @@ export default {
 			let id = e.id || ''
 			let type = 11
 		    uni.navigateTo({
-		        url: `../informationDetail/informationDetail?id=${id}&type=${type}`
+		        url: `/pages/information/informationDetail/informationDetail?id=${id}&type=${type}`
 		    });
 		},
 		// 新增资讯
 		addInfomation(){
 			uni.navigateTo({
-			    url: `../informationAdd/informationAdd`
+			    url: `/pages/information/informationAdd/informationAdd`
 			});
 		}
 	},

+ 21 - 4
pages/me/nameAuthentication/nameAuthentication.vue

@@ -2,7 +2,7 @@
     <uni-section title="实名认证" type="line">
         <view class="example">
             <!-- 自定义表单校验 -->
-            <uni-forms ref="customForm" :rules="customRules" :modelValue="form">
+            <uni-forms ref="customForm" :rules="customRules" :modelValue="form" class="form">
                 <uni-forms-item label="姓名" required name="name">
                     <uni-easyinput v-model="form.name" placeholder="请输入姓名" maxlength="20"/>
                 </uni-forms-item>
@@ -16,8 +16,9 @@
 					<image :src="loadImgSrc(item)" v-for="(item, index1) in imageList" :key="index1">
 					</image>
 				</uni-forms-item>
-                <uni-forms-item label="身份证正反面" required name="path" v-if="form.id == null">
+                <uni-forms-item label="身份证正反面" required name="path" v-if="form.id == null" label-width="320">
                     <upload :imgArr="imageList" name="path" v-model="form.path" :fileSize="1" :limit="2"
+							style="position: relative;left: -5%;top: -10%;"
                             @updateImg="updateImg"></upload>
                 </uni-forms-item>
             </uni-forms>
@@ -27,7 +28,7 @@
 </template>
 
 <script>
-    import upload from '../../../components/upload/index.vue'
+    import upload from '@/components/upload/index.vue'
     import {appletAdd,getUserInfo} from '@/api/me/nameAuthentication.js'
 
     export default {
@@ -123,5 +124,21 @@
     };
 </script>
 
-<style>
+<style scoped>
+	.form{
+		width: 100%;
+		padding-left: 3%;
+	}
+	::v-deep .item--uni-forms-item__label{
+		width: 19% !important;
+	}
+	::v-deep .uni-section-content{
+		padding: 0 2%;
+	}
+	::v-deep .uni-forms .uni-forms-item__label:nth-child(4){
+		width: 26% !important;
+	}
+	/* ::v-deep .easyinput--uni-easyinput{
+		margin-left: 10%;
+	} */
 </style>

+ 16 - 5
pages/me/officialAuthentication/officialAuthentication.vue

@@ -2,9 +2,9 @@
     <uni-section title="官方认证" type="line">
         <view class="example">
             <!-- 自定义表单校验 -->
-            <uni-forms ref="customForm" :rules="customRules" :modelValue="form">
+            <uni-forms ref="customForm" :rules="customRules" :modelValue="form" class="form">
                 <uni-forms-item label="企业名称" required name="enterpriseName">
-                    <uni-easyinput v-model="form.enterpriseName" placeholder="请输入企业名称" maxlength="20"/>
+                    <uni-easyinput v-model="form.enterpriseName" placeholder="请输入企业名称" maxlength="20" style="width: 40%;"/>
                 </uni-forms-item>
                 <uni-forms-item label="法人姓名" required name="legalName">
                     <uni-easyinput v-model="form.legalName" placeholder="请输入法人姓名" maxlength="20"/>
@@ -13,11 +13,12 @@
                     <uni-easyinput v-model="form.phone" placeholder="请输入联系电话" maxlength="13"/>
                 </uni-forms-item>
 				<uni-forms-item label="证照信息" required class="onePic" v-if="form.id != null">
-					<image :src="loadImgSrc(item)" v-for="(item, index1) in imageList" :key="index1">
+					<image :src="loadImgSrcLocalhost(item)" v-for="(item, index1) in imageList" :key="index1">
 					</image>
 				</uni-forms-item>
                 <uni-forms-item label="证照信息" required name="path" v-if="form.id == null">
                     <upload :imgArr="imageList" name="path" v-model="form.path" :fileSize="1" :limit="2"
+					style="position: relative;left: -5%;top: -10%;"
                             @updateImg="updateImg"></upload>
                 </uni-forms-item>
             </uni-forms>
@@ -27,7 +28,7 @@
 </template>
 
 <script>
-    import upload from '../../../components/upload/index.vue'
+    import upload from '@/components/upload/index.vue'
     import {appletAdd,getUserInfo} from '@/api/me/officialAuthentication.js'
 
     export default {
@@ -119,5 +120,15 @@
     };
 </script>
 
-<style>
+<style scoped>
+	.form{
+		width: 100%;
+		padding-left: 3%;
+	}
+	::v-deep .item--uni-forms-item__label{
+		width: 19% !important;
+	}
+	::v-deep .uni-section-content{
+		padding: 0 2%;
+	}
 </style>