Bläddra i källkod

中煤驾意险问题

@dongkboy 1 år sedan
förälder
incheckning
01f8a8dec4

+ 7 - 2
manifest.json

@@ -7,8 +7,8 @@
 		"sizes": "分辨率,192x192",
 		"src": "图片路径"
 	}],
-	"versionName": "1.5.4",
-	"versionCode": 154,
+	"versionName": "1.5.7",
+	"versionCode": 157,
 	"app-plus": {
 		"error": {
 			"url": "hybrid/html/error.html"
@@ -206,6 +206,11 @@
 		"uniStatistics": {
 			"enable": false
 		}
+	},
+	"mp-jd": {
+		"unipush": {
+			"enable": false
+		}
 	}
 }
 // 小程序特有相关

+ 29 - 28
pages.json

@@ -566,34 +566,35 @@
 				}
 			}
 		},
-		// {
-		// 	"path": "pages/wallet/billDetails1",
-		// 	"style": {
-		// 		"navigationBarTitleText": "预收账户明细",
-		// 		"app-plus": {
-		// 			"scrollIndicator": "none",
-		// 			"bounce": "none"
-		// 		}
-		// 	}
-		// }, {
-		// 	"path": "pages/wallet/billDetails2",
-		// 	"style": {
-		// 		"navigationBarTitleText": "余额明细",
-		// 		"app-plus": {
-		// 			"scrollIndicator": "none",
-		// 			"bounce": "none"
-		// 		}
-		// 	}
-		// }, {
-		// 	"path": "pages/wallet/billDetails3",
-		// 	"style": {
-		// 		"navigationBarTitleText": "推广佣金明细",
-		// 		"app-plus": {
-		// 			"scrollIndicator": "none",
-		// 			"bounce": "none"
-		// 		}
-		// 	}
-		// }, 
+		{
+			"path": "pages/wallet/billDetails1",
+			"style": {
+				"navigationBarTitleText": "预收账户明细",
+				"app-plus": {
+					"scrollIndicator": "none",
+					"bounce": "none"
+				}
+			}
+		},
+		{
+			"path": "pages/wallet/billDetails2",
+			"style": {
+				"navigationBarTitleText": "余额明细",
+				"app-plus": {
+					"scrollIndicator": "none",
+					"bounce": "none"
+				}
+			}
+		}, {
+			"path": "pages/wallet/billDetails3",
+			"style": {
+				"navigationBarTitleText": "推广佣金明细",
+				"app-plus": {
+					"scrollIndicator": "none",
+					"bounce": "none"
+				}
+			}
+		},
 		{
 			"path": "pages/wallet/billInfo",
 			"style": {

+ 2 - 41
pages/carInsure1/insureItems1.vue

@@ -1517,48 +1517,9 @@
 				return datetime;
 			},
 			toChinesNum(num) {
-				let changeNum = [
-					"零", "1", "2", "3", "4", "5", "6", "7", "8", "9"
-				];
-				let unit = ["", "0", "00", "000", "0000"];
-				num = parseInt(num);
-				let getWan = temp => {
-					let strArr = temp
-						.toString()
-						.split("")
-						.reverse();
-					let newNum = "";
-					let newArr = [];
-					strArr.forEach((item, index) => {
-						newArr.unshift(
-							item === "0" ? changeNum[item] : changeNum[item] + unit[index]
-						);
-					});
-					let numArr = [];
-					newArr.forEach((m, n) => {
-						if (m !== "零") numArr.push(n);
-					});
-					if (newArr.length > 1) {
-						newArr.forEach((m, n) => {
-							if (newArr[newArr.length - 1] === "零") {
-								if (n <= numArr[numArr.length - 1]) {
-									newNum += m;
-								}
-							} else {
-								newNum += m;
-							}
-						});
-					} else {
-						newNum = newArr[0];
-					}
-					return newNum;
-				};
 				let overWan = Math.floor(num / 10000);
-				let noWan = num % 10000;
-				if (noWan.toString().length < 4) {
-					noWan = "0" + noWan;
-				}
-				return overWan ? getWan(overWan) + "万" + getWan(noWan) : getWan(num);
+				let result = overWan + "万";
+				return result;
 			},
 		}
 	}

+ 6 - 5
pages/carInsure1/quote1.vue

@@ -157,10 +157,10 @@
 				  totalitem.result.jqScore : '无' }}</text>
 									<text v-if="totalitem.result.syScore">商业类型评分:{{ totalitem.result.syScore ?
 				  totalitem.result.syScore : '无' }}</text>
