| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238 | 
							- <template>
 
- 	<view class="content" v-if="order!=null">
 
- 		<view class="inner" >
 
- 			<view class="goods-list">
 
- 				<view v-if="order!=null" class="item" v-for="(item,index) in items" :key="index">
 
- 					<!-- <label style="margin-right: 30upx;">
 
- 						<checkbox :value="item.checked"  :checked="item.checked" @click="checkChange(item)" />
 
- 					</label> -->
 
- 					<image class="goods-img" :src="JSON.parse(item.jsonInfo).image==''?'https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/shop/image/drug.svg':JSON.parse(item.jsonInfo).image"  mode="aspectFit"></image>
 
- 					<view class="info">
 
- 						<view class="top">
 
- 							<view class="title ellipsis2">{{ JSON.parse(item.jsonInfo).productName}}</view>
 
- 							<view class="spec">{{JSON.parse(item.jsonInfo).sku}}</view>
 
- 						</view>
 
- 						<view class="price-num">
 
- 							<view class="price-box">
 
- 								<text class="unit">¥</text>
 
- 								<text class="price">{{JSON.parse(item.jsonInfo).price.toFixed(2)}}</text>
 
- 							</view>
 
- 							<view class="num">x{{JSON.parse(item.jsonInfo).num}}</view>
 
- 						</view>
 
- 					</view>
 
- 				</view>
 
- 				 
 
- 			</view>
 
- 			 
 
- 		</view>
 
- 		<!-- 底部按钮 -->
 
- 		<view class="btn-box">
 
- 			<view class="text">提交申请后,客服会与您电话沟通,请保持手机通畅</view>
 
- 			<view class="btns">
 
- 				 <view class="left"></view>
 
- 				<view class="right">
 
- 					<view  class="btn cancel" v-if="order.status==2 || order.status==3" @click="submit(0)" >仅退款</view>
 
- 					<view  class="btn cancel" v-if="order.status==3||order.status==4" @click="submit(1)"  >退款退货</view>
 
- 				</view>
 
- 				
 
- 			</view>
 
- 		
 
- 		</view>
 
- 	 
 
- 	</view>
 
- </template>
 
- <script>
 
- 	import {getStoreOrderItems,applyAfterSales} from '@/api/storeAfterSales'
 
- 	export default {
 
- 		 
 
- 		data() {
 
- 			return {
 
- 				order:null,
 
- 				items:[],
 
- 				 
 
- 			}
 
- 		},
 
- 		onLoad(option) {
 
- 			this.orderId=option.orderId;
 
- 			this.getStoreOrderItems()
 
- 		},
 
- 		methods: {
 
- 			checkChange(item){
 
- 				item.checked=!item.checked;
 
- 			},
 
- 			submit(type){
 
- 				uni.redirectTo({
 
- 					url: './storeOrderRefundSubmit?orderId='+this.orderId+"&type="+type
 
- 				})
 
- 			},
 
- 			getStoreOrderItems(){
 
- 				var data={orderId:this.orderId};
 
- 				getStoreOrderItems(data).then(res => {
 
- 					if(res.code==200){
 
- 						this.order=res.order;
 
- 						this.items=res.items;
 
- 						 
 
- 					}else{
 
- 						uni.showToast({
 
- 							icon:'none',
 
- 							title: "请求失败",
 
- 						});
 
- 						 
 
- 					}
 
- 				});
 
- 			},
 
- 		}
 
- 	}
 
- </script>
 
- <style lang="scss">
 
