Bläddra i källkod

Merge branch 'master' of http://git.jihengcc.cn/liubaiyan/qjd-user-uniapp

unknown 4 år sedan
förälder
incheckning
6635478aed

+ 5 - 5
pagesGood/auctionDetail.vue

@@ -98,8 +98,8 @@
 					this.auctionBaseList[1].payTime = '竞拍截止时间:' + res.data.auctionEndTime
 					this.auctionBaseList[2].payTime = '竞拍于 '+res.data.auctionStartTime +' 正式开始!'
 					this.auctionList = res.data.userPriceResVOs.concat(this.auctionBaseList)
-					if (this.price <= this.goodData.currentPrice + this.goodData.auctionMinAddPrice) {
-						this.price = this.goodData.currentPrice + this.goodData.auctionMinAddPrice
+					if (this.price <= parseFloat(this.goodData.currentPrice + this.goodData.auctionMinAddPrice)) {
+						this.price = parseFloat(this.goodData.currentPrice + this.goodData.auctionMinAddPrice).toFixed(2)
 					}
 				}).catch(error => {
 					this.$refs.uTips.show({
@@ -112,13 +112,13 @@
 			reducePrice() {
 				if (this.price > this.goodData.currentPrice + this.goodData.auctionMinAddPrice) {
 					this.price -= this.goodData.auctionMinAddPrice
-					this.price = parseFloat(this.price.toFixed(2))
+					this.price = parseFloat(this.price).toFixed(2)
 				}
 			},
 			//  加价
 			addPrice() {
-				this.price += this.goodData.auctionMinAddPrice
-				this.price = parseFloat(this.price.toFixed(2))
+				this.price = (parseFloat(this.price) + parseFloat(this.goodData.auctionMinAddPrice)).toFixed(2)
+				// this.price = parseFloat(this.price).toFixed(2)
 			},
 			//  去支付
 			submitAuction() {

+ 11 - 1
pagesGood/evaluateList.vue

@@ -14,7 +14,7 @@
 					</view>
 					<view class="assess-text">{{item.evaluateContent}}</view>
 					<view class="assess-img-box">
-						<image class="img-col" v-for="(site, index2) in item.evaluateImgs" :key="index2" :src="site.imgUrl"></image>
+						<image class="img-col" v-for="(site, index2) in item.evaluateImgs" :key="index2" :src="site.imgUrl" @tap="_previewImage(site.imgUrl,i)"></image>
 					</view>
 				</view>
 				<view class="shop-reply-box" v-if="item.replyContent">
@@ -76,6 +76,16 @@
 					})
 				})
 			},
+			// 图片预览
+			_previewImage(image,index) {
+				var imgArr = [];
+				imgArr.push(image);
+				//预览图片
+				uni.previewImage({
+					urls: imgArr,
+					current: imgArr[index]
+				});
+			}
 		}
 	}
 </script>

+ 18 - 4
pagesGood/goodDetails.vue

@@ -48,7 +48,9 @@
 				  :custom-style="{width:'40px'}"/>
 				<uni-icons type="plus-filled" size="20" color="#A67A54" @click="number++"></uni-icons>
 			</view> -->
-			<CnumberBox @getNum="getNum" :isDisabled="true" minNum="1"></CnumberBox>
+			<view>
+				<CnumberBox @getNum="getNum" :isDisabled="true" minNum="1"></CnumberBox>
+			</view>
 		</view>
 		<view class="tab-box">
 			<view class="tab-col" :class="tabIndex == 1 ? 'tab-col-active' :''" @click="tabIndex = 1">产品介绍</view>
@@ -67,7 +69,7 @@
 					</view>
 					<view class="assess-text">{{item.evaluateContent}}</view>
 					<view class="assess-img-box">
-						<image class="img-col" v-for="site in item.evaluateImgs" :key="site" :src="site.imgUrl"></image>
+						<image class="img-col" v-for="site in item.evaluateImgs" :key="site" :src="site.imgUrl" @tap="_previewImage(site.imgUrl,i)"></image>
 					</view>
 				</view>
 			</view>
@@ -266,6 +268,16 @@
 					});
 				}
 			},
