282 lines
5.4 KiB
Vue
282 lines
5.4 KiB
Vue
<template>
|
||
<view class="content">
|
||
<!-- 地址 -->
|
||
<view class="address_z">
|
||
<!-- <image src="../../static/mine/address.png"></image> -->
|
||
<view class="address_z_r">
|
||
<view>
|
||
<text style="font-size: 32rpx;">{{result.shou_name}}</text>
|
||
<text style="margin-left: 10rpx;">{{result.shou_mobile}}</text>
|
||
</view>
|
||
<view style="margin-top: 20rpx;">{{result.shou_region}}</view>
|
||
</view>
|
||
</view>
|
||
<!-- 赏品 -->
|
||
<view class="xuyuan">
|
||
<view class="xuyuan_item">
|
||
<view class="shop_item_img">
|
||
<image :src="result.goods_image"></image>
|
||
</view>
|
||
<view class="xuyuan_item_2">
|
||
<view class="hang2">{{result.goods_name}}</view>
|
||
<view> 规格:{{result.goods_spec}} </view>
|
||
<view>
|
||
<text>¥{{result.goods_seckill_price}}</text>
|
||
<view style="margin-top: 6rpx;">×{{result.goods_num}}</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
<view>共计:¥<text style="font-size: 36rpx;">{{result.pay_price}}</text></view>
|
||
</view>
|
||
<!-- 订单信息 -->
|
||
<view class="order_news">
|
||
<view>订单信息</view>
|
||
<view>
|
||
<view>支付方式</view>
|
||
<view>微信支付</view>
|
||
</view>
|
||
<view>
|
||
<view>运费</view>
|
||
<view>{{result.freight_price=='0.00'?'免运费':result.freight_price+'元'}}</view>
|
||
</view>
|
||
<view>
|
||
<view>合计</view>
|
||
<view class="order_price">¥{{result.pay_price}}</view>
|
||
</view>
|
||
</view>
|
||
<!-- 时间 -->
|
||
<view class="dingdan">
|
||
<view>订单号: <text>{{result.order_no}}</text> </view>
|
||
<view style="border: none;">提交时间:{{result.pay_time}}</view>
|
||
</view>
|
||
<!-- 查看物流 -->
|
||
<view class="footer" v-if="result.status>2" @click="gotoPage('/pages/user/wuliu_detail?send_num=' + send_num)">
|
||
查看物流</view>
|
||
</view>
|
||
</template>
|
||
|
||
<script>
|
||
export default {
|
||
data() {
|
||
return {
|
||
|
||
result: {},
|
||
order_id: ''
|
||
}
|
||
},
|
||
onLoad(e) {
|
||
// console.log(e)
|
||
this.order_id = e.order_id ? e.order_id : ''
|
||
this.getData(e.order_id)
|
||
},
|
||
methods: {
|
||
copy(value) {
|
||
uni.setClipboardData({
|
||
data: value, //要被复制的内容
|
||
success: () => { //复制成功的回调函数
|
||
uni.showToast({ //提示
|
||
title: "复制成功"
|
||
})
|
||
}
|
||
});
|
||
},
|
||
getData(e) {
|
||
// 模拟接口
|
||
let that = this;
|
||
that.req({
|
||
url: 'seckill_order_detail',
|
||
Loading: true,
|
||
data: {
|
||
id: e
|
||
},
|
||
success(res) {
|
||
if (res.status == 1) {
|
||
that.result = res.data
|
||
}
|
||
}
|
||
})
|
||
}
|
||
}
|
||
}
|
||
</script>
|
||
|
||
<style>
|
||
.footer {
|
||
border: 1rpx solid rgba(47, 180, 255, 0.7);
|
||
box-shadow: 0px 0px 12rpx 0px rgba(47, 180, 255, 0.7);
|
||
width: 690rpx;
|
||
height: 88rpx;
|
||
background: #000916;
|
||
font-size: 28rpx;
|
||
color: #191613;
|
||
text-shadow: 0px 0px 12rpx #2FB4FF;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
position: fixed;
|
||
bottom: 50rpx;
|
||
left: 0;
|
||
right: 0;
|
||
margin: auto;
|
||
border-radius: 10rpx;
|
||
}
|
||
|
||
.order_price {
|
||
color: #FF2121;
|
||
}
|
||
|
||
.order_news>view {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
line-height: 70rpx;
|
||
}
|
||
|
||
.order_news {
|
||
width: 690rpx;
|
||
margin: 20rpx auto;
|
||
padding: 20rpx 30rpx;
|
||
box-sizing: border-box;
|
||
box-shadow: 0px 0rpx 10rpx 0px #1FF7F0;
|
||
border-radius: 10rpx;
|
||
font-size: 28rpx;
|
||
|
||
}
|
||
|
||
.dingdan text {
|
||
/* padding: 2rpx 16rpx;
|
||
border: 1rpx solid #2FB4FF;
|
||
border-radius: 6rpx;
|
||
color: #2FB4FF;
|
||
font-size: 24rpx;
|
||
box-sizing: border-box;
|
||
margin-left: 20rpx; */
|
||
/* font-size: 20rpx; */
|
||
}
|
||
|
||
.dingdan>view {
|
||
border-bottom: 1rpx solid #CCCCCC;
|
||
padding: 20rpx 0;
|
||
}
|
||
|
||
.dingdan {
|
||
width: 690rpx;
|
||
margin: 20rpx auto;
|
||
padding: 0 30rpx;
|
||
box-sizing: border-box;
|
||
box-shadow: 0px 0rpx 10rpx 0px #1FF7F0;
|
||
border-radius: 10rpx;
|
||
font-size: 28rpx;
|
||
}
|
||
|
||
|
||
|
||
.address_z_r {
|
||
width: 484rpx;
|
||
margin-left: 30rpx;
|
||
font-size: 28rpx;
|
||
}
|
||
|
||
.address_z>image {
|
||
width: 44rpx;
|
||
height: 50rpx;
|
||
}
|
||
|
||
|
||
.address_z {
|
||
width: 690rpx;
|
||
margin: 20rpx auto;
|
||
border-radius: 20rpx;
|
||
padding: 30rpx;
|
||
box-sizing: border-box;
|
||
display: flex;
|
||
align-items: center;
|
||
box-shadow: 0px 0rpx 10rpx 0px #1FF7F0;
|
||
font-size: 24rpx;
|
||
|
||
}
|
||
|
||
.xuyuan_item_2 text {
|
||
font-size: 28rpx;
|
||
}
|
||
|
||
.xuyuan_item_2>view:nth-of-type(3) {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
font-size: 20rpx;
|
||
}
|
||
|
||
.xuyuan_item_2>view:nth-of-type(2) {
|
||
font-size: 24rpx;
|
||
}
|
||
|
||
.xuyuan_item_2 {
|
||
|
||
font-size: 28rpx;
|
||
width: 440rpx;
|
||
/* border: 1rpx solid red; */
|
||
margin-top: 10rpx;
|
||
margin-left: 20rpx;
|
||
display: flex;
|
||
justify-content: space-between;
|
||
flex-direction: column;
|
||
}
|
||
|
||
.shop_item_img>image {
|
||
width: 170rpx;
|
||
height: 170rpx;
|
||
border-radius: 10rpx 10rpx 0 0;
|
||
}
|
||
|
||
.shop_item_img {
|
||
width: 170rpx;
|
||
height: 170rpx;
|
||
border-radius: 10rpx 10rpx 0 0;
|
||
position: relative;
|
||
text-align: left;
|
||
box-sizing: border-box;
|
||
|
||
}
|
||
|
||
.xuyuan_item {
|
||
display: flex;
|
||
margin: 14rpx auto 0;
|
||
width: 630rpx;
|
||
box-sizing: border-box;
|
||
padding-bottom: 20rpx;
|
||
border-bottom: 1rpx solid #cccccc;
|
||
}
|
||
|
||
.xuyuan>view:nth-of-type(2) {
|
||
font-size: 28rpx;
|
||
|
||
display: flex;
|
||
justify-content: flex-end;
|
||
padding: 20rpx 30rpx;
|
||
box-sizing: border-box;
|
||
align-items: flex-end;
|
||
}
|
||
|
||
|
||
.xuyuan {
|
||
width: 690rpx;
|
||
/* height: 432rpx; */
|
||
box-shadow: 0px 0rpx 10rpx 0px #1FF7F0;
|
||
border-radius: 20rpx;
|
||
margin: 24rpx auto 0;
|
||
padding-top: 24rpx;
|
||
box-sizing: border-box;
|
||
|
||
}
|
||
|
||
.content {
|
||
width: 100vw;
|
||
min-height: 100vh;
|
||
padding-top: 2rpx;
|
||
background: #000000;
|
||
box-sizing: border-box;
|
||
font-weight: 500;
|
||
color: #FFFFFF;
|
||
}
|
||
</style>
|