Blame view

pages/hcxx/hcxx.vue 4.93 KB
1f3f2378   起风了   我的第一次
1
  <template>
755ce1c7   起风了   修改
2
3
  	<view class="page" style="position: relative;">
  		<!-- <pyh-nv ref="nv" :config="nvConfig"></pyh-nv> -->
1f3f2378   起风了   我的第一次
4
5
  		<view class="listBox" :style="{'padding-top':(pageTop+'px')}">
  		<view class="content">
755ce1c7   起风了   修改
6
7
8
9
10
11
12
13
  			<view class="order-tab">
  				<view class="tab" :class="{'action':OrderType==0}" @click="onOrderTab(0)">
  					<text>接运中</text>
  					<text class="line"></text>
  				</view>
  				<view class="tab" :class="{'action':OrderType==1}" @click="onOrderTab(1)">
  					<text>已完成</text>
  					<text class="line"></text>
1f3f2378   起风了   我的第一次
14
  				</view>
755ce1c7   起风了   修改
15
16
17
18
19
20
21
22
23
24
25
26
  			</view>
  			<!-- 订单列表 -->
  			<view class="order-list" style="margin-top: -50rpx;max-height: 59vh;overflow: scroll;">
  				<view class="list" v-for="(item,index) in list" @click="onOrderList" :key="index">
  					<view class="title-status">
  						<view class="title">
  							<text>报丧编号:{{item.funeralCallWebDeathInfoPo.orderNumber}}</text>
  							<image src="../../static/right1.png"></image>
  						</view>
  						<view class="status-btn" v-if="OrderType == 1">
  							<view><text class="red"></text><text class="red big"></text></view>
  							<view class="btn">
fe62b839   起风了   1
27
28
  								<!-- <image src="../../static/btn.png" mode="widthFix"></image> -->
  								<text style="color: #fe7400;">已回车</text>
1f3f2378   起风了   我的第一次
29
30
31
  							</view>
  						</view>
  					</view>
755ce1c7   起风了   修改
32
33
34
35
36
37
38
39
40
41
42
  					<view class="goods-list">
  						<view class="goods">
  							<view class="item">
  								<view class="goods-name">
  									<view class="goods-name-title">逝者姓名:{{item.funeralCallWebDeathInfoPo.deceasedName}}</view>
  									<view class="goods-name-title">联系电话:{{item.funeralCallWebDeathInfoPo.contactPhone}}</view>
  									<view class="goods-name-title">逝者地址:{{item.funeralCallWebDeathInfoPo.accessLocation}}</view>
  									<view>报丧时间:{{item.funeralCallWebDeathInfoPo.createdTime}}</view>
  								</view>
  							</view>
  						</view>
1f3f2378   起风了   我的第一次
43
  					</view>
755ce1c7   起风了   修改
44
45
46
47
48
49
  					<view class="status-btn" v-if="OrderType == 0">
  						<view><text class="red"></text><text class="red big"></text></view>
  						<view class="btn" @click="tz(item)">
  							<image src="../../static/btn.png" mode="widthFix"></image>
  							<text>查看详情</text>
  						</view>
1f3f2378   起风了   我的第一次
50
  					</view>
755ce1c7   起风了   修改
51
  					
1f3f2378   起风了   我的第一次
52
53
  				</view>
  			</view>
755ce1c7   起风了   修改
54
  			</view>
