Przeglądaj źródła

1、海报管理 2、订单页保险公司检索 3、添加国任特约

@dongkboy 1 rok temu
rodzic
commit
e1ce19ac32

+ 3 - 5
App.vue

@@ -16,8 +16,7 @@
 			} else {
 
 				var url = window.location.href;
-				if ((url.indexOf("pages/carInsure/quoteDetail1") > 0) || (url.indexOf("pages/carInsure/quoteDetail") >
-						0) || (url.indexOf("pages/carInsure/payVerify") >
+				if ((url.indexOf("pages/carInsure/payVerify") >
 						0) || (url.indexOf("pages/login/mimi") > 0) || (url.indexOf("pages/login/xieyi") > 0) || (url
 						.indexOf("pages/carInsure1/yonganCode") > 0)) {
 					uni.navigateTo({
@@ -30,7 +29,7 @@
 				socket.init();
 			} else {
 				var url = window.location.href;
-				if ((url.indexOf("pages/carInsure/quoteDetail") > 0) || (url.indexOf("pages/carInsure/payVerify") >
+				if ((url.indexOf("pages/carInsure/payVerify") >
 						0) || (url.indexOf("pages/login/mimi") > 0) || (url.indexOf("pages/login/xieyi") > 0) || (url
 						.indexOf("pages/carInsure1/yonganCode") > 0)) {
 					uni.navigateTo({
@@ -45,8 +44,7 @@
 			this.launch()
 			if (store.state.token) {} else {
 				var url = window.location.href;
-				if ((url.indexOf("pages/carInsure/quoteDetail1") > 0) || (url.indexOf("pages/carInsure/quoteDetail") >
-						0) || (url.indexOf("pages/carInsure/payVerify") >
+				if ((url.indexOf("pages/carInsure/payVerify") >
 						0) || (url.indexOf("pages/login/mimi") > 0) || (url.indexOf("pages/login/xieyi") > 0) || (url
 						.indexOf("pages/carInsure1/yonganCode") > 0)) {
 					uni.navigateTo({

+ 3 - 3
config/baseUrl.js

@@ -5,7 +5,7 @@ if (process.env.NODE_ENV === 'development') {
 	// 开发环境
 	// baseUrl = "http://39.98.239.48/web-api"; //测试
 	// h5BaseUrl = "http://39.98.239.48/h5";
-	// baseUrl = "http://192.168.0.253:8080";
+	// baseUrl = "http://192.168.0.253:8082";
 	// baseUrl = "http://192.168.0.115:8080"; //凯森
 	baseUrl = "http://sxzgkj.baoxianzhanggui.com/web-api"; //正式
 	h5BaseUrl = "http://sxzgkj.baoxianzhanggui.com/h5";
@@ -14,8 +14,8 @@ if (process.env.NODE_ENV === 'development') {
 	// 生产环境
 	// baseUrl = "http://39.98.239.48/web-api"; //测试
 	// h5BaseUrl = "http://39.98.239.48/h5";
-	baseUrl = "http://192.168.0.115:8080"; //凯森
-	// baseUrl = "http://sxzgkj.baoxianzhanggui.com/web-api"; //正式
+	// baseUrl = "http://192.168.0.115:8080"; //凯森
+	baseUrl = "http://sxzgkj.baoxianzhanggui.com/web-api"; //正式
 	h5BaseUrl = "http://sxzgkj.baoxianzhanggui.com/h5";
 	socketUrl = "";
 }

+ 7 - 6
config/login.js

@@ -174,6 +174,7 @@ async function getLoginUserInfo(token, userId) {
 			Authorization: Author,
 		}
 	}); //用户信息
+
 	store.commit('setUserModules', {
 		title: 'userInfo',
 		data: {
@@ -190,12 +191,12 @@ async function getLoginUserInfo(token, userId) {
 		title: 'token',
 		data: Author
 	})
-	if (userInfoRes.data.name == '游客') {
-		uni.reLaunch({
-			url: "/pages/user/certify"
-		})
-		return false;
-	}
+	// if (userInfoRes.data.name == '游客') {
+	// 	uni.reLaunch({
+	// 		url: "/pages/user/certify"
+	// 	})
+	// 	return false;
+	// }
 	// if (userInfoRes.data.sysUser.usertype == 'A') {
 	// 	// 清除状态
 	// 	uni.showToast({

+ 2 - 2
manifest.json

@@ -7,8 +7,8 @@
 		"sizes": "分辨率,192x192",
 		"src": "图片路径"
 	}],
-	"versionName": "1.2.0",
-	"versionCode": 120,
+	"versionName": "1.2.3",
+	"versionCode": 123,
 	"app-plus": {
 		"error": {
 			"url": "hybrid/html/error.html"

+ 24 - 31
pages.json

@@ -267,16 +267,16 @@
 				}
 			}
 		},
-		// {
-		// 	"path": "pages/tools/customer/customer",
-		// 	"style": {
-		// 		"navigationBarTitleText": "客户管理",
-		// 		"app-plus": {
-		// 			"scrollIndicator": "none",
-		// 			"bounce": "none"
-		// 		}
-		// 	}
-		// }, 
+		{
+			"path": "pages/tools/customer/customer",
+			"style": {
+				"navigationBarTitleText": "客户管理",
+				"app-plus": {
+					"scrollIndicator": "none",
+					"bounce": "none"
+				}
+			}
+		},
 		{
 			"path": "pages/tools/customer/custormerDetail",
 			"style": {
@@ -315,17 +315,17 @@
 				}
 			}
 		},
-		// {
-		// 	"path": "pages/tools/policy",
-		// 	"style": {
-		// 		"navigationBarTitleText": "我的保单",
-		// 		"enablePullDownRefresh": false,
-		// 		"app-plus": {
-		// 			"scrollIndicator": "none",
-		// 			"bounce": "none"
-		// 		}
-		// 	}
-		// }, 
+		{
+			"path": "pages/tools/policy",
+			"style": {
+				"navigationBarTitleText": "我的保单",
+				"enablePullDownRefresh": false,
+				"app-plus": {
+					"scrollIndicator": "none",
+					"bounce": "none"
+				}
+			}
+		},
 		{
 			"path": "pages/tools/coupon/coupon",
 			"style": {
@@ -418,9 +418,9 @@
 					"scrollIndicator": "none",
 					"bounce": "none",
 					"titleNView": {
-						// "buttons": [{
-						// 	"type": "share"
-						// }]
+						"buttons": [{
+							"type": "share"
+						}]
 					}
 				}
 			}
@@ -720,13 +720,6 @@
 		// 	}
 		// }, 
 		{
-			"path": "pages/user/certify",
-			"style": {
-				"navigationBarTitleText": "绑定手机号",
-				"enablePullDownRefresh": false
-			}
-
-		}, {
 			"path": "pages/realname/realname",
 			"style": {
 				"navigationBarTitleText": "实名认证",

+ 2 - 3
pages/carInsure1/quote1.vue

@@ -522,10 +522,10 @@
 		<u-modal v-model="guoRencontributingshow" title="国任特约选择" :title-style="{fontWeight: 'bold'}"
 			:scroll-height="{height: '300px'}">
 			<view class="slot-content">
-				<u-checkbox-group @change="guoRencontributingChange">
+				<u-checkbox-group @change="guoRencontributingChange" style="display: contents;">
 					<u-checkbox v-model="item.checked" active-color="rgb(255, 153, 0)"
 						v-for="(item, index) in guoRenSpecialAgreementData" :key="index"
-						:name="item.clauseCode">{{item.clauses}}</u-checkbox>
+						:name="item.clauseCode">{{item.clauseCode}}{{item.clauses}}</u-checkbox>
 				</u-checkbox-group>
 			</view>
 		</u-modal>
@@ -1189,7 +1189,6 @@
 			}
 		},
 		async onLoad() {
-
 			const eventChannel = this.getOpenerEventChannel()
 			// 监听acceptData事件,获取上一页面通过eventChannel传送到当前页面的数据
 			eventChannel.on('acceptData', async (data) => {

+ 29 - 12
pages/carInsure1/quoteDetail1.vue

@@ -42,7 +42,7 @@
 			<view class="quotePlan">
 				<view class="header d-flex a-center j-sb">
 					<view class="title">报价方案</view>
-					<template v-if="((orderstatus == 0) ||(orderstatus == 3)) && (!!token)">
+					<template v-if="routepage!='pages/orders/subOrders' && routepage!='pages/orders/quoteHistory'">
 						<view class="adjustPlan" @tap="toInsureItems">调整方案</view>
 					</template>
 				</view>
@@ -1047,14 +1047,30 @@
 		},
 		// 监听导航栏的按钮
 		onNavigationBarButtonTap(e) {
-			if (e.index == 0) {
-				this.$refs.showshare.open()
-			}
+			uni.share({
+				provider: "weixin",
+				scene: "WXSceneSession",
+				type: 0,
+				href: this.$base.h5BaseUrl +
+					"/#/pages/carInsure1/quoteDetail1?companyId=" + this.companyId,
+				title: "掌柜" + this.name + "报价单",
+				summary: this.carInfo.licenseNo +
+					"-车险报价已出炉,请立即查看!",
+				imageUrl: "/static/bigLogo.png",
+				success: function(res) {
+
+				},
+				fail: function(t) {
+
+				}
+			})
 		},
 		async onLoad(params) {
 			let pages = getCurrentPages(); // 当前页面路由
-			let beforePage = pages[pages.length - 2].route; // 上一个页面路由
-			this.routepage = beforePage;
+			if (pages.length > 1) {
+				let beforePage = pages[pages.length - 2].route; // 上一个页面路由
+				this.routepage = beforePage;
+			}
 			if (!this.token) {
 				document.getElementsByTagName('uni-page-head')[0].style.display = 'none'
 			}
@@ -1519,12 +1535,13 @@
 				}
 				if (this.orderInfo.crossInsurance.length > 0) {
 					this.orderInfo.crossInsurance.map(async ele => {
-						let res = await this.$http.post('/order/huaTaiApi/getPolicyPrint', {
-							companyId: this.companyId,
-							policyNumber: ele.policyNumber,
-							riskCode: "0513",
-							type: '2', //2:保单
-						});
+						let res = await this.$http.post(
+							'/order/huaTaiApi/getPolicyPrint', {
+								companyId: this.companyId,
+								policyNumber: ele.policyNumber,
+								riskCode: "0513",
+								type: '2', //2:保单
+							});
 						if (res.code == '200') {
 							this.policyList.push({
 								fileTitle: "驾意险保单",

+ 0 - 1
pages/login/login.vue

@@ -405,7 +405,6 @@
 								captcha: this.imgcode.toLowerCase()
 							}
 						}).then(res => {
-							console.log(res)
 							socket.init();
 							return;
 						})

+ 24 - 2
pages/orders/orders.vue

@@ -20,6 +20,16 @@
 								</view>
 							</view>
 						</view>
+						<view class="dis f-c">
+							<text class="title" style="margin:0 10px;">保险公司</text>
+							<view class="dis  a-c f-wrap" style="margin: 10px;">
+								<view class="status-data" :class="item.id==pageRequest.companyId? 'active':''"
+									v-for="(item,index) in esmInsCompanyList" @tap="companystatusclick(item.id)"
+									:key="index">
+									{{item.namesimple}}
+								</view>
+							</view>
+						</view>
 						<view class="dis f-c">
 							<text class="title" style="margin:0 10px;">订单日期</text>
 							<view class="dis  a-c f-wrap" style="margin: 10px;">
@@ -128,6 +138,7 @@
 				},
 				/* 时间筛选相关 */
 				pageRequest: { //查询的默认条件
+					companyId: "",
 					orderNo: "",
 					frameNo: "",
 					insuredName: "",
@@ -216,6 +227,7 @@
 				queryFrameNo: "",
 				insureMore: false,
 				insureMoreIndex: null,
+				esmInsCompanyList: [],
 
 			}
 		},
@@ -244,9 +256,9 @@
 				uni.removeStorageSync('historyInfo');
 			}
 			this.getOrdersList()
+			this.esmInsCompany()
 		},
 		onLoad(e) {
-			console.log(e)
 			this.pageRequest.userId = this.userInfo.sysUser.id;
 			this.pageRequest.deptId = this.userInfo.sysUser.deptId;
 			this.getOrdersList()
@@ -259,6 +271,12 @@
 					this.pageResult = res.data.content;
 				}
 			},
+			async esmInsCompany() {
+				let commpanykad = await this.$http.get('/insurance/order/getAgreementInsCompany');
+				if (commpanykad.code == '200') {
+					this.esmInsCompanyList = commpanykad.data;
+				}
+			},
 			//展开
 			selectMore(val) {
 				this.insureMore = true;
@@ -281,6 +299,10 @@
 			statusclick(e) {
 				this.pageRequest.orderStatus = e;
 			},
+			//保险公司筛选
+			companystatusclick(e) {
+				this.pageRequest.companyId = e;
+			},
 			startShowmethod() {
 				this.startShow = true;
 				this.timespecifications = null;
@@ -479,7 +501,7 @@
 	.status-data {
 		padding: 4px 10px;
 		box-sizing: border-box;
-		margin: 0 10px 10px 0;
+		margin: 0 7px 7px 0;
 		font-size: 15px;
 		border: 1px solid #eee;
 		border-radius: 5px;

+ 24 - 14
pages/set/safe.vue

@@ -48,25 +48,35 @@
 		},
 		async onLoad() {
 			this.list[1].text = this.userInfo.sysUser.mobile;
-			let res = await this.$http.get("/user/isBindWechat")
-			if (res.code == '200') {
-				this.list[2].text = "已绑定"
-				this.status = true;
-				this.list[2].text
-			} else {
-				this.status = false;
-			}
+			this.bindingStatus();
+
 		},
 		computed: {
 			...mapState(["userInfo"])
 		},
 		methods: {
-			weixinMsg(mag) {
-				uni.showToast({
-					title: mag.msg,
-					icon: "none"
-				});
-
+			async bindingStatus() {
+				let res = await this.$http.get("/user/isBindWechat")
+				if (res.code == '200') {
+					this.list[2].text = "已绑定"
+					this.status = true;
+				} else {
+					this.status = false;
+				}
+			},
+			weixinMsg(res) {
+				if (res.code == '200') {
+					uni.showToast({
+						title: res.msg,
+						icon: "success"
+					});
+					this.bindingStatus();
+				} else {
+					uni.showToast({
+						title: res.msg,
+						icon: "none"
+					});
+				}
 			},
 		}
 	}

+ 45 - 26
pages/tools/calculator/calculator.vue

@@ -3,10 +3,12 @@
 		<!-- 公共组件-每个页面必须引入 -->
 		<public-module></public-module>
 		<view style="margin-bottom: 20upx;">
-			<view class="title d-flex a-center j-sb"><view>原价(元)</view></view>
+			<view class="title d-flex a-center j-sb">
+				<view>原价(元)</view>
+			</view>
 			<view class="content d-flex a-center j-center">
 				<view class="d-flex a-center j-center">交强险</view>
-				<input class="flex-1 uni-input" type="digit" v-model="compulsoryPrice" maxlength="8"/>
+				<input class="flex-1 uni-input" type="digit" v-model="compulsoryPrice" maxlength="8" />
 			</view>
 			<view class="content d-flex a-center j-center">
 				<view class="d-flex a-center j-center">商业险</view>
@@ -17,9 +19,11 @@
 				<input class="flex-1 uni-input" type="digit" v-model="vesselTaxPrice" maxlength="8" />
 			</view>
 		</view>
-		
+
 		<view style="margin-bottom: 20upx;">
-			<view class="title d-flex a-center j-sb"><view>返点(%)</view></view>
+			<view class="title d-flex a-center j-sb">
+				<view>返点(%)</view>
+			</view>
 			<view class="content d-flex a-center j-center">
 				<view class="d-flex a-center j-center">交强险</view>
 				<input class="flex-1 uni-input" type="number" v-model="compulsoryPoint" maxlength="2" />
@@ -33,15 +37,17 @@
 				<input class="flex-1 uni-input" type="number" v-model="vesselTaxPoint" maxlength="2" />
 			</view>
 		</view>
-		
+
 		<view class="total">
 			<view class="title d-flex a-center j-sb">
 				<view>总计</view>
 				<view class="clearBtn" @tap="clear">清空</view>
 			</view>
 			<view class="originalTotal d-flex a-center">原价金额合计:¥ <text>{{originalTotal}}</text></view>
-			<view class="actualTotal d-flex a-center">实收金额合计:¥ <text style="color:red;font-size: 34upx;">{{actualTotal}}</text></view>
-			<view class="discountTotal d-flex a-center">总共为您节省:¥ <text style="color: #60ca1d;font-size: 34upx;">{{discountTotal}}</text></view>
+			<view class="actualTotal d-flex a-center">实收金额合计:¥ <text
+					style="color:red;font-size: 34upx;">{{actualTotal}}</text></view>
+			<view class="discountTotal d-flex a-center">总共为您节省:¥ <text
+					style="color: #60ca1d;font-size: 34upx;">{{discountTotal}}</text></view>
 		</view>
 	</view>
 </template>
@@ -61,35 +67,40 @@
 		computed: {
 			originalTotal() {
 				let result = 0;
-				if (this.compulsoryPrice != undefined && this.bueinessPrice != undefined && this.vesselTaxPrice != undefined) {
-					result = ((this.compulsoryPrice - 0) + (this.bueinessPrice - 0) + (this.vesselTaxPrice - 0)).toFixed(2);
+				if (this.compulsoryPrice != undefined && this.bueinessPrice != undefined && this.vesselTaxPrice !=
+					undefined) {
+					result = ((this.compulsoryPrice - 0) + (this.bueinessPrice - 0) + (this.vesselTaxPrice - 0)).toFixed(
+						2);
 				}
 				return result;
 			},
 			actualTotal() {
 				let result = 0;
-				if (this.compulsoryPrice != undefined && this.bueinessPrice != undefined && this.vesselTaxPrice != undefined) {
-					result = ((this.compulsoryPrice - 0) * (1 - this.compulsoryPoint / 100) + (this.bueinessPrice - 0) * (1 - this.bueinessPoint /100) + (this.vesselTaxPrice - 0) * (1 - this.vesselTaxPoint / 100)).toFixed(2);
+				if (this.compulsoryPrice != undefined && this.bueinessPrice != undefined && this.vesselTaxPrice !=
+					undefined) {
+					result = ((this.compulsoryPrice - 0) * (1 - this.compulsoryPoint / 100) + (this.bueinessPrice - 0) * (
+						1 - this.bueinessPoint / 100) + (this.vesselTaxPrice - 0) * (1 - this.vesselTaxPoint /
+						100)).toFixed(2);
 				}
 				return result;
 			},
 			discountTotal() {
 				let result1 = 0;
 				let result2 = 0;
-				if (this.compulsoryPrice != undefined && this.bueinessPrice != undefined && this.vesselTaxPrice != undefined) {
+				if (this.compulsoryPrice != undefined && this.bueinessPrice != undefined && this.vesselTaxPrice !=
+					undefined) {
 					result1 = (this.compulsoryPrice - 0) + (this.bueinessPrice - 0) + (this.vesselTaxPrice - 0);
-					result2 = (this.compulsoryPrice - 0) * (1 - this.compulsoryPoint / 100) + (this.bueinessPrice - 0) * (1 - this.bueinessPoint / 100) + (this.vesselTaxPrice - 0) * (1 - this.vesselTaxPoint / 100);
+					result2 = (this.compulsoryPrice - 0) * (1 - this.compulsoryPoint / 100) + (this.bueinessPrice - 0) * (
+						1 - this.bueinessPoint / 100) + (this.vesselTaxPrice - 0) * (1 - this.vesselTaxPoint / 100);
 				}
 				return (result1 - result2).toFixed(2);
 			}
 		},
 		onLoad() {
-			// #ifdef H5
-			document.getElementsByTagName('uni-page-head')[0].style.display = 'none'
-			// #endif
+
 		},
 		methods: {
-			clear(){
+			clear() {
 				this.compulsoryPrice = "";
 				this.bueinessPrice = "";
 				this.vesselTaxPrice = "";
@@ -102,28 +113,36 @@
 </script>
 
 <style>
-	.page{
+	.page {
 		padding: 25upx;
 	}
-	.uni-input{
+
+	.uni-input {
 		border: 1px solid #EEEEEE;
 		padding: 5upx 12upx;
 		margin: 15upx 10upx;
 	}
-	.title{
+
+	.title {
 		height: 60upx;
 		border-bottom: 2upx solid #CCCCCC;
 	}
-	.title>view{
+
+	.title>view {
 		font-size: 32upx;
 	}
-	.content>view:nth-of-type(1){
+
+	.content>view:nth-of-type(1) {
 		width: 150upx;
 	}
-	.total .originalTotal,.total .actualTotal,.total .discountTotal{
-		height:70upx;
+
+	.total .originalTotal,
+	.total .actualTotal,
+	.total .discountTotal {
+		height: 70upx;
 	}
-	.clearBtn{
+
+	.clearBtn {
 		color: #0094ff;
 	}
-</style>
+</style>

+ 225 - 206
pages/tools/customer/customer.vue

@@ -4,76 +4,87 @@
 		<public-module></public-module>
 		<!-- 顶部搜索框区域Start -->
 		<view class="search">
-			<search  @search="search"></search>
+			<search @search="search"></search>
 		</view>
 		<!-- 顶部搜索框区域End -->
-		
+
 		<!-- 查询区域Start -->
 		<view class="queryView d-flex">
 			<view class="d-flex a-center j-center">
 				<picker @change="bindPickerTypeChange" :value="typeIndex" :range="typeArray">
-				    <view class="d-flex a-center">{{typeArray[typeIndex]}} <view class="icon iconfont icon-xiala"></view></view>
+					<view class="d-flex a-center">{{typeArray[typeIndex]}}
+						<view class="icon iconfont icon-xiala"></view>
+					</view>
 				</picker>
 			</view>
 			<view class="d-flex a-center j-center">
 				<picker @change="bindPickerYearChange" :value="yearIndex" :range="yearArray">
-				    <view class="d-flex a-center">{{yearArray[yearIndex]}}年 <view class="icon iconfont icon-xiala"></view></view>
+					<view class="d-flex a-center">{{yearArray[yearIndex]}}年 <view class="icon iconfont icon-xiala">
+						</view>
+					</view>
 				</picker>
 			</view>
 			<view class="d-flex a-center j-center">
 				<picker @change="bindPickerMonthChange" :value="monthIndex" :range="monthArray">
-				    <view class="d-flex a-center">{{monthArray[monthIndex]}}月 <view class="icon iconfont icon-xiala"></view></view>
+					<view class="d-flex a-center">{{monthArray[monthIndex]}}月 <view class="icon iconfont icon-xiala">
+						</view>
+					</view>
 				</picker>
 			</view>
 		</view>
 		<!-- 查询区域End -->
-		
-		<z-paging auto-show-back-to-top ref="paging" @query="getOrdersList" :list.sync="list" :default-page-size="10"  :mounted-auto-call-reload="true" :style="getHeight">
-			<view class="container-list">
-				<view class="container-list-item" v-for="(orderItem,orderIndex) in list " :key="orderIndex" @tap="openDetail(orderIndex)">
-					
-					<view class="container-list-item-body d-flex">
-						<view class="left d-flex flex-1 flex-column">
-							<view class="name">{{orderItem.ownerinfo.name}}</view>
-							<!-- <view class="date">保险公司:</view> -->
-							<!-- <view class="date">投保险种:{{orderItem.product}}</view> -->
-							<block v-for ="(riskItem,riskIndex) in orderItem.riskinfo" :key="riskIndex" >
-								<template v-if="riskItem.riskCode == '0507'">
-									<view class="date">交强险到期时间:{{riskItem.endDate}}</view>
-								</template>
-							</block>
-							<block v-for ="(riskItem,riskIndex) in orderItem.riskinfo" :key="riskIndex" >
-								<template v-if="riskItem.riskCode == '0510'">
-									<view class="date">商业险到期时间:{{riskItem.endDate}}</view>
-								</template>
-							</block>
-							<view class="btn d-flex">
-								<span class="d-flex a-center j-center" size="mini" style="background: #48A0D3;">备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注</span>
-								<span class="d-flex a-center j-center" size="mini" style="background: #48A0D3;">到期提醒</span>
-							</view>
+		<view class="container-list">
+			<view class="container-list-item" v-for="(orderItem,orderIndex) in list " :key="orderIndex"
+				@tap="openDetail(orderIndex)">
+				<view class="container-list-item-body d-flex">
+					<view class="left d-flex flex-1 flex-column">
+						<view class="name">{{orderItem.inscompany}}</view>
+						<!-- 	<view class="date">保险公司:</view>
+						<view class="date">投保险种:交三</view> -->
+						<block v-for="(riskItem,riskIndex) in orderItem.riskinfo" :key="riskIndex">
+							<template v-if="riskItem.riskCode == '0507'">
+								<view class="date">交强险到期时间:{{riskItem.endDate}}</view>
+							</template>
+						</block>
+						<block v-for="(riskItem,riskIndex) in orderItem.riskinfo" :key="riskIndex">
+							<template v-if="riskItem.riskCode == '0510'">
+								<view class="date">商业险到期时间:{{riskItem.endDate}}</view>
+							</template>
+						</block>
+						<view class="btn d-flex">
+							<span class="d-flex a-center j-center" size="mini"
+								style="background: #48A0D3;">备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注</span>
+							<span class="d-flex a-center j-center" size="mini" style="background: #48A0D3;">到期提醒</span>
+						</view>
+					</view>
+					<view class="right">
+						<view style="font-size:24upx;" class="name d-flex a-center j-center">
+							晋AWEKOI3
+						</view>
+						<view class="name d-flex a-center j-center" style="font-size:24upx;">
+							{{orderItem.inscompany}}
 						</view>
-						<view class="right">
-							<view style="font-size:24upx;" class="name d-flex a-center j-center">{{orderItem.carinfo.licenseNo}}</view>
-							<view class="name d-flex a-center j-center" style="font-size:24upx;">{{orderItem.inscompany}}</view>
-							<view class="name d-flex a-center j-center" style="font-size:24upx;">{{orderItem.product}}</view>
-							
-							<span class="btn">生效中</span>
+						<view class="name d-flex a-center j-center" style="font-size:24upx;">交三
 						</view>
+
+						<span class="btn">生效中</span>
 					</view>
 				</view>
-
-				
 			</view>
-		</z-paging>
+
+
+		</view>
 	</view>
 </template>
 
 <script>
-	import {mapState} from "vuex"
+	import {
+		mapState
+	} from "vuex"
 	import search from "@/components/modules/orders/search.vue";
 	import ZPagingMixin from '@/uni_modules/z-paging/components/z-paging/js/z-paging-mixin';
 	export default {
-		components:{
+		components: {
 			search,
 			ZPagingMixin
 		},
@@ -82,7 +93,7 @@
 			getHeight() {
 				let height = uni.getSystemInfoSync().windowHeight - uni.upx2px(184);
 				let bgColor = '#FFFFFF';
-				if(this.list.length>0){
+				if (this.list.length > 0) {
 					bgColor = '#F5F5F5';
 				}
 				return `height: ${height}px; background-color:${bgColor}`;
@@ -90,174 +101,169 @@
 		},
 		data() {
 			return {
-				list:[],
-				
+				list: [],
+
 				/* 查询区域Start */
-				typeArray:['车险'],	//订单的类型
+				typeArray: ['车险'], //订单的类型
 				// typeArray:['车险','意外险','寿险'],	//订单的类型
-				stageArray:[
-					{"label":'待继续',"value":'0'},
-					{"label":'核保中',"value":'1'},
-					{"label":'已核保',"value":'2'},
-					{"label":'已核保待缴费',"value":'5'},
-					{"label":'已缴费',"value":'6'},
-					{"label":'已承保',"value":'7'},
-					{"label":'待修改',"value":'3'},
-					{"label":'核保不通过',"value":'4'},
-					{"label":'已关闭',"value":'99'}
-				],	//订单的阶段
-				yearArray:[],	//订单的查询年份
-				monthArray:[],	//订单的查询月份
-				typeIndex:0,	//订单的类型选择
-				yearIndex:0,	//订单的年份选择
-				monthIndex:0, 	//订单的月份选择
+				stageArray: [{
+						"label": '待继续',
+						"value": '0'
+					},
+					{
+						"label": '核保中',
+						"value": '1'
+					},
+					{
+						"label": '已核保',
+						"value": '2'
+					},
+					{
+						"label": '已核保待缴费',
+						"value": '5'
+					},
+					{
+						"label": '已缴费',
+						"value": '6'
+					},
+					{
+						"label": '已承保',
+						"value": '7'
+					},
+					{
+						"label": '待修改',
+						"value": '3'
+					},
+					{
+						"label": '核保不通过',
+						"value": '4'
+					},
+					{
+						"label": '已关闭',
+						"value": '99'
+					}
+				], //订单的阶段
+				yearArray: [], //订单的查询年份
+				monthArray: [], //订单的查询月份
+				typeIndex: 0, //订单的类型选择
+				yearIndex: 0, //订单的年份选择
+				monthIndex: 0, //订单的月份选择
 				/* 查询区域End */
-				
-				queryLicenseNo:''
+
+				queryLicenseNo: ''
 			}
 		},
 		onLoad() {
 			// 搜索年选项Start
-			this.yearArray=[(new Date().getFullYear()-1),new Date().getFullYear(),(new Date().getFullYear()+1)]
-			this.yearIndex=this.yearArray.length-1;
+			this.yearArray = [(new Date().getFullYear() - 1), new Date().getFullYear(), (new Date().getFullYear() + 1)]
+			this.yearIndex = this.yearArray.length - 1;
 			// 搜索年选项End
-			
+
 			// 搜索月选项Start
-			var month = new Date().getMonth()+1;
-			for(var i=1;i<=12;i++){
-				if(i<10){
-					this.monthArray.push('0'+i);
-				}else{
+			var month = new Date().getMonth() + 1;
+			for (var i = 1; i <= 12; i++) {
+				if (i < 10) {
+					this.monthArray.push('0' + i);
+				} else {
 					this.monthArray.push(i);
 				}
 			}
-			this.monthIndex=new Date().getMonth();
+			this.monthIndex = new Date().getMonth();
+			this.getOrdersList();
 			// 搜索月选项End
 		},
 		methods: {
 			// 订单类型发生变化
-			bindPickerTypeChange(e){
+			bindPickerTypeChange(e) {
 				this.typeIndex = e.target.value;
 			},
-			
+
 			isCarBrand(str) {
-				let mPattern = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼A-Z]{1}[A-Z]{1}[A-Z0-9]{4,5}([A-Z0-9挂学警港澳使领]{1}|应急)$/ || /^沪[0-9A-Z]{5}$/ || /^陆丰[0-9A-Z]{4}临$/;
-			      return mPattern.test(str.trim())
-			      // return /^陆丰[0-9A-Z]{4}临$/.test(str.trim())
+				let mPattern = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼A-Z]{1}[A-Z]{1}[A-Z0-9]{4,5}([A-Z0-9挂学警港澳使领]{1}|应急)$/ ||
+					/^沪[0-9A-Z]{5}$/ || /^陆丰[0-9A-Z]{4}临$/;
+				return mPattern.test(str.trim())
+				// return /^陆丰[0-9A-Z]{4}临$/.test(str.trim())
 			},
-			
-			search(a){
-				if(this.isCarBrand(a.trim())){
+
+			search(a) {
+				if (this.isCarBrand(a.trim())) {
 					this.queryLicenseNo = "";
 					this.queryLicenseNo = a.trim();
-					this.list=[]; //获取到的订单列表
-					var infodata= {
-						"columnFilters":{
-							"orderstatus":{
-								"name":"orderstatus",
-								"value":"7"
+					this.list = []; //获取到的订单列表
+					var infodata = {
+						"columnFilters": {
+							"orderstatus": {
+								"name": "orderstatus",
+								"value": "7"
 							},
-							"licenseNo":{
-								"name":"licenseNo",
-								"value":this.queryLicenseNo
+							"licenseNo": {
+								"name": "licenseNo",
+								"value": this.queryLicenseNo
 							},
-							"userid":{
-								"name":"userid",
-								"value":this.userInfo.sysUser.id
+							"userid": {
+								"name": "userid",
+								"value": this.userInfo.sysUser.id
 							},
-							"quotestatus":{
-								"name":"quotestatus",
-								"value":'1'
+							"quotestatus": {
+								"name": "quotestatus",
+								"value": '1'
 							}
 						},
-						"pageNum":1,
-						"pageSize":10
+						"pageNum": 1,
+						"pageSize": 10
 					};
-					this.getOrdersList(1,10,infodata);//重新查询订单
-				}else{
-					return uni.showToast({icon:"none",title:"请输入正确的车牌号或车架号",duration:1500})
+					this.getOrdersList(1, 10, infodata); //重新查询订单
+				} else {
+					return uni.showToast({
+						icon: "none",
+						title: "请输入正确的车牌号或车架号",
+						duration: 1500
+					})
 				}
 			},
-			
+
 			//搜索年发生变化
 			bindPickerYearChange(e) {
 				this.yearIndex = e.target.value;
-				this.monthArray=[];
-				for(var i=1;i<=12;i++){
-					if(i<10){
-						this.monthArray.push('0'+i);
-					}else{
+				this.monthArray = [];
+				for (var i = 1; i <= 12; i++) {
+					if (i < 10) {
+						this.monthArray.push('0' + i);
+					} else {
 						this.monthArray.push(i);
 					}
 				}
-				this.list=[]; //获取到的订单列表
-				this.getOrdersList(1,10);//重新查询订单
-			},		
+				this.list = []; //获取到的订单列表
+				this.getOrdersList(1, 10); //重新查询订单
+			},
 			//搜索月发生变化
 			bindPickerMonthChange(e) {
 				this.monthIndex = e.target.value
-				this.list=[]; //获取到的订单列表
-				this.getOrdersList(1,10);//重新查询订单
+				this.list = []; //获取到的订单列表
+				this.getOrdersList(1, 10); //重新查询订单
 			},
 			//获取订单数据Start
-			async getOrdersList(pageNo, pageSize,info={}) {
-				
-				var queryStartDate = (this.yearArray[this.yearIndex]-1)+'-'+this.monthArray[this.monthIndex]+'-'+'01';
-				var formatQueryDate = new Date(queryStartDate);
-				formatQueryDate.setMonth(formatQueryDate.getMonth()+1)
-				formatQueryDate.setTime(formatQueryDate.getTime()-24*60*60*1000);
-				var queryEndDate = formatQueryDate.getFullYear()+'-'+(formatQueryDate.getMonth()+1)+'-'+formatQueryDate.getDate();
-				
-				var data = {};
-				if(info=={}){
-					data = info;
-				}else{
-					data = {
-						"columnFilters": {
-							"orderstatus":{
-								"name":"orderstatus",
-								"value":"7"
-							},
-							"policystartdate":{
-								"name":"policystartdate",
-								"value":queryStartDate
-							},
-							"policyenddate":{
-								"name":"policyenddate",
-								"value":queryEndDate
-							},
-							"userid":{
-								"name":"userid",
-								"value":this.userInfo.sysUser.id
-							},
-							"quotestatus":{
-								"name":"quotestatus",
-								"value":'1'
-							}
-						},
-						"pageNum": pageNo,
-						"pageSize": pageSize
-					};
-				}
-				let res = await this.$http.post('/insOrder/findPage',data);
-				let content = [];
-				if((res.code == 200) && (res.data.content.length>0)){
-					content = res.data.content;
+			async getOrdersList() {
+				let params = {
+					"orderNo": "1731850885233725440"
+				};
+				let res = await this.$http.post('/insurance/order/querySuborder', params);
+				if (res.code == 200) {
+					this.list = res.data;
 				}
-				this.$refs.paging.complete(content);
 			},
 			//获取订单数据End
-			
+
 			//跳转订单详情页面Start(公用)
-			openDetail(index){
+			openDetail(index) {
 				this.navigate({
-					url:"/pages/tools/customer/custormerDetail?",
+					url: "/pages/tools/customer/custormerDetail?",
 					success: (res) => {
 						res.eventChannel.emit("acceptData", {
-							item: this.list[index]
+							item: this.list[index].id
 						})
 					}
-				},'navigateTo',true)
+				}, 'navigateTo', true)
 			},
 			//跳转订单详情页面End(公用)
 		}
@@ -266,33 +272,38 @@
 </script>
 
 <style lang="scss" scoped>
-@import '@/style/mixin.scss';
-.container-list-item{
-	background: #fff;
-	margin-bottom: 20rpx;
-}
-.container-list-item-header .date{
-	background:rgba($themeColor, 0.8) ;
-	color: #FFFFFF;
-	width: 290upx;
-	border-radius: 4upx;
-	font-size: 24upx;
-	text-align: center;
-}
+	@import '@/style/mixin.scss';
+
+	.container-list-item {
+		background: #fff;
+		margin-bottom: 20rpx;
+	}
+
+	.container-list-item-header .date {
+		background: rgba($themeColor, 0.8);
+		color: #FFFFFF;
+		width: 290upx;
+		border-radius: 4upx;
+		font-size: 24upx;
+		text-align: center;
+	}
 
 
-	.container-list-item-body{
+	.container-list-item-body {
 		padding: 20upx 30upx;
 	}
-	.container-list-item-body .left .name{
+
+	.container-list-item-body .left .name {
 		font-size: 28upx;
 		font-weight: bold;
 	}
-	.container-list-item-body .left .date{
+
+	.container-list-item-body .left .date {
 		font-size: 24upx;
 		color: #A3A5A4;
 	}
-	.container-list-item-body .left .btn>span{
+
+	.container-list-item-body .left .btn>span {
 		padding: 0 20upx;
 		width: 120upx;
 		/* border: 1px solid #587D93; */
@@ -303,45 +314,53 @@
 		color: #FFFFFF;
 		font-weight: bold;
 	}
-	.container-list-item-body .right{
+
+	.container-list-item-body .right {
 		width: 180upx;
 		flex-shrink: 0;
 		color: #B2B3B2;
 		font-size: 26upx;
 	}
-	.container-list-item-body .right>span{
+
+	.container-list-item-body .right>span {
 		line-height: 70upx;
 	}
-	.container-list-item-body .right .btn{
-		padding: 7upx 30upx ;
+
+	.container-list-item-body .right .btn {
+		padding: 7upx 30upx;
 		background: #DD525E;
 		color: #FFFFFF;
 		border-radius: 10upx;
 		margin: 20upx 0 0 20upx;
 	}
-	
-/* 查询区域Start */
-.queryView {
-	justify-content: space-around;
-	height: 82upx;
-	line-height: 80upx;
-}
-.queryView>view{
-	border-top: 1px solid rgba($themeColor, 0.6);
-	border-bottom: 1px solid rgba($themeColor, 0.6);
-	border-left: 1px solid rgba($themeColor, 0.6);
-	box-sizing: border-box;
-	color: rgba($themeColor, 0.6);
-}
-.queryView>view:nth-child(1){
-	flex: 3;
-}
-.queryView>view:nth-child(2){
-	flex: 3;
-}
-.queryView>view:nth-child(3){
-	border-right: 1px solid rgba($themeColor, 0.6);
-	flex: 3;
-}
-/* 查询区域End */
-</style>
+
+	/* 查询区域Start */
+	.queryView {
+		justify-content: space-around;
+		height: 82upx;
+		line-height: 80upx;
+	}
+
+	.queryView>view {
+		border-top: 1px solid rgba($themeColor, 0.6);
+		border-bottom: 1px solid rgba($themeColor, 0.6);
+		border-left: 1px solid rgba($themeColor, 0.6);
+		box-sizing: border-box;
+		color: rgba($themeColor, 0.6);
+	}
+
+	.queryView>view:nth-child(1) {
+		flex: 3;
+	}
+
+	.queryView>view:nth-child(2) {
+		flex: 3;
+	}
+
+	.queryView>view:nth-child(3) {
+		border-right: 1px solid rgba($themeColor, 0.6);
+		flex: 3;
+	}
+
+	/* 查询区域End */
+</style>

+ 31 - 23
pages/tools/customer/custormerDetail.vue

@@ -17,13 +17,13 @@
 		<view class="row d-flex a-center">
 			<view class="left">车牌号</view>
 			<span class="right d-flex flex-1">
-				{{orderInfo.licenseNo}}
+				{{orderInfo.licenseno}}
 			</span>
 		</view>
 		<view class="row d-flex a-center">
 			<view class="left">车架号</view>
 			<span class="right d-flex flex-1">
-				{{orderInfo.frameNo}}
+				{{orderInfo.frameno}}
 			</span>
 		</view>
 		<view class="row d-flex a-center">
@@ -38,7 +38,7 @@
 				{{orderInfo.ownerinfo.mobile}}
 			</span>
 		</view>
-		<block v-for ="(riskItem,riskIndex) in orderInfo.riskinfo" :key="riskIndex" >
+		<block v-for="(riskItem,riskIndex) in orderInfo.riskinfo" :key="riskIndex">
 			<template v-if="riskItem.riskCode == '0507'">
 				<view class="row d-flex a-center">
 					<view class="left">交强险</view>
@@ -54,7 +54,7 @@
 				</view>
 			</template>
 		</block>
-		<block v-for ="(riskItem,riskIndex) in orderInfo.riskinfo" :key="riskIndex" >
+		<block v-for="(riskItem,riskIndex) in orderInfo.riskinfo" :key="riskIndex">
 			<template v-if="riskItem.riskCode == '0510'">
 				<view class="row d-flex a-center">
 					<view class="left">商业险</view>
@@ -77,36 +77,44 @@
 	export default {
 		data() {
 			return {
-				orderInfo:{}
+				orderInfo: {},
+				companyId: "",
 			}
 		},
 		onLoad() {
 			const eventChannel = this.getOpenerEventChannel()
 			// 监听acceptData事件,获取上一页面通过eventChannel传送到当前页面的数据
-			eventChannel.on('acceptData', async(data) => {
-				this.orderInfo = data.item;
+			eventChannel.on('acceptData', async (data) => {
+				this.companyId = data.item;
+				let res = await this.$http.post('/insurance/order/getByCompanyId', {
+					companyId: "1731851057502945281",
+				});
+				if (res.code == 200) {
+					this.orderInfo = res.data;
+				}
 			})
 		},
 		methods: {
-			
+
 		}
 	}
 </script>
 
 <style>
+	.page-container .row {
+		padding: 0upx 50upx;
+		height: 80upx;
+		border-bottom: 1px solid #F9F9F9;
+	}
 
-.page-container .row{
-	padding: 0upx 50upx;
-	height: 80upx;
-	border-bottom: 1px solid #F9F9F9;
-}
-.page-container .row .left{
-	width: 200upx;
-	flex-shrink: 0;
-	font-size: 28upx;
-}
-.page-container .row .right{
-	font-size: 28upx;
-	text-align: end;
-}
-</style>
+	.page-container .row .left {
+		width: 200upx;
+		flex-shrink: 0;
+		font-size: 28upx;
+	}
+
+	.page-container .row .right {
+		font-size: 28upx;
+		text-align: end;
+	}
+</style>

+ 16 - 15
pages/tools/poster/poster-detail.vue

@@ -3,10 +3,10 @@
 		<!-- 公共组件-每个页面必须引入 -->
 		<public-module></public-module>
 		<image :src="imgurl" mode="widthFix" v-show="!canvasShow"></image>
-		<canvas id="mycanvas" ref="mycanvas" canvas-id="mycanvas" style="width: 590rpx;height: 1046rpx;"></canvas>
+		<canvas id="mycanvas" ref="mycanvas" canvas-id="mycanvas" style="width: 690rpx;height: 1246rpx;"></canvas>
 	</view>
 </template>
-		
+
 <script>
 	import {
 		mapState,
@@ -23,9 +23,9 @@
 			}
 		},
 		onLoad(params) {
-			var that=this;
+			var that = this;
 			if (!!params.img) {
-				this.posterimg =params.img;
+				this.posterimg = params.img;
 
 			} else {
 				this.posterimg = "/static/image/poster/baoxian/poster1.jpg";
@@ -47,25 +47,25 @@
 		methods: {
 			canvasImage() {
 				let myCanvas = uni.createCanvasContext('mycanvas', this);
-				var ww = uni.upx2px("590");
-				var hh = uni.upx2px("1046");
+				var ww = uni.upx2px("690");
+				var hh = uni.upx2px("1246");
 				//画布尺寸
 				// 坐标(0,0) 表示从此处开始绘制,相当于偏移。
 				//背景
 				myCanvas.drawImage(this.posterimg, 0, 0, ww, hh);
-			
+
 				//头像
-				myCanvas.drawImage(this.avatar, ww / 10, hh - ww / 40 * 9, ww /0* 7, ww / 7);
+				myCanvas.drawImage(this.avatar, ww / 10, hh - ww / 40 * 9, ww / 0 * 7, ww / 7);
 				//个人信息
 				let fontSize1 = uni.upx2px(32);
 				myCanvas.setFillStyle('#fff') //文字样式
 				myCanvas.font = `${fontSize1}px Arial`; //绘制文字
-				myCanvas.fillText(this.userInfo.sysUser.name, ww / 10 + ww / 5, hh - ww / 60 * 11);
+				myCanvas.fillText(this.userInfo.sysUser.name, ww / 10 + ww / 5, hh - ww / 50 * 11);
 				myCanvas.font = `${fontSize1}px Arial`; //绘制文字
-				myCanvas.fillText(this.userInfo.sysUser.mobile, ww / 10 + ww / 5, hh - ww / 60 * 6);
+				myCanvas.fillText(this.userInfo.sysUser.mobile, ww / 10 + ww / 5, hh - ww / 48 * 7);
 
 				//二维码
-				myCanvas.drawImage(this.recommendImg, ww - ww / 4, hh - ww / 4, ww / 6, ww / 6);
+				myCanvas.drawImage(this.recommendImg, ww - ww / 3, hh - ww / 3, ww / 4, ww / 4);
 
 				//开始绘画,必须调用这一步,才会把之前的一些操作实施
 				myCanvas.draw(true, () => {
@@ -97,7 +97,7 @@
 				// #ifndef APP-PLUS
 				tabList = ['保存图片'];
 				// #endif
-				
+
 				uni.showActionSheet({
 					itemList: tabList,
 					success: (res) => {
@@ -138,15 +138,16 @@
 <style>
 	image {
 		width: 100%;
-		width: 590rpx;
+		height: 1246rpx;
 	}
+
 	.pc-container {
-		width: 590rpx;
-		height: 639px;
+		width: 690rpx;
 		margin: 0 auto;
 		padding-top: 80rpx;
 		overflow: hidden;
 	}
+
 	#mycanvas {
 		position: absolute;
 		top: -10000px;

+ 44 - 40
pages/tools/poster/poster.vue

@@ -1,8 +1,8 @@
 <template>
 	<view>
 		<public-module></public-module>
-		<view class="" style="position: fixed;width: 100%;">
-			<u-tabs :list="list" :current="current" @change="change"></u-tabs>
+		<view class="" style="position: fixed;width: 100%;z-index: 99;">
+			<u-tabs :is-scroll="false" :list="list" :current="current" @change="change"></u-tabs>
 		</view>
 		<view class="" style="padding-top: 100rpx;box-sizing: border-box;">
 			<view v-if="current==0" class="order">
@@ -17,6 +17,7 @@
 					<text>{{item.originalfilename}}</text>
 				</view>
 			</view>
+
 			<view v-if="current==2" class="order">
 				<view class="order1" v-for="(item,index) in list3" @click="admin(item.url)">
 					<image :src="item.url" mode=""></image>
@@ -29,25 +30,12 @@
 					<text>{{item.originalfilename}}</text>
 				</view>
 			</view>
-
 			<view v-if="current==4" class="order">
 				<view class="order1" v-for="(item,index) in list5" @click="admin(item.url)">
 					<image :src="item.url" mode=""></image>
 					<text>{{item.originalfilename}}</text>
 				</view>
 			</view>
-			<view v-if="current==5" class="order">
-				<view class="order1" v-for="(item,index) in list6" @click="admin(item.url)">
-					<image :src="item.url" mode=""></image>
-					<text>{{item.originalfilename}}</text>
-				</view>
-			</view>
-			<view v-if="current==6" class="order">
-				<view class="order1" v-for="(item,index) in list7" @click="admin(item.url)">
-					<image :src="item.url" mode=""></image>
-					<text>{{item.originalfilename}}</text>
-				</view>
-			</view>
 		</view>
 	</view>
 </template>
@@ -57,19 +45,15 @@
 		data() {
 			return {
 				list: [{
-					name: '推荐'
-				}, {
 					name: '保险'
 				}, {
-					name: '车险',
-				}, {
-					name: '增员'
+					name: '产品',
 				}, {
-					name: '产品'
+					name: '节气'
 				}, {
-					name: '保险段子',
+					name: '节日'
 				}, {
-					name: '节日',
+					name: '增员',
 				}],
 				current: 0,
 				dirId1: "P0001",
@@ -78,35 +62,55 @@
 				dirId4: "P0004",
 				dirId5: "P0005",
 				dirId6: "P0006",
-				dirId7: "P0007",
 				list1: [],
 				list2: [],
 				list3: [],
 				list4: [],
 				list5: [],
 				list6: [],
-				list7: [],
 			}
 		},
 		async onLoad() {
-			let res1 = await this.$http.get('/insFile/queryList?dirId=' + this.dirId1);
-			this.list1 = res1.data;
-			let res2 = await this.$http.get('/insFile/queryList?dirId=' + this.dirId2);
-			this.list2 = res2.data;
-			let res3 = await this.$http.get('/insFile/queryList?dirId=' + this.dirId3);
-			this.list3 = res3.data;
-			let res4 = await this.$http.get('/insFile/queryList?dirId=' + this.dirId4);
-			this.list4 = res4.data;
-			let res5 = await this.$http.get('/insFile/queryList?dirId=' + this.dirId5);
-			this.list5 = res5.data;
-			let res6 = await this.$http.get('/insFile/queryList?dirId=' + this.dirId6);
-			this.list6 = res6.data;
-			let res7 = await this.$http.get('/insFile/queryList?dirId=' + this.dirId7);
-			this.list7 = res7.data;
+			let res1 = await this.$http.post('/sysPoster/posterListApp', {
+				type: 'P0002'
+			});
+			res1.data.content.forEach(ele => {
+				ele.url = this.$base.baseUrl + ele.url
+			});
+			this.list1 = res1.data.content;
+			let res2 = await this.$http.post('/sysPoster/posterListApp', {
+				type: 'P0003'
+			});
+			res2.data.content.forEach(ele => {
+				ele.url = this.$base.baseUrl + ele.url
+			});
+			this.list2 = res2.data.content;
+			let res3 = await this.$http.post('/sysPoster/posterListApp', {
+				type: 'P0004'
+			});
+			res3.data.content.forEach(ele => {
+				ele.url = this.$base.baseUrl + ele.url
+			});
+			this.list3 = res3.data.content;
+			let res4 = await this.$http.post('/sysPoster/posterListApp', {
+				type: 'P0005'
+			});
+			res4.data.content.forEach(ele => {
+				ele.url = this.$base.baseUrl + ele.url
+			});
+			this.list4 = res4.data.content;
+			let res5 = await this.$http.post('/sysPoster/posterListApp', {
+				type: 'P0006'
+			});
+			res5.data.content.forEach(ele => {
+				ele.url = this.$base.baseUrl + ele.url
+			});
+			this.list5 = res5.data.content;
 
 		},
 		methods: {
 			change(index) {
+				console.log(index)
 				this.current = index;
 			},
 			admin(data) {
@@ -150,4 +154,4 @@
 		height: 600rpx;
 		border-radius: 20rpx;
 	}
-</style>
+</style>

+ 0 - 309
pages/user/certify.vue

@@ -1,309 +0,0 @@
-<template>
-	<view class="page">
-		<!-- 公共组件-每个页面必须引入 -->
-		<public-module></public-module>
-		<view class="IDcardInfo p-3 mb-3" style="background-color: #FFFFFF;">
-			<view class="inputView d-flex">
-				<view class="d-flex a-center">姓名</view>
-				<view class="d-flex a-center">
-					<input placeholder="请输入姓名" v-model="staffInfo.name" />
-				</view>
-			</view>
-			<view class="warp" v-if="contentSlot">
-				<view class="mt-1 position-relative border-bottom">
-					<view class="position-absolute d-flex a-center j-center left-0 top-0 font-weight"
-						style="width: 100rpx;height: 100%;">+86</view>
-					<input type="text" v-model="staffInfo.phone" class="uni-input common-input"
-						style="padding-left: 100rpx;" placeholder="手机号" />
-				</view>
-				<view class="mt-2 position-relative border-bottom">
-					<input type="text" v-model="staffInfo.phoneMsg" class="uni-input common-input" maxlength="4"
-						style="padding-right: 240rpx;" placeholder="请输入验证码" />
-					<view class="position-absolute top-0 right-0 d-flex a-center j-center text-light-muted"
-						style="width: 240rpx;height: 100%;" @tap="getCheckNum1">
-						<view class="d-flex a-center j-center "
-							:class="!codetime?'yanzhengmaView1 main-text-color':'yanzhengmaView2'">
-							{{!codetime?'获取验证码':codetime+' S'+'后重新获取'}}
-						</view>
-					</view>
-				</view>
-			</view>
-		</view>
-		<button class="mx-3 my-5 d-flex a-center j-center  main-bg-color" type="primary" @tap="submit">提 交</button>
-
-	</view>
-</template>
-
-<script>
-	import {
-		mapState,
-		mapMutations
-	} from "vuex"
-	import bankBin from "@/common/bankcardinfo.js"
-	import {
-		pathToBase64,
-		base64ToPath
-	} from '@/common/image-tools-base64.js';
-	import zPopup from "@/components/common/z-popup.vue"
-	export default {
-		components: {
-			zPopup
-		},
-		data() {
-			return {
-				IdCardBefore: "", //身份证正影像
-				staffInfo: {
-					name: "",
-					phone: '', //手机号
-					phoneMsg: '', //手机号验证码
-					jobNumber: "" //id
-				},
-				contentSlot: true,
-				codetime: 0, //验证码获取倒计时
-
-			}
-		},
-		computed: {
-			...mapState(["userInfo", "userCheckInfo"]),
-		},
-		onLoad() {
-			this.staffInfo.jobNumber = this.userInfo.sysUser.id;
-		},
-		methods: {
-			...mapMutations(['setUserModules']),
-			async getCheckNum1() {
-				uni.hideKeyboard();
-				if (this.codetime > 0) return;
-				// 验证手机号合法性
-				if (!this.staffInfo.phone) {
-					return uni.showToast({
-						title: '请输入手机号',
-						icon: 'none'
-					});
-				}
-				if (!this.$base.phoneRegular.test(this.staffInfo.phone)) {
-					return uni.showToast({
-						title: '请输入正确的手机号码',
-						icon: 'none'
-					});
-				}
-				// 请求服务器,发送验证码
-				let res = await this.$http.get('/sendMsg', {
-					phone: this.staffInfo.phone,
-					type: "1"
-				});
-				// 请求失败处理
-				console.log(res)
-				if (res.code != 200) {
-					return uni.showToast({
-						title: res.msg,
-						icon: "none"
-					});
-				} else {
-					uni.showToast({
-						title: "发送成功",
-						icon: "none"
-					});
-				}
-				// 发送成功,开启倒计时
-				this.codetime = 60;
-				let timer = setInterval(() => {
-					this.codetime--;
-					if (this.codetime < 1) {
-						clearInterval(timer);
-						this.codetime = 0;
-					}
-				}, 1000);
-			},
-			isName() {
-				let mPattern = /^([\u4e00-\u9fa5]{1,6}|[a-zA-Z\.\s]{1,6})$/;
-				return mPattern.test(this.staffInfo.name);
-			},
-
-			async submit() {
-
-				if (!this.isName()) {
-					return uni.showToast({
-						title: '请输入正确的姓名',
-						icon: "none"
-					});
-				}
-				var info = {
-					sysUser: {},
-					esmUserInternal: {},
-					esmUserAgent: {}
-				};
-				Object.assign(info.sysUser, this.userInfo.sysUser)
-				Object.assign(info.esmUserInternal, this.userInfo.esmUserInternal)
-				Object.assign(info.esmUserAgent, this.userInfo.esmUserAgent)
-				info.sysUser.name = this.staffInfo.name;
-				info.sysUser.phone = this.staffInfo.phone;
-				info.sysUser.jobCode = "17";
-				// 修改并保存人员信息
-				let res = await this.$http.post('/wechat/bindPhone', this.staffInfo);
-				console.log(res)
-				if (res.code == 200) {
-						//保存临时数据到本地
-						this.setUserModules({
-							title: 'userInfo',
-							data: info
-						})
-						setTimeout(() => {
-							return uni.reLaunch({
-								url: "/pages/index/index"
-							})
-						}, 500);
-				} else if(res.code=='10100'){
-					var that = this;
-					uni.showToast({
-						title: res.msg,
-						icon: "none",
-						duration: 2000
-					});
-					uni.login({
-						provider: 'weixin',
-						scopes: "auth_user",
-						onlyAuthorize: true,
-						success: function(loginRes) {
-							that.codeRes(loginRes);
-						}
-					});
-					
-				}else{
-					uni.showToast({
-						title: res.msg,
-						icon: "none",
-						duration: 2000
-					});
-				}
-			},
-			async codeRes(data) {
-				this.$login({
-					url: "/wechat/login",
-					data: {
-						code: data.code,
-					}
-				}).then(res => {
-					socket.init();
-					return;
-				})
-			
-			},
-
-		}
-	}
-</script>
-
-<style lang="scss" scoped>
-	@import '@/style/mixin.scss';
-
-	.idCardBefore {
-		background: rgba($themeColor, 0.1) url('/static/image/user/identy2.png') center center no-repeat;
-		background-size: auto 70%;
-		padding: 10upx;
-	}
-
-	.idCardAfter {
-		background: rgba($themeColor, 0.1) url('/static/image/user/identy1.png') center center no-repeat;
-		background-size: auto 70%;
-		padding: 10upx;
-	}
-
-	.bankCardImage {
-		background: rgba($themeColor, 0.1) url('/static/image/user/card.png') center center no-repeat;
-		background-size: auto 70%;
-		padding: 10upx;
-	}
-
-	.imageBorder {
-		border: 2px solid #ddd;
-		padding: 10upx;
-	}
-
-	.cardImages>view {
-		width: 310rpx;
-		height: 260rpx;
-	}
-
-	.cardImages>view>image {
-		width: 100%;
-		height: 100%;
-	}
-
-	.IDcardInfo .IDcardNotice,
-	.BankCardInfo .BankCardNotice {
-		text-align: center;
-		height: 110rpx;
-		line-height: 110rpx;
-	}
-
-	.inputView {
-		border-bottom: 1px solid #ddd;
-		height: 90upx;
-	}
-
-	.inputView>view:nth-of-type(1) {
-		flex-shrink: 0;
-		font-size: 32upx;
-		padding-left: 12px;
-		color: #333;
-	}
-
-	.inputView>view:nth-of-type(2)>input {
-		font-size: 30upx;
-		color: #999;
-	}
-
-	.BankCardInfo {
-		background-color: #FFFFFF;
-		padding: 30upx;
-	}
-	.popup_box {
-		width: 100%;
-		// border-radius: 12upx;
-	}
-	.popup_title {
-		display: flex;
-		justify-content: space-between;
-		height: 88upx;
-		line-height: 88upx;
-		border-bottom: 2upx solid #ebebeb;
-		padding: 0 20upx;
-		background-color: #FFF;
-	}
-
-	.popup_title view {
-		font-size: 32upx;
-		display: flex;
-		align-items: center;
-	}
-
-	.popup_title text {
-		width: 80upx;
-		flex-shrink: 0;
-		text-align: center;
-	}
-
-	.popup_title text {
-		font-size: 28upx;
-		color: #999;
-	}
-
-	.popup_title text:last-child {
-		color: $themeColor;
-	}
-
-	.popup_content {
-		padding: 40rpx 30rpx;
-		background-color: #FFFFFF;
-		text-align: center;
-	}
-
-	.popup_content .body {
-		padding: 20upx 30upx;
-	}
-
-	.popup_content .body image {
-		width: 540upx;
-	}
-</style>

Plik diff jest za duży
+ 0 - 0
static/js/index.76bf1d5e.js


Plik diff jest za duży
+ 0 - 0
static/js/pages-carInsure1-quoteDetail1.fb2d0c3f.js


Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików