|
@@ -1,18 +1,13 @@
|
|
|
<template>
|
|
|
- <view class="container">
|
|
|
+ <view class="order-modules">
|
|
|
<page-navbar bgColor="#fff" title="我的订单"></page-navbar>
|
|
|
|
|
|
- <u-sticky bgColor="#fff">
|
|
|
- <u-tabs
|
|
|
- lineWidth="40"
|
|
|
- :list="list"
|
|
|
- :current="current"
|
|
|
- itemStyle="padding-left: 15px; padding-right: 15px; height: 34px;"
|
|
|
- />
|
|
|
+ <u-sticky bgColor="#fff" :customNavHeight="topIconDistance">
|
|
|
+ <base-tabs :list="list" :current="current" />
|
|
|
</u-sticky>
|
|
|
|
|
|
<view class="order-box">
|
|
|
- <view class="order-item" v-for="(item, index) of 3" :key="index">
|
|
|
+ <view class="order-item" v-for="(item, index) of 10" :key="index">
|
|
|
<view class="item-top">
|
|
|
<view class="top-left">
|
|
|
<image src="@/static/home/icon_home_detail_shop.png" class="img"></image>
|
|
@@ -21,7 +16,7 @@
|
|
|
<view class="top-right"> 待付款 </view>
|
|
|
</view>
|
|
|
|
|
|
- <view class="goods-item" v-for="(item, index) of 3" :key="index">
|
|
|
+ <view class="goods-item" v-for="(item, index) of 2" :key="index">
|
|
|
<view class="item-left">
|
|
|
<image src="@/static/QR57a.jpg" class="img"></image>
|
|
|
</view>
|
|
@@ -37,14 +32,72 @@
|
|
|
<u-line margin="24rpx 0"></u-line>
|
|
|
|
|
|
<view class="price-box">
|
|
|
- <view class="price">需付款¥1559.9</view>
|
|
|
+ <!-- <view class="price">需付款¥1559.9</view> -->
|
|
|
+ <view class="price">实款¥1559.9</view>
|
|
|
</view>
|
|
|
|
|
|
<view class="btn-box">
|
|
|
- <button class="btn btn2">继续付款</button>
|
|
|
- <!-- <button class="btn btn1">查看卷码</button>
|
|
|
- <button class="btn btn2">再来一单</button>
|
|
|
- <button class="btn btn2">退款进度</button> -->
|
|
|
+ <!-- 待付款 -->
|
|
|
+ <!-- <base-text
|
|
|
+ text="放弃支付"
|
|
|
+ width="160rpx"
|
|
|
+ height="60rpx"
|
|
|
+ fontSize="28rpx"
|
|
|
+ background="#fff"
|
|
|
+ color="#616570"
|
|
|
+ :baseTextStyle="baseTextStyle"
|
|
|
+ />
|
|
|
+ <base-text
|
|
|
+ text="继续支付"
|
|
|
+ width="160rpx"
|
|
|
+ height="60rpx"
|
|
|
+ fontSize="28rpx"
|
|
|
+ background="#fff"
|
|
|
+ /> -->
|
|
|
+ <!-- 带使用 -->
|
|
|
+ <!-- <base-text
|
|
|
+ text="查看券码"
|
|
|
+ width="160rpx"
|
|
|
+ height="60rpx"
|
|
|
+ fontSize="28rpx"
|
|
|
+ background="#fff"
|
|
|
+ color="#616570"
|
|
|
+ :baseTextStyle="baseTextStyle"
|
|
|
+ />
|
|
|
+ <base-text
|
|
|
+ text="再来一单"
|
|
|
+ width="160rpx"
|
|
|
+ height="60rpx"
|
|
|
+ fontSize="28rpx"
|
|
|
+ background="#fff"
|
|
|
+ /> -->
|
|
|
+ <!-- 已完成 -->
|
|
|
+ <base-text
|
|
|
+ text="再来一单"
|
|
|
+ width="160rpx"
|
|
|
+ height="60rpx"
|
|
|
+ fontSize="28rpx"
|
|
|
+ background="#fff"
|
|
|
+ color="#616570"
|
|
|
+ :baseTextStyle="baseTextStyle"
|
|
|
+ />
|
|
|
+ <base-text
|
|
|
+ text="去评价"
|
|
|
+ width="160rpx"
|
|
|
+ height="60rpx"
|
|
|
+ fontSize="28rpx"
|
|
|
+ background="#fff"
|
|
|
+ />
|
|
|
+ <!-- 退款/取消 -->
|
|
|
+ <!-- <base-text
|
|
|
+ text="再次购买"
|
|
|
+ width="188rpx"
|
|
|
+ height="60rpx"
|
|
|
+ fontSize="28rpx"
|
|
|
+ background="#fff"
|
|
|
+ color="#616570"
|
|
|
+ :baseTextStyle="baseTextStyle"
|
|
|
+ /> -->
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -58,33 +111,44 @@ export default {
|
|
|
current: 0,
|
|
|
list: [
|
|
|
{
|
|
|
- name: '待付款',
|
|
|
+ name: '全部',
|
|
|
type: 0,
|
|
|
},
|
|
|
{
|
|
|
- name: '已付款',
|
|
|
+ name: '待付款',
|
|
|
type: 1,
|
|
|
},
|
|
|
{
|
|
|
- name: '已完成',
|
|
|
+ name: '待使用',
|
|
|
type: 3,
|
|
|
},
|
|
|
{
|
|
|
- name: '已关闭',
|
|
|
+ name: '已完成',
|
|
|
type: 4,
|
|
|
},
|
|
|
+ {
|
|
|
+ name: '退款/取消',
|
|
|
+ type: 5,
|
|
|
+ },
|
|
|
],
|
|
|
};
|
|
|
},
|
|
|
+ computed: {
|
|
|
+ baseTextStyle() {
|
|
|
+ return {
|
|
|
+ marginRight: '20rpx',
|
|
|
+ };
|
|
|
+ },
|
|
|
+ },
|
|
|
};
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
-.container {
|
|
|
+.order-modules {
|
|
|
font-size: 28rpx;
|
|
|
padding: 0 0 30rpx;
|
|
|
.order-box {
|
|
|
- margin-top: 18rpx;
|
|
|
+ margin-top: 24rpx;
|
|
|
|
|
|
.order-item {
|
|
|
padding: 34rpx 32rpx;
|
|
@@ -166,37 +230,12 @@ export default {
|
|
|
font-size: 30rpx;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
-
|
|
|
- .btn-box {
|
|
|
- display: flex;
|
|
|
- justify-content: flex-end;
|
|
|
-
|
|
|
- .btn {
|
|
|
- padding: 0 24rpx;
|
|
|
- border-radius: 8rpx;
|
|
|
- box-sizing: border-box;
|
|
|
- margin-right: 24rpx;
|
|
|
- height: 60rpx;
|
|
|
- line-height: 60rpx;
|
|
|
- font-size: 28rpx;
|
|
|
- }
|
|
|
-
|
|
|
- .btn:last-child {
|
|
|
- margin: 0;
|
|
|
- }
|
|
|
-
|
|
|
- .btn1 {
|
|
|
- color: #616570;
|
|
|
- border: 2rpx solid #616570;
|
|
|
- }
|
|
|
-
|
|
|
- .btn2 {
|
|
|
- color: #215ebe;
|
|
|
- border: 2rpx solid #215ebe;
|
|
|
- }
|
|
|
- }
|
|
|
}
|
|
|
}
|
|
|
+ .btn-box {
|
|
|
+ display: flex;
|
|
|
+ justify-content: flex-end;
|
|
|
+ }
|
|
|
}
|
|
|
</style>
|
|
|
|