+			// 图片预览
+			_previewImage(image,index) {
+				var imgArr = [];
+				imgArr.push(image);
+				//预览图片
+				uni.previewImage({
+					urls: imgArr,
+					current: imgArr[index]
+				});
+			},
 			//  跳转评价页
 			goToEvaluate() {
 				uni.navigateTo({
@@ -548,6 +560,8 @@
 		}
 
 		.good-data {
+			display: flex;
+			justify-content: space-between;
 			height: 46px;
 			margin-top: 10px;
 			box-sizing: border-box;
@@ -575,7 +589,7 @@
 		
 		.buy-num {
 			display: flex;
-			justify-content: flex-end;
+			justify-content: space-between;
 			height: 46px;
 			margin-top: 10px;
 			box-sizing: border-box;
@@ -586,7 +600,7 @@
 			// line-height: 14px;
 			.buy-text {
 				margin-right: 10px;
-			}			
+			}
 			.buy-select {
 				font-size: 16px;
 				font-family: PingFang SC;

+ 8 - 4
pagesGood/goodList.vue

@@ -97,7 +97,7 @@
 			uni.setNavigationBarTitle({
 				title: this.goodType == 1 ? '商品列表' : (this.goodType == 3 ? '自助采摘' : (this.goodType == 4 ? '共享种植' : this.goodType == 5 ? '今日特惠' :  '拍卖'))
 			});
-			this.getGoodsList()
+			// this.getGoodsList()
 		},
 		onShow() {
 			this.getGoodsList()
@@ -137,6 +137,8 @@
 					}, 'GET').then(res => {
 						if (type == 'refresh') {
 							uni.stopPullDownRefresh();
+						} else {
+							this.goodsList = []
 						}
 						this.isOver = res.data.list.length != 10
 						this.goodsList = this.goodsList.concat(res.data.list)
@@ -155,6 +157,8 @@
 					}, 'POST').then(res => {
 						if (type == 'refresh') {
 							uni.stopPullDownRefresh();
+						} else {
+							this.goodsList = []
 						}
 						this.isOver = res.data.list.length != 10
 						this.goodsList = this.goodsList.concat(res.data.list)
@@ -168,7 +172,6 @@
 			},
 			//  添加购物车
 			addCart(item) {
-                debugger
 				this.goodItem = {
 					productId: this.goodType == 5 ? item.productId : item.id,
 					productName: item.productName,
@@ -253,7 +256,7 @@
 			width: 100%;
 			height: 58px;
 			box-sizing: border-box;
-			padding: 2px 12px 1px 12px;
+			padding: 2px 3px 1px 3px;
 
 			/deep/.uni-searchbar {
 				background-color: #f7f7f7;
@@ -316,7 +319,8 @@
 						-webkit-line-clamp: 2;
 						-webkit-box-orient: vertical;
 						word-wrap: break-word;
-						margin: 4px 0 10px 0;
+						// margin: 4px 0 10px 0;
+						margin-top: 4px
 					}
 
 					.goods-area {

+ 19 - 4
pagesGood/orderPay.vue

@@ -132,7 +132,8 @@
 				notes: '',
 				paySum: 0,
 				mineIntegral: {},
-				orderId: ''
+				orderId: '',
+				goodType: false,
 			}
 		},
 		onLoad(options) {
@@ -184,6 +185,9 @@
 				})
 			}
 		},
+		onReady() {
+			this.goodType = (this.orderData.goodsList.filter(site => site.productType == 3).length > 0) ? 3 : ''
+		},
 		onShow() {
 			if (uni.getStorageSync("defaultAddress")) {
 				this.addressData = uni.getStorageSync("defaultAddress")
@@ -308,12 +312,20 @@
 								    	type: 'success',
 								    })
 								    setTimeout(() => {
-								    	uni.redirectTo({
+								    	uni.navigateTo({
 								    	    url: '/pagesMain/orderDetail?orderId=' + this.orderId + '&orderStatus=' + 1
 								    	});
 								    }, 1000)
 									return;
 								}
+								if (this.goodType == 3) {
+									setTimeout(() => {
+										uni.redirectTo({
+											url: '/pagesMain/paySuccess?orderId=' + this.orderId + '&orderStatus=' + 1 + '&goodType=' + this.goodType + '&tenantCode=' + res.data.tenantCode
+										});
+									}, 1000)
+									return;
+								}
 								uni.requestPayment({
 									provider: 'wxpay',
 									timeStamp: res.data.timeStamp,
@@ -324,7 +336,7 @@
 									success: (payRes) => {
 										console.log('success:' + JSON.stringify(payRes));
 										uni.redirectTo({
-											url: '/pagesMain/paySuccess?orderId=' + this.orderId
+											url: '/pagesMain/paySuccess?orderId=' + this.orderId + '&orderStatus=' + 2
 										});
 									},
 									fail: (error) => {
@@ -334,7 +346,10 @@
 											type: 'warning',
 										})
 										setTimeout(() => {
-											uni.redirectTo({
+											// uni.redirectTo({
+											//     url: '/pagesMain/orderDetail?orderId=' + this.orderId + '&orderStatus=' + 1
+											// });
+											uni.navigateTo({
 											    url: '/pagesMain/orderDetail?orderId=' + this.orderId + '&orderStatus=' + 1
 											});
 										}, 1000)

+ 1 - 1
pagesMain/entrustForm.vue

@@ -40,7 +40,7 @@
 					productName: '',
 					tenantCode: '',
 					areaSize: '',
-					payAomount: '',
+					payAomount: 1,
 					entrustDurationTime: 1,
 					entrustStartTime: '',
 					remarks: '',

+ 4 - 1
pagesMain/evaluateForm.vue

@@ -82,7 +82,10 @@
 						type: 'success',
 					})
 					setTimeout(()=>{
-						uni.reLaunch({
+						// uni.reLaunch({
+						// 	url: '/pagesMain/orderList?type=5'
+						// });
+						uni.navigateTo({
 							url: '/pagesMain/orderList?type=5'
 						});
 					},1000)

+ 1 - 1
pagesMain/logisticsDeatil.vue

@@ -4,7 +4,7 @@
 			<view class="express-text">物流公司:{{expressData.company}}</view>
 			<view class="express-text">物流单号:{{expressData.logisticCode}}</view>
 		</view>
-		<view class="express-list">
+		<view class="express-list" v-if="expressList.length">
 			<u-steps :list="expressList" :current="0" active-color="#008AFF" direction="column"></u-steps>
 			<!-- <uni-steps :options="expressList" active-color="#008AFF" direction="column" :active="0"></uni-steps> -->
 		</view>

+ 81 - 43
pagesMain/orderDetail.vue

@@ -44,8 +44,8 @@
 			<view class="order-info">
 				<u-cell-group :border="false">
 					<u-cell-item title="商品金额" :value="'¥' + orderData.orderSum" :arrow="false" :border-bottom="false"></u-cell-item>
-					<u-cell-item title="积分抵扣" :value="'-¥' + orderData.integralAmount" :arrow="false" :border-bottom="false" v-if="goodType == 1"></u-cell-item>
-					<u-cell-item title="优惠券" :value="'-¥' + orderData.couponDiscountAmount" :arrow="false" :border-bottom="false" v-if="goodType == 1"></u-cell-item>
+					<u-cell-item title="积分抵扣" :value="'-¥' + orderData.integralAmount" :arrow="false" :border-bottom="false" v-if="goodType == 1 || goodType == 3"></u-cell-item>
+					<u-cell-item title="优惠券" :value="'-¥' + orderData.couponDiscountAmount" :arrow="false" :border-bottom="false" v-if="goodType == 1 || goodType == 3"></u-cell-item>
 					<u-cell-item title="备注" :value="orderData.notes" :arrow="false" :border-bottom="false"></u-cell-item>
 				</u-cell-group>
 			</view>
@@ -173,7 +173,7 @@
 					tenantCode: '',
 					evaluateReplyStatus: 1,
 				},
-				goodType: 1,
+				goodType: 1, // 1是普通商品类型;2是包含自助采摘+普通商品的类型;3是拍卖、共享种植
 				buttonGroup: [],
 				modalShow: false,
 				handleType: '',
@@ -189,7 +189,7 @@
 			}, 'GET').then(res => {
 				this.orderData = res.data
 				if (this.orderData.addOrderTime) {
-					let tempTime = new Date(this.orderData.addOrderTime).getTime()
+					let tempTime = new Date(this.orderData.addOrderTime.replace(/\-/g, '/')).getTime()
 					let addTempTime = new Date(tempTime + 1000 * 60 * 60 * 24)
 					let addYear = addTempTime.getFullYear()
 					let addMonth = addTempTime.getMonth() + 1
@@ -205,21 +205,41 @@
 				}
 				if (this.orderData.merchantInfoResVO.products.length && this.orderData.merchantInfoResVO.products[0].productType !=
 					2 && this.orderData.merchantInfoResVO.products[0].productType != 4) {
-					this.goodType = 1
+				    if (this.orderData.merchantInfoResVO.products.every(v=>{v.productType != 3})) {
+						this.goodType = 1
+					} else {
+						this.goodType = 3
+					}
 				} else {
 					this.goodType = 2
 				}
 				switch (JSON.stringify(this.orderData.orderStatus)) {
 					case '1':
-						this.buttonGroup = [{
-							text: '取消订单',
-							backgroundColor: '#75BD60',
-							color: '#fff'
-						}, {
-							text: '立即支付',
-							backgroundColor: '#52A63A',
-							color: '#fff'
-						}]
+					    if (this.goodType == 3) {
+							this.buttonGroup = [{
+								text: '取消订单',
+								backgroundColor: '#75BD60',
+								color: '#fff'
+							}, {
+								text: '立即支付',
+								backgroundColor: '#52A63A',
+								color: '#fff'
+							}, {
+								text: '自助采摘',
+								backgroundColor: '#75BD60',
+								color: '#fff'
+							}]
+						} else {
+							this.buttonGroup = [{
+								text: '取消订单',
+								backgroundColor: '#75BD60',
+								color: '#fff'
+							}, {
+								text: '立即支付',
+								backgroundColor: '#52A63A',
+								color: '#fff'
+							}]
+						}
 						break;
 					case '2':
 						var someVaule = this.orderData.merchantInfoResVO.products.some(v => {
@@ -420,6 +440,9 @@
 						this.modalContent = '请确定是否立即支付'
 						this.handleType = 2
 						this.modalShow = true
+					} else if (e.index == 2) {
+						// 跳转自助采摘
+						this.goPickVideo()
 					}
 				} else {
 					if (e.index == 0) {
@@ -438,33 +461,8 @@
 						})
 					} else {
 						if (this.orderData.orderStatus == 2) {
-							var that=this;
-							if(uni.getStorageSync("firstTimeLiveUser")==""){
-								uni.setStorage({
-									key: 'firstTimeLiveUser',
-									data: 1
-								})
-								uni.navigateTo({
-									url: '/pagesGood/pickVideo?orderId=' + that.orderData.orderId + '&tenantCode=' + that.orderData.tenantCode
-								});
-							}else{
-								wx.getSetting({
-								  success(res) {
-									/*if (!res.authSetting['scope.camera']){
-									  that.show_qx=false;
-									}else*/ 
-									if (!res.authSetting['scope.record']){
-									  that.show_qx=false;
-									}else{
-										uni.navigateTo({
-											url: '/pagesGood/pickVideo?orderId=' + that.orderData.orderId + '&tenantCode=' + that.orderData.tenantCode
-										});
-									}
-								  }
-								})
-							}
-							
 							//  自助采摘
+							this.goPickVideo()
 						} else if (this.orderData.orderStatus == 3) {
 							if (e.index == 1) {
 								//  确认收货
@@ -537,9 +535,15 @@
 							paySign: res.data.paySign,
 							success: (payRes) => {
 								console.log('success:' + JSON.stringify(payRes));
-								uni.navigateTo({
-									url: '/pagesMain/paySuccess?orderId=' + this.orderData.orderId
-								});
+								if (this.goodType == 3) {
+									uni.navigateTo({
+										url: '/pagesMain/paySuccess?orderId=' + this.orderData.orderId + '&goodType=' + this.goodType + '&tenantCode=' + this.orderData.tenantCode
+									});
+								} else {
+									uni.navigateTo({
+										url: '/pagesMain/paySuccess?orderId=' + this.orderData.orderId
+									});
+								}
 							},
 							fail: (error) => {
 								console.log('fail:' + JSON.stringify(error));
@@ -585,6 +589,34 @@
 					})
 				}
 			},
+			// 跳转自助采摘直播
+			goPickVideo() {
+				var that=this;
+				if(uni.getStorageSync("firstTimeLiveUser")==""){
+					uni.setStorage({
+						key: 'firstTimeLiveUser',
+						data: 1
+					})
+					uni.navigateTo({
+						url: '/pagesGood/pickVideo?orderId=' + that.orderData.orderId + '&tenantCode=' + that.orderData.tenantCode
+					});
+				}else{
+					wx.getSetting({
+					  success(res) {
+						/*if (!res.authSetting['scope.camera']){
+						  that.show_qx=false;
+						}else*/ 
+						if (!res.authSetting['scope.record']){
+						  that.show_qx=false;
+						}else{
+							uni.navigateTo({
+								url: '/pagesGood/pickVideo?orderId=' + that.orderData.orderId + '&tenantCode=' + that.orderData.tenantCode
+							});
+						}
+					  }
+					})
+				}
+			},
 			//  跳转留言列表
 			goToMessage() {
 				uni.navigateTo({
@@ -1264,4 +1296,10 @@
 		left: 0px;
 		z-index: 1000;
 	}
+	/deep/.uni-tab__cart-button-right{
+		border-right: 1px solid #ffffff;
+	}
+	/deep/.uni-tab__cart-button-right:last-child{
+		border-right: none;
+	}
 </style>

+ 12 - 4
pagesMain/orderItem.vue

@@ -32,7 +32,7 @@
 			<!-- <u-button size="medium" :plain="true" type="success" shape="circle" :ripple="true" :hair-line="false" class="handle-button"
 			 v-if="tabIndex != 1 && tabIndex != 2" @click.stop="handleOrder(3)">申请售后</u-button> -->
 			<u-button size="medium" :plain="true" type="success" shape="circle" :ripple="true" :hair-line="false" class="handle-button"
-			 v-if="tabIndex == 3 && pickHandle" @click.stop="handleOrder(4)">自助采摘</u-button>
+			 v-if="(tabIndex == 2 || tabIndex == 3) && pickHandle" @click.stop="handleOrder(4)">自助采摘</u-button>
 			 <u-button size="medium" :plain="true" type="success" shape="circle" :ripple="true" :hair-line="false" class="handle-button"
 			  v-if="tabIndex == 3 && sharePlant" @click.stop="handleOrder(8)">我的种植</u-button>
 			  <u-button size="medium" :plain="true" type="success" shape="circle" :ripple="true" :hair-line="false" class="handle-button"
@@ -110,11 +110,13 @@
 				modalShow: false,
 				modalContent: '',
 				handleType: '',
+				goodType: ''
 			}
 		},
 		onReady() {
 			this.pickHandle = this.orderData.products.filter(site => site.productType == 3).length > 0
 			this.sharePlant = this.orderData.products.filter(site => site.productType == 4).length > 0
+			this.goodType = this.pickHandle ? 3 : ''
 		},
 		methods: {
 			closeSetting:function(){
@@ -285,9 +287,15 @@
 							paySign: res.data.paySign,
 							success: (payRes) => {
 								console.log('success:' + JSON.stringify(payRes));
-								uni.navigateTo({
-									url: '/pagesMain/paySuccess?orderId=' + this.orderData.orderId
-								});
+								if (this.goodType == 3) {
+									uni.navigateTo({
+										url: '/pagesMain/paySuccess?orderId=' + this.orderData.orderId + '&goodType=' + this.goodType + '&tenantCode=' + this.orderData.tenantCode
+									});
+								} else {
+									uni.navigateTo({
+										url: '/pagesMain/paySuccess?orderId=' + this.orderData.orderId
+									});
+								}
 							},
 							fail: (error) => {
 								console.log('fail:' + JSON.stringify(error));

+ 2 - 0
pagesMain/orderList.vue

@@ -81,6 +81,8 @@
 			this.tabIndex = options.type - 1
 			this.getOrderList(options.type)
 		},
+		onShow() {
+		},
 		onReady(options) {},
 		onPullDownRefresh() {
 			this['isOver' + (this.tabIndex + 1)] = false

+ 78 - 11
pagesMain/paySuccess.vue

@@ -3,12 +3,15 @@
 		<view class="pay-icon">
 			<view class="iconfont iconqueding"></view>
 		</view>
-		<view class="pay-title">支付成功</view>
-		<view class="pay-text">您已支付成功,您所购买的商品正在向您飞奔, 请耐心等待!</view>
-		<view class="pay-text">3秒后自动跳转订单详情...</view>
+		<view class="pay-title" v-if="goodType && orderStatus == 1">提交成功</view>
+		<view class="pay-title" v-else>支付成功</view>
+		<view class="pay-text">{{goodType ? '您已支付成功, 您所购买的商品需要留言卖家后进行自助采摘' : '您已支付成功,您所购买的商品正在向您飞奔, 请耐心等待!'}}</view>
+		<view v-if="!goodType" class="pay-text">3秒后自动跳转订单详情...</view>
 		<view class="pay-handle">
-			<u-button type="success" shape="circle" :ripple="true" @click="goToOrderList()" class="button1">查看订单</u-button>
-			<u-button type="success" shape="circle" :ripple="true" :hair-line="false" :plain="true" @click="goToIndex()" class="button2">返回首页</u-button>
+			<u-button v-if="goodType" type="success" shape="circle" :ripple="true" @click="goPickVideo()" class="button1">自助采摘</u-button>
+			<u-button v-if="goodType" type="success" shape="circle" :ripple="true" :hair-line="false" :plain="true" @click="goToOrderList2()" class="button3">查看订单</u-button>
+			<u-button v-if="!goodType" type="success" shape="circle" :ripple="true" @click="goToOrderList()" class="button1">查看订单</u-button>
+			<u-button v-if="!goodType" type="success" shape="circle" :ripple="true" :hair-line="false" :plain="true" @click="goToIndex()" class="button2">返回首页</u-button>
 		</view>
 	</view>
 </template>
@@ -19,29 +22,81 @@
 	export default {
 		data() {
 			return {
-			    orderId: ''
+			    orderId: '',
+				timeoutID:0,
+				goodType: '',
+				tenantCode: '',
+				orderStatus: ''
 			}
 		},
 		onLoad(options) {
 			this.orderId = options.orderId
-			setTimeout(() => {
-				uni.redirectTo({
-					url: '/pagesMain/orderDetail?orderId=' + this.orderId + '&orderStatus=' + 2
-				});
-			},3000)
+			this.goodType = options.goodType ? options.goodType : ''
+			this.tenantCode = options.tenantCode ? options.tenantCode : ''
+			this.orderStatus = options.orderStatus ? options.orderStatus : ''
+			if (!this.goodType) {
+				this.autoJump()
+			}
+			uni.setNavigationBarTitle({
+				title: (this.goodType == 3 && this.orderStatus == 1) ? '提交结果' : '支付结果'
+			});
 		},
 		methods: {
+			// 自动跳转页面
+			autoJump() {
+				this.timeoutID = setTimeout(() => {
+					uni.redirectTo({
+						url: '/pagesMain/orderDetail?orderId=' + this.orderId + '&orderStatus=' + 2
+					});
+				},3000)
+			},
 			//  查看订单
 			goToOrderList() {
 				// uni.navigateTo({
 				// 	url: '/pagesMain/orderList?type=1'
 				// });
+				clearTimeout(this.timeoutID)
 				uni.navigateTo({
 					 url: '/pagesMain/orderDetail?orderId=' + this.orderId + '&orderStatus=' + 2
 				});
 			},
+			//  自助采摘未付款查看订单
+			goToOrderList2() {
+				uni.navigateTo({
+					 url: '/pagesMain/orderDetail?orderId=' + this.orderId + '&orderStatus=' + 1
+				});
+			},
+			// 跳转自助采摘直播
+			goPickVideo() {
+				var that=this;
+				if(uni.getStorageSync("firstTimeLiveUser")==""){
+					uni.setStorage({
+						key: 'firstTimeLiveUser',
+						data: 1
+					})
+					uni.navigateTo({
+						url: '/pagesGood/pickVideo?orderId=' + that.orderId + '&tenantCode=' + that.tenantCode
+					});
+				}else{
+					wx.getSetting({
+					  success(res) {
+						/*if (!res.authSetting['scope.camera']){
+						  that.show_qx=false;
+						}else*/ 
+						if (!res.authSetting['scope.record']){
+						  that.show_qx=false;
+						}else{
+							uni.navigateTo({
+								url: '/pagesGood/pickVideo?orderId=' + that.orderId + '&tenantCode=' + that.tenantCode
+							});
+						}
+					  }
+					})
+				}
+			},
 			//  返回首页
 			goToIndex() {
+				clearTimeout(this.timeoutID)
 				uni.switchTab({
 					url: '/pages/index/index'
 				});
@@ -132,6 +187,18 @@
 				width: 100%;
 				height: 34px;
 			}
+			
+			.button3 {
+				/deep/button {
+					background-color: #74bd60 !important;
+					border: none !important;
+					color: white !important;
+				}
+			
+				float: left;
+				width: 100%;
+				height: 34px;
+			}
 		}
 	}
 </style>