- 	.content{
 
- 		margin-bottom: 170upx;
 
- 		.inner{
 
- 			padding: 20upx;
 
- 			.goods-list{
 
- 				.item{
 
- 					box-sizing: border-box;
 
- 					height: 221upx;
 
- 					background: #FFFFFF;
 
- 					padding: 30upx;
 
- 					display: flex;
 
- 					align-items: center;
 
- 					&:last-child{
 
- 						margin-bottom: 0;
 
- 					}
 
- 					.goods-img{
 
- 						width: 160upx;
 
- 						height: 160upx;
 
- 						background: #FFFFFF;
 
- 						margin-right: 30upx;
 
- 						flex-shrink: 0;
 
- 					}
 
- 					.info{
 
- 						width: calc(100% - 160upx);
 
- 						height: 160upx;
 
- 						display: flex;
 
- 						flex-direction: column;
 
- 						justify-content: space-between;
 
- 						.top{
 
- 							.title{
 
- 								font-size: 28upx;
 
- 								font-family: PingFang SC;
 
- 								font-weight: 500;
 
- 								color: #111111;
 
- 								line-height: 1.4;
 
- 								.tag{
 
- 									display: inline-block;
 
- 									padding: 0 6upx;
 
- 									height: 30upx;
 
- 									background: linear-gradient(90deg, #2583EB 0%, #92C1F5 100%);
 
- 									border-radius: 4upx;
 
- 									margin-right: 10upx;
 
- 									font-size: 22upx;
 
- 									font-family: PingFang SC;
 
- 									font-weight: bold;
 
- 									color: #FFFFFF;
 
- 									line-height: 30upx;
 
- 									float: left;
 
- 									margin-top: 7upx;
 
- 								}
 
- 							}
 
- 							.spec{
 
- 								font-size: 24upx;
 
- 								font-family: PingFang SC;
 
- 								font-weight: 500;
 
- 								color: #999999;
 
- 								line-height: 1;
 
- 								margin-top: 14upx;
 
- 							}
 
- 						}
 
- 						.price-num{
 
- 							display: flex;
 
- 							align-items: center;
 
- 							justify-content: space-between;
 
- 							.price-box{
 
- 								display: flex;
 
- 								align-items: flex-end;
 
- 								.unit{
 
- 									font-size: 24upx;
 
- 									font-family: PingFang SC;
 
- 									font-weight: 500;
 
- 									color: #111111;
 
- 									line-height: 1.2;
 
- 									margin-right: 5upx;
 
- 								}
 
- 								.price{
 
- 									font-size: 32upx;
 
- 									font-family: PingFang SC;
 
- 									font-weight: 500;
 
- 									color: #111111;
 
- 									line-height: 1;
 
- 								}
 
- 							}
 
- 							.num{
 
- 								font-size: 24upx;
 
- 								font-family: PingFang SC;
 
- 								font-weight: bold;
 
- 								color: #666666;
 
- 							}
 
- 						}
 
- 					}
 
- 				}
 
- 			}
 
- 			 
 
- 		}
 
- 		.btn-box{
 
- 			width: 100%;
 
- 			height: 160upx;
 
- 			position: fixed;
 
- 			bottom: 0;
 
- 			background: #FFFFFF;
 
- 			.text{
 
- 				font-size: 24upx;
 
- 				font-family: PingFang SC;
 
- 				font-weight: 500;
 
- 				color: #999999;
 
- 				line-height: 1;
 
- 				padding: 28upx 0;
 
- 				text-align: center;
 
- 			}
 
- 			.btns{
 
- 				padding: 0upx 30upx;
 
- 				display: flex;
 
- 				flex-direction: row;
 
- 				justify-content: space-between;
 
- 				align-items: center;
 
- 				.left{
 
- 					font-size: 24upx;
 
- 					font-family: PingFang SC;
 
- 					font-weight: 500;
 
- 					color: #999999;
 
- 				}
 
- 				.right{
 
- 					display: flex;
 
- 					flex-direction: row;
 
- 					justify-content: flex-end;
 
- 					align-items: center;
 
- 					.btn{
 
- 						width: 155upx;
 
- 						height: 64upx;
 
- 						line-height: 64upx;
 
- 						font-size: 26upx;
 
- 						font-family: PingFang SC;
 
- 						font-weight: 500;
 
- 						text-align: center;
 
- 						border-radius: 32upx;
 
- 						margin-left: 15upx;
 
- 						&.cancel{
 
- 							border: 1px solid #DDDDDD;
 
- 							color: #666666;
 
- 						}
 
- 					}
 
- 				}
 
- 				
 
- 			}
 
- 			
 
- 		}
 
- 	}
 
- </style>
 
 
  |