lhl 3 years ago
parent
commit
d7ebba2c3e

+ 45 - 1
api/index.js

@@ -33,4 +33,48 @@ export function loadIndexs(data) {
 		data
 		data
 	});
 	});
 }
 }
-
+
+// 获取场次
+export function getChangCi(data) {
+	return request({
+		url: '/api/auction',
+		method: 'get',
+		data
+	});
+}
+
+// 预约
+export function subscribe(data) {
+	return request({
+		url: '/api/subscribe',
+		method: 'post',
+		data
+	});
+}
+
+// 进场
+export function advance(data) {
+	return request({
+		url: '/api/advance',
+		method: 'get',
+		data
+	});
+}
+
+// 场次价格区间
+export function section(data) {
+	return request({
+		url: '/api/section',
+		method: 'get',
+		data
+	});
+}
+
+//购买预约商品
+export function purchase(data) {
+	return request({
+		url: '/api/purchase',
+		method: 'get',
+		data
+	});
+}

+ 1 - 1
manifest.json

@@ -92,7 +92,7 @@
         "devServer" : {
         "devServer" : {
             "proxy" : {
             "proxy" : {
                 "/api" : {
                 "/api" : {
-                    "target" : "http://qudou.frp.liuniu946.com/", //请求的目标域名
+                    "target" : "http://sxg.frp.liuniu946.com", //请求的目标域名
                     "changeOrigin" : true,
                     "changeOrigin" : true,
                     // "secure": false,
                     // "secure": false,
                     "pathRewrite" : {}
                     "pathRewrite" : {}

+ 54 - 0
pages.json

@@ -19,6 +19,15 @@
 				"navigationBarTitleText": "商城首页"
 				"navigationBarTitleText": "商城首页"
 			}
 			}
 		},
 		},
+		{
+			"path": "pages/index/yuyuechang",
+			"style": {
+				"navigationBarTitleText": "",
+				"app-plus": {
+					"titleNView": false
+				}
+			}
+		},
 		{
 		{
 			"path": "pages/product/new",
 			"path": "pages/product/new",
 			"style": {
 			"style": {
@@ -288,6 +297,51 @@
 					"titleNView": false
 					"titleNView": false
 				}
 				}
 			}
 			}
+		},
+		{
+			"path": "pages/user/mygwjf",
+			"style": {
+				"navigationBarTitleText": "购物积分",
+				"app-plus": {
+					"titleNView": false
+				}
+			}
+		},
+		{
+			"path": "pages/user/mythq",
+			"style": {
+				"navigationBarTitleText": "我的提货券",
+				"app-plus": {
+					"titleNView": false
+				}
+			}
+		},
+		{
+			"path": "pages/user/myggz",
+			"style": {
+				"navigationBarTitleText": "我的广告值",
+				"app-plus": {
+					"titleNView": false
+				}
+			}
+		},
+		{
+			"path": "pages/user/myxfjf",
+			"style": {
+				"navigationBarTitleText": "我的消费积分",
+				"app-plus": {
+					"titleNView": false
+				}
+			}
+		},
+		{
+			"path": "pages/user/xfjfzz",
+			"style": {
+				"navigationBarTitleText": "消费积分转账",
+				"app-plus": {
+					"titleNView": false
+				}
+			}
 		},
 		},
 		{
 		{
 			"path": "pages/user/award",
 			"path": "pages/user/award",

+ 128 - 19
pages/index/index.vue

@@ -16,7 +16,7 @@
 		<swiper class="top-swiper" autoplay="true" duration="400" interval="5000" @change="swiperChange">
 		<swiper class="top-swiper" autoplay="true" duration="400" interval="5000" @change="swiperChange">
 			<swiper-item v-for="(item, index) in carouselList" :key="index" class="carousel-item"
 			<swiper-item v-for="(item, index) in carouselList" :key="index" class="carousel-item"
 				@click="bannerNavToUrl(item)">
 				@click="bannerNavToUrl(item)">
-				<image src="../../static/img/bargainBg.jpg" />
+				<image :src="item.pic" />
 			</swiper-item>
 			</swiper-item>
 		</swiper>
 		</swiper>
 		<!-- 轮播图 end -->
 		<!-- 轮播图 end -->
@@ -39,12 +39,12 @@
 			<view class="yuyue-top flex">
 			<view class="yuyue-top flex">
 				<image src="../../static/img/yuyue-top.png" mode="heightFix"></image>
 				<image src="../../static/img/yuyue-top.png" mode="heightFix"></image>
 			</view>
 			</view>
-			<view class="yuyue-item"  v-for="item in 3">
+			<view class="yuyue-item"  v-for="item in changCiList">
 				<view class="item-top">
 				<view class="item-top">
 					<image src="../../static/img/yuyue.png" mode=""></image>
 					<image src="../../static/img/yuyue.png" mode=""></image>
 					<view class="item-top-info flex">
 					<view class="item-top-info flex">
 						<view class="">
 						<view class="">
-							早上场<text>/大家都在买</text>
+							{{item.name}}<text>/大家都在买</text>
 						</view>
 						</view>
 						<view class="goto">
 						<view class="goto">
 							GO>
 							GO>
@@ -53,28 +53,33 @@
 				</view>
 				</view>
 				<view class="item-info flex">
 				<view class="item-info flex">
 					<view class="item-img">
 					<view class="item-img">
-						<image src="../../static/img/zaoshang.png" mode=""></image>
+						<image :src="item.image" mode=""></image>
 					</view>
 					</view>
 					<view class="item-val flex">
 					<view class="item-val flex">
 						<view class="item-status">
 						<view class="item-status">
 							距离本场开始
 							距离本场开始
 						</view>
 						</view>
 						<view class="item-djs">
 						<view class="item-djs">
+							
 							<uni-countdown
 							<uni-countdown
+							v-if="!item.djs.over"
 								color="#C6914E"
 								color="#C6914E"
 								background-color="#F6EFDF"
 								background-color="#F6EFDF"
 								:show-day="false"
 								:show-day="false"
-								:day="0"
-								:hour="10"
-								:minute="10"
-								:second="10"
+								:day="item.djs.day"
+								:hour="item.djs.hours"
+								:minute="item.djs.minutes"
+								:second="item.djs.seconds"
 							></uni-countdown>
 							></uni-countdown>
+							<view class="" v-else style="color: #dc262b;">
+								预约已结束
+							</view>
 						</view>
 						</view>
 						<view class="item-base">
 						<view class="item-base">
-							开始时间 16:00:00 结束时间 16:30:00
+							开始时间 {{item.radd_time}} 结束时间 {{item.rend_time }}
 						</view>
 						</view>
-						<view class="item-btn" @click="yuyue()">
-							已预约
+						<view class="item-btn" @click="yuyue(item)" :class="{'yuyue': !item.djs.over || item.sta == 2 }">
+							{{item.sta == 2 ? '立即进场': (item.djs.over ? '结束': '立即预约')}}
 						</view>
 						</view>
 					</view>
 					</view>
 					
 					
@@ -92,13 +97,13 @@
 					本次预约冻结广告值
 					本次预约冻结广告值
 				</view>
 				</view>
 				<view class="popupyy-val">
 				<view class="popupyy-val">
-					330
+					{{ yuyueInfo.advert }}
 				</view>
 				</view>
 				<view class="" style="margin-top: 50rpx;">
 				<view class="" style="margin-top: 50rpx;">
-					消费积分不低于100
+					消费账户不低于{{yuyueInfo.lowest }}
 				</view>
 				</view>
 				<view class="" style="color: #FF4C4C;margin-top: 15rpx;">
 				<view class="" style="color: #FF4C4C;margin-top: 15rpx;">
-					可用广告值700
+					广告值不低于{{yuyueInfo.minimum }}
 				</view>
 				</view>
 				<view class="popupyy-btn" @click="yuyueOk()">
 				<view class="popupyy-btn" @click="yuyueOk()">
 					确认预约
 					确认预约
@@ -106,17 +111,37 @@
 			</view>
 			</view>
 		</uni-popup>
 		</uni-popup>
 		<!-- 预约弹窗 end-->
 		<!-- 预约弹窗 end-->
+		<!-- 预约成功弹窗 start-->
+		<uni-popup ref="popupyyok" type="center">
+			<view class="popupyyok-wrap">
+				<image src="../../static/img/yuyueok.png" mode="widthFix"></image>
+				<view class="" style="font-size: 35rpx;font-weight: bold;color: #333333;">
+					预约成功!
+				</view>
+				<view class="" style="padding: 20rpx 80rpx;color: #999999;font-size: 26rpx;">
+					恭喜您预约活动成功,请您调好闹钟,准时参与!
+				</view>
+				<view class="btn" @click="$refs.popupyyok.close()">
+					确定
+				</view>
+			</view>
+		</uni-popup >
 	</view>
 	</view>
 </template>
 </template>
 
 
 <script>
 <script>
+	import { timeComputed } from '@/utils/rocessor.js'
 	import {
 	import {
 		tabbar1
 		tabbar1
 	} from '@/utils/tabbar.js';
 	} from '@/utils/tabbar.js';
 	import {
 	import {
-		loadIndexs
+		loadIndexs,
+		getChangCi,
+		subscribe,
+		advance
 	} from '@/api/index.js';
 	} from '@/api/index.js';
 	import uniCountdown from '@/components/uni-countdown/uni-countdown.vue';
 	import uniCountdown from '@/components/uni-countdown/uni-countdown.vue';
+	import { mapState, mapMutations } from 'vuex';
 	export default {
 	export default {
 		components: {
 		components: {
 			uniCountdown
 			uniCountdown
@@ -136,11 +161,20 @@
 					stopTimeM: 24,
 					stopTimeM: 24,
 					stopTimeS: 59
 					stopTimeS: 59
 				},
 				},
-				bzb: 30
+				bzb: 30,
+				changCiList: [],
+				yuyueInfo: {}
 			};
 			};
 		},
 		},
 		onLoad() {
 		onLoad() {
 			this.loadData();
 			this.loadData();
+			
+		},
+		onShow() {
+			this.getChangCi()
+		},
+		computed: {
+			...mapState('user',['userInfo'])
 		},
 		},
 		methods: {
 		methods: {
 			loadData() {
 			loadData() {
@@ -191,12 +225,63 @@
 				});
 				});
 			},
 			},
 			// 打开预约弹窗
 			// 打开预约弹窗
