|
|
@@ -0,0 +1,395 @@
|
|
|
+<config>
|
|
|
+{
|
|
|
+ "backgroundTextStyle":"light",
|
|
|
+ "navigationStyle": "custom",
|
|
|
+}
|
|
|
+</config>
|
|
|
+<template>
|
|
|
+ <div class="container">
|
|
|
+ <div class="top">
|
|
|
+ <img class="mytest" src="../native/imgs/img_home_top@4x.png" alt="" />
|
|
|
+ <div class="text1">待支付</div>
|
|
|
+ <div class="text2">请尽快支付,04分56秒 后未支付将自动取消订单</div>
|
|
|
+ </div>
|
|
|
+ <div class="store">
|
|
|
+ <div class="title">
|
|
|
+ <img src="../native/tabbar/info_icon_dizhi@3x.png" alt="" />
|
|
|
+ <div class="tit">益禾堂(一食堂)</div>
|
|
|
+ </div>
|
|
|
+ <div class="store1">联系卖家</div>
|
|
|
+ </div>
|
|
|
+ <div class="border"></div>
|
|
|
+ <div v-for="(item, index) in takeout" :key="index">
|
|
|
+ <div class="content">
|
|
|
+ <div class="ImgBox">
|
|
|
+ <img :src="item.imges" alt="" />
|
|
|
+ <div>
|
|
|
+ <div class="name">{{ item.name }}</div>
|
|
|
+ <div class="name1">共{{ item.num }}件</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="money">¥{{ item.price }}</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="order">
|
|
|
+ <div class="text1">打包费</div>
|
|
|
+ <div class="text1">¥{{ list.packPrice }}</div>
|
|
|
+ </div>
|
|
|
+ <div class="order order2">
|
|
|
+ <div class="text1">配送费</div>
|
|
|
+ <div class="text1">¥{{ list.distributionPrice }}</div>
|
|
|
+ </div>
|
|
|
+ <div class="add">
|
|
|
+ <div class="text">合计:¥{{ list.total }}</div>
|
|
|
+ </div>
|
|
|
+ <div class="border2"></div>
|
|
|
+ <div class="address">
|
|
|
+ <div class="name">配送地址</div>
|
|
|
+ <div>
|
|
|
+ <div class="text1">南京**江宁校区-4号宿舍楼</div>
|
|
|
+ <div class="text1">奶盖 18789898888</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="address">
|
|
|
+ <div class="name">期望时间</div>
|
|
|
+ <div>
|
|
|
+ <div class="text1">立即配送</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="remark">
|
|
|
+ <div class="name">备注</div>
|
|
|
+ <div>
|
|
|
+ <div class="text1">{{ list.remark }}</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="border2"></div>
|
|
|
+ <div class="box">
|
|
|
+ <div class="box-con">
|
|
|
+ <p>订单编号</p>
|
|
|
+ <div class="texe1">
|
|
|
+ <span @click="orderCopy">复制</span>
|
|
|
+ <div class="text2">{{ list.transactionId }}</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="box">
|
|
|
+ <div class="box-con">
|
|
|
+ <p>下单时间</p>
|
|
|
+ <div class="texe1">
|
|
|
+ <div class="text2">{{ list.createdAt }}</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="btn">
|
|
|
+ <div class="box-btn">
|
|
|
+ <div class="text1">
|
|
|
+ <img src="../native/imgs/btn_02@3x.png" alt="" />
|
|
|
+ <span>取消订单</span>
|
|
|
+ </div>
|
|
|
+ <div class="text2">
|
|
|
+ <img src="../native/imgs/btn_01@4x.png" alt="" />
|
|
|
+ <span class="box-btn-sp">立即支付</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+<script>
|
|
|
+export default {
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ takeout: [],
|
|
|
+ list: {
|
|
|
+ transactionId: '2019052035464',
|
|
|
+ createdAt: '2021-05-20 07:52:36',
|
|
|
+ remark: '加急',
|
|
|
+ packPrice: '2',
|
|
|
+ distributionPrice: '2',
|
|
|
+ total: '37',
|
|
|
+ lists: [
|
|
|
+ {
|
|
|
+ price: '11',
|
|
|
+ name: '南瓜粥',
|
|
|
+ num: '1',
|
|
|
+ imges:
|
|
|
+ 'https://ticket-exchange.oss-cn-hangzhou.aliyuncs.com/image/2021-08-10-17-31-24egsujwUw.jpg'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ price: '22',
|
|
|
+ name: '南瓜粥,八宝粥',
|
|
|
+ num: '2',
|
|
|
+ imges:
|
|
|
+ 'https://ticket-exchange.oss-cn-hangzhou.aliyuncs.com/image/2021-08-10-17-31-24egsujwUw.jpg'
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ };
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ orderCopy() {
|
|
|
+ wx.setClipboardData({
|
|
|
+ data: this.list.transactionId + '',
|
|
|
+ success(res) {
|
|
|
+ wx.getClipboardData({
|
|
|
+ success(res) {
|
|
|
+ wx.showToast({
|
|
|
+ title: '订单单号复制成功'
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
+ created() {
|
|
|
+ this.takeout = this.list.lists;
|
|
|
+ }
|
|
|
+};
|
|
|
+</script>
|
|
|
+<style lang="less" scoped>
|
|
|
+.container {
|
|
|
+ margin: 0 16px;
|
|
|
+ padding-bottom: 140px;
|
|
|
+ .top {
|
|
|
+ margin-top: 100px;
|
|
|
+ .mytest {
|
|
|
+ position: absolute;
|
|
|
+ top: 0;
|
|
|
+ left: 0;
|
|
|
+ right: 0;
|
|
|
+ margin: auto;
|
|
|
+ width: 100%;
|
|
|
+ height: 190px;
|
|
|
+ z-index: -1;
|
|
|
+ img {
|
|
|
+ width: 100vw;
|
|
|
+ display: block;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .text1 {
|
|
|
+ font-size: 24px;
|
|
|
+ font-weight: bold;
|
|
|
+ color: #ffffff;
|
|
|
+ line-height: 34px;
|
|
|
+ }
|
|
|
+ .text2 {
|
|
|
+ font-size: 14px;
|
|
|
+ font-weight: 400;
|
|
|
+ color: #ffffff;
|
|
|
+ line-height: 24px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .store {
|
|
|
+ .flex();
|
|
|
+ justify-content: space-between;
|
|
|
+ margin-top: 60px;
|
|
|
+ .title {
|
|
|
+ .flex();
|
|
|
+ img {
|
|
|
+ width: 18px;
|
|
|
+ height: 18px;
|
|
|
+ }
|
|
|
+ .tit {
|
|
|
+ font-size: 14px;
|
|
|
+ font-weight: 400;
|
|
|
+ color: #000000;
|
|
|
+ line-height: 24px;
|
|
|
+ padding-left: 6px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .store1 {
|
|
|
+ font-size: 14px;
|
|
|
+ font-weight: 400;
|
|
|
+ color: @prim;
|
|
|
+ line-height: 24px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .border {
|
|
|
+ border: 1px solid @bg;
|
|
|
+ margin: 10px 0 16px;
|
|
|
+ }
|
|
|
+ .content {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ margin-bottom: 16px;
|
|
|
+ .ImgBox {
|
|
|
+ display: flex;
|
|
|
+ img {
|
|
|
+ width: 80px;
|
|
|
+ height: 80px;
|
|
|
+ border-radius: 8px;
|
|
|
+ margin-right: 18px;
|
|
|
+ }
|
|
|
+ .name {
|
|
|
+ font-size: 14px;
|
|
|
+ font-weight: bold;
|
|
|
+ color: #1c1c1c;
|
|
|
+ line-height: 24px;
|
|
|
+ }
|
|
|
+ .name1 {
|
|
|
+ font-size: 14px;
|
|
|
+ font-weight: 400;
|
|
|
+ color: #c8c9cc;
|
|
|
+ line-height: 24px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .money {
|
|
|
+ font-size: 16px;
|
|
|
+ font-weight: bold;
|
|
|
+ color: #1c1c1c;
|
|
|
+ line-height: 26px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .order {
|
|
|
+ margin-bottom: 4px;
|
|
|
+ .flex();
|
|
|
+ justify-content: space-between;
|
|
|
+ .text1 {
|
|
|
+ font-size: 13px;
|
|
|
+ font-weight: 400;
|
|
|
+ color: #939599;
|
|
|
+ line-height: 24px;
|
|
|
+ }
|
|
|
+ &.order2 {
|
|
|
+ margin-bottom: 14px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .add {
|
|
|
+ text-align: right;
|
|
|
+ .text {
|
|
|
+ font-size: 14px;
|
|
|
+ font-weight: bold;
|
|
|
+ color: #939599;
|
|
|
+ line-height: 24px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .border2 {
|
|
|
+ width: 375px;
|
|
|
+ height: 5px;
|
|
|
+ margin: 20px 0 15px;
|
|
|
+ background: @bg;
|
|
|
+ }
|
|
|
+ .address {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ margin-bottom: 35px;
|
|
|
+ .name {
|
|
|
+ font-size: 14px;
|
|
|
+ font-weight: bold;
|
|
|
+ color: #000000;
|
|
|
+ line-height: 20px;
|
|
|
+ }
|
|
|
+ .text1 {
|
|
|
+ font-size: 16px;
|
|
|
+ font-weight: 400;
|
|
|
+ color: #000000;
|
|
|
+ line-height: 24px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .remark {
|
|
|
+ .flex();
|
|
|
+ justify-content: space-between;
|
|
|
+ margin-bottom: 20px;
|
|
|
+ .name {
|
|
|
+ font-size: 14px;
|
|
|
+ font-weight: bold;
|
|
|
+ color: #000000;
|
|
|
+ line-height: 20px;
|
|
|
+ }
|
|
|
+ .text1 {
|
|
|
+ font-size: 13px;
|
|
|
+ font-weight: 400;
|
|
|
+ color: #c8c9cc;
|
|
|
+ line-height: 22px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .box {
|
|
|
+ margin-bottom: 16px;
|
|
|
+ .box-con {
|
|
|
+ .flex();
|
|
|
+ justify-content: space-between;
|
|
|
+ .texe1 {
|
|
|
+ display: flex;
|
|
|
+ span {
|
|
|
+ width: 38px;
|
|
|
+ height: 18px;
|
|
|
+ border-radius: 2px;
|
|
|
+ border: 2px solid #c8c9cc;
|
|
|
+ font-size: 12px;
|
|
|
+ font-weight: 400;
|
|
|
+ color: #c8c9cc;
|
|
|
+ line-height: 18px;
|
|
|
+ text-align: center;
|
|
|
+ margin-right: 3px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ p {
|
|
|
+ height: 24px;
|
|
|
+ font-size: 13px;
|
|
|
+ font-weight: 400;
|
|
|
+ color: #939599;
|
|
|
+ line-height: 24px;
|
|
|
+ }
|
|
|
+ .text2 {
|
|
|
+ height: 22px;
|
|
|
+ font-size: 13px;
|
|
|
+ font-weight: 400;
|
|
|
+ color: #000000;
|
|
|
+ line-height: 22px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .btn {
|
|
|
+ padding-bottom: 40px;
|
|
|
+ position: fixed;
|
|
|
+ bottom: 0;
|
|
|
+ width: 100%;
|
|
|
+ background: #ffffff;
|
|
|
+ .box-btn {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ margin-right: 35px;
|
|
|
+ .text1 {
|
|
|
+ width: 163px;
|
|
|
+ font-size: 16px;
|
|
|
+ font-weight: 400;
|
|
|
+ color: @prim;
|
|
|
+ line-height: 48px;
|
|
|
+ z-index: 1;
|
|
|
+ img {
|
|
|
+ padding-bottom: 40px;
|
|
|
+ position: absolute;
|
|
|
+ width: 163px;
|
|
|
+ height: 48px;
|
|
|
+ z-index: -1;
|
|
|
+ }
|
|
|
+ span {
|
|
|
+ padding-left: 49px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .text2 {
|
|
|
+ width: 163px;
|
|
|
+ font-size: 16px;
|
|
|
+ font-weight: 400;
|
|
|
+ color: @prim;
|
|
|
+ text-align: center;
|
|
|
+ line-height: 48px;
|
|
|
+ padding-right: 25px;
|
|
|
+ img {
|
|
|
+ padding-bottom: 40px;
|
|
|
+ position: absolute;
|
|
|
+ width: 163px;
|
|
|
+ height: 48px;
|
|
|
+ z-index: -1;
|
|
|
+ }
|
|
|
+ span {
|
|
|
+ padding-left: 49px;
|
|
|
+ }
|
|
|
+ .box-btn-sp {
|
|
|
+ color: @ff;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|