|
|
@@ -13,7 +13,7 @@
|
|
|
</view>
|
|
|
<view>
|
|
|
<i @click.stop="callUp(detailInfo.customMobile)" class="iconfont icondianhua1"></i>
|
|
|
- <i @click.stop="navigate(detailInfo.lat,detailInfo.long,detailInfo.customName)" class="iconfont icondianhua" style="font-size:53upx;margin-left:15upx;margin-right:9upx;color:#3385ff;"></i>
|
|
|
+ <i @click.stop="navigateTo(detailInfo.lat,detailInfo.long,detailInfo.customName)" class="iconfont icondianhua" style="font-size:53upx;margin-left:15upx;margin-right:9upx;color:#3385ff;"></i>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="title">
|
|
|
@@ -195,6 +195,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import { mapGetters } from "vuex";
|
|
|
import stepStatus from "./components/stepStatus";
|
|
|
import TuiListCell from "@/components/plugin/list-cell";
|
|
|
import { getDetail,debtPay,hasPay, freeShipping,confirmFinish,cancel } from "@/api/order/index";
|
|
|
@@ -204,6 +205,7 @@ import productMins from "@/mixins/product";
|
|
|
import { ORDER_STATUS } from "@/utils/declare";
|
|
|
import BLE from "@/mixins/BLE";
|
|
|
import { cloudPrintOrder } from "@/api/order";
|
|
|
+import { hasHitNavigate } from "@/api/map";
|
|
|
export default {
|
|
|
name: "orderDetail",
|
|
|
components: {
|
|
|
@@ -235,6 +237,9 @@ export default {
|
|
|
onShow() {
|
|
|
this.init();
|
|
|
},
|
|
|
+ computed: {
|
|
|
+ ...mapGetters({ loginInfo: "getLoginInfo" }),
|
|
|
+ },
|
|
|
methods: {
|
|
|
//结账(单个结账没有优惠)
|
|
|
settleOrder(item) {
|
|
|
@@ -272,7 +277,26 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- navigate(latitude, longitude, address) {
|
|
|
+ navigateTo(latitude, longitude, address) {
|
|
|
+ // #ifdef APP-PLUS
|
|
|
+ let that = this
|
|
|
+ if(that.loginInfo.hasHitNavigate != 1){
|
|
|
+ that.$util.confirmModal({content:'打开后点右下角按钮可正常导航'},() => {
|
|
|
+ hasHitNavigate().then(res=>{
|
|
|
+ console.log(res.code)
|
|
|
+ that.$store.commit("setHitNavigation")
|
|
|
+ })
|
|
|
+ that.openNavigateto(latitude, longitude, address)
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ that.openNavigateto(latitude, longitude, address)
|
|
|
+ }
|
|
|
+ // #endif
|
|
|
+ // #ifdef MP-WEIXIN
|
|
|
+ this.openNavigateto(latitude, longitude, address)
|
|
|
+ // #endif
|
|
|
+ },
|
|
|
+ openNavigateto(latitude, longitude, address){
|
|
|
// 将经纬度转换成Number
|
|
|
let latituded = Number(latitude);
|
|
|
let longituded = Number(longitude);
|