-			yuyue() {
-				this.$refs.popupyy.open()
+			yuyue(item) {
+
+				if(item.sta == 2) {
+					// 进场
+					advance({
+						id: item.id
+					}).then(res => {
+						console.log(res)
+						uni.navigateTo({
+							url: '/pages/index/yuyuechang?id=' + item.id
+						})
+					})
+				}else {
+					if(item.djs.over) {
+						return
+					}
+					this.yuyueInfo = item
+					this.$refs.popupyy.open()
+				}
+				
 			},
 			},
 			// 确定预约
 			// 确定预约
 			yuyueOk() {
 			yuyueOk() {
-				this.$refs.popupyy.close()
+				let obj = this
+				// 判断广告值
+				if(obj.yuyueInfo.minimum*1 > obj.userInfo.aid_val*1) {
+					return obj.$api.msg('您当前广告值不足')
+				}
+				// 判断消费账户
+				if(obj.yuyueInfo.lowest*1 > obj.userInfo.now_money*1) {
+					return obj.$api.msg('您当前消费账户不足')
+				}
+				subscribe({
+					id: obj.yuyueInfo.id
+				}).then(res => {
+					console.log(res,'确定预约')
+					obj.$refs.popupyy.close()
+					obj.$refs.popupyyok.open()
+				})
+				
+			},
+			// 获取场次信息
+			getChangCi() {
+				let obj = this
+				getChangCi({
+					page: 1,
+					limit: 10
+				}).then(res => {
+					console.log(res,'获取场次信息')
+					
+					let arr = res.data.map(e => {
+						e.djs = timeComputed(e.time)
+						return e
+					})
+					console.log(arr)
+					obj.changCiList = arr.reverse()
+				})
 			}
 			}
 		}
 		}
 	};
 	};
@@ -388,6 +473,10 @@
 						margin: auto;
 						margin: auto;
 						text-align: center;
 						text-align: center;
 					}
 					}
+					.yuyue {
+						background-color: #303030;
+						color: #F8DABA;
+					}
 				}
 				}
 				
 				
 			}
 			}
@@ -454,4 +543,24 @@
 			margin: 20rpx auto 0;
 			margin: 20rpx auto 0;
 		}
 		}
 	}
 	}
+	.popupyyok-wrap {
+		height: 707rpx;
+		width: 551rpx;
+		background-color: #fff;
+		border-radius: 20rpx;
+		text-align: center;
+		image {
+			width: 100%;
+		}
+		.btn {
+			width: 295rpx;
+			line-height: 69rpx;
+			border-radius: 34rpx;
+			background: #303030;
+			color: #F8DABA;
+			font-size: 35rpx;
+			color: #F8DABA;
+			margin: auto;
+		}
+	}
 </style>
 </style>

+ 164 - 0
pages/index/yuyuechang.vue

@@ -0,0 +1,164 @@
+<template>
+	<view class="content">
+		<!-- <view class="changci-top flex">
+			<view class="djs-wrap flex">
+				倒计时: 
+				<uni-countdown
+					color="#C6914E"
+					background-color="#F6EFDF"
+					:show-day="false"
+					:day="0"
+					:hour="0"
+					:minute="0"
+					:second="0"
+				></uni-countdown>
+			</view>
+			<view class="user-info">
+				<view class="" style="text-align: right;">
+					消费账户:{{userInfo.now_money*1 || '0'}}
+				</view>
+				<view class="" style="text-align: right;">
+					广告值: {{userInfo.aid_val*1 || '0'}}
+				</view>
+			</view>
+		</view> -->
+		<view class="" v-for="item in area">
+			<view class="good-tit flex" >
+				<view class="tit-left flex">
+					<image src="../../static/icon/red-tit.png" mode=""></image>{{item.name}}
+				</view>
+				<view class="tit-right">
+					实付金额:{{item.low}} ~ {{ item.high }}
+				</view>
+			</view>
+			<view class="good-list flex" @click="goumai(item)">
+				<image src="../../static/icon/red-gift.png" mode="widthFix" v-for="itemg in 35"></image>
+			</view>
+		</view>
+		<uni-popup ref="popupyyok" type="center">
+			<view class="popupyyok-wrap">
+				<image :src="good.image" mode="widthFix"></image>
+				<view class="clamp2" style="padding: 20rpx 80rpx;color: #999999;font-size: 26rpx;">
+					{{good.name}}
+				</view>
+				<view class="" style="font-size: 35rpx;font-weight: bold;color: #333333;">
+					{{good.price}}
+				</view>
+				<view class="btn" @click="zhifu">
+					立即支付
+				</view>
+			</view>
+		</uni-popup >
+	</view>
+</template>
+
+<script>
+	import { section, purchase } from '@/api/index.js'
+	import uniCountdown from '@/components/uni-countdown/uni-countdown.vue';
+	import { mapState, mapMutations } from 'vuex';
+	export default {
+		components: {
+			uniCountdown
+		},
+		data() {
+			return {
+				ccid: '',
+				area: [],
+				good: {}
+			}
+		},
+		computed: {
+			...mapState('user',['userInfo'])
+		},
+		onLoad(opt) {
+			this.ccid = opt.id
+			this.section()
+		},
+		methods: {
+			section() {
+				let obj = this
+				section({
+					id: obj.ccid
+				}).then(res => {
+					console.log(res)
+					obj.area = res.data
+				})
+			},
+			goumai(item) {
+				let obj = this
+				purchase({
+					id: obj.ccid,
+					s_id: item.id
+				}).then(res => {
+					console.log(res)
+					obj.good = res.data
+					obj.$refs.popupyyok.open()
+				})
+			},
+			zhifu() {
+				uni.navigateTo({
+					url: ''
+				})
+			}
+		}
+	}
+</script>
+
+<style lang="scss" scoped>
+	.changci-top {
+		background-color: #fff;
+			padding:0 25rpx;
+		height: 100rpx;
+		.djs-wrap {
+			padding-left: 25rpx;
+		}
+	}
+	.good-tit {
+		// margin-top: 20rpx;
+		background-color: #fff;
+		padding: 20rpx;
+		.tit-left {
+			flex-shrink: 0;
+			image {
+				height: 36rpx;
+				width: 36rpx;
+				border-radius: 50%;
+				margin-right: 10rpx;
+			}
+		}
+		.tit-right {
+			text-align: right;
+		}
+	}
+	.good-list {
+		flex-wrap: wrap;
+		background-color: #fff;
+		padding: 20rpx;
+		// justify-content: flex-start;
+		image {
+			width: 80rpx;
+			margin-left: 15rpx;
+		}
+		
+	}
+	.popupyyok-wrap {
+		height: 707rpx;
+		width: 551rpx;
+		background-color: #fff;
+		border-radius: 20rpx;
+		text-align: center;
+		image {
+			width: 100%;
+		}
+		.btn {
+			width: 295rpx;
+			line-height: 69rpx;
+			border-radius: 34rpx;
+			background: #303030;
+			color: #F8DABA;
+			font-size: 35rpx;
+			color: #F8DABA;
+			margin: auto;
+		}
+	}
+</style>

+ 421 - 0
pages/user/myggz.vue

