|
@@ -1,277 +1,106 @@
|
|
|
<template>
|
|
|
- <view>
|
|
|
- <view class="wrap">
|
|
|
- <view class="uv-tabs-box">
|
|
|
- <uv-tabs ref="tabs" :list="list" :current="current" @change="change" :scrollable="false">
|
|
|
+ <view class="order-list">
|
|
|
+ <z-paging ref="paging" v-model="dataList" @query="queryList">
|
|
|
+ <template #top>
|
|
|
+ <uv-tabs :list="list" @change="changeTab" :customStyle="{
|
|
|
+ background:'#fff'
|
|
|
+ }" :scrollable="false">
|
|
|
</uv-tabs>
|
|
|
- </view>
|
|
|
- <swiper class="swiper-box" :current="swiperCurrent" @animationfinish="animationfinish">
|
|
|
- <swiper-item class="swiper-item">
|
|
|
- <scroll-view scroll-y style="height: 100%;width: 100%;" @scrolltolower="reachBottom">
|
|
|
- <view class="no-data" v-if="orders[0].length ===0 ">
|
|
|
- <uv-empty
|
|
|
- icon="https://file-node.oss-cn-shanghai.aliyuncs.com/youji/fa57e25b38c442ebb0ba023cace796bb"
|
|
|
- :isImg="true" textSize="14" width="180" text="暂无订单">
|
|
|
- </uv-empty>
|
|
|
+ </template>
|
|
|
+ <view class="page-box">
|
|
|
+ <view class="order" v-for="(res, index) in dataList" :key="res.id">
|
|
|
+ <view class="top" @click="toDetail(res.orderSn)">
|
|
|
+ <view class="left">
|
|
|
+ <uv-icon name="home" :size="15" color="rgb(94,94,94)"></uv-icon>
|
|
|
+ <view class="store">{{ res.orderSn }}</view>
|
|
|
+ <uv-icon name="arrow-right" color="rgb(203,203,203)" :size="13"></uv-icon>
|
|
|
</view>
|
|
|
- <view class="page-box" v-else>
|
|
|
- <view class="order" v-for="(res, index) in orders[0]" :key="res.id">
|
|
|
- <view class="top" @click="toDetail(res.orderSn)">
|
|
|
- <view class="left">
|
|
|
- <uv-icon name="home" :size="30" color="rgb(94,94,94)"></uv-icon>
|
|
|
- <view class="store">{{ res.orderSn }}</view>
|
|
|
- <uv-icon name="arrow-right" color="rgb(203,203,203)" :size="26"></uv-icon>
|
|
|
- </view>
|
|
|
- <view class="right">{{ res.statusName }}</view>
|
|
|
- </view>
|
|
|
- <view class="item" v-for="(item, index) in res.items" :key="index"
|
|
|
- @click="toDetail(res.orderSn)">
|
|
|
- <view class="left">
|
|
|
- <image :src="shopImage(item.goods.pic)" mode="aspectFill"></image>
|
|
|
- </view>
|
|
|
- <view class="content">
|
|
|
- <view class="title uv-line-2">{{ item.goods.name }} </view>
|
|
|
- <view class="type">{{ item.title }}</view>
|
|
|
- <view class="delivery-time">付款后5天内发货</view>
|
|
|
- </view>
|
|
|
- <view class="right">
|
|
|
- <view class="price">
|
|
|
- ¥{{ formatPrice(item.price) }}
|
|
|
- </view>
|
|
|
- <view class="number">x{{ item.count }}</view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view class="total" @click="toDetail(res.orderSn)">
|
|
|
- 共{{ totalNum(res.items) }}件商品 合计:
|
|
|
- <text class="total-price">
|
|
|
- ¥{{ formatPrice(res.totalPrice) }}
|
|
|
- </text>
|
|
|
- </view>
|
|
|
- <view class="bottom">
|
|
|
- <view class="more">
|
|
|
- <!-- <uv-icon name="more-dot-fill" color="rgb(203,203,203)"></uv-icon> -->
|
|
|
- </view>
|
|
|
- <view class="logistics btn" @click="cancel(res.orderSn)">取消订单</view>
|
|
|
- <view class="evaluate btn" @click="pay(res.orderSn,totalPrice(res.items)*100)">立即付款
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <uv-loadmore :status="loadStatus[0]" bgColor="#f2f2f2"></uv-loadmore>
|
|
|
+ <view class="right">{{ res.statusName }}</view>
|
|
|
+ </view>
|
|
|
+ <view class="item" v-for="(item, index) in res.items" :key="index" @click="toDetail(res.orderSn)">
|
|
|
+ <view class="left">
|
|
|
+ <image :src="shopImage(item.goods.pic)" mode="aspectFill"></image>
|
|
|
</view>
|
|
|
- </scroll-view>
|
|
|
- </swiper-item>
|
|
|
- <swiper-item class="swiper-item">
|
|
|
- <scroll-view scroll-y style="height: 100%;width: 100%;" @scrolltolower="reachBottom">
|
|
|
- <view class="no-data" v-if="orders[1].length ===0 ">
|
|
|
- <uv-empty
|
|
|
- icon="https://file-node.oss-cn-shanghai.aliyuncs.com/youji/fa57e25b38c442ebb0ba023cace796bb"
|
|
|
- :isImg="true" textSize="14" width="180" text="暂无订单">
|
|
|
- </uv-empty>
|
|
|
+ <view class="content">
|
|
|
+ <view class="title uv-line-2">{{ item.goods.name }} </view>
|
|
|
+ <view class="type">{{ item.title }}</view>
|
|
|
+ <view class="delivery-time" v-if="res.statusName === '待付款' || res.statusName === '待发货'">
|
|
|
+ 付款后5天内发货
|
|
|
+ </view>
|
|
|
+ <view class="delivery-time" v-else-if="res.statusName != '已取消'">{{res.statusName}}</view>
|
|
|
</view>
|
|
|
- <view class="page-box" v-else>
|
|
|
- <view class="order" v-for="(res, index) in orders[1]" :key="res.id">
|
|
|
- <view class="top" @click="toDetail(res.orderSn)">
|
|
|
- <view class="left">
|
|
|
- <uv-icon name="home" :size="30" color="rgb(94,94,94)"></uv-icon>
|
|
|
- <view class="store">{{ res.orderSn }}</view>
|
|
|
- <uv-icon name="arrow-right" color="rgb(203,203,203)" :size="26"></uv-icon>
|
|
|
- </view>
|
|
|
- <view class="right">{{ res.statusName }}</view>
|
|
|
- </view>
|
|
|
- <view class="item" v-for="(item, index) in res.items" :key="index"
|
|
|
- @click="toDetail(res.orderSn)">
|
|
|
- <view class="left">
|
|
|
- <image :src="shopImage(item.goods.pic)" mode="aspectFill"></image>
|
|
|
- </view>
|
|
|
- <view class="content">
|
|
|
- <view class="title uv-line-2">{{ item.goods.name }} </view>
|
|
|
- <view class="type">{{ item.title }}</view>
|
|
|
- <view class="delivery-time">付款后5天内发货</view>
|
|
|
- </view>
|
|
|
- <view class="right">
|
|
|
- <view class="price">
|
|
|
- ¥{{ formatPrice(item.price) }}
|
|
|
- </view>
|
|
|
- <view class="number">x{{ item.count }}</view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view class="total" @click="toDetail(res.orderSn)">
|
|
|
- 共{{ totalNum(res.items) }}件商品 合计:
|
|
|
- <text class="total-price">
|
|
|
- ¥{{ totalPrice(res.items) }}
|
|
|
-
|
|
|
- </text>
|
|
|
- </view>
|
|
|
- <view class="bottom">
|
|
|
- <view class="more">
|
|
|
- <!-- <uv-icon name="more-dot-fill" color="rgb(203,203,203)"></uv-icon> -->
|
|
|
- </view>
|
|
|
- <view class="evaluate btn" @click="notify(res.orderSn)">提醒发货</view>
|
|
|
- </view>
|
|
|
+ <view class="right">
|
|
|
+ <view class="price">
|
|
|
+ ¥{{ formatPrice(item.price) }}
|
|
|
</view>
|
|
|
- <uv-loadmore :status="loadStatus[1]" bgColor="#f2f2f2"></uv-loadmore>
|
|
|
+ <view class="number">x{{ item.count }}</view>
|
|
|
</view>
|
|
|
- </scroll-view>
|
|
|
- </swiper-item>
|
|
|
- <swiper-item class="swiper-item">
|
|
|
- <scroll-view scroll-y style="height: 100%;width: 100%;" @scrolltolower="reachBottom">
|
|
|
- <view class="no-data" v-if="orders[2].length ===0 ">
|
|
|
- <uv-empty
|
|
|
- icon="https://file-node.oss-cn-shanghai.aliyuncs.com/youji/fa57e25b38c442ebb0ba023cace796bb"
|
|
|
- :isImg="true" textSize="14" width="180" text="暂无订单">
|
|
|
- </uv-empty>
|
|
|
+ </view>
|
|
|
+ <view class="total" @click="toDetail(res.orderSn)">
|
|
|
+ 共{{ totalNum(res.items) }}件商品 合计:
|
|
|
+ <text class="total-price">
|
|
|
+ ¥{{ totalPrice(res.items) }}
|
|
|
+ </text>
|
|
|
+ </view>
|
|
|
+ <view class="bottom">
|
|
|
+ <view class="more">
|
|
|
+ <!-- <uv-icon name="more-dot-fill" color="rgb(203,203,203)"></uv-icon> -->
|
|
|
</view>
|
|
|
- <view class="page-box" v-else>
|
|
|
- <view class="order" v-for="(res, index) in orders[2]" :key="res.id">
|
|
|
- <view class="top" @click="toDetail(res.orderSn)">
|
|
|
- <view class="left">
|
|
|
- <uv-icon name="home" :size="30" color="rgb(94,94,94)"></uv-icon>
|
|
|
- <view class="store">{{ res.orderSn }}</view>
|
|
|
- <uv-icon name="arrow-right" color="rgb(203,203,203)" :size="26"></uv-icon>
|
|
|
- </view>
|
|
|
- <view class="right">{{ res.statusName }}</view>
|
|
|
- </view>
|
|
|
- <view class="item" v-for="(item, index) in res.items" :key="index"
|
|
|
- @click="toDetail(res.orderSn)">
|
|
|
- <view class="left">
|
|
|
- <image :src="shopImage(item.goods.pic)" mode="aspectFill"></image>
|
|
|
- </view>
|
|
|
- <view class="content">
|
|
|
- <view class="title uv-line-2">{{ item.goods.name }} </view>
|
|
|
- <view class="type">{{ item.title }}</view>
|
|
|
- <view class="delivery-time">付款后5天内发货</view>
|
|
|
- </view>
|
|
|
- <view class="right">
|
|
|
- <view class="price">
|
|
|
- ¥{{ formatPrice(item.price) }}
|
|
|
- </view>
|
|
|
- <view class="number">x{{ item.count }}</view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view class="total" @click="toDetail(res.orderSn)">
|
|
|
- 共{{ totalNum(res.items) }}件商品 合计:
|
|
|
- <text class="total-price">
|
|
|
- ¥{{ totalPrice(res.items) }}
|
|
|
- </text>
|
|
|
- </view>
|
|
|
- <view class="bottom">
|
|
|
- <view class="more">
|
|
|
- <!-- <uv-icon name="more-dot-fill" color="rgb(203,203,203)"></uv-icon> -->
|
|
|
- </view>
|
|
|
- <view class="logistics btn" @click="expressInfo(res.orderSn)">查看物流</view>
|
|
|
- <view class="evaluate btn" @click="confirm(res.orderSn)">确认收货</view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <uv-loadmore :status="loadStatus[2]" bgColor="#f2f2f2"></uv-loadmore>
|
|
|
+ <view class="logistics btn" @click="cancel(res.orderSn)" v-if="res.statusName === '待付款'">
|
|
|
+ 取消订单
|
|
|
</view>
|
|
|
- </scroll-view>
|
|
|
- </swiper-item>
|
|
|
- <swiper-item class="swiper-item">
|
|
|
- <scroll-view scroll-y style="height: 100%;width: 100%;" @scrolltolower="reachBottom">
|
|
|
- <view class="no-data" v-if="orders[3].length ===0 ">
|
|
|
- <uv-empty
|
|
|
- icon="https://file-node.oss-cn-shanghai.aliyuncs.com/youji/fa57e25b38c442ebb0ba023cace796bb"
|
|
|
- :isImg="true" textSize="14" width="180" text="暂无订单">
|
|
|
- </uv-empty>
|
|
|
+ <view class="evaluate btn" @click="pay(res.orderSn,totalPrice(res.items)*100)"
|
|
|
+ v-if="res.statusName === '待付款'">
|
|
|
+ 立即付款
|
|
|
</view>
|
|
|
- <view class="page-box" v-else>
|
|
|
- <view class="order" v-for="(res, index) in orders[3]" :key="res.id">
|
|
|
- <view class="top" @click="toDetail(res.orderSn)">
|
|
|
- <view class="left">
|
|
|
- <uv-icon name="home" :size="30" color="rgb(94,94,94)"></uv-icon>
|
|
|
- <view class="store">{{ res.orderSn }}</view>
|
|
|
- <uv-icon name="arrow-right" color="rgb(203,203,203)" :size="26"></uv-icon>
|
|
|
- </view>
|
|
|
- <view class="right">{{ res.statusName }}</view>
|
|
|
- </view>
|
|
|
- <view class="item" v-for="(item, index) in res.items" :key="index"
|
|
|
- @click="toDetail(res.orderSn)">
|
|
|
- <view class="left">
|
|
|
- <image :src="shopImage(item.goods.pic)" mode="aspectFill"></image>
|
|
|
- </view>
|
|
|
- <view class="content">
|
|
|
- <view class="title uv-line-2">{{ item.goods.name }} </view>
|
|
|
- <view class="type">{{ item.title }}</view>
|
|
|
- <view class="delivery-time">已确认收货</view>
|
|
|
- </view>
|
|
|
- <view class="right">
|
|
|
- <view class="price">
|
|
|
- ¥{{ formatPrice(item.price) }}
|
|
|
- </view>
|
|
|
- <view class="number">x{{ item.count }}</view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view class="total" @click="toDetail(res.orderSn)">
|
|
|
- 共{{ totalNum(res.items) }}件商品 合计:
|
|
|
- <text class="total-price">
|
|
|
- ¥{{ totalPrice(res.items) }}
|
|
|
-
|
|
|
- </text>
|
|
|
- </view>
|
|
|
- <view class="bottom">
|
|
|
- <view class="more">
|
|
|
- <!-- <uv-icon name="more-dot-fill" color="rgb(203,203,203)" ></uv-icon> -->
|
|
|
- </view>
|
|
|
- <view class="logistics btn" @click="expressInfo(res.orderSn)">查看物流</view>
|
|
|
- <view class="evaluate btn" @click="comment(res.orderSn)">评价</view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <uv-loadmore :status="loadStatus[3]" bgColor="#f2f2f2"></uv-loadmore>
|
|
|
+ <view class="logistics btn" v-if="res.statusName === '已发货' || res.statusName === '已完成'"
|
|
|
+ @click="$navigateTo('/subPages/shopPage/express/express?orderSn=' + res.orderSn)">
|
|
|
+ 查看物流
|
|
|
</view>
|
|
|
- </scroll-view>
|
|
|
- </swiper-item>
|
|
|
- </swiper>
|
|
|
- </view>
|
|
|
-
|
|
|
- <uv-modal v-model="showCancel" content="确认取消该订单?" :show-cancel-button="true" @confirm="cancelOrder"></uv-modal>
|
|
|
+ <view class="evaluate btn" v-if="res.statusName === '已发货'" @click="confirm(res.orderSn)">
|
|
|
+ 确认收货
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <uv-loadmore :status="loadStatus[2]" bgColor="#f2f2f2"></uv-loadmore>
|
|
|
+ </view>
|
|
|
+ </z-paging>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import {
|
|
|
- getRequest
|
|
|
+ getOrders,
|
|
|
+ cancelOrder,
|
|
|
+ confirmOrder
|
|
|
} from '@/request/api/shop.js'
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
- showCancel: false,
|
|
|
- cancelOrderSn: '',
|
|
|
- orders: [
|
|
|
- [],
|
|
|
- [],
|
|
|
- [],
|
|
|
- []
|
|
|
- ],
|
|
|
- listQuery: {
|
|
|
- page: 1,
|
|
|
- limit: 20
|
|
|
- },
|
|
|
list: [{
|
|
|
- name: '待付款'
|
|
|
+ name: '全部',
|
|
|
+ id: 0
|
|
|
}, {
|
|
|
- name: '待发货'
|
|
|
+ name: '待付款',
|
|
|
+ id: 1
|
|
|
}, {
|
|
|
- name: '待收货'
|
|
|
+ name: '待发货',
|
|
|
+ id: 2
|
|
|
}, {
|
|
|
- name: '待评价'
|
|
|
+ name: '已发货',
|
|
|
+ id: 3
|
|
|
+ }, {
|
|
|
+ name: '已完成',
|
|
|
+ id: 4
|
|
|
}],
|
|
|
- current: 0,
|
|
|
- swiperCurrent: 0,
|
|
|
- tabsHeight: 0,
|
|
|
- dx: 0,
|
|
|
- loadStatus: ['loadmore', 'loadmore', 'loadmore', 'loadmore'],
|
|
|
+ nowCurrent: {
|
|
|
+ name: '全部',
|
|
|
+ id: 0
|
|
|
+ },
|
|
|
+ dataList: []
|
|
|
};
|
|
|
},
|
|
|
- onLoad() {
|
|
|
- //待付款
|
|
|
- this.getOrders(1);
|
|
|
- //待发货
|
|
|
- this.getOrders(2);
|
|
|
- //已发货
|
|
|
- this.getOrders(3);
|
|
|
- //已完成
|
|
|
- this.getOrders(4);
|
|
|
- },
|
|
|
+ onLoad() {},
|
|
|
computed: {
|
|
|
// 价格小数
|
|
|
priceDecimal() {
|
|
@@ -293,35 +122,20 @@
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
|
- reachBottom() {
|
|
|
- const current = this.current
|
|
|
- if (this.loadStatus[current] == 'nomore') {
|
|
|
+ async queryList(index, size) {
|
|
|
+ let filterOption = {
|
|
|
+ page: index,
|
|
|
+ limit: size,
|
|
|
+ status: this.nowCurrent.id
|
|
|
+ };
|
|
|
+ uni.showLoading()
|
|
|
+ let orderData = await getOrders(filterOption);
|
|
|
+ if (orderData.state) {
|
|
|
+ uni.hideLoading();
|
|
|
+ this.$refs.paging.complete(orderData.data.records);
|
|
|
return
|
|
|
}
|
|
|
- this.listQuery.page++
|
|
|
- this.getOrders(current + 1)
|
|
|
- },
|
|
|
- getOrders(status) {
|
|
|
- const page = this.listQuery.page
|
|
|
- const limit = this.listQuery.limit
|
|
|
- this.orders[status - 1] = new Array()
|
|
|
- this.loadStatus.splice(status - 1, 1, "loading")
|
|
|
- getRequest('user/order/getOrders?page=' + page + '&limit=' + limit + '&status=' + status).then(res => {
|
|
|
- if (res.state) {
|
|
|
- let orderList = res.data.records
|
|
|
- for (let index in orderList) {
|
|
|
- let order = orderList[index]
|
|
|
- order.title = '' + order.createTime
|
|
|
- order.descript = '' + order.orderSn
|
|
|
- this.orders[status - 1].push(order)
|
|
|
- }
|
|
|
- if (orderList.length < limit) {
|
|
|
- this.loadStatus.splice(status - 1, 1, "nomore");
|
|
|
- } else {
|
|
|
- this.loadStatus.splice(status - 1, 1, "more");
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
+ this.$refs.paging.complete(false);
|
|
|
},
|
|
|
formatPrice(val) {
|
|
|
return (val / 100).toFixed(2)
|
|
@@ -349,79 +163,47 @@
|
|
|
}
|
|
|
return num;
|
|
|
},
|
|
|
- // tab栏切换
|
|
|
- change(index) {
|
|
|
- this.swiperCurrent = index
|
|
|
- },
|
|
|
- transition({
|
|
|
- detail: {
|
|
|
- dx
|
|
|
- }
|
|
|
- }) {
|
|
|
- this.$refs.tabs.setDx(dx)
|
|
|
- },
|
|
|
- animationfinish({
|
|
|
- detail: {
|
|
|
- current
|
|
|
- }
|
|
|
- }) {
|
|
|
- this.swiperCurrent = current;
|
|
|
- this.current = current;
|
|
|
- },
|
|
|
- toHome() {
|
|
|
- this.$u.route({
|
|
|
- type: 'switchTab',
|
|
|
- url: '/pages/shop/index'
|
|
|
- })
|
|
|
+ changeTab(item) {
|
|
|
+ this.nowCurrent = item;
|
|
|
+ this.$refs.paging.reload();
|
|
|
},
|
|
|
toDetail(orderSn) {
|
|
|
- this.$u.route({
|
|
|
- url: '/pages/order/detail',
|
|
|
- params: {
|
|
|
- orderSn: orderSn
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
- cancel(orderNo) {
|
|
|
- this.showCancel = true
|
|
|
- this.cancelOrderSn = orderNo
|
|
|
+ this.$navigateTo('/subPages/shopPage/orderDetail/orderDetail?orderSn=' + orderSn);
|
|
|
},
|
|
|
- cancelOrder() {
|
|
|
- this.$u.post('user/order/cancel/' + this.cancelOrderSn).then(res => {
|
|
|
- this.getOrders(1)
|
|
|
- })
|
|
|
- },
|
|
|
- expressInfo(orderNo) {
|
|
|
- console.log('查看物流信息', orderNo)
|
|
|
- this.$u.route({
|
|
|
- url: '/pages/order/express',
|
|
|
- params: {
|
|
|
- orderSn: orderNo
|
|
|
+ cancel(orderNo) { //取消订单
|
|
|
+ uni.showModal({
|
|
|
+ title: 'WORKARK提示',
|
|
|
+ content: '是否取消订单',
|
|
|
+ success: res => {
|
|
|
+ if (res.confirm) {
|
|
|
+ cancelOrder(orderNo).then(res => {
|
|
|
+ if (res.state) {
|
|
|
+ this.$toast('取消成功');
|
|
|
+ this.$refs.paging.reload();
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
- })
|
|
|
- },
|
|
|
- confirm(orderNo) {
|
|
|
- console.log('确认收货', orderNo)
|
|
|
- this.$u.post('user/order/confirm/' + orderNo).then(res => {
|
|
|
- this.getOrders(3)
|
|
|
});
|
|
|
},
|
|
|
- notify(orderSn) {
|
|
|
- console.log('提醒发货', orderSn)
|
|
|
- this.$u.toast('敬请期待')
|
|
|
- },
|
|
|
- pay(orderNo, totalPrice) {
|
|
|
- this.$u.route({
|
|
|
- url: '/pages/order/payment/payment',
|
|
|
- params: {
|
|
|
- orderSn: orderNo,
|
|
|
- totalPrice: totalPrice
|
|
|
+ confirm(orderNo) { //确认收获
|
|
|
+ uni.showModal({
|
|
|
+ title: 'WORKARK提示',
|
|
|
+ content: '是否确认收货',
|
|
|
+ success: res => {
|
|
|
+ if (res.confirm) {
|
|
|
+ confirmOrder(orderNo).then(res => {
|
|
|
+ if (res.state) {
|
|
|
+ this.$toast('收货成功');
|
|
|
+ this.$refs.paging.reload();
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
- })
|
|
|
+ });
|
|
|
},
|
|
|
- comment(orderSn) {
|
|
|
- console.log('评论', orderSn)
|
|
|
- this.$u.toast('敬请期待')
|
|
|
+ pay(orderNo, totalPrice) {
|
|
|
+ this.$navigateTo('/subPages/shopPage/payment/payment?orderSn=' + orderNo + '&totalPrice=' + totalPrice);
|
|
|
}
|
|
|
}
|
|
|
};
|
|
@@ -585,19 +367,4 @@
|
|
|
background: linear-gradient(270deg, rgba(249, 116, 90, 1) 0%, rgba(255, 158, 1, 1) 100%);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
- .wrap {
|
|
|
- display: flex;
|
|
|
- flex-direction: column;
|
|
|
- height: calc(100vh - var(--window-top));
|
|
|
- width: 100%;
|
|
|
- }
|
|
|
-
|
|
|
- .swiper-box {
|
|
|
- flex: 1;
|
|
|
- }
|
|
|
-
|
|
|
- .swiper-item {
|
|
|
- height: 100%;
|
|
|
- }
|
|
|
</style>
|