123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480 |
- <template>
- <view class="page">
- <view class="top">
- <view class="title">
- {{orderTitle}}
- </view>
- <view class="prompt">
- {{orderDetail}}
- </view>
- </view>
- <view class="packaging" v-if="orderStauts == 4">
- <view class="packaging-top">
- <view class="">
- {{"普通包裹"+" "+"|"+" "+"海运散货"}}
- </view>
- <view style="color:#f83224;">
- 拼包中
- </view>
- </view>
- <view class="packaging-center">
- <view class="packaging-left">
- <view class="left-top">
- 东莞仓库
- </view>
- <view class="left-bottom">
- 始发地
- </view>
- </view>
- <image class="jiantou" src="../../static/mine/339.png" mode=""></image>
- <view class="packaging-left">
- <view class="left-top">
- 澳大利亚
- </view>
- <view class="left-bottom">
- 目的地
- </view>
- </view>
- </view>
- <view class="packaging-time">
- <view class="time">
- <text>开始时间:</text>
- <text>{{"2024-5-25" + " "}}</text>
- </view>
- <view class="time">
- <text>开始时间:</text>
- <text>2024-5-25</text>
- </view>
- </view>
- </view>
- <view class="photo" v-if="orderStauts == 1">
- <view class="_weight"> <text>称重重量</text> <text>168kg</text> </view>
- <view class="_weight"> <text>称重图片</text>
- <view class="_image">
- </view>
- </view>
- <view class="photo-bottom">
- <text class="_text-1">需付款</text>
- <view class="price">
- <text style="font-size: 20rpx;">¥</text>
- <text>133</text>.
- <text style="font-size: 20rpx;">22</text>
- </view>
- </view>
- </view>
- <view class="address">
- <view class="name-phone">
- <view class="send">
- 寄
- </view>
- <view class="name">
- 张三
- </view>
- <view class="phone">
- 181****1111
- </view>
- </view>
- <view class="address-detail">
- 上海市上海市浦东新区商城路1177弄5号楼201
- </view>
- <view class="name-phone">
- <view class="send">
- 收
- </view>
- <view class="name">
- Curtis Morris
- </view>
- <view class="phone">
- 181****1111
- </view>
- </view>
- <view class="address-detail _bottom">
- 2A Mugga Way, Red Hill ACT 2603
- </view>
- <image style="height: 4rpx;margin-bottom: 40rpx;" src="../../static/mine/338.png" mode=""></image>
- <view class="_label-list">
- <view class="information">
- <text class="_label">物品信息:</text>
- <text class="_value">日用品</text>
- </view>
- <view class="information">
- <text class="_label">件数:</text>
- <text class="_value">20</text>
- </view>
- <view class="information">
- <text class="_label">重量:</text>
- <text class="_value">200kg</text>
- </view>
- <view class="information">
- <text class="_label">类型:</text>
- <text class="_value">特殊商品</text>
- </view>
- <view>
- <text class="_label">跨境物流:</text>
- <text class="_value">海运散货 | 1号海运柜</text>
- </view>
- </view>
- </view>
- <view class="num-information">
- <view class="order" style="">
- <text class="_label-1">订单编号</text>
- <view class="num">
- <text>ZT83829300113344</text>{{ " "+"|"+" " }}<text
- @click="cope('ZT83829300113344')">复制</text>
- </view>
- </view>
- <view class="order">
- <text class="_label-1">下单时间</text>
- <view class="num">
- 2023-11-24 22:31
- </view>
- </view>
- <view class="order" v-show="orderStauts == 2">
- <text class="_label-1">付款时间</text>
- <view class="num">
- 2023-11-24 22:31
- </view>
- </view>
- </view>
- <view class="pay">
- <text>已付</text>
- <text style="color: #f83224; font-weight: 600;">123.1</text>
- </view>
- <view class="footer" v-if="orderStauts != 2 ">
- <button class="btn-1" @click="toLogistics">查看物流</button>
- <button class="btn-2" @click="toPay" v-if="orderStauts == 1">立即付款</button>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- orderStauts: 0,
- orderTitle: "",
- orderDetail: ""
- };
- },
- computed: {
- },
- onLoad(options) {
- console.log(options)
- this.orderStauts = options.orderStatus
- if (this.orderStauts == 0) {
- //设置顶部标题栏颜色
- uni.setNavigationBarColor({
- frontColor: '#000000',
- backgroundColor: '#f4f4f4'
- })
- this.orderDetail = "商品已寄往平台,正在运输中"
- this.orderTitle = "待平台收货"
- } else if (this.orderStauts == 1) {
- //设置顶部标题栏颜色
- uni.setNavigationBarColor({
- frontColor: '#000000',
- backgroundColor: '#f4f4f4'
- })
- this.orderDetail = "商品已打包称重,等待用户付款"
- this.orderTitle = "待付款"
- } else if (this.orderStauts == 2) {
- //设置顶部标题栏颜色
- uni.setNavigationBarColor({
- frontColor: '#000000',
- backgroundColor: '#f4f4f4'
- })
- this.orderDetail = "等待平台发货"
- this.orderTitle = "待发货"
- } else if (this.orderStauts == 3) {
- //设置顶部标题栏颜色
- uni.setNavigationBarColor({
- frontColor: '#000000',
- backgroundColor: '#f4f4f4'
- })
- this.orderDetail = "商品已发出,很快将发货至您的手中"
- this.orderTitle = "已发货"
- } else if (this.orderStauts == 4) {
- //设置顶部标题栏颜色
- uni.setNavigationBarColor({
- frontColor: '#000000',
- backgroundColor: '#ffffff'
- })
- uni.setNavigationBarTitle({
- title:"拼包详情"
- })
- }
- },
- created() {},
- methods: {
- cope(str) {
- uni.setClipboardData({
- data: str,
- success() {
- uni.showToast({
- title: "复制成功",
- icon: "none"
- })
- }
- })
- },
- setStatus(num) {
- this.orderStauts = num
- },
- toLogistics() {
- uni.navigateTo({
- url: "/pageD/logisticsProgress/logisticsProgress"
- })
- },
- toPay() {
- uni.navigateTo({
- url: "/pageD/paymentOrder/paymentOrder"
- })
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .page {
- padding: 20rpx 24rpx;
- position: relative;
- .title {
- font-size: 44rpx;
- color: #222;
- font-weight: 600;
- }
- .prompt {
- font-size: 24rpx;
- color: rgba(34, 34, 34, .5);
- margin-top: 12rpx;
- }
- .packaging{
- border-radius: 16rpx;
- background-color: #fff;
- padding: 30rpx 20rpx;
- .packaging-top{
- display: flex;
- justify-content: space-between;
- font-size: 28rpx;
- color: #222;
- }
- .packaging-center{
- display: flex;
- justify-content: space-around;
- align-items: center;
- margin-top: 26rpx;
- background-color: #F5F5F5;
- border-radius: 10rpx;
- padding: 20rpx 0;
- .jiantou{
- width: 130rpx;
- height: 10rpx;
- }
- .packaging-left{
- text-align: center;
- .left-top{
- font-size: 32rpx;
- color: #222;
- font-weight: 600;
- }
- .left-bottom{
- margin-top: 10rpx;
- font-size: 24rpx;
- color: rgba(34, 34, 34, .5);
- }
- }
- }
- .packaging-time{
- font-size: 28rpx;
- display: flex;
- align-items: center;
- margin-top: 28rpx;
- }
- }
- .photo {
- background-color: #fff;
- border-radius: 16rpx;
- padding: 20rpx 20rpx;
- margin-top: 20rpx;
- ._weight {
- display: flex;
- justify-content: space-between;
- font-size: 26rpx;
- color: rgba(34, 34, 34, .8);
- margin-bottom: 32rpx;
- ._image {
- width: 160rpx;
- height: 90rpx;
- background-color: #D8D8D8;
- border-radius: 4rpx;
- }
- }
- .photo-bottom {
- display: flex;
- justify-content: flex-end;
- align-items: center;
- border-top: 2rpx solid rgba(151, 151, 151, .1);
- padding-top: 24rpx;
- .price {
- color: #f83224;
- font-weight: 600;
- }
- ._text-1 {
- font-size: 26rpx;
- }
- }
- }
- .address {
- padding: 36rpx 34rpx;
- background-color: #fff;
- border-radius: 10rpx;
- margin-top: 32rpx;
- .name-phone {
- display: flex;
- align-items: flex-end;
- .send {
- width: 40rpx;
- height: 40rpx;
- background-color: #000;
- color: #fff;
- border-radius: 50%;
- font-size: 22rpx;
- text-align: center;
- line-height: 40rpx;
- }
- .name {
- font-weight: 600;
- font-size: 30rpx;
- color: #222;
- margin-right: 28rpx;
- margin-left: 28rpx;
- }
- .phone {
- font-size: 24rpx;
- color: #777;
- }
- }
- .address-detail {
- font-size: 26rpx;
- color: #555;
- margin-top: 16rpx;
- margin-left: 60rpx;
- padding-bottom: 36rpx;
- border-bottom: 2rpx solid rgba(151, 151, 151, .1);
- margin-bottom: 34rpx;
- }
- ._bottom {
- border: none;
- margin-bottom: 0;
- }
- ._label-list {
- display: flex;
- flex-wrap: wrap;
- justify-content: space-between;
- .information {
- width: 49%;
- margin-bottom: 28rpx;
- font-size: 28rpx;
- }
- ._label {
- color: #666;
- font-size: 28rpx;
- }
- ._value {
- font-size: 28rpx;
- color: #333;
- }
- }
- }
- .num-information {
- background-color: #fff;
- border-radius: 16rpx;
- margin-top: 20rpx;
- padding: 28rpx 20rpx 2rpx 28rpx;
- .order {
- display: flex;
- justify-content: space-between;
- font-size: 28rpx;
- margin-bottom: 28rpx;
- ._label-1 {
- color: #666;
- }
- .num {
- color: #333;
- }
- }
- }
- .pay {
- display: flex;
- padding: 22rpx 28rpx;
- justify-content: space-between;
- margin-top: 20rpx;
- background-color: #fff;
- border-radius: 16rpx;
- }
- .footer {
- display: flex;
- justify-content: flex-end;
- background-color: #fff;
- position: fixed;
- bottom: 0;
- left: 0;
- width: 100%;
- height: 146rpx;
- padding-top: 20rpx;
- .btn-1 {
- height: 76rpx;
- padding: 0;
- margin: 0;
- font-size: 28rpx;
- color: #222;
- min-width: 188rpx;
- background-color: #fff;
- border-radius: 38rpx;
- border: 2rpx solid #979797;
- margin-right: 20rpx;
- }
- .btn-2 {
- height: 76rpx;
- padding: 0;
- margin: 0;
- font-size: 28rpx;
- color: #fff;
- min-width: 188rpx;
- background-color: #f83224;
- border-radius: 38rpx;
- margin-right: 20rpx;
- }
- }
- }
- </style>
|