| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572 |
- <template>
- <view class="check">
- <view class="top">
- </view>
- <view class="head">
- <span class="cuIcon-back" @click="back"></span>
- <view class="case">
- 订单详情
- </view>
- </view>
- <view class="content">
- <view class="status">
- <view class="status_title">
- {{product.state}} <span v-if="product.differenceMinutes>0 && product.state == '待支付'">, 剩余</span>
- <u-count-down :timestamp="product.differenceMinutes*60" :show-days="false" font-size="36rpx" @end="getDetail"
- v-if="product.differenceMinutes>0 && product.state == '待支付'"></u-count-down>
- <!-- <span>¥{{product.costPrice}}</span> -->
- </view>
- <view class="span" v-if="product.state == '待支付'">
- 订单已取消
- </view>
- <view class="span" v-if="product.state == '待使用'">
- 等待客户到店核销
- </view>
- <view class="span" v-if="product.state == '已完成'">
- 客户已到店核销
- </view>
- <view class="span" v-if="product.state == '已失效'">
- 该订单已失效
- </view>
- </view>
- <view class="refund" @click="cutPopup" v-if="product.refundType == 1">
- 退款去向详情
- </view>
- <view class="product" v-if="product.categoryId != 1945013773786701826">
- <view class="title">
- 商品信息
- </view>
- <view class="center">
- <view class="img">
- <image :src="product.productImage" mode=""></image>
- </view>
- <view class="name">
- {{product.productName}}
- <view class="price">
- ¥{{product.costPrice}}/份
- <span>实付款:¥ {{product.orderPrice}}</span>
- </view>
- </view>
- </view>
- </view>
- <view class="product" v-if="product.categoryId == 1945013773786701826">
- <view class="title" v-if="product.categoryId != 1945013773786701826">
- 商品信息
- </view>
- <view class="center"
- v-for="(specitem, specIndex) in product.productsLinkCategorySpecItems.slice(0,isShow ? product.productsLinkCategorySpecItems.length : 2)"
- :key="specIndex">
- <view class="img">
- <image :src="product.productImage" mode=""></image>
- </view>
- <view class="spec_item">
- <view class="top">
- {{product.productName}}
- </view>
- <view class="spec_content">
- <view class="left">
- <view class="cventer">
- {{specitem.partName}} {{specitem.positionName}}
- </view>
- <view class="foot">
- {{specitem.craftName}}
- </view>
- </view>
- <view class="right">
- <span style="font-size: 22rpx;color: #FD4912;">¥{{specitem.soldPrice}}</span>
- <span style="text-decoration: line-through;font-size: 18rpx;color: #999999;">¥{{specitem.price}}</span>
- </view>
- </view>
- </view>
- </view>
- <view class="is_show" @click.stop="unfold" v-if="product.productsLinkCategorySpecItems.length > 2">
- {{isShow?'收起查看':'展开查看'}}
- <image src="/static/order/hidden.png" mode="" v-if="isShow"></image>
- <image src="/static/order/show.png" mode="" v-else></image>
- </view>
- <view class="all_price" v-if="product.categoryId == 1945013773786701826">
- <span style="font-size: 22rpx;color: #FD4912;margin-right: 10rpx;">¥已优惠{{product.couponPrice}}</span>
- <span style="font-size: 26rpx;color: #FD4912;"><text
- style="font-size: 22rpx;">¥</text>{{product.orderPrice}}</span>
- </view>
- </view>
- <view class="product" v-if="product.orderType ==4">
- <view class="title">
- 订单信息
- </view>
- <view class="data">
- <span>订单号 :</span>
- {{product.orderId?product.orderId:'--'}}
- </view>
- <view class="data">
- <span>下单时间:</span>
- {{product.buyTime?product.buyTime:'--'}}
- </view>
- <view class="data">
- <span>联系方式:</span>
- {{product.phone?product.phone:'--'}}
- </view>
- <view class="data">
- <span >付款时间:</span>
- {{product.payTime?product.payTime:'--'}}
- </view>
- </view>
- <view class="product" v-else>
- <view class="title negotiate" v-if="product.auditType">
- 协商历史
- <view class="look" @click="goRecord">
- 查看详情
- </view>
- </view>
- <view class="title">
- 订单信息
- </view>
- <view class="data">
- <span>订单号:</span>
- {{product.orderId?product.orderId:'--'}}
- </view>
- <view class="data">
- <span>支付流水号:</span>
- {{product.tradeId?product.tradeId:'--'}}
- </view>
- <view class="data">
- <span>提交人:</span>
- {{product.linkName?product.linkName:'--'}}
- </view>
- <view class="data">
- <span>联系电话:</span>
- {{product.phone?product.phone:'--'}}
- </view>
- <view class="data">
- <span>下单时间:</span>
- {{product.buyTime?product.buyTime:'--'}}
- </view>
- <view class="data">
- <span>付款时间:</span>
- {{product.payTime?product.payTime:'--'}}
- </view>
- <view class="data">
- <span>使用时间:</span>
- {{product.useTime?product.useTime:'--'}}
- </view>
- </view>
- </view>
- <view class="popup" v-if="isDetail" @click.stop="isDetail = false">
- <view class="content">
- <view class="title">
- <span>退款去向详情</span>
- <image src="/static/index/cut.png" alt="" @click="cutPopup" />
- </view>
- <view class="detail">
- <view class="amount">
- 实退金额
- <view class="money">
- <span>¥</span>{{product.refundPrice}}
- </view>
- </view>
- <view class="text">
- 退款已成功到账
- </view>
- <view class="fund">
- 实退金额
- <span>¥{{product.refundPrice}}</span>
- </view>
- <view class="card">
- 原路返回,退款单号:{{product.refundNo}}
- </view>
- <view class="card">
- {{product.refundTime}}
- </view>
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- orderId: '',
- product: {},
- isDetail: false,
- timestamp: 10000,
- isShow: false
- }
- },
- methods: {
- //返回
- back() {
- uni.navigateBack({
- delta: 1
- });
- },
- getDetail() {
- this.$http.get("/app/order/locaOrder/queryById?orderId=" + this.orderId, ).then(res => {
- if (res.data.code == 200) {
- console.log(res)
- this.product = res.data.result
- }
- })
- },
- //展开/收起查看钣金喷漆子选项
- unfold(index) {
- this.isShow = !this.isShow
- this.$forceUpdate();
- },
- goRecord() {
- uni.navigateTo({
- url: '/pages/order/record?orderId=' + this.product.orderId
- })
- },
- cutPopup() {
- this.isDetail = !this.isDetail
- },
- refundDetail() {
- this.isDetail = true
- },
- //获取退款去向
- getRefund() {
- this.$http.get("/app/order/locaOrder/refundDestination?reOrderId=" + this.orderNo).then(res => {
- if (res.data.code == 200) {
- console.log(res)
- // this.list = res.data.result
- }
- })
- }
- },
- onLoad(option) {
- this.orderId = option.orderId
- },
- mounted() {
- this.getDetail()
- }
- }
- </script>
- <style lang="scss" scoped>
- .check {
- width: 100vw;
- height: 100vh;
- background: #F7F8FC;
- display: flex;
- flex-direction: column;
- overflow: hidden;
- /*#ifdef APP-PLUS*/
- .top {
- width: 100%;
- height: var(--status-bar-height);
- background: linear-gradient(87deg, #E2F4F8 0%, #A3CDFF 100%), linear-gradient(360deg, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%);
- }
- /*#endif*/
- .head {
- width: 100%;
- height: 112rpx;
- padding: 20rpx;
- display: flex;
- align-items: center;
- background: linear-gradient(87deg, #E2F4F8 0%, #A3CDFF 100%), linear-gradient(360deg, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%);
- position: relative;
- .cuIcon-back {
- font-size: 40rpx;
- margin-right: 40rpx;
- }
- .case {
- position: absolute;
- left: 50%;
- transform: translateX(-50%);
- font-size: 36rpx;
- font-weight: 600;
- }
- }
- .content {
- padding: 24rpx;
- flex: 1;
- overflow-y: auto;
- .status {
- font-size: 44rpx;
- padding: 0px 20rpx;
- color: #333333;
- .status_title {
- display: flex;
- align-items: end;
- // justify-content: space-between;
- margin-bottom: 15rpx;
- font-size: 36rpx;
- font-weight: 600;
- }
- .span {
- font-size: 28rpx;
- color: #999999;
- line-height: 33rpx;
- font-size: 24rpx;
- color: #333333;
- font-weight: 500;
- }
- }
- .refund {
- width: 632rpx;
- height: 76rpx;
- border-radius: 12rpx;
- border: 1px solid #000000;
- display: flex;
- align-items: center;
- justify-content: center;
- margin: 24rpx auto;
- }
- .product {
- width: 100%;
- margin-top: 24rpx;
- background: #FFFFFF;
- box-shadow: 0px 2px 8px 0px rgba(214, 225, 237, 0.1);
- border-radius: 16px;
- padding: 20rpx;
- .title {
- font-size: 32rpx;
- color: #333333;
- }
- .negotiate {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 24rpx;
- .look {
- width: 152rpx;
- height: 50rpx;
- background: rgba(68, 154, 255, 0.05);
- border-radius: 8rpx;
- border: 1px solid #449AFF;
- display: flex;
- justify-content: center;
- align-items: center;
- font-size: 26rpx;
- color: #449AFF;
- }
- }
- .center {
- width: 100%;
- display: flex;
- border-radius: 16rpx;
- margin-bottom: 20rpx;
- .img {
- width: 132rpx;
- height: 132rpx;
- border-radius: 12rpx;
- overflow: hidden;
- margin-right: 16rpx;
- image {
- width: 132rpx;
- height: 132rpx;
- }
- }
- .name {
- flex: 1;
- display: flex;
- flex-direction: column;
- justify-content: space-between;
- font-size: 30rpx;
- color: #000000;
- line-height: 35rpx;
- font-weight: 600;
- .price {
- font-size: 24rpx;
- display: flex;
- align-items: center;
- justify-content: space-between;
- color: #FF6A42;
- span {
- color: #666666;
- }
- }
- }
- .spec_item {
- flex: 1;
- margin-left: 20rpx;
- display: flex;
- flex-direction: column;
- justify-content: space-between;
- .top {
- font-size: 26rpx;
- height: 38rpx;
- color: #000000;
- margin-bottom: 6rpx;
- }
- }
- .spec_content {
- width: 100%;
- flex: 1;
- display: flex;
- justify-content: space-between;
- padding-top: 15rpx;
- .left {
- display: flex;
- flex-direction: column;
- justify-content: space-between;
- font-size: 22rpx;
- color: #333333;
- }
- .right {
- text-align: right;
- display: flex;
- flex-direction: column;
- justify-content: space-between;
- }
- }
- }
- .data {
- width: 100%;
- height: 38rpx;
- display: flex;
- align-items: center;
- // justify-content: space-between;
- margin-top: 20rpx;
- margin-bottom: 12rpx;
- font-size: 26rpx;
- color: #333333;
- span {
- display: block;
- width: 156rpx;
- height: 38rpx;
- font-size: 26rpx;
- color: #666666;
- margin-right: 16rpx;
- }
- }
- }
- }
- .is_show {
- display: flex;
- align-items: center;
- justify-content: center;
- font-size: 24rpx;
- color: #2D88F4;
- image {
- width: 20rpx;
- height: 20rpx;
- margin-left: 10rpx;
- }
- }
- .all_price {
- display: flex;
- align-items: center;
- justify-content: end;
- padding-top: 20rpx;
- border-top: 1px solid #EEEEEE;
- margin-top: 20rpx;
- }
- .popup {
- width: 100vw;
- height: 100vh;
- position: fixed;
- top: 0;
- left: 0;
- background: rgba(0, 0, 0, 0.4);
- .content {
- width: 100%;
- background: #FFFFFF;
- border-radius: 20rpx 20rpx 0rpx 0px;
- padding: 20rpx 24rpx;
- padding-bottom: 16rpx;
- position: absolute;
- bottom: 0;
- left: 0;
- .title {
- display: flex;
- align-items: center;
- justify-content: center;
- position: relative;
- border-bottom: 1px solid #EEEEEE;
- padding-bottom: 20rpx;
- font-weight: 600;
- image {
- width: 37rpx;
- height: 37rpx;
- position: absolute;
- right: 0;
- }
- }
- .detail {
- padding: 20rpx;
- border-radius: 12rpx;
- background-color: #F7F8FC;
- margin-top: 24rpx;
- .amount {
- display: flex;
- align-items: center;
- justify-content: space-between;
- font-weight: 600;
- .money {
- font-size: 28rpx;
- color: #FD4912;
- span {
- font-size: 16rpx
- }
- }
- }
- .text {
- font-size: 26rpx;
- color: #666666;
- margin-top: 12rpx;
- border-bottom: 1px solid #EEEEEE;
- padding-bottom: 16rpx;
- }
- .fund {
- font-size: 28rpx;
- color: #333333;
- display: flex;
- align-items: center;
- justify-content: space-between;
- margin-top: 16rpx;
- }
- .card {
- font-size: 26rpx;
- color: #666666;
- margin-top: 12rpx;
- }
- }
- }
- }
- }
- </style>
|