-									<text v-if="totalitem.result.TossRation">总赔付率:{{ totalitem.result.TossRation ?
-				  totalitem.result.TossRation : '无' }}</text>
-									<text v-if="totalitem.result.jgLossRation">交强赔付率:{{ totalitem.result.jgLossRation ?
-				  totalitem.result.jgLossRation : '无' }}</text>
+									<text v-if="totalitem.result.lossRation">总赔付率:{{ totalitem.result.lossRation ?
+				  totalitem.result.lossRation : '无' }}</text>
+									<text v-if="totalitem.result.jqLossRation">交强赔付率:{{ totalitem.result.jqLossRation ?
+				  totalitem.result.jqLossRation : '无' }}</text>
 									<text v-if="totalitem.result.syLossRation">商业赔付率:{{ totalitem.result.syLossRation ?
 				  totalitem.result.syLossRation : '无' }}</text>
 								</view>
@@ -2159,8 +2159,9 @@
 			},
 			//中煤报价
 			async zhongmei(num, id) {
+				let jychecked = this.totalCompanyList[num].jychecked;
 				let params = {
-					accidentalDrivingVo: this.zhongmeiaccidentalDrivingVo,
+					accidentalDrivingVo: jychecked ? this.zhongmeiaccidentalDrivingVo : {},
 					orderNo: this.orderno,
 					companyId: id,
 					agreementId: this.totalCompanyList[num].agreementId,

+ 2 - 41
pages/carInsure1/quoteDetail1.vue

@@ -1734,48 +1734,9 @@
 				});
 			},
 			toChinesNum(num) {
-				let changeNum = [
-					"0", "1", "2", "3", "4", "5", "6", "7", "8", "9"
-				];
-				let unit = ["", "0", "00", "000", "0000"];
-				num = parseInt(num);
-				let getWan = temp => {
-					let strArr = temp
-						.toString()
-						.split("")
-						.reverse();
-					let newNum = "";
-					let newArr = [];
-					strArr.forEach((item, index) => {
-						newArr.unshift(
-							item === "0" ? changeNum[item] : changeNum[item] + unit[index]
-						);
-					});
-					let numArr = [];
-					newArr.forEach((m, n) => {
-						if (m !== "0") numArr.push(n);
-					});
-					if (newArr.length > 1) {
-						newArr.forEach((m, n) => {
-							if (newArr[newArr.length - 1] === "0") {
-								if (n <= numArr[numArr.length - 1]) {
-									newNum += m;
-								}
-							} else {
-								newNum += m;
-							}
-						});
-					} else {
-						newNum = newArr[0];
-					}
-					return newNum;
-				};
 				let overWan = Math.floor(num / 10000);
-				let noWan = num % 10000;
-				if (noWan.toString().length < 4) {
-					noWan = "0" + noWan;
-				}
-				return overWan ? getWan(overWan) + "万" + getWan(noWan) : getWan(num);
+				let result = overWan + "万";
+				return result;
 			},
 		}
 	}

+ 2 - 41
pages/orders/quotation.vue

