|
|
@@ -0,0 +1,554 @@
|
|
|
+<template>
|
|
|
+ <view>
|
|
|
+ <scroll-view :scroll-y="true" @scroll="handleContentScroll">
|
|
|
+ <u-navbar :placeholder="true" autoBack @click="autoBackFun">
|
|
|
+ <view slot="center">
|
|
|
+ <view class="centerTitle" style="background-color: #fff;">{{ title }}</view>
|
|
|
+ </view>
|
|
|
+ </u-navbar>
|
|
|
+
|
|
|
+ <view class="contentBox">
|
|
|
+ <view class="remainingTime">
|
|
|
+ {{ orderStatus }}
|
|
|
+ </view>
|
|
|
+ <view class="content">
|
|
|
+ <view class="addressBox">
|
|
|
+ <image style="width: 45rpx;height: 40rpx;" @click="addressSelectFun"
|
|
|
+ src="@/static/points/addressIcon.png" mode=""></image>
|
|
|
+ <view style="margin-left: 16rpx;">
|
|
|
+ <view class="name">
|
|
|
+ 张三 <text>
|
|
|
+ 15032624563</text>
|
|
|
+ </view>
|
|
|
+ <view class="address">
|
|
|
+ 山西省太原市小店区营盘街道某某小区1号楼1单元101
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <image style="width: 35rpx;height: 35rpx;position: absolute;right: 40rpx;top:40rpx"
|
|
|
+ @click="closeSelectProduct" src="@/static/points/closeIcon.png" mode=""></image>
|
|
|
+
|
|
|
+ <view class="productPrice">
|
|
|
+ <view style="display:flex;">
|
|
|
+ <view>
|
|
|
+ <image style="width: 120rpx;height: 120rpx;" src="@/static/points/closeIcon.png"
|
|
|
+ mode="">
|
|
|
+ </image>
|
|
|
+ </view>
|
|
|
+ <view
|
|
|
+ style="margin-left: 24rpx;display: flex;flex-direction: column;justify-content: space-between;">
|
|
|
+ <view class="productName">广誉源会员定制玻璃杯 </view>
|
|
|
+ <view class="spec">已选:大号,白色 </view>
|
|
|
+ <view class="price">实付价 ¥10元+1000积分 </view>
|
|
|
+
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="productPrice1">
|
|
|
+ <view class="text">商品金额</view>
|
|
|
+ <view class="price">¥10 +1000积分</view>
|
|
|
+ </view>
|
|
|
+ <view class="shippingFee">
|
|
|
+ <view class="text">运费</view>
|
|
|
+ <view class="text">¥0</view>
|
|
|
+ </view>
|
|
|
+ <view style="height: 2rpx;background-color: #f0f0f0;margin-top: 20rpx;"> </view>
|
|
|
+ <view class="total">
|
|
|
+ <text class="text">合计:</text>
|
|
|
+ <text class="price">¥ 10</text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="weiChect">
|
|
|
+ <view class="text">微信支付</view>
|
|
|
+ <view class="text">微信支付</view>
|
|
|
+ </view>
|
|
|
+ <view class="orderInfo">
|
|
|
+ <view class="item">
|
|
|
+ <view class="text">订单编号</view>
|
|
|
+ <view class="text1">246453782748937746</view>
|
|
|
+ </view>
|
|
|
+ <view class="item">
|
|
|
+ <view class="text">下单时间</view>
|
|
|
+ <view class="text1">2025-09-14 17:21:55</view>
|
|
|
+ </view>
|
|
|
+ <view class="item">
|
|
|
+ <view class="text">支付方式</view>
|
|
|
+ <view class="text1">现金</view>
|
|
|
+ </view>
|
|
|
+ <view class="item">
|
|
|
+ <view class="text">订单备注</view>
|
|
|
+ <view class="text1">无</view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ </view>
|
|
|
+
|
|
|
+
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="buttonClass">
|
|
|
+ <u-button v-if="title=='待支付'" :customStyle="{
|
|
|
+ color: '#999',
|
|
|
+ background: ''
|
|
|
+ }" @click="cancelOrderFun">取消支付</u-button>
|
|
|
+
|
|
|
+ <u-button v-if="title=='待支付'" :customStyle="{
|
|
|
+ color: '#fff ',
|
|
|
+ background: '#03C1B8'
|
|
|
+ }" @click="checkOrder">去付款</u-button>
|
|
|
+
|
|
|
+ <u-button v-if="title=='订单取消'" :customStyle="{
|
|
|
+ color: '#fff ',
|
|
|
+ background: '#03C1B8'
|
|
|
+ }" @click="checkOrder">再次购买</u-button>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ </scroll-view>
|
|
|
+
|
|
|
+
|
|
|
+ <!-- 取消订单 <u-line></u-line>-->
|
|
|
+ <u-popup :show="cancelOrderShowPopup" mode="bottom" round="10">
|
|
|
+ <view class="content">
|
|
|
+
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view class="popup-con">
|
|
|
+ <!-- 标题 -->
|
|
|
+ <view class="popup-text">
|
|
|
+ <text>取消订单</text>
|
|
|
+ <text @click="cancelOrderShowPopup = false">取消</text>
|
|
|
+ </view>
|
|
|
+ <!-- 项目列表 -->
|
|
|
+ <view class="refund-items">
|
|
|
+ <view class="reason">请选择退款原因</view>
|
|
|
+ <u-radio-group v-model="pay" @change="groupChange">
|
|
|
+
|
|
|
+ <view style="padding: 0 20rpx 24rpx 20rpx;">
|
|
|
+ <view class="radioBox">
|
|
|
+ <u-radio activeColor="#03C1B8 " name='1'></u-radio>买错了/不想要
|
|
|
+ </view>
|
|
|
+ <view class="radioBox">
|
|
|
+ <u-radio activeColor="#03C1B8 " name='2'></u-radio> 商品无货
|
|
|
+ </view>
|
|
|
+ <view class="radioBox">
|
|
|
+ <u-radio activeColor="#03C1B8 " name='3'></u-radio> 商品信息填写错误
|
|
|
+ </view>
|
|
|
+ <view class="radioBox">
|
|
|
+ <u-radio activeColor="#03C1B8 " name='4'></u-radio> 地址信息填写错误
|
|
|
+ </view>
|
|
|
+ <view class="radioBox">
|
|
|
+ <u-radio activeColor="#03C1B8 " name='5'></u-radio> 其他原因
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </u-radio-group>
|
|
|
+
|
|
|
+ </view>
|
|
|
+ <view class="popupButtonClass">
|
|
|
+ <u-button :customStyle="{
|
|
|
+ color: '#999',
|
|
|
+ background: '#eee'
|
|
|
+ }" @click="cancelOrderSubmit">提交</u-button>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ </u-popup>
|
|
|
+
|
|
|
+ </view>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+
|
|
|
+export default {
|
|
|
+ components: {},
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ title: '待支付',
|
|
|
+ cancelOrderShowPopup: false,
|
|
|
+ orderStatus: '剩余时间 14:59', //超时未支付
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
+ },
|
|
|
+ onLoad(data) {
|
|
|
+
|
|
|
+ },
|
|
|
+ onShow() {
|
|
|
+
|
|
|
+ },
|
|
|
+ onPageScroll() {
|
|
|
+ },
|
|
|
+
|
|
|
+ methods: {
|
|
|
+ //取消订单提交按钮
|
|
|
+ cancelOrderSubmit() {
|
|
|
+ this.cancelOrderShowPopup = false
|
|
|
+ this.title='订单取消'
|
|
|
+ this.orderStatus='您已取消支付'
|
|
|
+ },
|
|
|
+ //关闭取消订单选择页
|
|
|
+ closeCancelOrderFun() {
|
|
|
+ this.cancelOrderShowPopup = false
|
|
|
+ },
|
|
|
+ //取消订单
|
|
|
+ cancelOrderFun() {
|
|
|
+ this.cancelOrderShowPopup = true
|
|
|
+ },
|
|
|
+ //去我的地址页面
|
|
|
+ addressSelectFun() {
|
|
|
+ uni.redirectTo({
|
|
|
+ url: '/points/productDetails/addressManagement'
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+}
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="scss" scoped>
|
|
|
+.centerTitle {
|
|
|
+ font-family: PingFang SC, PingFang SC;
|
|
|
+ font-weight: 500;
|
|
|
+ font-size: 34rpx;
|
|
|
+ color: #060606;
|
|
|
+ text-align: center;
|
|
|
+ font-style: normal;
|
|
|
+ text-transform: none;
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+.buttonClass {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: flex-end;
|
|
|
+ font-family: PingFang SC, PingFang SC;
|
|
|
+
|
|
|
+ button {
|
|
|
+ width: 168rpx;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ height: 56rpx;
|
|
|
+ line-height: 40rpx;
|
|
|
+ border-radius: 98rpx 98rpx 98rpx 98rpx;
|
|
|
+ border: 2rpx solid #03C1B8;
|
|
|
+ font-size: 26rpx;
|
|
|
+ padding: 0 0 10rpx 0;
|
|
|
+ margin: 0 32rpx 0 0;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+.contentBox {
|
|
|
+ background-image: url("@/static/points/orderBg.png");
|
|
|
+ background-size: 100%;
|
|
|
+ background-repeat: no-repeat;
|
|
|
+ background-color: #F5F8F8;
|
|
|
+ padding-top: 54rpx;
|
|
|
+
|
|
|
+ .remainingTime {
|
|
|
+ font-weight: 500;
|
|
|
+ font-size: 32rpx;
|
|
|
+ color: #FFFFFF;
|
|
|
+ line-height: 40rpx;
|
|
|
+ text-align: left;
|
|
|
+ font-style: normal;
|
|
|
+ text-transform: none;
|
|
|
+ text-align: center;
|
|
|
+ }
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
+.content {
|
|
|
+ padding: 24rpx 32rpx 0 32rpx;
|
|
|
+ font-family: PingFang SC, PingFang SC;
|
|
|
+ border-radius: 20rpx 20rpx 0 0;
|
|
|
+
|
|
|
+ .addressBox {
|
|
|
+ margin-top: 30rpx;
|
|
|
+ padding: 24rpx 32rpx;
|
|
|
+ display: flex;
|
|
|
+ align-items: flex-start;
|
|
|
+ height: 176rpx;
|
|
|
+ background: #FFFFFF;
|
|
|
+ border-radius: 20rpx 20rpx 20rpx 20rpx;
|
|
|
+
|
|
|
+ .name {
|
|
|
+ font-weight: 500;
|
|
|
+ font-size: 32rpx;
|
|
|
+ color: #333333;
|
|
|
+ line-height: 40rpx;
|
|
|
+ text-align: left;
|
|
|
+ font-style: normal;
|
|
|
+ text-transform: none;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ .address {
|
|
|
+ margin-top: 8rpx;
|
|
|
+ font-weight: 500;
|
|
|
+ font-size: 28rpx;
|
|
|
+ color: #666666;
|
|
|
+ line-height: 40rpx;
|
|
|
+ text-align: left;
|
|
|
+ font-style: normal;
|
|
|
+ text-transform: none;
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ .productPrice {
|
|
|
+ background-color: #fff;
|
|
|
+ margin-top: 24rpx;
|
|
|
+ padding: 24rpx;
|
|
|
+ border-radius: 20rpx 20rpx 20rpx 20rpx;
|
|
|
+
|
|
|
+ .productName {
|
|
|
+ font-weight: bold;
|
|
|
+ font-size: 28rpx;
|
|
|
+ color: #333333;
|
|
|
+ text-align: left;
|
|
|
+ font-style: normal;
|
|
|
+ text-transform: none;
|
|
|
+ }
|
|
|
+
|
|
|
+ .price {
|
|
|
+ font-weight: bold;
|
|
|
+ font-size: 26rpx;
|
|
|
+ color: #333333;
|
|
|
+ text-align: left;
|
|
|
+ font-style: normal;
|
|
|
+ text-transform: none;
|
|
|
+ }
|
|
|
+
|
|
|
+ .spec {
|
|
|
+ font-weight: 500;
|
|
|
+ font-size: 26rpx;
|
|
|
+ color: #999999;
|
|
|
+ text-align: left;
|
|
|
+ font-style: normal;
|
|
|
+ text-transform: none;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ .shippingFee {
|
|
|
+ margin-top: 22rpx;
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+
|
|
|
+ .text {
|
|
|
+ font-weight: 500;
|
|
|
+ font-size: 26rpx;
|
|
|
+ color: #666666;
|
|
|
+ text-align: left;
|
|
|
+ font-style: normal;
|
|
|
+ text-transform: none;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ .price {
|
|
|
+ font-weight: 500;
|
|
|
+ font-size: 28rpx;
|
|
|
+ color: #03C1B8;
|
|
|
+ text-align: left;
|
|
|
+ font-style: normal;
|
|
|
+ text-transform: none;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .productPrice1 {
|
|
|
+ margin-top: 16rpx;
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+
|
|
|
+ .text {
|
|
|
+ font-weight: 500;
|
|
|
+ font-size: 26rpx;
|
|
|
+ color: #666666;
|
|
|
+ text-align: left;
|
|
|
+ font-style: normal;
|
|
|
+ text-transform: none;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ .price {
|
|
|
+ font-weight: 500;
|
|
|
+ font-size: 28rpx;
|
|
|
+ color: #333333;
|
|
|
+ text-align: left;
|
|
|
+ font-style: normal;
|
|
|
+ text-transform: none;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .total {
|
|
|
+ text-align: right;
|
|
|
+
|
|
|
+ .text {
|
|
|
+ font-weight: 400;
|
|
|
+ font-size: 28rpx;
|
|
|
+ color: #2F3437;
|
|
|
+ text-align: left;
|
|
|
+ font-style: normal;
|
|
|
+ text-transform: none;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ .price {
|
|
|
+ font-weight: 800;
|
|
|
+ font-size: 28rpx;
|
|
|
+ color: #03C1B8;
|
|
|
+ text-align: left;
|
|
|
+ font-style: normal;
|
|
|
+ text-transform: none;
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .weiChect {
|
|
|
+ height: 94rpx;
|
|
|
+ background: #FFFFFF;
|
|
|
+ border-radius: 20rpx 20rpx 20rpx 20rpx;
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ align-items: center;
|
|
|
+ font-weight: 500;
|
|
|
+ font-size: 28rpx;
|
|
|
+ color: #333333;
|
|
|
+ line-height: 40rpx;
|
|
|
+ text-align: left;
|
|
|
+ font-style: normal;
|
|
|
+ text-transform: none;
|
|
|
+ margin: 24rpx 0;
|
|
|
+ padding: 0 24rpx;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ .orderInfo {
|
|
|
+ height: 268rpx;
|
|
|
+ background: #FFFFFF;
|
|
|
+ border-radius: 16rpx 16rpx 16rpx 16rpx;
|
|
|
+ padding: 26rpx 24rpx 2rpx 24rpx;
|
|
|
+ margin-bottom: 30rpx;
|
|
|
+
|
|
|
+ .item {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ margin-bottom: 24rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ .text {
|
|
|
+ font-weight: 400;
|
|
|
+ font-size: 26rpx;
|
|
|
+ color: #666666;
|
|
|
+ text-align: left;
|
|
|
+ font-style: normal;
|
|
|
+ text-transform: none;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ .text1 {
|
|
|
+ font-weight: 500;
|
|
|
+ font-size: 28rpx;
|
|
|
+ color: #2F3437;
|
|
|
+ text-align: left;
|
|
|
+ font-style: normal;
|
|
|
+ text-transform: none;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
+.popup-con {
|
|
|
+ font-size: 27rpx;
|
|
|
+ color: #666666;
|
|
|
+ background: #F5F8F8;
|
|
|
+ padding: 15rpx 40rpx 40rpx 40rpx;
|
|
|
+
|
|
|
+ .popup-text {
|
|
|
+ font-weight: bold;
|
|
|
+ font-size: 40rpx;
|
|
|
+ color: #333333;
|
|
|
+ text-align: center;
|
|
|
+ font-style: normal;
|
|
|
+ text-transform: none;
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ position: relative;
|
|
|
+
|
|
|
+ text:last-of-type {
|
|
|
+ font-weight: 400;
|
|
|
+ font-size: 28rpx;
|
|
|
+ color: #999999;
|
|
|
+ text-align: center;
|
|
|
+ font-style: normal;
|
|
|
+ text-transform: none;
|
|
|
+ // width: 38rpx;
|
|
|
+ // height: 38rpx;
|
|
|
+ // text-align: center;
|
|
|
+ // line-height: 38rpx;
|
|
|
+ // color: #6D728B;
|
|
|
+ // background: #DEDEDE;
|
|
|
+ // border-radius: 50%;
|
|
|
+ // position: absolute;
|
|
|
+ // right: 24rpx;
|
|
|
+ // font-size: 28rpx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .refund-items {
|
|
|
+ margin-top: 32rpx;
|
|
|
+ font-size: 26rpx;
|
|
|
+ color: #333333;
|
|
|
+ padding-bottom: 70rpx;
|
|
|
+ background: #FFFFFF;
|
|
|
+ border-radius: 20rpx 20rpx 20rpx 20rpx;
|
|
|
+
|
|
|
+ height: 400rpx;
|
|
|
+ background: #FFFFFF;
|
|
|
+ border-radius: 20rpx 20rpx 20rpx 20rpx;
|
|
|
+
|
|
|
+ .reason {
|
|
|
+ background: #E8FFFD;
|
|
|
+ border-radius: 20rpx 20rpx 0rpx 0rpx;
|
|
|
+ font-weight: bold;
|
|
|
+ font-size: 28rpx;
|
|
|
+ color: #333333;
|
|
|
+ text-align: left;
|
|
|
+ font-style: normal;
|
|
|
+ text-transform: none;
|
|
|
+ padding: 16rpx 20rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ .radioBox {
|
|
|
+ display: flex;
|
|
|
+ width: 100%;
|
|
|
+ margin-top: 24rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ .popupButtonClass {
|
|
|
+ margin-top: 32rpx;
|
|
|
+ height: 84rpx;
|
|
|
+ border-radius: 98rpx 98rpx 98rpx 98rpx;
|
|
|
+
|
|
|
+ button {
|
|
|
+ align-items: center;
|
|
|
+ border-radius: 98rpx 98rpx 98rpx 98rpx;
|
|
|
+ font-size: 26rpx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|