Commit 34c2268d by songbingqi

修改 首页取单码 样式

parent ac6f7b42
<template>
<div>
<u-popup :show="show" :round="10" closeable mode="bottom" @close="close">
<div class="order_flow">
<u-popup :show="show" :round="10" mode="bottom" @close="close" :safeAreaInsetBottom="false">
<view class="bigBox" :style="{'height':'1380rpx'}">
<div class="order_flow" >
<div class="code">取单码 {{ orderInfo.orderNum }}</div>
<!-- <image mode="scaleToFill" :src="qrCode" class="qr_code"></image> -->
<div class="qr_code">
<div class="qr_code_readly" v-if="!showMask">
<image mode="scaleToFill" :src="qrCode" class="qr"></image>
<view class="status_text">{{ orderStatusText }}</view>
</div>
<div class="flow_describe">
<h3>扫码流程</h3>
<image :mode="'aspectFit'" class="flow_img" src="/static/imgs/order_flow.png"></image>
<div class="qr_code" v-else>
<image mode="aspectFit" :src="'/static/imgs/erweimazhedang.png'" class="qr"></image>
<view class="status_text">——制作完成后才能扫哦——</view>
</div>
<div class="flow_describe">
<h3>注意事项</h3>
<image :mode="'aspectFit'" class="flow_img" src="/static/imgs/saomaliucheng.png"></image>
</div>
</div>
<div class="flow_describe_tips">
<view class="title">注意事项</view>
<view class="text">
<view>*热饮温度高,推荐使用纸吸管,纸吸管体验更佳。拿到后请小心饮用,吸入时请注意烫口喔</view>
<view>*冷饮如选择冰块分装,冰块分装后饮品将不满杯,敬请谅解。</view>
<view>*冷饮去冰如选择椰椰雪糕,默认分装椰椰雪糕,敬请谅解</view>
<view>1.冷饮拍完照记得搅拌哦~搅拌3圈风味更佳</view>
<view>2.吸管请到两边窗口自取</view>
<view>3.热饮小心烫嘴!</view>
<view>4.二维码被抱住的时候不能扫哦</view>
<view>5.有问题或对出品任何不满意请联系客服</view>
</view>
</div>
</div>
</view>
</u-popup>
</div>
</template>
......@@ -106,18 +113,15 @@ export default {
}
.order_status {
width: 686rpx;
height: 174rpx;
background: #FFFFFF;
border-radius: 10rpx;
margin: 32rpx auto 0;
padding: 14px;
margin: 32rpx 32rpx;
padding: 24rpx 0rpx 30rpx 0rpx;
.status_text {
font-size: 32rpx;
font-family: PingFangSC-Semibold, PingFang SC;
font-weight: 600;
color: #000000;
font-size: 28rpx;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #333333;
text-align: center;
}
......@@ -144,11 +148,16 @@ export default {
text-align: center;
}
}
.bigBox {
background: #F7F7F7;
border-radius: 10px 10px 0px 0px;
overflow: auto;
}
.order_flow {
background: #FFFFFF;
border-radius: 10rpx;
padding-top: 25rpx;
margin: 32rpx;
padding-top: 40rpx;
padding-bottom: 25rpx;
.code {
......@@ -158,25 +167,25 @@ export default {
color: #000000;
text-align: center;
}
.qr_code {
width: 508rpx;
.qr_code_readly{
margin: 20rpx auto;
width: 510rpx;
height: 510rpx;
}
.qr_code {
height: 314rpx;
display: block;
margin: 25rpx auto;
background-color: #ccc;
margin: 70rpx auto;
position: relative;
padding-bottom: 30rpx;
.status_text {
font-size: 48rpx;
font-family: PingFangSC-Semibold, PingFang SC;
font-weight: 600;
color: #FFFFFF;
line-height: 66rpx;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 28rpx;
margin-top: 39rpx;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #333333;
text-align: center;
}
.qr {
......@@ -186,13 +195,9 @@ export default {
}
.flow_describe {
width: 590rpx;
background: #FFFFFF;
box-shadow: 0rpx 4rpx 8rpx 0rpx rgba(166, 166, 166, 0.5);
border-radius: 10rpx;
margin: 0 auto;
margin-top: 20rpx;
padding: 30rpx;
width: 100%;
height: 300rpx;
padding-top: 48rpx;
h3 {
font-size: 28rpx;
......@@ -202,14 +207,35 @@ export default {
}
.flow_img {
width: 590rpx;
height: 211rpx;
width: 100%;
height: 100%;
display: block;
margin: 24rpx auto;
}
}
}
}
.flow_describe_tips{
margin-top: 100rpx;
background: #FFFFFF;
margin: 32rpx;
padding: 25rpx 31rpx;
.title{
font-size: 28rpx;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #333333;
padding-bottom: 24rpx;
border-bottom: 1px solid #ECECEC;
}
.text {
margin-top: 18rpx;
font-size: 24rpx;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #999999;
line-height: 48rpx;
}
}
.customer_service {
height: 90rpx;
line-height: 90rpx;
......
......@@ -15,8 +15,8 @@
</view>
<view class="msg_content">{{ item.message }}</view>
</view>
</scroll-view>
<show-toast ref="toast"/>
</scroll-view>
</template>
<script>
......
......@@ -13,8 +13,7 @@
<a type="primary" @click="oneMoreOrder(orderInfo)" v-if="orderInfo.state != 1" class="btn">再来一单</a>
</div>
</div>
<div class="order_flow">
<div class="order_flow" v-if="qrShow">
<div v-if="qrShow" class="code">取单码 {{ orderInfo.orderNum }}</div>
<div class="realQrcodeBox" v-if="qrShow&&isBuild">
<image mode="aspectFit" :src="ewmImg" class="qr_real"></image>
......@@ -80,6 +79,34 @@
</div>
</div>
</div>
<div class="order_describe">
<view class="title">订单信息</view>
<div class="item">
<span class="label">下单时间:</span>
<span class="value">{{ orderInfo.createdAt }}</span>
</div>
<div class="item">
<span class="label">取单码号:</span>
<span class="value">{{ orderInfo.orderNum }}</span>
</div>
<div class="item">
<span class="label">订单编号:</span>
<span class="value">{{ orderInfo.orderNo }}</span>
</div>
</div>
<div class="customer_service">
<button class="function_item_text" open-type="contact" bindcontact="handleContact" session-from="sessionFrom">
<view class="serverBox">
<u-icon name="server-fill" color="#000000" size="16"></u-icon>
<span :style="{'margin-left':'16rpx'}">有疑问,联系客服</span>
</view>
<view class="icno-arrow">
<image :style="{'height':'100%','width':'100%'}" :src="'../../../static/imgs/jiantouhei.png'" />
</view>
</button>
</div>
</div>
</template>
......@@ -95,9 +122,9 @@ export default {
const resData = uni.getStorageSync('orderInfo');
this.orderInfo = resData
const isBuild = ['4', '5'].indexOf(this.orderInfo.state) >= 0;
if (!isBuild) {
if (isBuild) {
new QRCode('myQrcode', {
text: 'http://www.baidu.com',
text: this.orderInfo.pickCode,
width: 141, //canvas 画布的宽
height: 141, //canvas 画布的高
padding: 0, // 生成二维码四周自动留边宽度,不传入默认为0
......@@ -451,6 +478,7 @@ export default {
}
.psce_name {
margin-top: 18rpx;
font-size: 24rpx;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
......@@ -459,6 +487,7 @@ export default {
.size {
font-size: 24rpx;
margin-top: 18rpx;
font-family: ArialMT;
color: #666666;
}
......@@ -473,7 +502,7 @@ export default {
.discount {
margin-top: 24rpx;
padding-bottom: 24rpx;
border-bottom: 1rpx solid #EEEEEE;
border-bottom: 1rpx solid #ECECEC;
.discount_1 {
display: flex;
......@@ -515,48 +544,47 @@ export default {
align-items: center;
display: flex;
justify-content: space-between;
margin-top: 52rpx;
margin-top: 30rpx;
border-top: 1rpx solid #EEEEEE;
padding-bottom: 20rpx;
padding-top: 20rpx;
padding-top: 30rpx;
.size {
font-size: 24rpx;
font-size: 28rpx;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #666666;
}
.paid_in {
font-size: 24rpx;
font-size: 28rpx;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 600;
color: #000000;
font-weight: 400;
color: #333333;
}
.money {
font-weight: 600;
font-size: 32rpx;
color: #000000;
vertical-align: middle;
vertical-align: top;
font-size: 36rpx;
font-family: Futura-Medium, Futura;
font-weight: 500;
color: #333333;
}
}
}
.order_describe {
background: #fff;
border-radius: 10rpx;
padding: 0 62rpx 24rpx;
margin-top: 32rpx;
padding: 26rpx 31rpx;
margin: 32rpx;
h3 {
padding: 24rpx 0;
.title {
font-size: 28rpx;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 600;
color: #000000;
border-bottom: 1rpx solid #EEEEEE;
font-weight: 500;
color: #333333;
line-height: 40rpx;
}
.item {
......@@ -566,13 +594,13 @@ export default {
font-size: 24rpx;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #666666;
color: #999999;
}
.value {
font-size: 24rpx;
font-family: ArialMT;
color: #333333;
color: #666666;
}
}
}
......@@ -581,11 +609,10 @@ export default {
height: 90rpx;
line-height: 90rpx;
background: #FFFFFF;
border-radius: 10rpx;
font-weight: 500;
color: #000000;
padding: 0 64rpx;
margin: 32rpx 0;
padding: 0rpx 31rpx;
margin: 32rpx;
.function_item_text {
width: 100%;
margin: 0;
......@@ -596,6 +623,16 @@ export default {
border-radius: 0px;
display: flex;
justify-content: space-between;
.serverBox{
display: flex;
justify-content: flex-start;
align-items: center;
}
.icno-arrow{
width: 9rpx;
height: 21rpx;
}
}
.function_item_text::after {
border: unset;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment