|
|
@ -1,22 +1,141 @@ |
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<view> |
|
|
|
<view> |
|
|
|
<view class="width100 font18 fcorfff fotct height40 backcorf06" v-if="recinfo.orderStatus == 1">待支付</view> |
|
|
|
<!-- 待支付 --> |
|
|
|
<view class="width100 font18 fcorfff fotct height40 backcorf06" v-if="recinfo.orderStatus == 2">已支付</view> |
|
|
|
<view class="width100 paddtop10 paddbotm10 backcorfff fotct" v-if="recinfo.orderStatus == 1"> |
|
|
|
<view class="width100 font18 fcorfff fotct height40 backcorf06" v-if="recinfo.orderStatus == 3">已完成</view> |
|
|
|
<view class="height20"></view> |
|
|
|
<view class="width100 font18 fcorfff fotct height40 backcorf06" v-if="recinfo.orderStatus == 4">已退款</view> |
|
|
|
<view class="headstu font24 fontwig6"> |
|
|
|
<view class="width100 font18 fcorfff fotct height40 backcorf06" v-if="recinfo.orderStatus == 5">已取消</view> |
|
|
|
{{countdownm}}:{{countdowns}} |
|
|
|
<view class="width100 font18 fcorfff fotct height40 backcorf06" v-if="recinfo.orderStatus == 6">退款中</view> |
|
|
|
</view> |
|
|
|
<view class="width100 font18 fcorfff fotct height40 backcorf06" v-if="recinfo.orderStatus == 7">退款失败</view> |
|
|
|
<view class="width100 font13 fcor666 mart10">若超时未支付,订单将自动取消</view> |
|
|
|
|
|
|
|
<view class="stubtn mart15" style="background-color: #0F8FE8;" @click="jumppay()">立即支付 |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="width100 headsbg paddbotm15" v-if="recinfo.orderStatus != 1"> |
|
|
|
|
|
|
|
<view class="width100 font18 fcorfff fotct height40p"> |
|
|
|
|
|
|
|
{{typeText[recinfo.orderStatus]}} |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="width90 fcorfff font18 mart10">实付:¥{{recinfo.payRealPrice}}</view> |
|
|
|
|
|
|
|
<view class="width90 fcorfff font14 mart10">{{recinfo.createTime | formatDate('-')}}</view> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<view class="width90 mart20" style="border-bottom: 1px dashed #7BC1F5;"></view> |
|
|
|
|
|
|
|
<view class="width90 mart20 alijusnostart font12"> |
|
|
|
|
|
|
|
<view class="paddleft5 paddtright5 border-r" style="border: 1px solid #5BB5F3;color: #5BB5F3;">本单优惠 |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="fcorfff margle">立减-¥8.15</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="width90 mart20 backcorfff height50 fcor333 font15 border-8r"> |
|
|
|
|
|
|
|
<view class="width94">感谢您信任嗨森逛,欢迎再次消费</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 订单信息 --> |
|
|
|
|
|
|
|
<view class="width90 backcorfff border-8r mart10 paddbotm15"> |
|
|
|
|
|
|
|
<view class="paddtop20 font22 width94 fcor333">商家/订单信息</view> |
|
|
|
|
|
|
|
<view class="mart15 alijusstart font14 width94"> |
|
|
|
|
|
|
|
<view class="width20 fcor777">交易单号</view> |
|
|
|
|
|
|
|
<view class="width80p fotrt fcor333">HF202220823829374671902</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="mart15 alijusstart font14 width94"> |
|
|
|
|
|
|
|
<view class="width20 fcor777">流水号</view> |
|
|
|
|
|
|
|
<view class="width80p fotrt fcor333">433423423425123123123211</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="mart15 alijusstart font14 width94"> |
|
|
|
|
|
|
|
<view class="width20 fcor777">下单时间</view> |
|
|
|
|
|
|
|
<view class="width80p fotrt fcor333">2022-09-06 10:36:38</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="mart15 alijusstart font14 width94"> |
|
|
|
|
|
|
|
<view class="width20 fcor777">油站名称</view> |
|
|
|
|
|
|
|
<view class="width80p fotrt fcor333">延长壳牌南充亚华加油站</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="mart15 alijusstart font14 width94"> |
|
|
|
|
|
|
|
<view class="width20 fcor777">支付方式</view> |
|
|
|
|
|
|
|
<view class="width80p fotrt fcor333">微信</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="mart15 alijusstart font14 width94"> |
|
|
|
|
|
|
|
<view class="width20 fcor777">地址</view> |
|
|
|
|
|
|
|
<view class="width80p fotrt fcor333 text1">四川省南充市顺庆区金鱼领路541号1</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 商品信息 --> |
|
|
|
|
|
|
|
<view class="width90 backcorfff border-8r mart10 paddbotm15"> |
|
|
|
|
|
|
|
<view class="paddtop20 font22 width94 fcor333">商品信息</view> |
|
|
|
|
|
|
|
<view class="mart15 alijusstart font14 width94"> |
|
|
|
|
|
|
|
<view class="width50 fcor777">商品名称</view> |
|
|
|
|
|
|
|
<view class="width50 fotrt fcor333">100元电信话费充值</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="mart15 alijusstart font14 width94"> |
|
|
|
|
|
|
|
<view class="width50 fcor777">商品单价</view> |
|
|
|
|
|
|
|
<view class="width50 fotrt fcor333">¥99.00</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="mart15 alijusstart font14 width94"> |
|
|
|
|
|
|
|
<view class="width50 fcor777">商品数量</view> |
|
|
|
|
|
|
|
<view class="width50 fotrt fcor333">2份</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="mart15 alijusstart font14 width94"> |
|
|
|
|
|
|
|
<view class="width50 fcor777">商品总金额</view> |
|
|
|
|
|
|
|
<view class="width50 fotrt fcor333">¥188.00</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
<!-- <view class="mart15 alijusstart font14 width94"> |
|
|
|
|
|
|
|
<view class="width50 fcor777">油号/枪号</view> |
|
|
|
|
|
|
|
<view class="width50 fotrt fcor333">92#/25号枪</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="mart15 alijusstart font14 width94"> |
|
|
|
|
|
|
|
<view class="width50 fcor777">油站单价</view> |
|
|
|
|
|
|
|
<view class="width50 fotrt fcor333">¥7.14/L</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="mart15 alijusstart font14 width94"> |
|
|
|
|
|
|
|
<view class="width70 fcor777">加油升数<text class="font11 fcor999">实际升数以油站加油机为准</text> </view> |
|
|
|
|
|
|
|
<view class="width30 fotrt fcor333">44.12升</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="mart15 alijusstart font14 width94"> |
|
|
|
|
|
|
|
<view class="width50 fcor777">加油金额</view> |
|
|
|
|
|
|
|
<view class="width50 fotrt fcor333">¥315.00</view> |
|
|
|
|
|
|
|
</view> --> |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 支付信息 --> |
|
|
|
|
|
|
|
<view class="width90 backcorfff mart10 concont"> |
|
|
|
|
|
|
|
<view class="paddtop20 font22 width94 fcor333">商品信息</view> |
|
|
|
|
|
|
|
<view class="mart15 alijusstart font14 width94"> |
|
|
|
|
|
|
|
<view class="width50 fcor777">加油优惠</view> |
|
|
|
|
|
|
|
<view class="width50 fotrt fcoreb5">-¥2.86</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="mart15 alijusstart font14 width94"> |
|
|
|
|
|
|
|
<view class="width50 fcor777">积分抵扣</view> |
|
|
|
|
|
|
|
<view class="width50 fotrt fcoreb5">-¥1.86</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="width95 height20 borderleft alijusnostart"> |
|
|
|
|
|
|
|
<view style="width: 5%;"></view> |
|
|
|
|
|
|
|
<view class="width95" style="border-bottom: 1px dashed #bebcbc;"></view> |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="gooddes width90 backcorfff marb20"> |
|
|
|
|
|
|
|
<view class="width90w height20 bordertopleft alijusnostart"> |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<view class="width90 height50 fotrt fcor777 font16 paddbotm10"> |
|
|
|
|
|
|
|
加油实付 <text class="font24 fcor333 margle">¥{{recinfo.payRealPrice}}</text> |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 购买商品列表 --> |
|
|
|
<!-- 购买商品列表 --> |
|
|
|
<view class="buy-list" v-for="rec in recinfo.highChildOrderList" :key="rec.id" |
|
|
|
<!-- <view class="buy-list" v-for="rec in recinfo.highChildOrderList" :key="rec.id" |
|
|
|
@click="toGoods(rec.goodsId,rec.goodsType)"> |
|
|
|
@click="toGoods(rec.goodsId,rec.goodsType)"> |
|
|
|
<!-- v-for="(row,index) in buylist" :key="index" --> |
|
|
|
|
|
|
|
<view class="row"> |
|
|
|
<view class="row"> |
|
|
|
<view class="goods-info"> |
|
|
|
<view class="goods-info"> |
|
|
|
<view class="img"> |
|
|
|
<view class="img"> |
|
|
|
<image mode="widthFix" :src="imageUrl+rec.goodsImg" v-if="rec.goodsType == 1 || rec.goodsType == 7"></image> |
|
|
|
<image mode="widthFix" :src="imageUrl+rec.goodsImg" |
|
|
|
|
|
|
|
v-if="rec.goodsType == 1 || rec.goodsType == 7"></image> |
|
|
|
<image mode="widthFix" :src="imagewxUrl+imgadres1" v-if="rec.goodsType == 6"></image> |
|
|
|
<image mode="widthFix" :src="imagewxUrl+imgadres1" v-if="rec.goodsType == 6"></image> |
|
|
|
<image mode="widthFix" :src="rec.goodsImg" v-if="rec.goodsType != 1 && rec.goodsType != 6 && rec.goodsType != 7"></image> |
|
|
|
<image mode="widthFix" :src="rec.goodsImg" |
|
|
|
|
|
|
|
v-if="rec.goodsType != 1 && rec.goodsType != 6 && rec.goodsType != 7"></image> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="info"> |
|
|
|
<view class="info"> |
|
|
|
<view class="title">{{rec.goodsName}}</view> |
|
|
|
<view class="title">{{rec.goodsName}}</view> |
|
|
@ -34,9 +153,9 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> --> |
|
|
|
<!-- 提示-备注 --> |
|
|
|
<!-- 提示-备注 --> |
|
|
|
<view class="order"> |
|
|
|
<!-- <view class="order"> |
|
|
|
<view class="row" v-if="recinfo.orderNo"> |
|
|
|
<view class="row" v-if="recinfo.orderNo"> |
|
|
|
<view class="left"> |
|
|
|
<view class="left"> |
|
|
|
订单流水号 : |
|
|
|
订单流水号 : |
|
|
@ -110,8 +229,7 @@ |
|
|
|
¥{{recinfo.totalPrice}} |
|
|
|
¥{{recinfo.totalPrice}} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="right" v-else> |
|
|
|
<view class="right" v-else> |
|
|
|
<image style="width: 15px;height: 15px;vertical-align: sub;" |
|
|
|
<image style="width: 15px;height: 15px;vertical-align: sub;" src="../../../static/img/jfx.png"> |
|
|
|
src="../../../static/img/jfx.png"> |
|
|
|
|
|
|
|
</image>{{(recinfo.totalPrice * 10 * 10).toFixed(0)}} |
|
|
|
</image>{{(recinfo.totalPrice * 10 * 10).toFixed(0)}} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -123,8 +241,7 @@ |
|
|
|
¥{{recinfo.payPrice}} |
|
|
|
¥{{recinfo.payPrice}} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="right" v-else> |
|
|
|
<view class="right" v-else> |
|
|
|
<image style="width: 15px;height: 15px;vertical-align: sub;" |
|
|
|
<image style="width: 15px;height: 15px;vertical-align: sub;" src="../../../static/img/jfx.png"> |
|
|
|
src="../../../static/img/jfx.png"> |
|
|
|
|
|
|
|
</image>{{(recinfo.payPrice* 10 * 10).toFixed(0)}} |
|
|
|
</image>{{(recinfo.payPrice* 10 * 10).toFixed(0)}} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -136,8 +253,7 @@ |
|
|
|
¥{{recinfo.payRealPrice}} |
|
|
|
¥{{recinfo.payRealPrice}} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="right" v-else> |
|
|
|
<view class="right" v-else> |
|
|
|
<image style="width: 15px;height: 15px;vertical-align: sub;" |
|
|
|
<image style="width: 15px;height: 15px;vertical-align: sub;" src="../../../static/img/jfx.png"> |
|
|
|
src="../../../static/img/jfx.png"> |
|
|
|
|
|
|
|
</image>{{(recinfo.payRealPrice * 10 * 10).toFixed(0)}} |
|
|
|
</image>{{(recinfo.payRealPrice * 10 * 10).toFixed(0)}} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -149,8 +265,7 @@ |
|
|
|
¥{{recinfo.deductionPrice}} |
|
|
|
¥{{recinfo.deductionPrice}} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="right" v-else> |
|
|
|
<view class="right" v-else> |
|
|
|
<image style="width: 15px;height: 15px;vertical-align: sub;" |
|
|
|
<image style="width: 15px;height: 15px;vertical-align: sub;" src="../../../static/img/jfx.png"> |
|
|
|
src="../../../static/img/jfx.png"> |
|
|
|
|
|
|
|
</image>{{(recinfo.deductionPrice * 10 * 10).toFixed(0)}} |
|
|
|
</image>{{(recinfo.deductionPrice * 10 * 10).toFixed(0)}} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -202,9 +317,9 @@ |
|
|
|
{{recinfo.finishTime | formatDate('-')}} |
|
|
|
{{recinfo.finishTime | formatDate('-')}} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> --> |
|
|
|
<!-- 优选商品 --> |
|
|
|
<!-- 优选商品 --> |
|
|
|
<view class="width94 font18 fcor333 fontwig6 height40" v-if="preByOrderInfo">预约订单详情</view> |
|
|
|
<!-- <view class="width94 font18 fcor333 fontwig6 height40" v-if="preByOrderInfo">预约订单详情</view> |
|
|
|
<view class="order" v-if="preByOrderInfo"> |
|
|
|
<view class="order" v-if="preByOrderInfo"> |
|
|
|
<view class="row"> |
|
|
|
<view class="row"> |
|
|
|
<view class="left"> |
|
|
|
<view class="left"> |
|
|
@ -282,7 +397,7 @@ |
|
|
|
{{preByOrderInfo.preUserRemark}} |
|
|
|
{{preByOrderInfo.preUserRemark}} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> --> |
|
|
|
<view class="width100 height60"></view> |
|
|
|
<view class="width100 height60"></view> |
|
|
|
|
|
|
|
|
|
|
|
<view class="footer" @click="orderComplete" v-if="preByOrderInfo && preByOrderInfo.status == 2"> |
|
|
|
<view class="footer" @click="orderComplete" v-if="preByOrderInfo && preByOrderInfo.status == 2"> |
|
|
@ -297,8 +412,7 @@ |
|
|
|
<view class="sum">合计: |
|
|
|
<view class="sum">合计: |
|
|
|
<view class="money" v-if="recinfo.payType != 3">¥{{recinfo.payPrice}}</view> |
|
|
|
<view class="money" v-if="recinfo.payType != 3">¥{{recinfo.payPrice}}</view> |
|
|
|
<view class="money" v-else> |
|
|
|
<view class="money" v-else> |
|
|
|
<image style="width: 15px;height: 15px;vertical-align: sub;" |
|
|
|
<image style="width: 15px;height: 15px;vertical-align: sub;" src="../../../static/img/jfx.png"> |
|
|
|
src="../../../static/img/jfx.png"> |
|
|
|
|
|
|
|
</image>{{recinfo.payPrice*100}} |
|
|
|
</image>{{recinfo.payPrice*100}} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -306,6 +420,13 @@ |
|
|
|
<view class="btn" @tap="toPay" style="background-color: #0083f5;color: #fff;">去支付</view> |
|
|
|
<view class="btn" @tap="toPay" style="background-color: #0083f5;color: #fff;">去支付</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 再来一单 --> |
|
|
|
|
|
|
|
<view class="height50 width100"></view> |
|
|
|
|
|
|
|
<view class="bottomstu backcorfff width100 height50 alijusend"> |
|
|
|
|
|
|
|
<button open-type="contact" class="cusservice font12 fcor666">联系客服</button> |
|
|
|
|
|
|
|
<view class="buybtn font12 fcorfff">再来一单</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
@ -332,7 +453,20 @@ |
|
|
|
imageUrl: app.globalData.imgUrl, |
|
|
|
imageUrl: app.globalData.imgUrl, |
|
|
|
imagewxUrl: app.globalData.imageWxImg, |
|
|
|
imagewxUrl: app.globalData.imageWxImg, |
|
|
|
imgadres1: 'dhf.png', |
|
|
|
imgadres1: 'dhf.png', |
|
|
|
preByOrderInfo:'' |
|
|
|
preByOrderInfo: '', |
|
|
|
|
|
|
|
countdownh: '', //倒计时时 |
|
|
|
|
|
|
|
countdownm: '', // 倒计时分 |
|
|
|
|
|
|
|
countdowns: '', // 倒计时秒 |
|
|
|
|
|
|
|
timer: null, //重复执行 |
|
|
|
|
|
|
|
typeText: { |
|
|
|
|
|
|
|
1: '待支付', |
|
|
|
|
|
|
|
2: '已支付', |
|
|
|
|
|
|
|
3: '已完成', |
|
|
|
|
|
|
|
4: '已退款', |
|
|
|
|
|
|
|
5: '已取消', |
|
|
|
|
|
|
|
6: '退款中', |
|
|
|
|
|
|
|
7: '退款失败' |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
@ -343,6 +477,9 @@ |
|
|
|
}, |
|
|
|
}, |
|
|
|
onHide() { |
|
|
|
onHide() { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
onUnload() { |
|
|
|
|
|
|
|
clearInterval(this.timer); |
|
|
|
}, |
|
|
|
}, |
|
|
|
onLoad(option) { |
|
|
|
onLoad(option) { |
|
|
|
this.orderId = option.id |
|
|
|
this.orderId = option.id |
|
|
@ -408,8 +545,31 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
//倒计时 |
|
|
|
|
|
|
|
showtime() { |
|
|
|
|
|
|
|
var nowtime = new Date(), //获取当前时间 |
|
|
|
|
|
|
|
endtime = this.orderList.createTime + 900000; //定义结束时间 |
|
|
|
|
|
|
|
var lefttime = endtime - nowtime, //距离结束时间的毫秒数 |
|
|
|
|
|
|
|
leftd = Math.floor(lefttime / (1000 * 60 * 60 * 24)), //计算天数 |
|
|
|
|
|
|
|
lefth = Math.floor((lefttime / (1000 * 60 * 60) % 24) + leftd * 24) < 10 ? "0" + Math.floor((lefttime / |
|
|
|
|
|
|
|
(1000 * 60 * 60) % 24) + leftd * 24) : Math.floor((lefttime / (1000 * 60 * 60) % 24) + leftd * |
|
|
|
|
|
|
|
24), //计算小时数 |
|
|
|
|
|
|
|
leftm = Math.floor(lefttime / (1000 * 60) % 60) < 10 ? "0" + Math.floor(lefttime / (1000 * 60) % 60) : |
|
|
|
|
|
|
|
Math.floor(lefttime / (1000 * 60) % 60), //计算分钟数 |
|
|
|
|
|
|
|
lefts = Math.floor(lefttime / 1000 % 60) < 10 ? "0" + Math.floor(lefttime / 1000 % 60) : Math.floor( |
|
|
|
|
|
|
|
lefttime / 1000 % 60); //计算秒数 |
|
|
|
|
|
|
|
this.countdownh = lefth //返回倒计时的字符串 |
|
|
|
|
|
|
|
this.countdownm = leftm //返回倒计时的字符串 |
|
|
|
|
|
|
|
this.countdowns = lefts //返回倒计时的字符串 |
|
|
|
|
|
|
|
// 倒计时结束时,显示00:00:00 |
|
|
|
|
|
|
|
if (lefttime < 0) { |
|
|
|
|
|
|
|
this.getThirdOrderByOrderId(); |
|
|
|
|
|
|
|
clearInterval(this.timer); |
|
|
|
|
|
|
|
this.countdownh = this.countdownm = this.countdowns = "00" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
//预约商品完成 |
|
|
|
//预约商品完成 |
|
|
|
orderComplete(){ |
|
|
|
orderComplete() { |
|
|
|
let that = this; |
|
|
|
let that = this; |
|
|
|
uni.showModal({ |
|
|
|
uni.showModal({ |
|
|
|
title: '预约完成', |
|
|
|
title: '预约完成', |
|
|
@ -420,7 +580,7 @@ |
|
|
|
title: '加载中...' |
|
|
|
title: '加载中...' |
|
|
|
}) |
|
|
|
}) |
|
|
|
let params = { |
|
|
|
let params = { |
|
|
|
preOrderId : this.preByOrderInfo.id |
|
|
|
preOrderId: this.preByOrderInfo.id |
|
|
|
} |
|
|
|
} |
|
|
|
orderComplete(params).then(res => { |
|
|
|
orderComplete(params).then(res => { |
|
|
|
if (res.return_code == '000000') { |
|
|
|
if (res.return_code == '000000') { |
|
|
@ -507,7 +667,8 @@ |
|
|
|
uni.redirectTo({ |
|
|
|
uni.redirectTo({ |
|
|
|
url: "/pages/pay/payment/payment?amount=" + this.recinfo.payPrice + |
|
|
|
url: "/pages/pay/payment/payment?amount=" + this.recinfo.payPrice + |
|
|
|
'&paytype=' + payTypes + '&orderId=' + this.recinfo.id + '&couponId=' + this.recinfo |
|
|
|
'&paytype=' + payTypes + '&orderId=' + this.recinfo.id + '&couponId=' + this.recinfo |
|
|
|
.highChildOrderList[0].goodsId + '&typeaout='+ this.recinfo.highChildOrderList[0].ext1+'&goodsType='+ this.recinfo.highChildOrderList[0].goodsType |
|
|
|
.highChildOrderList[0].goodsId + '&typeaout=' + this.recinfo.highChildOrderList[0].ext1 + |
|
|
|
|
|
|
|
'&goodsType=' + this.recinfo.highChildOrderList[0].goodsType |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
@ -515,6 +676,23 @@ |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
<style lang="scss"> |
|
|
|
<style lang="scss"> |
|
|
|
|
|
|
|
page { |
|
|
|
|
|
|
|
background-color: #f0f0f0; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.headstu { |
|
|
|
|
|
|
|
width: 90px; |
|
|
|
|
|
|
|
height: 90px; |
|
|
|
|
|
|
|
line-height: 90px; |
|
|
|
|
|
|
|
text-align: center; |
|
|
|
|
|
|
|
border-radius: 50%; |
|
|
|
|
|
|
|
background-color: #C6DEF4; |
|
|
|
|
|
|
|
color: #0189E7; |
|
|
|
|
|
|
|
margin-left: auto; |
|
|
|
|
|
|
|
margin-right: auto; |
|
|
|
|
|
|
|
border: 1px solid #0096FF; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.addr { |
|
|
|
.addr { |
|
|
|
width: 86%; |
|
|
|
width: 86%; |
|
|
|
padding: 20upx 3%; |
|
|
|
padding: 20upx 3%; |
|
|
@ -719,7 +897,7 @@ |
|
|
|
font-size: 20px; |
|
|
|
font-size: 20px; |
|
|
|
font-weight: 600; |
|
|
|
font-weight: 600; |
|
|
|
display: flex; |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
align-items: center; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -760,4 +938,62 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.headsbg { |
|
|
|
|
|
|
|
background: linear-gradient(to bottom, #3da7e7, #e8eff4); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.stubtn { |
|
|
|
|
|
|
|
width: 30%; |
|
|
|
|
|
|
|
height: 35px; |
|
|
|
|
|
|
|
line-height: 35px; |
|
|
|
|
|
|
|
border-radius: 25px; |
|
|
|
|
|
|
|
color: #ffffff; |
|
|
|
|
|
|
|
margin-left: 35%; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.bottomstu { |
|
|
|
|
|
|
|
position: fixed; |
|
|
|
|
|
|
|
bottom: 0px; |
|
|
|
|
|
|
|
border-top: 1px solid #cecdcd; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.cusservice { |
|
|
|
|
|
|
|
height: 30px; |
|
|
|
|
|
|
|
width: 90px; |
|
|
|
|
|
|
|
margin-right: 20px; |
|
|
|
|
|
|
|
border: 1px solid #6c6c6c; |
|
|
|
|
|
|
|
border-radius: 25px; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.buybtn { |
|
|
|
|
|
|
|
height: 30px; |
|
|
|
|
|
|
|
width: 90px; |
|
|
|
|
|
|
|
line-height: 30px; |
|
|
|
|
|
|
|
text-align: center; |
|
|
|
|
|
|
|
margin-right: 20px; |
|
|
|
|
|
|
|
background-color: #009dff; |
|
|
|
|
|
|
|
border-radius: 25px; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.borderleft { |
|
|
|
|
|
|
|
background-image: radial-gradient(10px at bottom left, #f0f0f0 10px, #ffffff); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.bordertopleft { |
|
|
|
|
|
|
|
background-image: radial-gradient(10px at top left, #f0f0f0 10px, #ffffff); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.concont { |
|
|
|
|
|
|
|
border-radius: 8px 8px 0 0; |
|
|
|
|
|
|
|
background-image: radial-gradient(10px at bottom right, #f0f0f0 10px, #ffffff); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.gooddes { |
|
|
|
|
|
|
|
border-radius: 0 0 8px 8px; |
|
|
|
|
|
|
|
background-image: radial-gradient(10px at top right, #f0f0f0 10px, #ffffff); |
|
|
|
|
|
|
|
} |
|
|
|
</style> |
|
|
|
</style> |
|
|
|