@@ -0,0 +1,421 @@
+<template>
+	<view class="content">
+		<view class="content-money">
+			<view class="status_bar"><!-- 这里是状态栏 --></view>
+			<view class="body-title">
+				<view class="goback-box" @click="toBack"><image class="goback" src="../../static/icon/fanhui.png" mode=""></image></view>
+				<view class="header">我的提货券</view>
+			</view>
+			<view class="content-bg"><image src="../../static/img/zhihuanjuan.png" mode=""></image></view>
+			<view class="money-box">
+				<view class="money">{{ userInfo.now_money || '0' }}</view>
+				<view>提货券</view>
+			</view>
+			<!-- <view class="money-btn" @click="navto('/pages/money/recharge')">
+				兑换广告值
+				<text>></text>
+			</view> -->
+		</view>
+		<view class="info-box flex">
+			<view class="info-item">
+				<view class="info-font">累计收入</view>
+				<view class="info-num">{{recharge}}</view>
+			</view>
+			<view class="shu"></view>
+			<view class="info-item">
+				<view class="info-font">累计支出</view>
+				<view class="info-num">{{orderStatusSum}}</view>
+			</view>
+		</view>
+		<view class="navbar">
+			<view v-for="(item, index) in navList" :key="index" class="nav-item" :class="{ current: tabCurrentIndex === index }" @click="tabClick(index)">{{ item.text }}</view>
+		</view>
+		<swiper :current="tabCurrentIndex" :style="{ height: maxheight }" class="swiper-box" duration="300" @change="changeTab">
+			<swiper-item class="tab-content" v-for="(tabItem, tabIndex) in navList" :key="tabIndex">
+				<scroll-view scroll-y="true" class="list-scroll-content" @scrolltolower="loadData">
+					<!-- 空白页 -->
+					<empty v-if="tabItem.loaded === true && tabItem.orderList.length === 0"></empty>
+
+					<!-- 订单列表 -->
+					<view>
+						<view class="order-item flex" v-for="(item, index) in tabItem.orderList" :key="index">
+							<view class="title-box">
+								<view class="title">
+									<text>{{ item.title }}</text>
+								</view>
+								<view class="time">
+									<text>{{ item.add_time }}</text>
+								</view>
+							</view>
+							<view class="money">
+								<view>{{ (item.pm == 0 ? '-' : '+') + item.number }}</view>
+								<view v-if="item.status == 0" class="status">待发放</view>
+							</view>
+						</view>
+					</view>
+					<uni-load-more :status="tabItem.loadingType" v-if="!(tabItem.orderList.length == 0 && tabItem.loaded)"></uni-load-more>
+				</scroll-view>
+			</swiper-item>
+		</swiper>
+	</view>
+</template>
+
+<script>
+import { spreadCommission, userBalance } from '@/api/wallet.js';
+import { getMoneyStyle } from '@/utils/rocessor.js';
+import { mapState, mapMutations } from 'vuex';
+import uniLoadMore from '@/uview-ui/components/u-loadmore/u-loadmore.vue';
+import empty from '@/uview-ui/components/u-empty/u-empty.vue';
+export default {
+	filters: {
+		getMoneyStyle
+	},
+	computed: {
+		...mapState('user', ['userInfo', 'orderInfo', 'hasLogin'])
+	},
+	components: {
+		empty,
+		uniLoadMore
+	},
+	onReady(res) {
+		var _this = this;
+		uni.getSystemInfo({
+			success: resu => {
+				const query = uni.createSelectorQuery();
+				query.select('.swiper-box').boundingClientRect();
+				query.exec(function(res) {
+					_this.maxheight = resu.windowHeight - res[0].top + 'px';
+					console.log('打印页面的剩余高度', _this.height);
+				});
+			},
+			fail: res => {}
+		});
+	},
+	data() {
+		return {
+			// 头部图高度
+			maxheight: '',
+			tabCurrentIndex: 0,
+			orderStatusSum: 0,
+			recharge: 0,
+			navList: [
+				{
+					state: 2,
+					text: '收入',
+					loadingType: 'more',
+					orderList: [],
+					page: 1, //当前页数
+					limit: 10 ,//每次信息条数
+					loaded: false
+				},
+				{
+					state: 1,
+					text: '支出',
+					loadingType: 'more',
+					orderList: [],
+					page: 1, //当前页数
+					limit: 10 ,//每次信息条数
+					loaded: false
+				}
+			],
+			money: ''
+		};
+	},
+	onLoad(options) {},
+	onShow() {
+		this.loadData();
+	},
+	methods: {
+		// 页面跳转
+		navto(e) {
+			uni.navigateTo({
+				url: e
+			});
+		},
+		// 点击返回 我的页面
+		toBack() {
+			uni.navigateBack({});
+		},
+		//获取收入支出信息
+		async loadData(source) {
+			let obj = this;
+			//这里是将订单挂载到tab列表下
+			let index = this.tabCurrentIndex;
+			let navItem = this.navList[index];
+			let state = navItem.state;
+			if (source === 'tabChange' && navItem.loaded === true) {
+				//tab切换只有第一次需要加载数据
+				return;
+			}
+			if (navItem.loadingType === 'loading') {
+				//防止重复加载
+				return;
+			}
+			// 修改当前对象状态为加载中
+			navItem.loadingType = 'loading';
+
+			spreadCommission(
+				{
+					page: navItem.page,
+					limit: navItem.limit
+				},
+				state
+			)
+				.then(({ data }) => {
+					console.log(data);
+					// obj.recharge = data.income;
+					// obj.orderStatusSum = data.expend;
+					if (data.length > 0) {
+						navItem.orderList = navItem.orderList.concat(data[0].list);
+						console.log(navItem.orderList);
+						navItem.page++;
+					}else {
+						navItem.loadingType = 'noMore';
+					}
+					if (navItem.limit == data[0].list.length) {
+						//判断是否还有数据, 有改为 more, 没有改为noMore
+						navItem.loadingType = 'more';
+						return;
+					} else {
+						//判断是否还有数据, 有改为 more, 没有改为noMore
+						navItem.loadingType = 'noMore';
+					}
+					uni.hideLoading();
+					this.$set(navItem, 'loaded', true);
+				})
+				.catch(e => {
+					console.log(e);
+				});
+		},
+
+		//swiper 切换
+		changeTab(e) {
+			this.tabCurrentIndex = e.target.current;
+			this.loadData('tabChange');
+		},
+		//顶部tab点击
+		tabClick(index) {
+			this.tabCurrentIndex = index;
+		}
+	}
+};
+</script>
+
+<style lang="scss">
+page {
+	background: #f1f1f1;
+	height: 100%;
+}
+.status_bar {
+	height: var(--status-bar-height);
+	width: 100%;
+}
+.content-money {
+	position: relative;
+	height: 480rpx;
+	.content-bg {
+		position: absolute;
+		top: 0;
+		left: 0;
+		right: 0;
+		width: 750rpx;
+		height: 480rpx;
+		image {
+			width: 100%;
+			height: 100%;
+		}
+	}
+	.body-title {
+		height: 80rpx;
+		text-align: center;
+		font-size: 35rpx;
+		position: relative;
+		.header {
+			position: absolute;
+			left: 0;
+			top: 0;
+			width: 100%;
+			font-size: 36rpx;
+			font-family: PingFang SC;
+			font-weight: bold;
+			color: #fffeff;
+			height: 80rpx;
+			font-size: 36rpx;
+			font-weight: 700;
+			z-index: 9;
+			display: flex;
+			justify-content: center;
+			align-items: center;
+		}
+		.goback-box {
+			position: absolute;
+			left: 18rpx;
+			top: 0;
+			height: 80rpx;
+			display: flex;
+			align-items: center;
+		}
+
+		.goback {
+			z-index: 100;
+			width: 34rpx;
+			height: 34rpx;
+		}
+	}
+}
+.info-box {
+	width: 670rpx;
+	height: 186rpx;
+	background: #ffffff;
+	box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.06);
+	border-radius: 20rpx;
+	margin: -100rpx auto 0;
+	position: relative;
+	z-index: 2;
+	.info-item {
+		width: 50%;
+		display: flex;
+		flex-direction: column;
+		align-items: center;
+		line-height: 1;
+		.info-font {
+			font-size: 30rpx;
+			font-family: PingFang SC;
+			font-weight: bold;
+			color: #999999;
+		}
+		.info-num {
+			margin-top: 30rpx;
+			font-size: 30rpx;
+			font-family: PingFang SC;
+			font-weight: bold;
+			color: #181818;
+		}
+	}
+	.shu {
+		width: 2rpx;
+		height: 74rpx;
+		background: #dcdfe6;
+	}
+}
+.money-box {
+	position: relative;
+	z-index: 2;
+	padding-top: 90rpx;
+	color: #ffffff;
+	text-align: center;
+	.money {
+		font-size: 72rpx;
+		font-family: PingFang SC;
+		font-weight: bold;
+		color: #ffffff;
+	}
+	.text {
+		font-size: 30rpx;
+	}
+}
+.money-btn {
+	position: relative;
+	z-index: 2;
+	color: #ffffff;
+	padding-right: 50rpx;
+	text-align: right;
+	font-size: 30rpx;
+	font-family: PingFang SC;
+	font-weight: bold;
+	color: #FFFFFF;
+	text {
+		display: inline-block;
+		padding-left: 10rpx;
+	}
+}
+
+.navbar {
+	margin-top: 20rpx;
+	display: flex;
+	height: 88rpx;
+	padding: 0 5px;
+	background: #fff;
+	box-shadow: 0 1px 5px rgba(0, 0, 0, 0.06);
+	position: relative;
+	z-index: 10;
+	.nav-item {
+		flex: 1;
+		display: flex;
+		justify-content: center;
+		align-items: center;
+		height: 100%;
+		font-size: 15px;
+		color: #999999;
+		position: relative;
+		&.current {
+			color: #000;
+			&:after {
+				content: '';
+				position: absolute;
+				left: 50%;
+				bottom: 0;
+				transform: translateX(-50%);
+				width: 44px;
+				height: 0;
+				border-bottom: 2px solid #fe5b38;
+			}
+		}
+	}
+}
+//列表
+.swiper-box {
+	.order-item:last-child {
+		margin-bottom: 60rpx;
+	}
+	.order-item {
+		padding: 20rpx 30rpx;
+		line-height: 1.5;
+		.title-box {
+			.title {
+				font-size: $font-lg;
+				color: $font-color-base;
+			}
+			.time {
+				font-size: $font-base;
+				color: $font-color-light;
+			}
+		}
+		.money {
+			color: #fd5b23;
+			font-size: $font-lg;
+			text-align: right;
+			.status {
+				color: $font-color-light;
+			}
+		}
+	}
+}
+.list-scroll-content {
+	background: #ffffff;
+	height: 100%;
+}
+.content {
+	height: 100%;
+	.empty-content {
+		background-color: #ffffff;
+	}
+}
+.btn-box {
+	width: 674rpx;
+	height: 88rpx;
+	background: linear-gradient(0deg, #2e58ff, #32c6ff);
+	border-radius: 44rpx;
+	font-size: 36rpx;
+	font-family: PingFang SC;
+	font-weight: 500;
+	color: #ffffff;
+	text-align: center;
+	line-height: 88rpx;
+	position: fixed;
+	bottom: 48rpx;
+	left: 0;
+	right: 0;
+	margin: 0 auto;
+}
+</style>

+ 422 - 0
pages/user/mygwjf.vue

@@ -0,0 +1,422 @@
+<template>
+	<view class="content">
+		<view class="content-money">
+			<view class="status_bar"><!-- 这里是状态栏 --></view>
+			<view class="body-title">
+				<view class="goback-box" @click="toBack"><image class="goback" src="../../static/icon/fanhui.png" mode=""></image></view>
+				<view class="header">购物积分</view>
+			</view>
+			<view class="content-bg"><image src="../../static/img/yongjin-bg.png" mode=""></image></view>
+			<view class="money-box">
+				<view class="money">{{ userInfo.now_money || '0' }}</view>
+				<view>购物积分</view>
+			</view>
+			<view class="money-btn" @click="navto('/pages/money/recharge')">
+				兑换提货券
+				<text>></text>
+			</view>
+		</view>
+		<view class="info-box flex">
+			<view class="info-item">
+				<view class="info-font">累计收入</view>
+				<view class="info-num">{{recharge}}</view>
+			</view>
+			<view class="shu"></view>
+			<view class="info-item">
+				<view class="info-font">累计支出</view>
+				<view class="info-num">{{orderStatusSum}}</view>
+			</view>
+		</view>
+		<view class="navbar">
+			<view v-for="(item, index) in navList" :key="index" class="nav-item" :class="{ current: tabCurrentIndex === index }" @click="tabClick(index)">{{ item.text }}</view>
+		</view>
+		<swiper :current="tabCurrentIndex" :style="{ height: maxheight }" class="swiper-box" duration="300" @change="changeTab">
+			<swiper-item class="tab-content" v-for="(tabItem, tabIndex) in navList" :key="tabIndex">
+				<scroll-view scroll-y="true" class="list-scroll-content" @scrolltolower="loadData">
+					<!-- 空白页 -->
+					<empty v-if="tabItem.loaded === true && tabItem.orderList.length === 0"></empty>
+
+					<!-- 订单列表 -->
+					<view>
+						<view class="order-item flex" v-for="(item, index) in tabItem.orderList" :key="index">
+							<view class="title-box">
+								<view class="title">
+									<text>{{ item.title }}</text>
+								</view>
+								<view class="time">
+									<text>{{ item.add_time }}</text>
+								</view>
+							</view>
+							<view class="money">
+								<view>{{ (item.pm == 0 ? '-' : '+') + item.number }}</view>
+								<view v-if="item.status == 0" class="status">待发放</view>
+							</view>
+						</view>
+					</view>
+					<uni-load-more :status="tabItem.loadingType" v-if="!(tabItem.orderList.length == 0 && tabItem.loaded)"></uni-load-more>
+				</scroll-view>
+			</swiper-item>
+		</swiper>
+	</view>
+</template>
+
+<script>
+import { spreadCommission, userBalance } from '@/api/wallet.js';
+import { getMoneyStyle } from '@/utils/rocessor.js';
+import { mapState, mapMutations } from 'vuex';
+import uniLoadMore from '@/uview-ui/components/u-loadmore/u-loadmore.vue';
+import empty from '@/uview-ui/components/u-empty/u-empty.vue';
+export default {
+	filters: {
+		getMoneyStyle
+	},
+	computed: {
+		...mapState('user', ['userInfo', 'orderInfo', 'hasLogin'])
+	},
+	components: {
+		empty,
+		uniLoadMore
+	},
+	onReady(res) {
+		var _this = this;
+		uni.getSystemInfo({
+			success: resu => {
+				const query = uni.createSelectorQuery();
+				query.select('.swiper-box').boundingClientRect();
+				query.exec(function(res) {
+					_this.maxheight = resu.windowHeight - res[0].top + 'px';
+					console.log('打印页面的剩余高度', _this.height);
+				});
+			},
+			fail: res => {}
+		});
+	},
+	data() {
+		return {
+			// 头部图高度
+			maxheight: '',
+			tabCurrentIndex: 0,
+			orderStatusSum: 0,
+			recharge: 0,
+			navList: [
+				{
+					state: 2,
+					text: '收入',
+					loadingType: 'more',
+					orderList: [],
+					page: 1, //当前页数
+					limit: 10 ,//每次信息条数
+					loaded: false
+				},
+				{
+					state: 1,
+					text: '支出',
+					loadingType: 'more',
+					orderList: [],
+					page: 1, //当前页数
+					limit: 10 ,//每次信息条数
+					loaded: false
+				}
+			],
+			money: ''
+		};
+	},
+	onLoad(options) {},
+	onShow() {
+		this.loadData();
+	},
+	methods: {
+		// 页面跳转
+		navto(e) {
+			uni.navigateTo({
+				url: e
+			});
+		},
+		// 点击返回 我的页面
+		toBack() {
+			uni.navigateBack({});
+		},
+		//获取收入支出信息
+		async loadData(source) {
+			let obj = this;
+			//这里是将订单挂载到tab列表下
+			let index = this.tabCurrentIndex;
+			let navItem = this.navList[index];
+			let state = navItem.state;
+			if (source === 'tabChange' && navItem.loaded === true) {
+				//tab切换只有第一次需要加载数据
+				return;
+			}
+			if (navItem.loadingType === 'loading') {
+				//防止重复加载
+				return;
+			}
+			// 修改当前对象状态为加载中
+			navItem.loadingType = 'loading';
+
+			spreadCommission(
+				{
+					page: navItem.page,
+					limit: navItem.limit
+				},
+				state
+			)
+				.then(({ data }) => {
+					console.log(data);
+					// obj.recharge = data.income;
+					// obj.orderStatusSum = data.expend;
+					if (data.length > 0) {
+						navItem.orderList = navItem.orderList.concat(data[0].list);
+						console.log(navItem.orderList);
+						navItem.page++;
+					}else {
+						navItem.loadingType = 'noMore';
+					}
+					if (navItem.limit == data[0].list.length) {
+						//判断是否还有数据, 有改为 more, 没有改为noMore
+						navItem.loadingType = 'more';
+						return;
+					} else {
+						//判断是否还有数据, 有改为 more, 没有改为noMore
+						navItem.loadingType = 'noMore';
+					}
+					uni.hideLoading();
+					this.$set(navItem, 'loaded', true);
+				})
+				.catch(e => {
+					console.log(e);
+				});
+		},
+
+		//swiper 切换
+		changeTab(e) {
+			this.tabCurrentIndex = e.target.current;
+			this.loadData('tabChange');
+		},
+		//顶部tab点击
+		tabClick(index) {
+			this.tabCurrentIndex = index;
+		}
+	}
+};
+</script>
+
+<style lang="scss">
+page {
+	background: #f1f1f1;
+	height: 100%;
+}
+.status_bar {
+	height: var(--status-bar-height);
+	width: 100%;
+}
+.content-money {
+	position: relative;
+	height: 480rpx;
+	.content-bg {
+		position: absolute;
+		top: 0;
+		left: 0;
+		right: 0;
+		width: 750rpx;
+		height: 480rpx;
+		image {
+			width: 100%;
+			height: 100%;
+		}
+	}
+	.body-title {
+		height: 80rpx;
+		text-align: center;
+		font-size: 35rpx;
+		position: relative;
+		.header {
+			position: absolute;
+			left: 0;
+			top: 0;
+			width: 100%;
+			font-size: 36rpx;
+			font-family: PingFang SC;
+			font-weight: bold;
+			color: #fffeff;
+			height: 80rpx;
+			font-size: 36rpx;
+			font-weight: 700;
+			z-index: 9;
+			display: flex;
+			justify-content: center;
+			align-items: center;
+		}
+		.goback-box {
+			position: absolute;
+			left: 18rpx;
+			top: 0;
+			height: 80rpx;
+			display: flex;
+			align-items: center;
+		}
+
+		.goback {
+			z-index: 100;
+			width: 34rpx;
+			height: 34rpx;
+		}
+	}
+}
+.info-box {
+	width: 670rpx;
+	height: 186rpx;
+	background: #ffffff;
+	box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.06);
+	border-radius: 20rpx;
+	margin: -100rpx auto 0;
+	position: relative;
+	z-index: 2;
+	.info-item {
+		width: 50%;
+		display: flex;
+		flex-direction: column;
+		align-items: center;
+		line-height: 1;
+		.info-font {
+			font-size: 30rpx;
+			font-family: PingFang SC;
+			font-weight: bold;
+			color: #999999;
+		}
+		.info-num {
+			margin-top: 30rpx;
+			font-size: 30rpx;
+			font-family: PingFang SC;
+			font-weight: bold;
+			color: #181818;
+		}
+	}
+	.shu {
+		width: 2rpx;
+		height: 74rpx;
+		background: #dcdfe6;
+	}
+}
+.money-box {
+	position: relative;
+	z-index: 2;
+	padding-top: 90rpx;
+	color: #ffffff;
+	text-align: center;
+	.money {
+		font-size: 72rpx;
+		font-family: PingFang SC;
+		font-weight: bold;
+		color: #ffffff;
+	}
+	.text {
+		font-size: 30rpx;
+	}
+}
+.money-btn {
+	position: relative;
+	z-index: 2;
+	color: #ffffff;
+	padding-right: 50rpx;
+	text-align: right;
+	font-size: 30rpx;
+	font-family: PingFang SC;
+	font-weight: bold;
+	color: #FFFFFF;
+	text {
+		display: inline-block;
+		padding-left: 10rpx;
+	}
+}
+
+.navbar {
+	margin-top: 20rpx;
+	display: flex;
+	height: 88rpx;
+	padding: 0 5px;
+	background: #fff;
+	box-shadow: 0 1px 5px rgba(0, 0, 0, 0.06);
+	position: relative;
+	z-index: 10;
+	.nav-item {
+		flex: 1;
+		display: flex;
+		justify-content: center;
+		align-items: center;
+		height: 100%;
+		font-size: 15px;
+		color: #999999;
+		position: relative;
+		&.current {
+			color: #000;
+			&:after {
+				content: '';
+				position: absolute;
+				left: 50%;
+				bottom: 0;
+				transform: translateX(-50%);
+				width: 44px;
+				height: 0;
+				border-bottom: 2px solid #fe5b38;
+			}
+		}
+	}
+}
+//列表
+.swiper-box {
+	.order-item:last-child {
+		margin-bottom: 60rpx;
+	}
+	.order-item {
+		padding: 20rpx 30rpx;
+		line-height: 1.5;
+		.title-box {
+			.title {
+				font-size: $font-lg;
+				color: $font-color-base;
+			}
+			.time {
+				font-size: $font-base;
+				color: $font-color-light;
+			}
+		}
+		.money {
+			color: #fd5b23;
+			font-size: $font-lg;
+			text-align: right;
+			.status {
+				color: $font-color-light;
+			}
+		}
+	}
+}
+.list-scroll-content {
+	background: #ffffff;
+	height: 100%;
+}
+.content {
+	height: 100%;
+	.empty-content {
+		background-color: #ffffff;
+	}
+}
+.btn-box {
+	width: 674rpx;
+	height: 88rpx;
+	background: linear-gradient(0deg, #2e58ff, #32c6ff);
+	border-radius: 44rpx;
+	font-size: 36rpx;
+	font-family: PingFang SC;
+	font-weight: 500;
+	color: #ffffff;
+	text-align: center;
+	line-height: 88rpx;
+	position: fixed;
+	bottom: 48rpx;
+	left: 0;
+	right: 0;
+	margin: 0 auto;
+}
+</style>
+

+ 422 - 0
pages/user/mythq.vue

@@ -0,0 +1,422 @@
+<template>
+	<view class="content">
+		<view class="content-money">
+			<view class="status_bar"><!-- 这里是状态栏 --></view>
+			<view class="body-title">
+				<view class="goback-box" @click="toBack"><image class="goback" src="../../static/icon/fanhui.png" mode=""></image></view>
+				<view class="header">我的提货券</view>
+			</view>
+			<view class="content-bg"><image src="../../static/img/thq-bg.png" mode=""></image></view>
+			<view class="money-box">
+				<view class="money">{{ userInfo.now_money || '0' }}</view>
+				<view>提货券</view>
+			</view>
+			<view class="money-btn" @click="navto('/pages/money/recharge')">
+				兑换广告值
+				<text>></text>
+			</view>
+		</view>
+		<view class="info-box flex">
+			<view class="info-item">
+				<view class="info-font">累计收入</view>
+				<view class="info-num">{{recharge}}</view>
+			</view>
+			<view class="shu"></view>
+			<view class="info-item">
+				<view class="info-font">累计支出</view>
+				<view class="info-num">{{orderStatusSum}}</view>
+			</view>
+		</view>
+		<view class="navbar">
+			<view v-for="(item, index) in navList" :key="index" class="nav-item" :class="{ current: tabCurrentIndex === index }" @click="tabClick(index)">{{ item.text }}</view>
+		</view>
+		<swiper :current="tabCurrentIndex" :style="{ height: maxheight }" class="swiper-box" duration="300" @change="changeTab">
+			<swiper-item class="tab-content" v-for="(tabItem, tabIndex) in navList" :key="tabIndex">
+				<scroll-view scroll-y="true" class="list-scroll-content" @scrolltolower="loadData">
+					<!-- 空白页 -->
+					<empty v-if="tabItem.loaded === true && tabItem.orderList.length === 0"></empty>
+
+					<!-- 订单列表 -->
+					<view>
+						<view class="order-item flex" v-for="(item, index) in tabItem.orderList" :key="index">
+							<view class="title-box">
+								<view class="title">
+									<text>{{ item.title }}</text>
+								</view>
+								<view class="time">
+									<text>{{ item.add_time }}</text>
+								</view>
+							</view>
+							<view class="money">
+								<view>{{ (item.pm == 0 ? '-' : '+') + item.number }}</view>
+								<view v-if="item.status == 0" class="status">待发放</view>
+							</view>
+						</view>
+					</view>
+					<uni-load-more :status="tabItem.loadingType" v-if="!(tabItem.orderList.length == 0 && tabItem.loaded)"></uni-load-more>
+				</scroll-view>
+			</swiper-item>
+		</swiper>
+	</view>
+</template>
+
+<script>
+import { spreadCommission, userBalance } from '@/api/wallet.js';
+import { getMoneyStyle } from '@/utils/rocessor.js';
+import { mapState, mapMutations } from 'vuex';
+import uniLoadMore from '@/uview-ui/components/u-loadmore/u-loadmore.vue';
+import empty from '@/uview-ui/components/u-empty/u-empty.vue';
+export default {
+	filters: {
+		getMoneyStyle
+	},
+	computed: {
+		...mapState('user', ['userInfo', 'orderInfo', 'hasLogin'])
+	},
+	components: {
+		empty,
+		uniLoadMore
+	},
+	onReady(res) {
+		var _this = this;
+		uni.getSystemInfo({
+			success: resu => {
+				const query = uni.createSelectorQuery();
+				query.select('.swiper-box').boundingClientRect();
+				query.exec(function(res) {
+					_this.maxheight = resu.windowHeight - res[0].top + 'px';
+					console.log('打印页面的剩余高度', _this.height);
+				});
+			},
+			fail: res => {}
+		});
+	},
+	data() {
+		return {
+			// 头部图高度
+			maxheight: '',
+			tabCurrentIndex: 0,
+			orderStatusSum: 0,
+			recharge: 0,
+			navList: [
+				{
+					state: 2,
+					text: '收入',
+					loadingType: 'more',
+					orderList: [],
+					page: 1, //当前页数
+					limit: 10 ,//每次信息条数
+					loaded: false
+				},
+				{
+					state: 1,
+					text: '支出',
+					loadingType: 'more',
+					orderList: [],
+					page: 1, //当前页数
+					limit: 10 ,//每次信息条数
+					loaded: false
+				}
+			],
+			money: ''
+		};
+	},
+	onLoad(options) {},
+	onShow() {
+		this.loadData();
+	},
+	methods: {
+		// 页面跳转
+		navto(e) {
+			uni.navigateTo({
+				url: e
+			});
+		},
+		// 点击返回 我的页面
+		toBack() {
+			uni.navigateBack({});
+		},
+		//获取收入支出信息
+		async loadData(source) {
+			let obj = this;
+			//这里是将订单挂载到tab列表下
+			let index = this.tabCurrentIndex;
+			let navItem = this.navList[index];
+			let state = navItem.state;
+			if (source === 'tabChange' && navItem.loaded === true) {
+				//tab切换只有第一次需要加载数据
+				return;
+			}
+			if (navItem.loadingType === 'loading') {
+				//防止重复加载
+				return;
+			}
+			// 修改当前对象状态为加载中
+			navItem.loadingType = 'loading';
+
+			spreadCommission(
+				{
+					page: navItem.page,
+					limit: navItem.limit
+				},
+				state
+			)
+				.then(({ data }) => {
+					console.log(data);
+					// obj.recharge = data.income;
+					// obj.orderStatusSum = data.expend;
+					if (data.length > 0) {
+						navItem.orderList = navItem.orderList.concat(data[0].list);
+						console.log(navItem.orderList);
+						navItem.page++;
+					}else {
+						navItem.loadingType = 'noMore';
+					}
+					if (navItem.limit == data[0].list.length) {
+						//判断是否还有数据, 有改为 more, 没有改为noMore
+						navItem.loadingType = 'more';
+						return;
+					} else {
+						//判断是否还有数据, 有改为 more, 没有改为noMore
+						navItem.loadingType = 'noMore';
+					}
+					uni.hideLoading();
+					this.$set(navItem, 'loaded', true);
+				})
+				.catch(e => {
+					console.log(e);
+				});
+		},
+
+		//swiper 切换
+		changeTab(e) {
+			this.tabCurrentIndex = e.target.current;
+			this.loadData('tabChange');
+		},
+		//顶部tab点击
+		tabClick(index) {
+			this.tabCurrentIndex = index;
+		}
+	}
+};
+</script>
+
+<style lang="scss">
+page {
+	background: #f1f1f1;
+	height: 100%;
+}
+.status_bar {
+	height: var(--status-bar-height);
+	width: 100%;
+}
+.content-money {
+	position: relative;
+	height: 480rpx;
+	.content-bg {
+		position: absolute;
+		top: 0;
+		left: 0;
+		right: 0;
+		width: 750rpx;
+		height: 480rpx;
+		image {
+			width: 100%;
+			height: 100%;
+		}
+	}
+	.body-title {
+		height: 80rpx;
+		text-align: center;
+		font-size: 35rpx;
+		position: relative;
+		.header {
+			position: absolute;
+			left: 0;
+			top: 0;
+			width: 100%;
+			font-size: 36rpx;
+			font-family: PingFang SC;
+			font-weight: bold;
+			color: #fffeff;
+			height: 80rpx;
+			font-size: 36rpx;
+			font-weight: 700;
+			z-index: 9;
+			display: flex;
+			justify-content: center;
+			align-items: center;
+		}
+		.goback-box {
+			position: absolute;
+			left: 18rpx;
+			top: 0;
+			height: 80rpx;
+			display: flex;
+			align-items: center;
+		}
+
+		.goback {
+			z-index: 100;
+			width: 34rpx;
+			height: 34rpx;
+		}
+	}
+}
+.info-box {
+	width: 670rpx;
+	height: 186rpx;
+	background: #ffffff;
+	box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.06);
+	border-radius: 20rpx;
+	margin: -100rpx auto 0;
+	position: relative;
+	z-index: 2;
+	.info-item {
+		width: 50%;
+		display: flex;
+		flex-direction: column;
+		align-items: center;
+		line-height: 1;
+		.info-font {
+			font-size: 30rpx;
+			font-family: PingFang SC;
+			font-weight: bold;
+			color: #999999;
+		}
+		.info-num {
+			margin-top: 30rpx;
+			font-size: 30rpx;
+			font-family: PingFang SC;
+			font-weight: bold;
+			color: #181818;
+		}
+	}
+	.shu {
+		width: 2rpx;
+		height: 74rpx;
+		background: #dcdfe6;
+	}
+}
+.money-box {
+	position: relative;
+	z-index: 2;
+	padding-top: 90rpx;
+	color: #ffffff;
+	text-align: center;
+	.money {
+		font-size: 72rpx;
+		font-family: PingFang SC;
+		font-weight: bold;
+		color: #ffffff;
+	}
+	.text {
+		font-size: 30rpx;
+	}
+}
+.money-btn {
+	position: relative;
+	z-index: 2;
+	color: #ffffff;
+	padding-right: 50rpx;
+	text-align: right;
+	font-size: 30rpx;
+	font-family: PingFang SC;
+	font-weight: bold;
+	color: #FFFFFF;
+	text {
+		display: inline-block;
+		padding-left: 10rpx;
+	}
+}
+
+.navbar {
+	margin-top: 20rpx;
+	display: flex;
+	height: 88rpx;
+	padding: 0 5px;
+	background: #fff;
+	box-shadow: 0 1px 5px rgba(0, 0, 0, 0.06);
+	position: relative;
+	z-index: 10;
+	.nav-item {
+		flex: 1;
+		display: flex;
+		justify-content: center;
+		align-items: center;
+		height: 100%;
+		font-size: 15px;
+		color: #999999;
+		position: relative;
+		&.current {
+			color: #000;
+			&:after {
+				content: '';
+				position: absolute;
+				left: 50%;
+				bottom: 0;
+				transform: translateX(-50%);
+				width: 44px;
+				height: 0;
+				border-bottom: 2px solid #fe5b38;
+			}
+		}
+	}
+}
+//列表
+.swiper-box {
+	.order-item:last-child {
+		margin-bottom: 60rpx;
+	}
+	.order-item {
+		padding: 20rpx 30rpx;
+		line-height: 1.5;
+		.title-box {
+			.title {
+				font-size: $font-lg;
+				color: $font-color-base;
+			}
+			.time {
+				font-size: $font-base;
+				color: $font-color-light;
+			}
+		}
+		.money {
+			color: #fd5b23;
+			font-size: $font-lg;
+			text-align: right;
+			.status {
+				color: $font-color-light;
+			}
+		}
+	}
+}
+.list-scroll-content {
+	background: #ffffff;
+	height: 100%;
+}
+.content {
+	height: 100%;
+	.empty-content {
+		background-color: #ffffff;
+	}
+}
+.btn-box {
+	width: 674rpx;
+	height: 88rpx;
+	background: linear-gradient(0deg, #2e58ff, #32c6ff);
+	border-radius: 44rpx;
+	font-size: 36rpx;
+	font-family: PingFang SC;
+	font-weight: 500;
+	color: #ffffff;
+	text-align: center;
+	line-height: 88rpx;
+	position: fixed;
+	bottom: 48rpx;
+	left: 0;
+	right: 0;
+	margin: 0 auto;
+}
+</style>
+

+ 430 - 0
pages/user/myxfjf.vue

@@ -0,0 +1,430 @@
+<template>
+	<view class="content">
+		<view class="content-money">
+			<view class="status_bar"><!-- 这里是状态栏 --></view>
+			<view class="body-title">
+				<view class="goback-box" @click="toBack"><image class="goback" src="../../static/icon/fanhui.png" mode=""></image></view>
+				<view class="header">我的消费积分</view>
+			</view>
+			<view class="content-bg"><image src="../../static/img/xfjf-bg.png" mode=""></image></view>
+			<view class="money-box">
+				<view class="money">{{ userInfo.now_money || '0' }}</view>
+				<view>消费积分</view>
+			</view>
+			<!-- <view class="money-btn" @click="navto('/pages/money/recharge')">
+				兑换广告值
+				<text>></text>
+			</view> -->
+		</view>
+		<view class="info-box flex">
+			<view class="info-item" @click="navto('/pages/user/xfjfzz')">
+				<image src="../../static/icon/huzhuan.png" mode=""></image>
+				<view class="info-font">互转</view>
+			</view>
+			<view class="shu"></view>
+			<view class="info-item">
+				<image src="../../static/icon/tixian.png" mode=""></image>
+				<view class="info-font">提现</view>
+			</view>
+			<view class="shu"></view>
+			<view class="info-item">
+				<image src="../../static/icon/duihuan.png" mode=""></image>
+				<view class="info-font">兑换</view>
+			</view>
+		</view>
+		<view class="navbar">
+			<view v-for="(item, index) in navList" :key="index" class="nav-item" :class="{ current: tabCurrentIndex === index }" @click="tabClick(index)">{{ item.text }}</view>
+		</view>
+		<swiper :current="tabCurrentIndex" :style="{ height: maxheight }" class="swiper-box" duration="300" @change="changeTab">
+			<swiper-item class="tab-content" v-for="(tabItem, tabIndex) in navList" :key="tabIndex">
+				<scroll-view scroll-y="true" class="list-scroll-content" @scrolltolower="loadData">
+					<!-- 空白页 -->
+					<empty v-if="tabItem.loaded === true && tabItem.orderList.length === 0"></empty>
+
+					<!-- 订单列表 -->
+					<view>
+						<view class="order-item flex" v-for="(item, index) in tabItem.orderList" :key="index">
+							<view class="title-box">
+								<view class="title">
+									<text>{{ item.title }}</text>
+								</view>
+								<view class="time">
+									<text>{{ item.add_time }}</text>
+								</view>
+							</view>
+							<view class="money">
+								<view>{{ (item.pm == 0 ? '-' : '+') + item.number }}</view>
+								<view v-if="item.status == 0" class="status">待发放</view>
+							</view>
+						</view>
+					</view>
+					<uni-load-more :status="tabItem.loadingType" v-if="!(tabItem.orderList.length == 0 && tabItem.loaded)"></uni-load-more>
+				</scroll-view>
+			</swiper-item>
+		</swiper>
+	</view>
+</template>
+
+<script>
+import { spreadCommission, userBalance } from '@/api/wallet.js';
+import { getMoneyStyle } from '@/utils/rocessor.js';
+import { mapState, mapMutations } from 'vuex';
+import uniLoadMore from '@/uview-ui/components/u-loadmore/u-loadmore.vue';
+import empty from '@/uview-ui/components/u-empty/u-empty.vue';
+export default {
+	filters: {
+		getMoneyStyle
+	},
+	computed: {
+		...mapState('user', ['userInfo', 'orderInfo', 'hasLogin'])
+	},
+	components: {
+		empty,
+		uniLoadMore
+	},
+	onReady(res) {
+		var _this = this;
+		uni.getSystemInfo({
+			success: resu => {
+				const query = uni.createSelectorQuery();
+				query.select('.swiper-box').boundingClientRect();
+				query.exec(function(res) {
+					_this.maxheight = resu.windowHeight - res[0].top + 'px';
+					console.log('打印页面的剩余高度', _this.height);
+				});
+			},
+			fail: res => {}
+		});
+	},
+	data() {
+		return {
+			// 头部图高度
+			maxheight: '',
+			tabCurrentIndex: 0,
+			orderStatusSum: 0,
+			recharge: 0,
+			navList: [
+				{
+					state: 2,
+					text: '收入',
+					loadingType: 'more',
+					orderList: [],
+					page: 1, //当前页数
+					limit: 10 ,//每次信息条数
+					loaded: false
+				},
+				{
+					state: 1,
+					text: '支出',
+					loadingType: 'more',
+					orderList: [],
+					page: 1, //当前页数
+					limit: 10 ,//每次信息条数
+					loaded: false
+				}
+			],
+			money: ''
+		};
+	},
+	onLoad(options) {},
+	onShow() {
+		this.loadData();
+	},
+	methods: {
+		// 页面跳转
+		navto(e) {
+			uni.navigateTo({
+				url: e
+			});
+		},
+		// 点击返回 我的页面
+		toBack() {
+			uni.navigateBack({});
+		},
+		//获取收入支出信息
+		async loadData(source) {
+			let obj = this;
+			//这里是将订单挂载到tab列表下
+			let index = this.tabCurrentIndex;
+			let navItem = this.navList[index];
+			let state = navItem.state;
+			if (source === 'tabChange' && navItem.loaded === true) {
+				//tab切换只有第一次需要加载数据
+				return;
+			}
+			if (navItem.loadingType === 'loading') {
+				//防止重复加载
+				return;
+			}
+			// 修改当前对象状态为加载中
+			navItem.loadingType = 'loading';
+
+			spreadCommission(
+				{
+					page: navItem.page,
+					limit: navItem.limit
+				},
+				state
+			)
+				.then(({ data }) => {
+					console.log(data);
+					// obj.recharge = data.income;
+					// obj.orderStatusSum = data.expend;
+					if (data.length > 0) {
+						navItem.orderList = navItem.orderList.concat(data[0].list);
+						console.log(navItem.orderList);
+						navItem.page++;
+					}else {
+						navItem.loadingType = 'noMore';
+					}
+					if (navItem.limit == data[0].list.length) {
+						//判断是否还有数据, 有改为 more, 没有改为noMore
+						navItem.loadingType = 'more';
+						return;
+					} else {
+						//判断是否还有数据, 有改为 more, 没有改为noMore
+						navItem.loadingType = 'noMore';
+					}
+					uni.hideLoading();
+					this.$set(navItem, 'loaded', true);
+				})
+				.catch(e => {
+					console.log(e);
+				});
+		},
+
+		//swiper 切换
+		changeTab(e) {
+			this.tabCurrentIndex = e.target.current;
+			this.loadData('tabChange');
+		},
+		//顶部tab点击
+		tabClick(index) {
+			this.tabCurrentIndex = index;
+		}
+	}
+};
+</script>
+
+<style lang="scss">
+page {
+	background: #f1f1f1;
+	height: 100%;
+}
+.status_bar {
+	height: var(--status-bar-height);
+	width: 100%;
+}
+.content-money {
+	position: relative;
+	height: 480rpx;
+	.content-bg {
+		position: absolute;
+		top: 0;
+		left: 0;
+		right: 0;
+		width: 750rpx;
+		height: 480rpx;
+		image {
+			width: 100%;
+			height: 100%;
+		}
+	}
+	.body-title {
+		height: 80rpx;
+		text-align: center;
+		font-size: 35rpx;
+		position: relative;
+		.header {
+			position: absolute;
+			left: 0;
+			top: 0;
+			width: 100%;
+			font-size: 36rpx;
+			font-family: PingFang SC;
+			font-weight: bold;
+			color: #fffeff;
+			height: 80rpx;
+			font-size: 36rpx;
+			font-weight: 700;
+			z-index: 9;
+			display: flex;
+			justify-content: center;
+			align-items: center;
+		}
+		.goback-box {
+			position: absolute;
+			left: 18rpx;
+			top: 0;
+			height: 80rpx;
+			display: flex;
+			align-items: center;
+		}
+
+		.goback {
+			z-index: 100;
+			width: 34rpx;
+			height: 34rpx;
+		}
+	}
+}
+.info-box {
+	width: 670rpx;
+	height: 186rpx;
+	background: #ffffff;
+	box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.06);
+	border-radius: 20rpx;
+	margin: -100rpx auto 0;
+	position: relative;
+	z-index: 2;
+	.info-item {
+		width: 50%;
+		display: flex;
+		flex-direction: column;
+		align-items: center;
+		line-height: 1;
+		image {
+			height: 41rpx;
+			width: 41rpx;
+		}
+		.info-font {
+			margin-top: 20rpx;
+			font-size: 28rpx;
+			font-weight: 500;
+			color: #181818;
+		}
+		.info-num {
+			margin-top: 30rpx;
+			font-size: 30rpx;
+			font-family: PingFang SC;
+			font-weight: bold;
+			color: #181818;
+		}
+	}
+	.shu {
+		width: 2rpx;
+		height: 74rpx;
+		background: #dcdfe6;
+	}
+}
+.money-box {
+	position: relative;
+	z-index: 2;
+	padding-top: 90rpx;
+	color: #ffffff;
+	text-align: center;
+	.money {
+		font-size: 72rpx;
+		font-family: PingFang SC;
+		font-weight: bold;
+		color: #ffffff;
+	}
+	.text {
+		font-size: 30rpx;
+	}
+}
+.money-btn {
+	position: relative;
+	z-index: 2;
+	color: #ffffff;
+	padding-right: 50rpx;
+	text-align: right;
+	font-size: 30rpx;
+	font-family: PingFang SC;
+	font-weight: bold;
+	color: #FFFFFF;
+	text {
+		display: inline-block;
+		padding-left: 10rpx;
+	}
+}
+
+.navbar {
+	margin-top: 20rpx;
+	display: flex;
+	height: 88rpx;
+	padding: 0 5px;
+	background: #fff;
+	box-shadow: 0 1px 5px rgba(0, 0, 0, 0.06);
+	position: relative;
+	z-index: 10;
+	.nav-item {
+		flex: 1;
+		display: flex;
+		justify-content: center;
+		align-items: center;
+		height: 100%;
+		font-size: 15px;
+		color: #999999;
+		position: relative;
+		&.current {
+			color: #000;
+			&:after {
+				content: '';
+				position: absolute;
+				left: 50%;
+				bottom: 0;
+				transform: translateX(-50%);
+				width: 44px;
+				height: 0;
+				border-bottom: 2px solid #fe5b38;
+			}
+		}
+	}
+}
+//列表
+.swiper-box {
+	.order-item:last-child {
+		margin-bottom: 60rpx;
+	}
+	.order-item {
+		padding: 20rpx 30rpx;
+		line-height: 1.5;
+		.title-box {
+			.title {
+				font-size: $font-lg;
+				color: $font-color-base;
+			}
+			.time {
+				font-size: $font-base;
+				color: $font-color-light;
+			}
+		}
+		.money {
+			color: #fd5b23;
+			font-size: $font-lg;
+			text-align: right;
+			.status {
+				color: $font-color-light;
+			}
+		}
+	}
+}
+.list-scroll-content {
+	background: #ffffff;
+	height: 100%;
+}
+.content {
+	height: 100%;
+	.empty-content {
+		background-color: #ffffff;
+	}
+}
+.btn-box {
+	width: 674rpx;
+	height: 88rpx;
+	background: linear-gradient(0deg, #2e58ff, #32c6ff);
+	border-radius: 44rpx;
+	font-size: 36rpx;
+	font-family: PingFang SC;
+	font-weight: 500;
+	color: #ffffff;
+	text-align: center;
+	line-height: 88rpx;
+	position: fixed;
+	bottom: 48rpx;
+	left: 0;
+	right: 0;
+	margin: 0 auto;
+}
+</style>

+ 5 - 4
pages/user/user.vue

@@ -17,7 +17,7 @@
 				</view>
 				</view>
 				<view class="kpi">今日KPI:1063</view>
 				<view class="kpi">今日KPI:1063</view>
 			</view>
 			</view>
-			<view class="info-right">
+			<view class="info-right" @click="navTo('/pages/user/myxfjf')">
 				<image class="iright-icon" src="../../static/user/user3.png" mode=""></image>
 				<image class="iright-icon" src="../../static/user/user3.png" mode=""></image>
 				<view class="iright-font">消费积分:12345678</view>
 				<view class="iright-font">消费积分:12345678</view>
 			</view>
 			</view>
@@ -31,15 +31,15 @@
 				<image class="title-right" src="../../static/img/back.png" mode=""></image>
 				<image class="title-right" src="../../static/img/back.png" mode=""></image>
 			</view>
 			</view>
 			<view class="main flex">
 			<view class="main flex">
-				<view class="item">
+				<view class="item" @click="navTo('/pages/user/mygwjf')">
 					<view class="item-num">5690</view>
 					<view class="item-num">5690</view>
 					<view class="item-font">购物积分</view>
 					<view class="item-font">购物积分</view>
 				</view>
 				</view>
-				<view class="item">
+				<view class="item" @click="navTo('/pages/user/mythq')">
 					<view class="item-num">9999</view>
 					<view class="item-num">9999</view>
 					<view class="item-font">提货券</view>
 					<view class="item-font">提货券</view>
 				</view>
 				</view>
-				<view class="item">
+				<view class="item" @click="navTo('/pages/user/myggz')">
 					<view class="item-num">5690</view>
 					<view class="item-num">5690</view>
 					<view class="item-font">广告值</view>
 					<view class="item-font">广告值</view>
 				</view>
 				</view>
@@ -199,6 +199,7 @@ export default {
 		if (this.hasLogin) {
 		if (this.hasLogin) {
 			this.loadBaseData();
 			this.loadBaseData();
 		}
 		}
+		this.loadBaseData();
 	},
 	},
 	onReady() {
 	onReady() {
 		// 初始化获取页面宽度
 		// 初始化获取页面宽度

+ 265 - 0
pages/user/xfjfzz.vue

@@ -0,0 +1,265 @@
+<template>
+	<view class="content">
+		<view class="content-money">
+			<view class="flex">
+				<view class="buttom">
+					<view class="icon">{{ userInfo.anticipate | getMoneyStyle }}</view>
+					<text class="text">可转账余额</text>
+				</view>
+			</view>
+		</view>
+		<view class="row-box">
+			<view class="title">收款人id</view>
+			<view class="row"><input class="input" type="number" v-model="card" placeholder="请输入收款人id" placeholder-class="placeholder" /></view>
+		</view>
+		<view class="row-box">
+			<view class="title">转账金额</view>
+			<view class="row">
+				<!-- <text class="tit">¥</text> -->
+				<input class="input" type="number" v-model="withdrawal" placeholder="转入金额" placeholder-class="placeholder" />
+				<view class="buttom" @click="withdrawal = userInfo.anticipate">全部转账</view>
+			</view>
+		</view>
+
+		<button class="add-btn up" :class="{ action: loding }" @click="!loding ? confirm() : ''">提交申请</button>
+	</view>
+</template>
+
+<script>
+import { getMoneyStyle } from '@/utils/rocessor.js';
+import { getUserInfo,transfer_accounts  } from '@/api/user.js';
+import { mapMutations, mapState } from 'vuex';
+export default {
+	filters: {
+		getMoneyStyle
+	},
+	data() {
+		return {
+			money: '0.00', //可提现金额
+			withdrawal: '', //提现金额
+			password: '', //支付密码
+			card: '', //转账卡号
+			name: '',
+			// #ifdef H5
+			weichatBsrowser: false,
+			// #endif
+			loding: false,
+			type: 'xl'
+		};
+	},
+	onLoad(options) {
+		// #ifdef H5
+		this.weichatBsrowser = uni.getStorageSync('weichatBrowser');
+		// #endif
+		this.dataUp();
+		if (options.type) {
+			this.type = options.type;
+			console.log(this.type);
+		}
+	},
+	computed: {
+		...mapState('user', ['userInfo'])
+	},
+	methods: {
+		...mapMutations('user', ['setUserInfo', 'login']),
+		// 更新数据
+		dataUp() {
+			let obj = this;
+			getUserInfo({})
+				.then(e => {
+					obj.login();
+					// 保存返回用户数据
+					obj.setUserInfo(e.data);
+				})
+				.catch(e => {
+					console.log(e);
+				});
+		},
+		// 切换选中对象
+		tabRadio(e) {
+			this.type = e.detail.value;
+		},
+		// 提交
+		confirm() {
+			let obj = this;
+			obj.loding = true;
+			if (obj.withdrawal == 0) {
+				obj.loding = false;
+				uni.showModal({
+					title: '提示',
+					content: '转账金额不要为0'
+				});
+				return;
+			}
+			if (obj.card == obj.userInfo.phone) {
+				obj.loding = false;
+				uni.showModal({
+					title: '提示',
+					content: '不要输入自己的用户账号'
+				});
+			} else {
+				let data = {
+					uid: obj.card, //编号
+					anticipate: obj.withdrawal //金额
+				};
+				transfer_accounts(data)
+					.then(e => {
+						// 允许按钮点击
+						obj.loding = false;
+						// 初始化提现金额
+						obj.withdrawal = '';
+						uni.showToast({
+							title: '提交成功',
+							duration: 2000,
+							position: 'top'
+						});
+						obj.dataUp();
+					})
+					.catch(e => {
+						obj.$api.msg(e.msg);
+						obj.loding = false;
+						console.log();
+					});
+			}
+		}
+	}
+};
+</script>
+
+<style lang="scss">
+page {
+	height: 100%;
+}
+.content-money {
+	padding: 30rpx 0;
+	background: #ffffff;
+}
+
+.item {
+	padding: 0 $page-row-spacing;
+	background-color: #ffffff;
+}
+.flex {
+	background-color: #ffffff;
+	text-align: center;
+	margin: 0 30rpx;
+	border-radius: $border-radius-sm;
+	justify-content: center;
+	.buttom {
+		font-size: $font-lg;
+		width: 50%;
+	}
+	.interval {
+		width: 2px;
+		height: 60rpx;
+		background-color: #eeeeee;
+	}
+	.icon {
+		background-size: 100%;
+		font-size: 42rpx;
+		color: $font-color-dark;
+		font-weight: bold;
+		background-repeat: no-repeat;
+		background-position: center;
+	}
+	.text {
+		color: $font-color-light;
+	}
+}
+
+.row-box {
+	margin-top: 30rpx;
+	padding: 20rpx 30rpx;
+	background: #fff;
+	.title {
+		font-size: $font-base + 2rpx;
+		color: $font-color-dark;
+	}
+	.row {
+		display: flex;
+		align-items: center;
+		position: relative;
+		height: 80rpx;
+		.tit {
+			flex-shrink: 0;
+			width: 40rpx;
+			font-size: 30rpx;
+			color: $font-color-dark;
+		}
+		.input {
+			flex: 1;
+			font-size: 30rpx;
+			color: $font-color-dark;
+		}
+		.iconlocation {
+			font-size: 36rpx;
+			color: $font-color-light;
+		}
+
+		.buttom {
+			color: #f21f5d;
+			font-size: $font-base;
+		}
+	}
+}
+.add-btn {
+	width: 520rpx;
+	height: 80rpx;
+	border-radius: 20rpx;
+	margin: 140rpx auto;
+	font-size: 36rpx;
+	font-weight: bold;
+	color: #F8DABA;
+	background-color: #303030;
+}
+.name {
+	background: #fff;
+	padding: 30rpx;
+}
+.list {
+	padding-left: 30rpx;
+	margin-top: 30rpx;
+	background-color: #ffffff;
+	.box {
+		display: flex;
+		align-items: center;
+		width: 100%;
+		height: 120rpx;
+		border-bottom: 1px solid $border-color-light;
+		.icon {
+			font-size: 48rpx;
+			padding-right: 20rpx;
+			.icon-img {
+				height: 50rpx;
+				width: 50rpx;
+			}
+		}
+		.iconweixin1 {
+			color: #18bf16;
+		}
+		.iconzhifubao {
+			color: #08aaec;
+		}
+		.title-box {
+			flex-grow: 1;
+			text-align: left;
+			.title {
+				font-size: $font-base + 2rpx;
+				color: $font-color-base;
+			}
+			.node {
+				font-size: $font-sm;
+				color: $font-color-light;
+			}
+		}
+	}
+}
+.tip {
+	padding: 20rpx;
+	color: #ff0000;
+}
+/deep/ .uni-radio-input {
+	width: 45rpx;
+	height: 45rpx;
+}
+</style>

BIN
static/icon/duihuan.png


BIN
static/icon/huzhuan.png


BIN
static/icon/red-gift.png


BIN
static/icon/red-tit.png


BIN
static/icon/tixian.png


BIN
static/img/thq-bg.png


BIN
static/img/xfjf-bg.png


BIN
static/img/yuyueok.png


BIN
static/tabBar/tab-cart-current.png


BIN
static/tabBar/tab-cart.png


BIN
static/tabBar/tab-cate-current.png


BIN
static/tabBar/tab-cate.png


BIN
static/tabBar/tab-home-current.png


BIN
static/tabBar/tab-home.png


BIN
static/tabBar/tab-my-current.png


BIN
static/tabBar/tab-my.png


+ 1 - 1
store/index.js

@@ -7,7 +7,7 @@ const store = new Vuex.Store({
 	namespaced: true,
 	namespaced: true,
 	state: {
 	state: {
 		// baseURL:"http://yrh.liuniu946.com",//'http://eb.shuibo.net',//请求地址配置 
 		// baseURL:"http://yrh.liuniu946.com",//'http://eb.shuibo.net',//请求地址配置 
-		baseURL:'http://base.liuniu946.com',//请求地址配置 
+		baseURL:'http://sxg.frp.liuniu946.com',//请求地址配置 
 		urlFile:'/index',//项目部署所在文件夹
 		urlFile:'/index',//项目部署所在文件夹
 		userInfo: {}, //登录信息
 		userInfo: {}, //登录信息
 		loginInterceptor:false,//是否打开强制登录
 		loginInterceptor:false,//是否打开强制登录

+ 6 - 3
utils/rocessor.js

@@ -42,16 +42,19 @@ export function timeComputed(time) {
 	const actTime = (new Date()).getTime();
 	const actTime = (new Date()).getTime();
 	console.log(actTime);
 	console.log(actTime);
 	// 获取到期时间
 	// 获取到期时间
-	let stopTime = time*1000 - actTime;
+	let stopTime = time*1000 - actTime;
+	let over = false
 	// 判断是否小于0
 	// 判断是否小于0
-	if (stopTime < 0) {
+	if (stopTime < 0) {
+		over = true
 		stopTime = stopTime * -1
 		stopTime = stopTime * -1
 	}
 	}
 	let day = Math.floor(stopTime / 1000 / 60 / 60 / 24) //获取剩余天数
 	let day = Math.floor(stopTime / 1000 / 60 / 60 / 24) //获取剩余天数
 	let hours = Math.floor((stopTime / 1000 / 60 / 60) % 24); //获取剩余小时数
 	let hours = Math.floor((stopTime / 1000 / 60 / 60) % 24); //获取剩余小时数
 	let minutes = Math.floor((stopTime / 1000 / 60) % 60); //获取分钟
 	let minutes = Math.floor((stopTime / 1000 / 60) % 60); //获取分钟
 	let seconds = Math.floor((stopTime / 1000) % 60); //获取秒数
 	let seconds = Math.floor((stopTime / 1000) % 60); //获取秒数
-	return {
+	return {
+		over,
 		hours, //倒计时小时数
 		hours, //倒计时小时数
 		minutes, //倒计时分钟数
 		minutes, //倒计时分钟数
 		seconds, //倒计时秒数
 		seconds, //倒计时秒数