海南旅游项目 前端仓库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

237 lines
5.2 KiB

<template>
<view>
<!-- 商品信息 -->
<block>
<view class="bg-white">
<view class="flex justify-between align-start" style="padding: 32rpx 32rpx 30rpx 32rpx;">
<image src="../../static/logo.png" mode="aspectFill"
style="width: 240rpx; height: 240rpx;border-radius: 20rpx;"></image>
<view class="flex-sub padding-left-sm">
<view class="bref-box lf-line-2 text-black1 lf-font-28 lf-font-bold"
style="height: 88rpx;line-height: 44rpx;">
南澳站·潮玩旅游胜地 身处亚热带风情/玩转南澳
</view>
<text class="block lf-color-gray lf-font-28" style="margin-top: 20rpx;line-height: 40rpx;">数量
<text class="margin-left margin-right-xs lf-color-gray">x</text>1</text>
<view class="flex justify-between" style="margin-top: 28rpx;">
<lf-price :price="599" style="margin-top: 8rpx;" />
<view>
<!-- <button class="cu-btn1 lf-color-gray lf-border-gray">申请退款</button> -->
</view>
</view>
</view>
</view>
</view>
<self-line />
<!-- 表单 -->
<view class="bg-white">
<view class="cu-bar padding-lr solid-bottom flex justify-between align-center text-center">
<text class="lf-color-555 lf-font-28">订单编号</text>
<view>
<text class="margin-right lf-font-28 text-black1">2368492461046128742764</text>
<text class="text-orange lf-font-28" @click="copy(2368492461046128742764)">复制</text>
</view>
</view>
<view class="cu-bar padding-lr solid-bottom">
<text class="lf-color-555 lf-font-28">下单时间</text>
<text class="lf-font-28 text-black1">2021-7-6 22:34:14</text>
</view>
<view class="cu-bar padding-lr">
<text class="lf-color-555 lf-font-28">支付方式</text>
<text class="lf-font-28 text-black1">微信支付</text>
</view>
</view>
<self-line />
<view class="bg-white">
<view class="cu-bar padding-lr">
<text class="lf-color-555 lf-font-28">优惠</text>
<text class="lf-font-28 lf-color-price">活动优惠-50</text>
</view>
</view>
<view>
<self-line />
<view class="padding-lr padding-tb-sm bg-white flex justify-between align-center solid-top1 btn-bottom">
<view class="flex align-center">
<text class="lf-color-555 lf-font-28" style="margin-right: 20rpx;">待付款</text>
<lf-price :price="549" />
</view>
<button class="btn lf-bg-red" @tap="submit">
<text class="lf-font-32 text-white">立即使用</text>
</button>
</view>
</view>
</block>
</view>
</template>
<script>
export default {
data() {
return {
base64Img: '', //
skeletonLoading: true,
loading: false,
order_id: 1,
orderDetails: {},
checkArea: 'USI782936437829'
}
},
computed: {
total() {
return this.num * this.price
},
isRight() {
return function(val) {
return this.$shared.isRight(val);
}
}
},
onLoad(e) {
this.order_id = e.order_id
if (this.order_id) {
// this.getOrderDetails()
}
},
methods: {
getOrderDetails() {
this.$http(this.API.API_ORDER_DETAILS, {
order_id: this.order_id
}).then(res => {
if (res.code == 0) {
this.orderDetails = res.data
this.checkArea = res.data.confirm_code
this.skeletonLoading = false
}
}).catch(err => {
setTimeout(() => {
this.$toBack()
}, 1000)
});
},
submit() {
this.$routerGo('/pages/order/order?type=all')
},
},
created() {
}
}
</script>
<style lang="scss" scoped>
.btn{
margin: 0;
padding: 0;
width: 212rpx;
height: 82rpx;
background-color: #1998FE;
color: #FFFFFF;
line-height: 80rpx;
font-size: 32rpx;
border-radius: 41rpx;
}
.tag-self {
position: absolute !important;
top: 0 !important;
border-radius: 20rpx 0 20rpx 0 !important;
width: max-content;
height: 32rpx !important;
}
.title {
font-size: 28rpx;
color: $u-content-color;
height: 90rpx;
}
// tab
.ctab {
width: 100%;
margin: 20rpx 0 0rpx 0rpx;
padding: 0 22rpx;
}
// 商品列表
.com {
width: 100%;
overflow: hidden;
.list {
border-radius: 10rpx;
overflow: hidden;
margin: 20rpx 32rpx;
background-color: #FFFFFF;
// box-shadow: 0 0 10px 5px #e5e5e5;
box-shadow: 0 10rpx 20rpx 0 rgba(0, 0, 0, 0.1);
align-items: flex-start;
.left {
overflow: hidden;
image {
width: 186rpx;
height: 186rpx;
margin: 20rpx;
border-radius: 10rpx;
}
}
.right {
overflow: hidden;
width: 64%;
.title {
margin: 0rpx 20rpx 10rpx 0;
color: #222222;
font-size: 32rpx;
}
.tips {
margin: 16rpx 0;
overflow: hidden;
.u-line-progress {
width: 112rpx;
overflow: hidden;
margin-right: 20rpx;
}
.progress {
color: #777777;
font-size: 24rpx;
}
.bought {
color: #777777;
font-size: 24rpx;
margin-right: 20rpx;
}
}
.price {
overflow: hidden;
color: #FF0000;
margin-top: 10rpx;
button {
width: 176rpx;
height: 60rpx;
background: #FE9903;
border-radius: 15px;
font-size: 24rpx;
color: #FFFFFF;
margin: 0rpx 20rpx 0rpx 20rpx;
border: none;
}
}
}
}
}
</style>