gjy пре 3 година
родитељ
комит
3bf1a0a9a9

+ 7 - 0
pages.json

@@ -86,6 +86,13 @@
 				"navigationBarTitleText": "举报"
 			}
 		},
+		{
+			"path": "pages/grain_pulse/errorcorrection",
+			"style": {
+				"enablePullDownRefresh": true,
+				"navigationBarTitleText": "纠错"
+			}
+		},
 		{
 			"path": "pages/sale/portprice",
 			"style": {

+ 253 - 0
pages/grain_pulse/details.vue

@@ -0,0 +1,253 @@
+<template>
+	<view>
+		<view class='swiper'>
+			<swiper class="screen-swiper header-swiper" ::class="dotStyle?'square-dot':'round-dot'"
+				:indicator-dots="false" :circular="true"  interval="5000" 
+				 :current="status" @change="topSwiperTab">
+				<swiper-item class="swiper-item" v-for="(item,index) in imagelist" :key="index"
+					:class="status==index?'text-white':''" @click="naviageToPage(item.url)">
+					<image :src="item.url"></image>
+					<!-- 	<view style='position:absolute;top:50%;left:50%;transform: translate(-50%,-50%);'>11111</view> -->
+				</swiper-item>
+			</swiper>
+			<view class="dots">
+				<text class='Regular'>{{status+1}} / {{imagelist.length}}</text>
+			</view>
+			<view class='functionality'>
+				<image @click='show=true' class='jubao' src="../../static/img/liangmai/jubao.png" mode=""></image>
+				<image class='collect' :src="iscollect?'../../static/img/liangmai/shoucang1.png':'../../static/img/liangmai/shoucang-2.png'" mode=""></image>
+			</view>
+		</view>
+		<view class='company'>
+			<view style='padding:21px;'>
+				<view style='font-size:24px;' class='Medium'>中天昊元粮库中天昊元粮库</view>
+				<view style='margin-top:3px;' class='flex'>
+					<view class='aptitude'>
+						<image class='aptitudeImage' :src="aptiutudeStatus?'../../static/img/liangmai/bg_no_check.png':'../../static/img/liangmai/bg_check.png'" mode=""></image>
+						<text class='aptitudeText Medium'>资质</text>
+					</view>
+					<view class='Regular' style='font-size:13px;'>主营:<text>烘干塔 粮库 加工厂</text></view>
+				</view>
+				<view style='margin:12.5px 0;' class='flex'>
+					<view class="tag Regular">
+						超大规模
+					</view>
+					<view class="tag Regular">
+						超大规模
+					</view>
+					<view class="tag Regular">
+						超大规模
+					</view>
+				</view>
+				
+				
+			</view>
+			<view class="generalSituation">
+				<view class="title Medium">企业概况</view>
+				<view class="content Regular">
+					黑龙江中天昊元贸易有限公司成立至今,从仅2名员工的人资力量以及从俭的办公条件,现以发展转型为员工70余人,年贸易周转量150余万吨的规模性粮食贸易公司…
+				</view>
+			</view>
+			<view class='contactWay'>
+				<view class="title Medium">联系方式</view>
+				<view class='contactWayContent'>
+					<view class='flex linkman'>
+						<view style='flex:1;' class='title Regular'>联系人</view>
+						<view style='flex:3;'>
+							<view class='Regular linkmanItem' v-for='item in linkmanList'>
+								{{item.name}} <a :href="item.phone"><image class="phone" src="../../static/img/liangmai/dianhau.png" mode=""></image></a>
+							</view>
+						</view>
+					</view>
+					<view class="flex mailbox">
+						<view style='flex:1;' class='title Regular'>邮箱</view>
+						<view class='Regular' style='font-size:14px;flex:3;'>
+							12345678@xx.com
+						</view>
+					</view>
+					<view class="flex fax">
+						<view style='flex:1;' class='title Regular'>传真</view>
+						<view class='Regular' style='font-size:14px;flex:3;'>
+							12345678@xx.com
+						</view>
+					</view>
+					<view class="flex fax">
+						<view style='flex:1;' class='title Regular'>地址</view>
+						<view style='font-size:14px;flex:3;' class='Regular'>
+							12345678@xx.com
+						</view>
+					</view>
+				</view>
+			</view>
+		</view>
+		<u-picker mode="selector" v-model="show"  @confirm='selecttype' :range="selector"></u-picker>
+	</view>
+	
+</template>
+
+<script>
+	export default {
+	    components: {
+	        
+	    },
+		data() {
+			return {
+				imagelist:[
+					{url:'../../static/img/authentication/banklow(2).png'},
+					{url:'../../static/img/authentication/banklow(2).png'},
+					{url:'../../static/img/authentication/banklow(2).png'}
+				],
+				linkmanList:[
+					{name:'廖经理',phone:'18513069273'},
+					{name:'廖经理',phone:'18513069273'},
+					{name:'廖经理',phone:'18513069273'},
+					{name:'廖经理',phone:'18513069273'},
+				],
+				dotStyle: false,
+				status: 0,
+				show:false,
+				selector:['纠错','举报'],
+				aptiutudeStatus:false,
+				iscollect:false
+			}
+		},
+		onLoad(){
+			
+		},
+		methods: {
+			topSwiperTab(e) {
+				var that = this;
+				this.status = Number(e.target.current);
+			},
+			selecttype(e){
+				console.log(e)
+				if(e[0]==1){
+					uni.navigateTo({
+						url:'/pages/grain_pulse/jubao'
+					})
+				}else{
+					uni.navigateTo({
+						url:'/pages/grain_pulse/errorcorrection'
+					})
+				}
+			},
+			jubao(){
+				
+			},
+		}
+	}
+</script>
+
+<style lang='scss' scoped>
+	/* 《--轮播 */
+	.swiper{
+		position:relative;
+		height:281.5px;
+	}
+	.screen-swiper{
+		height:281.5px;
+	}
+	.swiper .dots{
+		position:absolute;
+		bottom:53px;
+		background: rgba(255, 255, 255, 0.4);
+		border-radius: 0px 11px 11px 0px;
+		width: 58.5px;
+		height: 23px;
+		line-height:23px;
+		text-align:center;
+		padding:3px;
+		color:#FFFFFF;
+	}
+	.functionality{
+		position: absolute;
+		right:0;
+		bottom:53px;
+	}
+	.jubao{
+		width:22px;height:19px;
+		margin-right:25px;
+	}
+	.collect{
+		width:22px;height:22px;
+		margin-right:19.5px;
+	}
+	/* 轮播--》 */
+	/*《--公司 */
+	.company{
+		background: linear-gradient(180deg, #FFFFFF 0%, #F7F8FC 100%);
+		height:550px;
+		border-radius:20px;
+		margin-top:-38px;
+		position: relative;
+		z-index: 3;
+	}
+	.aptitude,.aptitudeImage{
+		width: 38px;
+		height:20px;
+	}
+	.aptitude{
+		position:relative;
+		margin-right:5px;
+	}
+	.aptitudeText{
+		color:#8B511E;
+		position:absolute;
+		left:0;
+		width:40px;
+		top:0;
+		text-align:center;
+		width:100%;
+		line-height: 20px;
+		font-size:11px;
+		height:100%;
+	}
+	.tag{
+		background:#F5F6F9;
+		padding:2.5px 6.5px;
+		border-radius:3px;
+		font-size:11px;
+		margin-right:11.5px;
+	}
+	.generalSituation{
+		background:#fff;
+		margin:9px;
+		padding:12px;
+		border-radius:10px;
+		.title{
+			font-size:16px;
+			margin:0 0 9.5px;
+		}
+		.content{
+			font-size:12px;
+			color:#676E80;
+		}
+	}
+	.contactWay{
+		margin:9px;
+		padding:11.5px 13px;
+		background:#fff;
+		border-radius:10px;
+		>.title{
+			font-size:16px;
+			color:#333;
+			margin-bottom:12px;
+		}
+		.contactWayContent{
+			.linkman>.title,.mailbox>.title,.fax>.title,.address>.title{
+				color:#676E80;
+				font-size:14px;
+			}
+			.mailbox,.fax,.address{
+				margin-bottom:10px;
+			}
+			.linkmanItem{
+				margin-bottom:10px;
+			}
+			.phone{
+				width:14px;height:14px;margin-left:6px;
+			}
+		}
+	}
+	/* 公司--》 */
+</style>

+ 115 - 0
pages/grain_pulse/errorcorrection.vue

@@ -0,0 +1,115 @@
+<template>
+	<view>
+		<view class="Regular header-title">我是公司名称我是公司名称</view>
+		<view class='content'>
+			<view class='matter'>
+				<view class="title Regular">纠错事项<text style='color:#FB1E1E;'>*</text></view>
+				<view style='position:relative;'>
+					<textarea class='textarea Regular' maxlength="150" v-model='status' placeholder="请输入举报事项" placeholder-style="color:#AFB3BF;" />
+					<view class='Regular words'>{{status.length}}/150个字</view>
+				</view>
+			</view>
+			<view class="uploading">
+				<view class="title Regular">上传图片</view>
+				<u-upload width='140' height='140' :file-list="fileList" :custom-btn="true"  :show-upload-list="showUploadList" ref="uUpload" :max-size="5 * 1024 * 1024" max-count="6" :action="$uploadUrl">
+					<view slot="addBtn" class="slot-btn" hover-class="slot-btn__hover" hover-stay-time="150">
+						<image style='width:23px;height:23px;margin-top:10px;' src="../../static/img/liangmai/xiangji-2.png" mode=""></image>
+						<view style='color:#AFB3BF;font-size:10px;' class='Medium'>上传图片</view>
+					</view>
+				</u-upload>
+			</view>
+		</view>
+		<view class="commitwrap">
+			<view class='commit' @click='commit'>提交</view>
+		</view>
+		
+	</view>
+</template>
+
+<script>
+	export default {
+	    components: {
+	        
+	    },
+		data() {
+			return {
+				status:'',
+				fileList:[]
+			}
+		},
+		onReady() {
+			// 得到整个组件对象,内部图片列表变量为"lists"
+			this.fileList = this.$refs.uUpload.lists;
+		},
+		onLoad(){
+			
+		},
+		methods: {
+			commit(){
+				console.log(this.fileList)
+			}
+		}
+	}
+</script>
+
+<style lang="scss" scoped>
+	page{
+		background:#F5F6FA;
+	}
+	.header-title{
+		margin:9.5px;
+		padding:16.5px 12.5px;
+		background:#fff;
+		border-radius:10px;
+		height:51px;
+	}
+	.content{
+		padding:12.5px;margin:9px;
+		background:#fff;
+		border-radius:10px;
+	}
+	.matter .title{
+		font-size:14px;
+		margin-bottom:15px;
+	}
+	.uploading .title{
+		font-size:14px;margin-top:13px;margin-bottom:13px;
+	}
+	.textarea{
+		background:#F9F9FA;
+		font-size:12px;
+		padding:6.5px;
+		width:326.5px;height:70px;
+		border-radius:5px;
+	}
+	.words{
+		font-size:10px;color:#AFB3BF;position: absolute;right:5px;
+		bottom:8px;
+	}
+	.slot-btn{
+		width: 70px;
+		height: 70px;
+		border-radius: 4px;
+		border: 2px dashed #AFB3BF;
+		text-align:center;
+	}
+	.commitwrap{
+		position:fixed;bottom:0;left:0;
+		width:100%;
+	}
+	.commit{
+		background:#22C572;
+		margin:10px 24px;
+		text-align:center;
+		height:46px;line-height:46px;
+		color:#fff;
+		font-size:17px;
+		border-radius:20px;
+	}
+	/deep/.u-delete-icon{
+		top:0;
+		right:0;
+		border-radius:0 0 0 15px;
+		background:rgba(17, 26, 52, 0.5) !important;
+	}
+</style>

+ 9 - 0
pages/grain_pulse/friendcircle.vue

@@ -0,0 +1,9 @@
+<template>
+	<view>11</view>
+</template>
+
+<script>
+</script>
+
+<style>
+</style>

+ 3 - 3
pages/grain_pulse/home.vue

@@ -18,8 +18,8 @@
 				</view>
 			</view>
 		</view>
-		<view class="content" @click='friendcircle'>
-			<view class="friendcircle">
+		<view class="content" >
+			<view @click='friendcircle' class="friendcircle">
 				<view class='title flex align-item-center Medium'>
 					<image class='icon-friendcircle' src="../../static/img/liangmai/icon.png" mode=""></image>
 					圈友说
@@ -82,7 +82,7 @@
 				})
 			},
 			todetails(){
-				console.log(111)
+				console.log(1111)
 				uni.navigateTo({
 					url:'/pages/grain_pulse/details'
 				})

+ 115 - 0
pages/grain_pulse/jubao.vue

@@ -0,0 +1,115 @@
+<template>
+	<view>
+		<view class="Regular header-title">我是公司名称我是公司名称</view>
+		<view class='content'>
+			<view class='matter'>
+				<view class="title Regular">举报事项<text style='color:#FB1E1E;'>*</text></view>
+				<view style='position:relative;'>
+					<textarea class='textarea Regular' maxlength="150" v-model='status' placeholder="请输入举报事项" placeholder-style="color:#AFB3BF;" />
+					<view class='Regular words'>{{status.length}}/150个字</view>
+				</view>
+			</view>
+			<view class="uploading">
+				<view class="title Regular">上传图片</view>
+				<u-upload width='140' height='140' :file-list="fileList" :custom-btn="true"  :show-upload-list="showUploadList" ref="uUpload" :max-size="5 * 1024 * 1024" max-count="6" :action="$uploadUrl">
+					<view slot="addBtn" class="slot-btn" hover-class="slot-btn__hover" hover-stay-time="150">
+						<image style='width:23px;height:23px;margin-top:10px;' src="../../static/img/liangmai/xiangji-2.png" mode=""></image>
+						<view style='color:#AFB3BF;font-size:10px;' class='Medium'>上传图片</view>
+					</view>
+				</u-upload>
+			</view>
+		</view>
+		<view class="commitwrap">
+			<view class='commit' @click='commit'>提交</view>
+		</view>
+		
+	</view>
+</template>
+
+<script>
+	export default {
+	    components: {
+	        
+	    },
+		data() {
+			return {
+				status:'',
+				fileList:[]
+			}
+		},
+		onReady() {
+			// 得到整个组件对象,内部图片列表变量为"lists"
+			this.fileList = this.$refs.uUpload.lists;
+		},
+		onLoad(){
+			
+		},
+		methods: {
+			commit(){
+				console.log(this.fileList)
+			}
+		}
+	}
+</script>
+
+<style lang="scss" scoped>
+	page{
+		background:#F5F6FA;
+	}
+	.header-title{
+		margin:9.5px;
+		padding:16.5px 12.5px;
+		background:#fff;
+		border-radius:10px;
+		height:51px;
+	}
+	.content{
+		padding:12.5px;margin:9px;
+		background:#fff;
+		border-radius:10px;
+	}
+	.matter .title{
+		font-size:14px;
+		margin-bottom:15px;
+	}
+	.uploading .title{
+		font-size:14px;margin-top:13px;margin-bottom:13px;
+	}
+	.textarea{
+		background:#F9F9FA;
+		font-size:12px;
+		padding:6.5px;
+		width:326.5px;height:70px;
+		border-radius:5px;
+	}
+	.words{
+		font-size:10px;color:#AFB3BF;position: absolute;right:5px;
+		bottom:8px;
+	}
+	.slot-btn{
+		width: 70px;
+		height: 70px;
+		border-radius: 4px;
+		border: 2px dashed #AFB3BF;
+		text-align:center;
+	}
+	.commitwrap{
+		position:fixed;bottom:0;left:0;
+		width:100%;
+	}
+	.commit{
+		background:#22C572;
+		margin:10px 24px;
+		text-align:center;
+		height:46px;line-height:46px;
+		color:#fff;
+		font-size:17px;
+		border-radius:20px;
+	}
+	/deep/.u-delete-icon{
+		top:0;
+		right:0;
+		border-radius:0 0 0 15px;
+		background:rgba(17, 26, 52, 0.5) !important;
+	}
+</style>

BIN
static/img/liangmai/bg_check.png


BIN
static/img/liangmai/bg_no_check.png


BIN
static/img/liangmai/dianhau.png


BIN
static/img/liangmai/jubao.png


BIN
static/img/liangmai/shoucang-2.png


BIN
static/img/liangmai/shoucang1.png


BIN
static/img/liangmai/xiangji-2.png