@@ -284,48 +284,9 @@
 				});
 			},
 			toChinesNum(num) {
-				let changeNum = [
-					"零", "1", "2", "3", "4", "5", "6", "7", "8", "9"
-				];
-				let unit = ["", "0", "00", "000", "0000"];
-				num = parseInt(num);
-				let getWan = temp => {
-					let strArr = temp
-						.toString()
-						.split("")
-						.reverse();
-					let newNum = "";
-					let newArr = [];
-					strArr.forEach((item, index) => {
-						newArr.unshift(
-							item === "0" ? changeNum[item] : changeNum[item] + unit[index]
-						);
-					});
-					let numArr = [];
-					newArr.forEach((m, n) => {
-						if (m !== "零") numArr.push(n);
-					});
-					if (newArr.length > 1) {
-						newArr.forEach((m, n) => {
-							if (newArr[newArr.length - 1] === "零") {
-								if (n <= numArr[numArr.length - 1]) {
-									newNum += m;
-								}
-							} else {
-								newNum += m;
-							}
-						});
-					} else {
-						newNum = newArr[0];
-					}
-					return newNum;
-				};
 				let overWan = Math.floor(num / 10000);
-				let noWan = num % 10000;
-				if (noWan.toString().length < 4) {
-					noWan = "0" + noWan;
-				}
-				return overWan ? getWan(overWan) + "万" + getWan(noWan) : getWan(num);
+				let result = overWan + "万";
+				return result;
 			},
 			//分享图片到微信
 			sendPayCode() {

+ 324 - 291
pages/wallet/billDetails1.vue

@@ -2,7 +2,7 @@
 	<view>
 		<!-- 公共组件-每个页面必须引入 -->
 		<public-module></public-module>
-		
+
 		<view class="white-box">
 			<view class="tx">
 				<view class="tx-grid">
@@ -14,6 +14,7 @@
 						</view>
 					</view>
 				</view>
+				<view class="tx-grid" @click="toWithdraw"><span class="tx-grid-comm-sign">立即提现</span></view>
 			</view>
 			<view class="palace palace-one">
 				<view class="palace-grid">
@@ -45,29 +46,38 @@
 				</view>
 			</view>
 		</view>
-		<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">
+		<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="list-view">
-				
+
 				<!-- 查询区域Start -->
 				<view class="queryView d-flex">
-					<view class="d-flex a-center j-center" >
+					<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 class="d-flex a-center j-center">
 						<picker @change="bindPickerDateChange" :value="dateIndex" :range="dateArray">
-						    <view class="d-flex a-center">{{dateArray[dateIndex]}}日 <view class="icon iconfont icon-xiala"></view></view>
+							<view class="d-flex a-center">{{dateArray[dateIndex]}}日 <view
+									class="icon iconfont icon-xiala"></view>
+							</view>
 						</picker>
 					</view>
 					<view class="d-flex a-center j-center">
@@ -75,9 +85,9 @@
 					</view>
 				</view>
 				<!-- 查询区域End -->
-				
+
 				<block v-for="(item,index) in list" :key="index">
-					<view class="list-item" >
+					<view class="list-item">
 						<view class="content-box">
 							<view class="des-box">
 								<view class="tit">订单号:{{item.orderno }}</view>
@@ -98,7 +108,9 @@
 </template>
 
 <script>
-	import {mapState} from "vuex"
+	import {
+		mapState
+	} from "vuex"
 	import ZPagingMixin from '@/uni_modules/z-paging/components/z-paging/js/z-paging-mixin';
 	export default {
 		components: {
@@ -107,16 +119,16 @@
 		data() {
 			return {
 				/* 查询区域Start */
-				typeIndex:0,	//订单的类型选择
-				typeArray:['车险','意外险','寿险'],	//订单的类型
-				yearArray:[],	//订单的查询年份
-				yearIndex:0,	//订单的年份选择
-				monthArray:[],	//订单的查询月份
-				monthIndex:0, 	//订单的月份选择
-				dateArray:[],	//订单的查询月份
-				dateIndex:0, 	//订单的月份选择
+				typeIndex: 0, //订单的类型选择
+				typeArray: ['车险', '意外险', '寿险'], //订单的类型
+				yearArray: [], //订单的查询年份
+				yearIndex: 0, //订单的年份选择
+				monthArray: [], //订单的查询月份
+				monthIndex: 0, //订单的月份选择
+				dateArray: [], //订单的查询月份
+				dateIndex: 0, //订单的月份选择
 				/* 查询区域End */
-				
+
 				currentPage: 1, //当前页码
 				pageSize: 5, //每页展示条数
 				totalPages: 0, //总页数
@@ -132,34 +144,34 @@
 		},
 		onLoad() {
 			// 搜索年选项Start
-			this.yearArray=[(new Date().getFullYear()-2),(new Date().getFullYear()-1),new Date().getFullYear(),]
-			this.yearIndex=this.yearArray.length-1;
+			this.yearArray = [(new Date().getFullYear() - 2), (new Date().getFullYear() - 1), new Date().getFullYear(), ]
+			this.yearIndex = this.yearArray.length - 1;
 			// 搜索年选项End
-			
+
 			// 搜索月选项Start
-			var month = new Date().getMonth()+1;
-			for(var i=1;i<=month;i++){
-				if(i<10){
-					this.monthArray.push('0'+i);
-				}else{
+			var month = new Date().getMonth() + 1;
+			for (var i = 1; i <= month; i++) {
+				if (i < 10) {
+					this.monthArray.push('0' + i);
+				} else {
 					this.monthArray.push(i);
 				}
 			}
-			this.monthIndex=this.monthArray.length-1;
+			this.monthIndex = this.monthArray.length - 1;
 			// 搜索月选项End
 			// 搜索日选项Start
 			var date = new Date().getDate();
-			for(var i=1;i<=date;i++){
-				if(i<10){
-					this.dateArray.push('0'+i);
-				}else{
+			for (var i = 1; i <= date; i++) {
+				if (i < 10) {
+					this.dateArray.push('0' + i);
+				} else {
 					this.dateArray.push(i);
 				}
 			}
-			this.dateIndex=this.dateArray.length-1;
+			this.dateIndex = this.dateArray.length - 1;
 			// 搜索日选项End
 		},
-		computed:{
+		computed: {
 			...mapState(['userInfo']),
 			getHeight() {
 				let height = uni.getSystemInfoSync().windowHeight - uni.upx2px(356);
@@ -170,47 +182,49 @@
 			this.getCarAdvanceMoney();
 		},
 		methods: {
-			bindPickerTypeChange(e){
+			bindPickerTypeChange(e) {
 				this.typeIndex = e.target.value;
 			},
 			//搜索年发生变化
 			bindPickerYearChange(e) {
 				this.yearIndex = e.target.value;
-				this.monthArray=[];
-				if(this.yearIndex == (this.yearArray.length-1)){
-					var month = new Date().getMonth()+1;
-					for(var i=1;i<=month;i++){
-						if(i<10){
-							this.monthArray.push('0'+i);
-						}else{
+				this.monthArray = [];
+				if (this.yearIndex == (this.yearArray.length - 1)) {
+					var month = new Date().getMonth() + 1;
+					for (var i = 1; i <= month; i++) {
+						if (i < 10) {
+							this.monthArray.push('0' + i);
+						} else {
 							this.monthArray.push(i);
 						}
 					}
-					this.monthIndex=this.monthArray.length-1;
-				}else{
-					for(var i=1;i<=12;i++){
-						if(i<10){
-							this.monthArray.push('0'+i);
-						}else{
+					this.monthIndex = this.monthArray.length - 1;
+				} else {
+					for (var i = 1; i <= 12; i++) {
+						if (i < 10) {
+							this.monthArray.push('0' + i);
+						} else {
 							this.monthArray.push(i);
 						}
 					}
-					this.monthIndex=0;
+					this.monthIndex = 0;
 				}
 			},
 			//搜索月发生变化
 			bindPickerMonthChange(e) {
 				this.monthIndex = e.target.value;
 			},
-			bindPickerDateChange(e){
+			bindPickerDateChange(e) {
 				this.dateIndex = e.target.value;
 			},
-			
-			
-			
+
+
+
 			// 预收账户金额查询 
 			async getCarAdvanceMoney() {
-				let res = await this.$http.get('/insPayApply/advanceAccount?userid=' + this.userInfo.sysUser.id,{},{load:false});
+				let res = await this.$http.get('/insPayApply/advanceAccount?userid=' + this.userInfo.sysUser.id, {}, {
+					load: false
+				});
 				if (res.code == 200) {
 					this.carAdvanceMoney = res.data;
 					this.advanceMoney = res.data;
@@ -237,11 +251,11 @@
 					"pageNum": pageNo,
 					"pageSize": pageSize
 				};
-				let res = await this.$http.post('/insFeeDetail/queryInsCompanyFee',data);
-				
+				let res = await this.$http.post('/insFeeDetail/queryInsCompanyFee', data);
+
 				let content = [];
 				if (res.code == 200) {
-					if(res.data.content.length>0){
+					if (res.data.content.length > 0) {
 						content = res.data.content;
 					}
 				}
@@ -253,236 +267,255 @@
 </script>
 
 <style lang="scss" scoped>
-@import '@/style/mixin.scss';
-page {
-	background-color: #fff;
-}
-.white-box {
-	width: 94%;
-	background: white;
-	border-radius: 10rpx;
-	margin: 20rpx auto 20rpx;
-	box-shadow: 0 6rpx 20rpx #e7e7e7;
-}
-.white-box .tx {
-	padding-top: 26rpx;
-	overflow: hidden;
-	display: flex;
-	justify-content: space-between;
-	align-content: center;
-}
-.white-box .tx .tx-grid {
-	box-sizing: border-box;
-}
-.white-box .tx .tx-grid:first-child {
-	margin-left: 40rpx;
-}
-.white-box .tx .tx-grid .tx-grid-comm-sign {
-	display: block;
-	border-radius: 40rpx 0 0 40rpx;
-	font-size: 26rpx;
-	padding: 16rpx 44rpx;
-	background: linear-gradient(to right, rgba($themeColor,0.8), rgba($themeColor,0.6));
-	color: #fff;
-	font-weight: bold;
-}
-
-.white-box .tx .tx-grid .tx-grid-text {
-	display: block;
-	color: #333;
-	font-size: 26rpx;
-	white-space: nowrap;
-	text-overflow: ellipsis;
-	overflow: hidden;
-}
-
-.white-box .tx .tx-grid .tx-grid-text .title {
-	font-size: 26rpx;
-	font-weight: normal;
-	color: $themeColor;
-}
-
-.white-box .tx .tx-grid .tx-grid-text .money {
-	font-size: 60rpx;
-	color: $themeColor;
-	letter-spacing: 2rpx;
-	margin-bottom: 10rpx;
-}
-
-.white-box .tx .tx-grid .tx-grid-text .money-b {
-	font-size: 28rpx;
-}
-
-.white-box .palace {
-	padding-bottom: 20rpx;
-	overflow: hidden;
-	display: flex;
-	justify-content: center;
-}
-
-.white-box .palace .palace-grid {
-	flex: 1;
-	position: relative;
-	box-sizing: border-box;
-}
-.white-box .palace .palace-grid .palace-grid-text {
-	display: block;
-	text-align: center;
-	white-space: nowrap;
-	text-overflow: ellipsis;
-	overflow: hidden;
-}
-.white-box .palace .palace-grid .palace-grid-text.active{
-	background-color: rgba($themeColor,0.6);
-}
-.white-box .palace .palace-grid .palace-grid-text .palace-grid-text-name {
-	font-size: 26rpx;
-	font-weight: normal;
-	color: $themeColor;
-}
-.white-box .palace .palace-grid .palace-grid-text.active .palace-grid-text-name {
-	color: #FFFFFF!important;
-}
-.white-box .palace .palace-grid .palace-grid-text .palace-grid-text-data {
-	font-size: 32rpx;
-	color: $themeColor;
-	letter-spacing: 2rpx;
-	margin-bottom: 5rpx;
-}
-.white-box .palace .palace-grid .palace-grid-text.active .palace-grid-text-data {
-	color: #FFFFFF!important;
-}
-.white-box .palace .palace-grid .palace-grid-text .palace-grid-text-data .palace-grid-text-data-b {
-	font-size: 20rpx;
-}
-
-.list-view {
-	position: relative;
-	width: 100%;
-	overflow: hidden;
-}
-
-.list-item {
-	width: 100%;
-	padding: 30rpx 28rpx;
-	box-sizing: border-box;
-	background: #fff;
-	display: flex;
-	align-items: flex-start;
-	justify-content: space-between;
-	border-bottom: 1rpx solid #eaeef1;
-}
-
-.item-last::after {
-	left: 0 !important;
-}
-
-.content-box {
-	display: flex;
-	align-items: flex-start;
-	justify-content: space-between;
-}
-
-.des-box {
-	min-height: 80rpx;
-	padding-left: 28rpx;
-	box-sizing: border-box;
-	vertical-align: top;
-	color: #333;
-	font-size: 24rpx;
-	display: flex;
-	flex-direction: column;
-	justify-content: space-between;
-}
-
-.tit {
-	font-size: 30rpx;
-	max-width: 500rpx;
-	white-space: nowrap;
-	overflow: hidden;
-	text-overflow: ellipsis;
-}
-
-.source {
-	margin: 12rpx 0;
-}
-
-.time {
-	color: #888;
-}
-
-.money {
-	font-size: 38rpx;
-	font-weight: 500;
-	color: #1E85FE;
-	white-space: nowrap;
-	overflow: hidden;
-	text-overflow: ellipsis;
-	padding-left: 20rpx;
-}
-
-.less {
-	color: #4caf50 !important;
-}
-
-.tip {
-	margin-top: 50rpx;
-	display: flex;
-	justify-content: center;
-	align-content: center;
-	font-size: 24rpx;
-	color: #888;
-}
-
-.nothing {
-	position: absolute;
-	top: 320upx;
-	left: 0;
-	right: 0;
-	bottom: 0;
-}
-
-.nothing>view {
-	line-height: 1;
-}
-
-.nothing>view.icon {
-	/* color: #66A3FF; */
-	color: #989898;
-	font-size: 260upx;
-}
-
-.nothing>view.text {
-	font-size: 28upx;
-	color: #989898;
-}
-
-
-/* 查询区域Start */
-.queryView {
-	justify-content: space-around;
-	height: 82upx;
-	line-height: 80upx;
-}
-.queryView>view{
-	border-top: 1px solid #FFC38F;
-	border-bottom: 1px solid #FFC38F;
-	border-left: 1px solid #FFC38F;
-	box-sizing: border-box;
-	color: #FFC38F;
-}
-.queryView>view:nth-child(1){
-	flex: 3;
-}
-.queryView>view:nth-child(2){
-	flex: 4;
-}
-.queryView>view:nth-child(3){
-	flex: 3;
-}
-.queryView>view:nth-child(4){
-	border-right: 1px solid #FFC38F;
-	flex: 3;
-}
-/* 查询区域End */
-</style>
+	@import '@/style/mixin.scss';
+
+	page {
+		background-color: #fff;
+	}
+
+	.white-box {
+		width: 94%;
+		background: white;
+		border-radius: 10rpx;
+		margin: 20rpx auto 20rpx;
+		box-shadow: 0 6rpx 20rpx #e7e7e7;
+	}
+
+	.white-box .tx {
+		padding-top: 26rpx;
+		overflow: hidden;
+		display: flex;
+		justify-content: space-between;
+		align-content: center;
+	}
+
+	.white-box .tx .tx-grid {
+		box-sizing: border-box;
+	}
+
+	.white-box .tx .tx-grid:first-child {
+		margin-left: 40rpx;
+	}
+
+	.white-box .tx .tx-grid .tx-grid-comm-sign {
+		display: block;
+		border-radius: 40rpx 0 0 40rpx;
+		font-size: 26rpx;
+		padding: 16rpx 44rpx;
+		background: linear-gradient(to right, rgba($themeColor, 0.8), rgba($themeColor, 0.6));
+		color: #fff;
+		font-weight: bold;
+	}
+
+	.white-box .tx .tx-grid .tx-grid-text {
+		display: block;
+		color: #333;
+		font-size: 26rpx;
+		white-space: nowrap;
+		text-overflow: ellipsis;
+		overflow: hidden;
+	}
+
+	.white-box .tx .tx-grid .tx-grid-text .title {
+		font-size: 26rpx;
+		font-weight: normal;
+		color: $themeColor;
+	}
+
+	.white-box .tx .tx-grid .tx-grid-text .money {
+		font-size: 60rpx;
+		color: $themeColor;
+		letter-spacing: 2rpx;
+		margin-bottom: 10rpx;
+	}
+
+	.white-box .tx .tx-grid .tx-grid-text .money-b {
+		font-size: 28rpx;
+	}
+
+	.white-box .palace {
+		padding-bottom: 20rpx;
+		overflow: hidden;
+		display: flex;
+		justify-content: center;
+	}
+
+	.white-box .palace .palace-grid {
+		flex: 1;
+		position: relative;
+		box-sizing: border-box;
+	}
+
+	.white-box .palace .palace-grid .palace-grid-text {
+		display: block;
+		text-align: center;
+		white-space: nowrap;
+		text-overflow: ellipsis;
+		overflow: hidden;
+	}
+
+	.white-box .palace .palace-grid .palace-grid-text.active {
+		background-color: rgba($themeColor, 0.6);
+	}
+
+	.white-box .palace .palace-grid .palace-grid-text .palace-grid-text-name {
+		font-size: 26rpx;
+		font-weight: normal;
+		color: $themeColor;
+	}
+
+	.white-box .palace .palace-grid .palace-grid-text.active .palace-grid-text-name {
+		color: #FFFFFF !important;
+	}
+
+	.white-box .palace .palace-grid .palace-grid-text .palace-grid-text-data {
+		font-size: 32rpx;
+		color: $themeColor;
+		letter-spacing: 2rpx;
+		margin-bottom: 5rpx;
+	}
+
+	.white-box .palace .palace-grid .palace-grid-text.active .palace-grid-text-data {
+		color: #FFFFFF !important;
+	}
+
+	.white-box .palace .palace-grid .palace-grid-text .palace-grid-text-data .palace-grid-text-data-b {
+		font-size: 20rpx;
+	}
+
+	.list-view {
+		position: relative;
+		width: 100%;
+		overflow: hidden;
+	}
+
+	.list-item {
+		width: 100%;
+		padding: 30rpx 28rpx;
+		box-sizing: border-box;
+		background: #fff;
+		display: flex;
+		align-items: flex-start;
+		justify-content: space-between;
+		border-bottom: 1rpx solid #eaeef1;
+	}
+
+	.item-last::after {
+		left: 0 !important;
+	}
+
+	.content-box {
+		display: flex;
+		align-items: flex-start;
+		justify-content: space-between;
+	}
+
+	.des-box {
+		min-height: 80rpx;
+		padding-left: 28rpx;
+		box-sizing: border-box;
+		vertical-align: top;
+		color: #333;
+		font-size: 24rpx;
+		display: flex;
+		flex-direction: column;
+		justify-content: space-between;
+	}
+
+	.tit {
+		font-size: 30rpx;
+		max-width: 500rpx;
+		white-space: nowrap;
+		overflow: hidden;
+		text-overflow: ellipsis;
+	}
+
+	.source {
+		margin: 12rpx 0;
+	}
+
+	.time {
+		color: #888;
+	}
+
+	.money {
+		font-size: 38rpx;
+		font-weight: 500;
+		color: #1E85FE;
+		white-space: nowrap;
+		overflow: hidden;
+		text-overflow: ellipsis;
+		padding-left: 20rpx;
+	}
+
+	.less {
+		color: #4caf50 !important;
+	}
+
+	.tip {
+		margin-top: 50rpx;
+		display: flex;
+		justify-content: center;
+		align-content: center;
+		font-size: 24rpx;
+		color: #888;
+	}
+
+	.nothing {
+		position: absolute;
+		top: 320upx;
+		left: 0;
+		right: 0;
+		bottom: 0;
+	}
+
+	.nothing>view {
+		line-height: 1;
+	}
+
+	.nothing>view.icon {
+		/* color: #66A3FF; */
+		color: #989898;
+		font-size: 260upx;
+	}
+
+	.nothing>view.text {
+		font-size: 28upx;
+		color: #989898;
+	}
+
+
+	/* 查询区域Start */
+	.queryView {
+		justify-content: space-around;
+		height: 82upx;
+		line-height: 80upx;
+	}
+
+	.queryView>view {
+		border-top: 1px solid #FFC38F;
+		border-bottom: 1px solid #FFC38F;
+		border-left: 1px solid #FFC38F;
+		box-sizing: border-box;
+		color: #FFC38F;
+	}
+
+	.queryView>view:nth-child(1) {
+		flex: 3;
+	}
+
+	.queryView>view:nth-child(2) {
+		flex: 4;
+	}
+
+	.queryView>view:nth-child(3) {
+		flex: 3;
+	}
+
+	.queryView>view:nth-child(4) {
+		border-right: 1px solid #FFC38F;
+		flex: 3;
+	}
+
+	/* 查询区域End */
+</style>

+ 89 - 88
store/modules/common.js

@@ -1,95 +1,96 @@
 export const state = {
-  //webView地址
-  webViewUrl: "",
-  loadingShow: false,
-  //微信场景参数
-  chatScenesInfo: {},
-  //登录弹窗状态
-  loginPopupShow: false,
-  //当前位置
-  currentAddress: {
-  	areaName: "请选择",
-  	areaId: ''
-  },
+	//webView地址
+	webViewUrl: "",
+	loadingShow: false,
+	//微信场景参数
+	chatScenesInfo: {},
+	//登录弹窗状态
+	loginPopupShow: false,
+	//当前位置
+	currentAddress: {
+		areaName: "请选择",
+		areaId: ''
+	},
 };
 //缓存浏览器的数据名称
-const cacheNameList = ["userInfo","userCheckInfo","userLoginId","token","avatar","userStatus","webViewUrl"];
+const cacheNameList = ["userInfo", "userCheckInfo", "userLoginId", "token", "avatar", "userStatus", "webViewUrl",
+	"sources"
+];
 let clearTime;
 export const mutations = {
-  //取出缓存数据(打开APP就取出)
-  setCacheData(state) {
-  	for (let name of cacheNameList) {
-		let data;
-  		// #ifndef H5
-  		data = uni.getStorageSync(name);
-  		// #endif
-  		// #ifdef H5
-  		data = sessionStorage.getItem(name) || localStorage.getItem(name);
-  		// #endif
-  		if (data) {
-  			// #ifdef H5
-  			try {
-  				data = JSON.parse(data);
-  			} catch (e) {
-  			}
-  			// #endif
-  			state[name] = data;
-  		}
-  	}
-  },
-  //WebView地址
-  setWebViewUrl(state, data) {
-  	if (data) {
-  		state.webViewUrl = data;
-  		// #ifdef H5
-  		window.sessionStorage.setItem('webViewUrl', data);
-  		// #endif
-  	}
-  },
-  //数据加载状态
-  setLoadingShow(state, data) {
-  	if(state.loadingShow){
-  		if(data){
-  			clearTime && clearTimeout(clearTime);
-  			clearTime = setTimeout(function(){
-  				state.loadingShow = false;
-  			},5000);
-  		} else {
-  			clearTime && clearTimeout(clearTime);
-  			clearTime = setTimeout(function(){
-  				state.loadingShow = false;
-  			},50);
-  		}
-  	} else {
-  		state.loadingShow = data;
-  	}
-  },
-  //微信场景参数
-  setChatScenesInfo(state, data) {
-  	if (data) {
-  		state.chatScenesInfo = Object.assign({}, state.chatScenesInfo, data);
-  	}
-  },
-  //登录弹窗状态
-  setLoginPopupShow(state, data) {
-  	state.loginPopupShow = data;
-  },
-  //当前地址
-  setCurrentAddress(state, data) {
-  	if (data) {
-  		state.currentAddress = Object.assign(state.currentAddress, data);
-  		let addressInfo = {
-  			"provinceId": state.currentAddress.provinceId,
-  			"provinceName": state.currentAddress.provinceName,
-  			"cityId": state.currentAddress.cityId,
-  			"cityName": state.currentAddress.cityName,
-  			"areaId": state.currentAddress.areaId,
-  			"areaName": state.currentAddress.areaName,
-  		};
-  		uni.setStorageSync('currentAddress', addressInfo);
-  	}
-  }
+	//取出缓存数据(打开APP就取出)
+	setCacheData(state) {
+		for (let name of cacheNameList) {
+			let data;
+			// #ifndef H5
+			data = uni.getStorageSync(name);
+			// #endif
+			// #ifdef H5
+			data = sessionStorage.getItem(name) || localStorage.getItem(name);
+			// #endif
+			if (data) {
+				// #ifdef H5
+				try {
+					data = JSON.parse(data);
+				} catch (e) {}
+				// #endif
+				state[name] = data;
+			}
+		}
+	},
+	//WebView地址
+	setWebViewUrl(state, data) {
+		if (data) {
+			state.webViewUrl = data;
+			// #ifdef H5
+			window.sessionStorage.setItem('webViewUrl', data);
+			// #endif
+		}
+	},
+	//数据加载状态
+	setLoadingShow(state, data) {
+		if (state.loadingShow) {
+			if (data) {
+				clearTime && clearTimeout(clearTime);
+				clearTime = setTimeout(function() {
+					state.loadingShow = false;
+				}, 5000);
+			} else {
+				clearTime && clearTimeout(clearTime);
+				clearTime = setTimeout(function() {
+					state.loadingShow = false;
+				}, 50);
+			}
+		} else {
+			state.loadingShow = data;
+		}
+	},
+	//微信场景参数
+	setChatScenesInfo(state, data) {
+		if (data) {
+			state.chatScenesInfo = Object.assign({}, state.chatScenesInfo, data);
+		}
+	},
+	//登录弹窗状态
+	setLoginPopupShow(state, data) {
+		state.loginPopupShow = data;
+	},
+	//当前地址
+	setCurrentAddress(state, data) {
+		if (data) {
+			state.currentAddress = Object.assign(state.currentAddress, data);
+			let addressInfo = {
+				"provinceId": state.currentAddress.provinceId,
+				"provinceName": state.currentAddress.provinceName,
+				"cityId": state.currentAddress.cityId,
+				"cityName": state.currentAddress.cityName,
+				"areaId": state.currentAddress.areaId,
+				"areaName": state.currentAddress.areaName,
+			};
+			uni.setStorageSync('currentAddress', addressInfo);
+		}
+	}
 };
 export const actions = {
-  
-};
+
+};

+ 19 - 19
store/modules/user.js

@@ -1,14 +1,14 @@
 export const state = {
-  //用户数据
-  userInfo: {},
-  userCheckInfo: {},
-  userLoginId:"",
-  token:"",
-  avatar:"",
-  userStatus:""
+	//用户数据
+	userInfo: {},
+	userCheckInfo: {},
+	userLoginId: "",
+	token: "",
+	avatar: "",
+	userStatus: ""
 };
 export const mutations = {
-	setUserModules(state, obj={}){
+	setUserModules(state, obj = {}) {
 		if (obj) {
 			state[obj.title] = obj.data;
 			// #ifdef H5
@@ -19,15 +19,15 @@ export const mutations = {
 			// #endif
 		}
 	},
-	
-	
+
+
 	// 保存用户状态
-	setUserStatus(state, data){
+	setUserStatus(state, data) {
 		if (data) {
 			state.userStatus = data;
 			// #ifdef H5
 			window.sessionStorage.setItem('userStatus', JSON.stringify(state.userStatus));
-			
+
 			// #endif
 			// #ifndef H5
 			uni.setStorageSync('userStatus', state.userStatus);
@@ -35,7 +35,7 @@ export const mutations = {
 		}
 	},
 	// 保存token
-	setToken(state, data){
+	setToken(state, data) {
 		if (data) {
 			state.token = data;
 			// #ifdef H5
@@ -47,7 +47,7 @@ export const mutations = {
 		}
 	},
 	// 保存头像
-	setAvatar(state, data){
+	setAvatar(state, data) {
 		if (data) {
 			state.avatar = data;
 			// #ifdef H5
@@ -61,8 +61,8 @@ export const mutations = {
 	//储存用户信息
 	setUserInfo(state, data) {
 		if (data) {
-			state.userInfo =  data;
-			state.userLoginId =  data.sysUser.id;
+			state.userInfo = data;
+			state.userLoginId = data.sysUser.id;
 			// #ifdef H5
 			window.sessionStorage.setItem('userInfo', JSON.stringify(state.userInfo));
 			window.sessionStorage.setItem('userLoginId', JSON.stringify(state.userLoginId));
@@ -85,7 +85,7 @@ export const mutations = {
 			// #endif
 		}
 	},
-	  // 退出APP
+	// 退出APP
 	emptyUserInfo(state) {
 		state.userInfo = {};
 		state.userCheckInfo = {};
@@ -109,5 +109,5 @@ export const mutations = {
 	},
 };
 export const actions = {
-  
-};
+
+};