123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276 |
- <template>
- <view class="page" @click="closeShow">
- <!-- 订单状态 -->
- <view class="title">
- <view v-if="status == 1">
- <view class="payment">
- 等待付款
- </view>
- <text class="timer">剩22小时52分自动关闭</text>
- </view>
- <view class="payment" v-else-if="status == 2">
- 超时未付款,订单已取消
- </view>
- <view class="payment" v-else-if="status == 3">
- 未发货,退款成功
- </view>
- <view class="payment" v-else-if="status == 4">
- 未发货,退款中
- </view>
- <view class="payment" v-else-if="status == 5">
- 拼团中
- </view>
- <view class="payment" v-else-if="status == 6">
- 已付款,等待发货
- </view>
- <view class="payment" v-else-if="status == 7">
- 已发货,等待收货
- </view>
- <view class="payment" v-else-if="status == 8">
- 订单已完成,交易成功
- </view>
- </view>
- <!-- 订单状态 -->
- <!-- 地址信息 -->
- <view class="address">
- <view class="name-phone">
- <u-icon name="map" size="22"></u-icon>
- <view style="margin: 0 20rpx;font-size: 32rpx;">陈曦</view>
- <text class="phone">17800000000</text>
- </view>
- <view class="address-detail">
- 江苏省淮安市清江浦区北京南路99号(青浦大桥南侧200
- 米)淮安恒大名都3号楼一单元1602
- </view>
- </view>
- <commodityDetailVue :status="status" />
- <view class="order">
- <view class="order-number">
- <text>
- 订单编号
- </text>
- <view>
- 8998391920137645 | <text decode @click="cope('111')">{{" "+"复制"}}</text>
- </view>
- </view>
- <view class="order-number"
- v-if="status == 3||status == 4||status == 5||status == 6||status == 7||status == 8">
- <text>
- 支付方式
- </text>
- <view>
- 微信支付
- </view>
- </view>
- <view class="order-number"
- v-if="status == 3||status == 4||status == 5||status == 6||status == 7||status == 8">
- <text>
- 支付时间
- </text>
- <view>
- 2023-12-08 22:40:03
- </view>
- </view>
- <view class="order-number">
- <text>
- 下单时间
- </text>
- <view>
- 2023-12-08 22:40:03
- </view>
- </view>
- </view>
- <view class="contact" v-if="status == 1||status == 6">
- 联系团长
- </view>
- <view class="footer" v-if="status != 6">
- <button class="status-1" v-if="status == 1||status == 5">取消订单</button>
- <button class="status-2" v-if="status == 1">继续付款</button>
- <button class="status-1" v-if="status == 2||status == 3||status == 4">删除订单</button>
- <button class="status-2" v-if="status == 2||status == 3||status == 4">再次购买</button>
- <button class="status-1" v-if="status == 7">查看物流</button>
- <button class="status-2" v-if="status == 7">确认收货</button>
- <view style="margin-right: 40rpx; color: #777;font-size: 28rpx;" v-if="status == 8" @click="more">更多</view>
- <button class="status-1" v-if="status == 8">查看物流</button>
- <button class="status-1" v-if="status == 8">再来一单</button>
- <button class="status-2" v-if="status == 8" @click.stop="toEvaluate">评价</button>
- </view>
- <u-transition :show="show">
- <view class="transition">删除订单</view>
- </u-transition>
- </view>
- </template>
- <script>
- import commodityDetailVue from './component/commodityDetail.vue'
- export default {
- components: {
- commodityDetailVue
- },
- data() {
- return {
- status: 6,
- show: false
- }
- },
- methods: {
- //复制
- cope(e) {
- uni.setClipboardData({
- data: e,
- success() {
- uni.showToast({
- title: "复制成功",
- icon: "none"
- })
- }
- })
- },
- //跳转评论
- toEvaluate() {
- uni.navigateTo({
- url: "/pageD/evaluate/evaluate"
- })
- },
- more() {
- this.show = true
- },
- closeShow(e) {
- if (e._relatedInfo.anchorTargetText != "更多" && e._relatedInfo.anchorTargetText != "删除订单") {
- this.show = false
- }
- }
- },
- created() {},
- onLoad(option) {
- this.status = option.orderId
- }
- }
- </script>
- <style scoped lang="scss">
- .page {
- padding: 20rpx 24rpx 180rpx;
- .title {
- .payment {
- font-size: 44rpx;
- font-weight: 600;
- margin-bottom: 20rpx;
- }
- .timer {
- font-size: 28rpx;
- color: #666;
- }
- }
- .address {
- background-color: #fff;
- border-radius: 16rpx;
- padding: 34rpx 24rpx 28rpx;
- margin-top: 24rpx;
- .name-phone {
- display: flex;
- align-items: center;
- align-items: flex-end;
- .phone {
- font-size: 26rpx;
- color: #666;
- }
- }
- .address-detail {
- margin-top: 20rpx;
- font-size: 24rpx;
- color: #444;
- margin-left: 60rpx;
- }
- }
- .order {
- background-color: #fff;
- border-radius: 16rpx;
- color: rgba(54, 54, 54, .7);
- font-size: 28rpx;
- margin-top: 20rpx;
- padding: 20rpx 20rpx;
- .order-number {
- display: flex;
- justify-content: space-between;
- margin-bottom: 32rpx;
- }
- }
- .contact {
- padding: 20rpx 0;
- background-color: #fff;
- display: flex;
- justify-content: center;
- align-items: center;
- border-radius: 16rpx;
- margin-top: 20rpx;
- margin-bottom: 160rpx;
- }
- .footer {
- position: fixed;
- bottom: 0;
- left: 0;
- background-color: #fff;
- display: flex;
- justify-content: flex-end;
- align-items: center;
- padding-top: 20rpx;
- padding-bottom: 80rpx;
- height: 66rpx;
- width: 100%;
- .status-1 {
- background-color: #fff;
- border-radius: 34rpx;
- margin: 0;
- padding: 0;
- font-size: 28rpx;
- color: #222;
- width: 168rpx;
- height: 68rpx;
- margin-right: 20rpx;
- border: 2rpx solid #979797;
- }
- .status-2 {
- background-color: #ffffff;
- border-radius: 34rpx;
- margin: 0;
- padding: 0;
- font-size: 28rpx;
- color: #f83224;
- width: 168rpx;
- height: 68rpx;
- border: 2rpx solid #f83224;
- margin-right: 24rpx;
- }
- }
- .transition {
- width: 164rpx;
- height: 88rpx;
- background: #FFFFFF;
- box-shadow: 0rpx 0rpx 20rpx -6rpx rgba(0, 0, 0, 0.3);
- position: fixed;
- bottom: 160rpx;
- text-align: center;
- line-height: 88rpx;
- font-size: 26rpx;
- color: #222;
- }
- }
- </style>
|