顺带件OK,除用户设置地址,接受,实际数据

This commit is contained in:
2020-08-24 23:05:33 +08:00
parent d64a9f163c
commit 89ff2bd661
4 changed files with 294 additions and 119 deletions

View File

@ -42,44 +42,56 @@
<div class="block" style="display: flex;width: 100vw;">
</div>
<div id="app" v-cloak>
<div class="row clearfix" v-for="(each, index) in orderList" :data-id="each.id">
<div class="row_header">
{{each.before}}前送达
<div class="float_center" v-if="highlightText">
<div class="text">
{{highlightText}}
</div>
<div class="name">
<span class="_text">店铺:{{each.from_address}}</span>
<span class="_img" @click="window.open(`tel:${each.shop_phone}`)">
<img src="../img/lianxishangjia4.png" alt="">
</span>
</div>
<div class="name">
<span class="_text">送至:{{each.to_address}}</span>
<span class="_img" @click="window.open(`tel:${each.buyer_phone}`)">
<img src="../img/lianxishangjia4.png" alt="">
</span>
</div>
<div class="loc_range">
<span></span>
<span class="between">{{each.distance_to_shop}}</span>
<span class="with_img">
<img src="../img/gothere.png" alt="">
商家
</span>
<span class="between">{{each.distance_to_buyer}}</span>
<span class="with_img">
<img src="../img/gothere.png" alt="">
购户
</span>
</div>
<div class="row_foot">
<span class="price_tag">
运费<span class="price">{{each.deliver_fee}}</span>
</span>
<span class="price_tag">
奖励<span class="price">{{each.fee}}</span>
</span>
<div class="operation">
<div class="op" @click="copyText()">复制</div>
<div class="op" @click="dismissHighLight()">关闭</div>
</div>
</div>
<div>
<div class="row clearfix" v-for="(each, index) in orderList" :data-id="each.id">
<div class="row_header">
{{each.deliverBefore}}前送达
</div>
<div class="name">
<span class="_text" @click="setHighLightText(each.shopAddress)">店铺:{{each.shopAddress}}</span>
<span class="_img" @click="window.open(`tel:${each.shopPhone}`)">
<img src="../img/lianxishangjia4.png" alt="">
</span>
</div>
<div class="name">
<span class="_text" @click="setHighLightText(each.userAddress)">送至:{{each.userAddress}}</span>
<span class="_img" @click="window.open(`tel:${each.userPhone}`)">
<img src="../img/lianxishangjia4.png" alt="">
</span>
</div>
<div class="loc_range">
<span></span>
<span class="between" @click="navi([each.shopLat, each.shopLng])">{{getDistance(location, [each.shopLat, each.shopLng])}}</span>
<span class="with_img" @click="navi([each.shopLat, each.shopLng])">
<img src="../img/gothere.png" alt="">
商家
</span>
<span class="between">{{each.distance_to_buyer}}</span>
<span class="with_img">
<img src="../img/gothere.png" alt="">
购户
</span>
</div>
<div class="row_foot">
<span class="price_tag">
运费<span class="price">{{each.deliverMoney}}</span>
</span>
<span class="price_tag">
奖励<span class="price">{{each.feeMoney}}</span>
</span>
</div>
</div>
</div>
<div id="apear"></div>
</div>
</body>
<script src="../js/mui.min.js" type="text/javascript" charset="utf-8"></script>