1f3f2378   起风了   我的第一次
55
56
57
58
59
60
61
62
63
64
  		</view>
  	</view>
  </template>
  
  <script>
  	export default {
  		data() {
  			return {
  				OrderType: 0,
  				nvConfig:{
07e4a13a   起风了   上传
65
  					title:"接运信息",
1f3f2378   起风了   我的第一次
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
  					bgColor:"#ffffff",
  					color:"#000000",
  					fixedAssist:{
  						hide:true,
  					},
  				},
  				list:[],
  			};
  		},
  		onPageScroll(e) {this.$refs.nv.pageScroll(e)},
  		computed:{
  			pageTop(){return parseInt(88*uni.getSystemInfoSync().windowWidth/750) + uni.getSystemInfoSync().statusBarHeight}
  		},
  		onShow() {
  			this.OrderType = 0;
  			this.carddxx();
  		},
755ce1c7   起风了   修改
83
84
85
86
  		mounted() {
  			this.OrderType = 0;
  			this.carddxx();
  		},
1f3f2378   起风了   我的第一次
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
  		methods:{
  			// 获取调度信息
  			carddxx(){
  				console.log("user",uni.getStorageSync("USERS_KEY"));
  				var info = {
  					driverName:uni.getStorageSync("USERS_KEY").nickName,
  					driverPhone:uni.getStorageSync("USERS_KEY").phonenumber,
  				}
  				this.API.pqcldd(info).then(res=>{
  					console.log("调度信息",res);
  					this.list = res.data;
  				})
  			},
  			ywchcdd(){
  				var info = {
  					driverName:uni.getStorageSync("USERS_KEY").nickName,
  					driverPhone:uni.getStorageSync("USERS_KEY").phonenumber,
  				}
  				this.API.ywchcdd(info).then(res=>{
  					console.log("调度信息",res);
  					this.list = res.data;
  				})
  			},
  			// 跳转
  			tz(item){
  				item.title = "确认回车"
  				var info = JSON.stringify(item);
  				uni.navigateTo({
  					url:'/pages/xxqr/xxqr?info=' + info
  				})
  			},
  			/**
  			 * 返回点击
  			 */
  			onBack(){
  				uni.navigateBack();
  			},
  			/**
  			 * 订单tab点击
  			 */
  			onOrderTab(e){
  				console.log("index",e);
  				this.OrderType = e;
  				if(e == 0){
  					this.carddxx();
  				}
  				if(e == 1){
  					this.ywchcdd();
  				}
  			},
  			/**
  			 * 订单列表点击
  			 */
  			onOrderList(){
  				uni.navigateTo({
  					url: '/pages/OrderDetails/OrderDetails',
  				})
  			},
  			
        /**
         * 评价点击
         */
        onEvaluate(){
  			  uni.navigateTo({
            url: '/pages/MyEvaluatePush/MyEvaluatePush'
          })
        }
  		}
  	}
  </script>
  
  <style scoped lang="scss">
  	@import 'hcxx.scss';
  	/* 订单tab */
  	.order-tab{
  		position: fixed;
755ce1c7   起风了   修改
163
  		position: absolute;
1f3f2378   起风了   我的第一次
164
  		left: 0;
755ce1c7   起风了   修改
165
166
  		top: 0;
  		margin-top: -7vh;
1f3f2378   起风了   我的第一次
167
  		/* #ifdef MP-WEIXIN */
755ce1c7   起风了   修改
168
  		// top: calc(100rpx + var(--status-bar-height));
1f3f2378   起风了   我的第一次
169
170
171
172
173
174
  		/* #endif */
  		z-index: 10;
  		display: flex;
  		align-items: center;
  		width: 100%;
  		height: 100rpx;
755ce1c7   起风了   修改
175
  		// border: 1px solid red;
1f3f2378   起风了   我的第一次
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
  		background-color: #FFFFFF;
  		.tab{
  			position: relative;
  			display: flex;
  			align-items: center;
  			justify-content: center;
  			width: 25%;
  			height: 80%;
  			text{
  				font-size: 26rpx;
  				color: #7C7C7C;
  			}
  		}
  		.action{
  			text{
  				color: #222222;
  			}
  			.line{
  				position: absolute;
  				left: 50%;
  				bottom: -10rpx;
  				width: 40rpx;
  				height: 9rpx;
  				background-color: #667FFF;
  				transform: translate(-50%,0);
  				border-radius: 10rpx 10rpx 0 0;
  			}
  		}
  	}
  </style>