17755135699 1 year ago
parent
commit
1c781d324f

+ 20 - 8
components/Tabbares/index.vue

@@ -1,6 +1,6 @@
 <template>
 	<view>
-		<u-tabbar :value="tabbarValues" @change="name => tabbarValues = name" :fixed="true" :placeholder="true"
+		<u-tabbar :value="tabbarValues" @change="name => tabbarValues = name" :fixed="true" :placeholder="true" activeColor="#007A69"
 			:safeAreaInsetBottom="true" :border="false">
 			<u-tabbar-item :text="item.text" v-for="(item,index) in list" :key="index"
 				@click="changeTabbars(item,index)">
@@ -20,20 +20,20 @@
 			return {
 				tabbarValues: 0,
 				list: [{
-						activeImg: 'https://i.ringzle.com/file/20240106/57895bbc5414416ea5de2a537ed23dc3.png',
+						activeImg: 'https://i.ringzle.com/file/20240320/eb54f2488b4f45c9929d2fa78b104b80.png',
 						inactiveImg: 'https://i.ringzle.com/file/20240106/29bd09ef7eb748f1820c335f86f74c61.png',
 						text: '首页',
 						paths: '/pagesHouse/home/index'
 					},
 					{
-						activeImg: 'https://i.ringzle.com/file/20240106/584d0a4108c44fa5bc566d0d0082e07d.png',
-						inactiveImg: 'https://i.ringzle.com/file/20240106/9561cd3843694891998a34ed41be0ec8.png',
+						activeImg: 'https://i.ringzle.com/file/20240320/df1512af95ff4f639e37b2fa905d7808.png',
+						inactiveImg: 'https://i.ringzle.com/file/20240320/07590c34e1fc45e2af4786607418039b.png',
 						text: '扫码核验',
 						paths: '/pagesHouse/Verification/index'
 					},
 					{
-						activeImg: 'https://i.ringzle.com/file/20240106/daf6362d4d6745c29501cf30a4d99bc2.png',
-						inactiveImg: 'https://i.ringzle.com/file/20240106/8c1f9fc0b5604ef7b966d98f2ffb1d2e.png',
+						activeImg: 'https://i.ringzle.com/file/20240320/319f9665e40b40c7b056e1e50c8e1ce5.png',
+						inactiveImg: 'https://i.ringzle.com/file/20240320/81146a88ac964a8ab1effff76f44c9d1.png',
 						text: '我的',
 						paths: '/pagesHouse/Mine/index'
 					}
@@ -78,8 +78,20 @@
 
 <style lang="less">
 	/deep/.u-page__item__slot-icon {
-		width: 40rpx;
-		height: 40rpx;
+		width: 38rpx;
+		height: 38rpx;
 		margin: 8rpx 0 4rpx;
 	}
+	/deep/.u-tabbar-item__text{
+		color: #007A69;
+	}
+	/deep/.u-tabbar-item {
+		&:nth-child(2){
+			.u-page__item__slot-icon,image {
+				width: 72rpx;
+				height: 54rpx;
+			}
+		}
+		
+	}
 </style>

+ 5 - 5
pagesHouse/Mine/ordersList/details/details.vue

@@ -163,17 +163,17 @@
 			</template> -->
 
 		</view>
-		<view class="btns" v-if="merchantType==10&&infoMation.status==1">
-			<view class="detail del" @tap="hexiao()" v-if="infoMation.status==1">
+		<!-- <view class="btns" v-if="merchantType==10&&infoMation.status==1"> -->
+		<!-- 	<view class="detail del" @tap="hexiao()" v-if="infoMation.status==1">
 				核销订单
-			</view>
+			</view> -->
 			<!-- <template v-else>
 				<view class="detail" @tap="Detail(list)">
 					删除订单
 				</view>
 			</template> -->
 
-		</view>
+	<!-- 	</view> -->
 	</view>
 
 </template>
@@ -340,7 +340,7 @@
 		box-sizing: border-box;
 		// height: 100%;
 		background-color: #007A69;
-		padding-bottom: 170rpx;
+		padding-bottom: 40rpx;
 	}
 
 	.foods {

+ 2 - 2
pagesHouse/Mine/ordersList/index.vue

@@ -33,11 +33,11 @@
 						</view>
 					</view>
 					<!-- 待使用 -->
-					<view class="bottom" @click="hexiao(item)" v-if="item.status==1">
+				<!-- 	<view class="bottom" @click="hexiao(item)" v-if="item.status==1">
 						<view class="detail s1">
 							核销订单
 						</view>
-					</view>
+					</view> -->
 					<!-- <view class="bottom" @click="Detail(item)" v-else>
 					<view class="detail">
 						删除订单

+ 68 - 5
pagesHouse/Verification/check.vue

@@ -38,6 +38,16 @@
 					v-if="i.remark!='book'"></u-icon>
 			</view>
 		</view>
+		<view class="list">
+			<view class="tit">选择渔船</view>
+			<view class="typeItem">
+				<view class="txt" v-for="(t,i) in types" :key="i" @click="typeIndex=i" :class="typeIndex==i?'on':''">
+				{{t}}
+				<image v-if="typeIndex==i" src="https://i.ringzle.com/file/20240320/b458b03f8f654a51a921656b8aa955de.png"></image>
+				</view>
+			
+			</view>
+		</view>
 		<view class="btn">
 			<text @click="hexiao">开始发船</text>
 		</view>
@@ -49,6 +59,18 @@
 	export default {
 		data() {
 			return {
+				typeIndex:null,
+				types: ['浙嵊渔休30015',
+					'浙嵊渔休30016',
+					'浙嵊渔休30017',
+					'浙嵊渔休30018',
+					'浙嵊渔休30019',
+					'浙嵊渔休30020',
+					'浙嵊渔休30021',
+					'浙嵊渔休30022',
+					'浙嵊渔休30023',
+					'浙嵊渔休30025',
+				],
 				date: new Date().Format('yyyy-MM-dd'),
 				show: false,
 				data: [],
@@ -85,7 +107,9 @@
 						this.orderInfo = res.data.data;
 						this.keyName = this.orderInfo.playDate + this.orderInfo.playTime + this.boatNo;
 						console.log(uni.getStorageSync(this.keyName))
-						this.data = JSON.parse(uni.getStorageSync(this.keyName)) || [];
+						if(uni.getStorageSync(this.keyName)){
+							this.data = JSON.parse(uni.getStorageSync(this.keyName)) || [];
+						}
 						console.log(this.data)
 					}
 				})
@@ -141,11 +165,16 @@
 			},
 			hexiao() {
 				if (this.data.length == 0) {
-					this.$showToast('请选择核销人')
+					return this.$showToast('请选择核销人')
+				}
+				if (this.typeIndex==null) {
+					return this.$showToast('请选择渔船')
 				}
+				let boatCode=this.types[this.typeIndex];
 				this.$api.post('/scenic/order/sailWriteOff', {
 					orderType: this.orderInfo.orderType,
-					touristList: this.data
+					touristList: this.data,
+					boatCode:boatCode
 				}).then(res => {
 					if (res.data.code == 0) {
 						uni.redirectTo({
@@ -202,6 +231,7 @@
 			display: flex;
 			gap: 36rpx;
 			justify-content: space-between;
+			
 
 			.n {
 				margin-bottom: 20rpx;
@@ -232,7 +262,7 @@
 			background-color: #fff;
 			color: #333;
 			padding: 0 24rpx 36rpx;
-			margin: 20rpx 0;
+			margin: 20rpx 0 0;
 			background: #fff;
 			border-radius: 16rpx;
 
@@ -284,6 +314,7 @@
 		padding: 0 24rpx 0;
 		border-radius: 16rpx;
 		background-color: #fff;
+		margin-top: 20rpx;
 
 		.tit {
 			font-size: 36rpx;
@@ -291,7 +322,39 @@
 			color: #111;
 			padding: 36rpx 0 17rpx;
 		}
-
+		.typeItem{
+			display: flex;
+			justify-content: space-between;
+			flex-wrap: wrap;
+			gap:20rpx 0;
+			padding-bottom: 50rpx;
+			.txt{
+				display: inline-block;
+				width: 316rpx;
+				height: 80rpx;
+				background: #fff;
+				border-radius: 16rpx;
+				text-align: center;
+				line-height: 80rpx;
+				border: 2rpx solid #EFEFEF;
+				color:#333;
+				position: relative;
+				&.on{
+					color:#007A69 ;
+					background: rgba(0,122,105,0.06);
+					border: 2rpx solid #007A69;
+					image{
+						position: absolute;
+						bottom: 0;
+						right: 0;
+						width: 34rpx;
+						height: 26rpx;
+						z-index: 11;
+					}
+				}
+				
+			}
+		}
 		.item {
 			display: flex;
 			justify-content: space-between;

+ 1 - 0
pagesHouse/Verification/index.vue

@@ -7,6 +7,7 @@
 				<text>核销</text>
 			</view>
 		</view>
+		<Tabbares :tabbarid="1" :value="1"></Tabbares>
 	</view>
 </template>
 

+ 3 - 3
pagesHouse/Verification/record.vue

@@ -20,11 +20,11 @@
 		<view class="list">
 			<block v-if="data.length>0">
 				<view class="item" v-for="(item,index) in data" :key="index" @tap="toDetails(item)">
-					<image :src="item.goodsType==2?'../../static/bao.png':'../../static/pin.png'"></image>
+					<image :src="item.orderType==2?'../../static/bao.png':'../../static/pin.png'"></image>
 					<view class="mid">
-						<text>{{item.playDate}} {{item.playTime}}出发/{{item.goodsType==2?'包船':'拼船'}}/{{item.boatNo}}</text>
+						<text>{{item.playDate}} {{item.playTime}}出发/{{item.orderType==2?'包船':'拼船'}}/{{item.boatNo}}</text>
 						<text>{{item.num}}人 · 出游{{item.playLength}}小时</text>
-						<text>核销时间:{{item.updateDate}}</text>
+						<text>上船时间:{{item.updateDate}}</text>
 					</view>
 					<view class="price">¥{{item.realPrice}}</view>
 				</view>

+ 1 - 1
pagesHouse/home/index.vue

@@ -1,6 +1,6 @@
 <template>
 
-	<view class="page" :style="{'min-height':(h-th)+'px'}">
+	<view class="page" :style="{'min-height':(h)+'px'}">
 		<u-navbar bgColor="transparent">
 			<view class="u-nav-slot" slot="left" style="display: flex;" @tap="shShow=true">
 				<text>{{name}}</text>