123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371 |
- <template>
- <view class="orderDetail">
- <!-- 标题栏 -->
- <view class="nav">
- <text class="orderStatus">待收货</text>
- </view>
- <view class="midBox">
- <!-- 物流信息 -->
- <view class="logistics" v-if="true">
- <view class="logisticsTitle">物流信息</view>
- <view class="logisticsMsg"><text>快递公司</text><text style="margin-left: 26rpx;">京东快递</text></view>
- <view class="logisticsMsg"><text>快递单号</text><text style="margin-left: 26rpx;">JD39084237234</text>
- </view>
- <view class="copy" @click="copyOrder">复制</view>
- </view>
- <!-- 配送信息 -->
- <view class="delivery">
- <view class="deliveryTitle">
- <text>配送信息</text>
- </view>
- <view class="deliveryMsg" >
- <image class="bgimg" src="http://t9.9026.com/imgs/ordermap.png"></image>
- <!-- 联系信息 -->
- <view class="deliveryicon">
- <image src="/static/icon/phone.png"></image>
- <text>联系信息</text>
- </view>
- <view class="deliverytext">
- <text>刘奕伶</text>
- <text style="margin-left: 24rpx;">400-123-4567</text>
- </view>
- <!-- 发货方式 -->
- <view class="deliveryicon">
- <image src="/static/icon/delivery.png"></image>
- <text>发货方式</text>
- </view>
- <view class="deliverytext">
- <text>快递发货</text>
- </view>
- <!-- 收货地址 -->
- <view class="deliveryicon" v-if="true">
- <image src="/static/icon/position.png"></image>
- <text>收货地址</text>
- </view>
- <view class="deliverytext" v-if="true">
- <text>四川省 成都市 高新区 XXX小区 XXX号</text>
- </view>
- <!-- 门店地址 -->
- <view class="deliveryicon" v-if="false">
- <image src="/static/icon/position.png"></image>
- <text>门店地址</text>
- </view>
- <view class="deliverytext" v-if="false" style="position:relative;">
- <text>四川省 成都市 高新区 XXX小区 XXX号</text>
- <image src="/static/icon/navigation.png"
- style="width: 50rpx;height: 48rpx; position: absolute; top: 0rpx;right: 30rpx;"></image>
- </view>
- <!-- 门店联系方式 -->
- <view class="deliveryicon" v-if="false">
- <image src="/static/icon/phone.png"></image>
- <text>门店联系方式</text>
- </view>
- <view class="deliverytext" v-if="false">
- <text>400-123-4567</text>
- </view>
- </view>
- </view>
- <!-- 订单信息 -->
- <view class="myorder">
- <view class="orderTitle">订单信息</view>
- <view class="orderMsg"><text>订单编号</text><text style="margin-left: 26rpx;">62aae0eb9c6fd622</text></view>
- <view class="orderMsg"><text>下单时间</text><text style="margin-left: 26rpx;">2022-08-20 12:32:12</text>
- </view>
- <view class="copyorder" @click="copyOrder">复制</view>
- </view>
- </view>
- <!-- 产品信息 -->
- <view class="shopMsg">
- <view class="title">
- <text>产品信息</text>
- </view>
- <view class="shopCard">
- <image src="/static/icon/Kudosbg.png"></image>
- <view style="margin-left: 24rpx;">
- <text class="name">端午佳节五香肉粽子,仅限前</text>
- <text class="tag">礼盒装 2000积分</text>
- </view>
- </view>
- <view class="shopNumber">
- <text>件数</text>
- <text>1件</text>
- </view>
- <view class="shopNumber">
- <text>积分</text>
- <text>2000积分</text>
- </view>
- <view style="width: 694rpx;height: 4rpx;border: 2rpx solid #F2F2F2;margin-top: 38rpx;"></view>
- <view class="shopNumber">
- <text>合计</text>
- <text>2000积分</text>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- }
- },
-
- methods: {
- // 复制订单号
- copyOrder(){
- uni.setClipboardData({
- data: 'hello',
- success: function () {
- uni.showToast({
- title:'复制成功!'
- })
- }
- });
- }
- },
- computed: {
-
- }
- }
- </script>
- <style lang="scss" scoped>
- $pageColor:#F9F9F9;
- $bgColor:#FFFFFF;
- // flex布局居中对齐
- @mixin flexlayout {
- display: flex;
- align-items: center;
- justify-content: center;
- }
- .orderDetail {
- height: 100%;
- background: $pageColor;
- }
- .nav {
- width: 750rpx;
- height: 108rpx;
- background: $bgColor;
- border-radius: 0px 0px 16rpx 16rpx;
- padding: 32rpx 0 0 28rpx;
- box-sizing: border-box;
- .orderStatus {
- font-size: 40rpx;
- font-family: PingFang-SC-Bold, PingFang-SC;
- font-weight: bold;
- color: #FF6200;
- }
- }
- .midBox {
- margin-top: 24rpx;
- width: 750rpx;
- background: $bgColor;
- border-radius: 16rpx;
- position: relative;
- padding: 40rpx 28rpx;
- box-sizing: border-box;
- .logistics {
- position: relative;
- .logisticsTitle {
- margin-bottom: 25rpx;
- font-size: 30rpx;
- font-family: PingFang-SC-Bold, PingFang-SC;
- font-weight: bold;
- color: #080F18;
- }
- .logisticsMsg {
- margin-bottom: 25rpx;
- text {
- font-size: 28rpx;
- font-family: PingFang-SC-Medium, PingFang-SC;
- font-weight: 500;
- color: #666666;
- }
- }
- .copy {
- position: absolute;
- right: 30rpx;
- top: 68rpx;
- font-size: 28rpx;
- font-family: PingFang-SC-Medium, PingFang-SC;
- font-weight: 500;
- color: #FF6200;
- }
- }
- .myorder {
- position: relative;
- .orderTitle {
- margin-bottom: 25rpx;
- font-size: 30rpx;
- font-family: PingFang-SC-Bold, PingFang-SC;
- font-weight: bold;
- color: #080F18;
- }
- .orderMsg {
- margin-bottom: 25rpx;
- text {
- font-size: 28rpx;
- font-family: PingFang-SC-Medium, PingFang-SC;
- font-weight: 500;
- color: #666666;
- }
- }
- .copyorder {
- position: absolute;
- right: 30rpx;
- bottom: 72rpx;
- font-size: 28rpx;
- font-family: PingFang-SC-Medium, PingFang-SC;
- font-weight: 500;
- color: #FF6200;
- }
- }
- .delivery {
- margin-bottom: 20rpx;
- .deliveryTitle {
- margin-bottom: 24rpx;
- text {
- font-size: 32rpx;
- font-family: PingFang-SC-Bold, PingFang-SC;
- font-weight: bold;
- color: #080F18;
- }
- }
- .deliveryMsg {
- width: 694rpx;
- display: flex;
- flex-direction: column;
- justify-content: center;
- padding-top: 24rpx;
- position: relative;
- .bgimg{
- width: 100%;
- height: 100%;
- position: absolute;
- top:0rpx;
- }
- .deliveryicon {
- margin-bottom: 15rpx;
- display: flex;
- align-items: center;
- z-index: 999;
- image {
- width: 26rpx;
- height: 26rpx;
- margin-right: 5rpx;
- }
- text {
- font-size: 28rpx;
- font-family: PingFang-SC-Medium, PingFang-SC;
- font-weight: 500;
- color: #333333;
- }
- }
- .deliverytext {
- margin-bottom: 20rpx;
- z-index: 999;
- text {
- font-size: 28rpx;
- font-family: PingFangSC-Medium, PingFang SC;
- font-weight: 500;
- color: #080F18;
- }
- }
- }
- }
- }
- .shopMsg {
- margin-top: 24rpx;
- width: 750rpx;
- height: 534rpx;
- background: $bgColor;
- border-radius: 12rpx 12rpx 0px 0px;
- padding: 32rpx 30rpx;
- box-sizing: border-box;
- .title {
- margin-bottom: 24rpx;
- text {
- font-size: 32rpx;
- font-family: PingFang-SC-Bold, PingFang-SC;
- font-weight: bold;
- color: #080F18;
- }
- }
- .shopCard {
- margin-top: 28rpx;
- width: 694rpx;
- height: 164rpx;
- background: #F4F5F6;
- border-radius: 10rpx;
- display: flex;
- align-items: center;
- image {
- width: 132rpx;
- height: 132rpx;
- margin-left: 16rpx;
- display: inline-block;
- border-radius: 10rpx;
- }
- .name {
- font-size: 28rpx;
- font-family: PingFangSC-Medium, PingFang SC;
- font-weight: 500;
- color: #080F18;
- display: block;
- }
- .tag {
- font-size: 24rpx;
- font-family: PingFang-SC-Medium, PingFang-SC;
- font-weight: 500;
- color: #666666;
- }
- }
- .shopNumber {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-top: 25rpx;
- text {
- font-size: 26rpx;
- font-family: PingFang-SC-Medium, PingFang-SC;
- font-weight: 500;
- color: #000000;
- }
- }
- }
- </style>
|