页面修复

This commit is contained in:
THK3121 2023-09-05 18:09:37 +08:00
parent fe6c79ca90
commit d426fcaaef
6 changed files with 432 additions and 424 deletions

View File

@ -15,11 +15,13 @@
</map>
<view class="map_address">
<view style="display: flex;">
<view style="flex-shrink: 0;margin-right: 16rpx;"><text class="cir" style="background-color: #40BC5E;"></text> 起点:</view>
<view style="flex-shrink: 0;margin-right: 16rpx;"><text class="cir"
style="background-color: #40BC5E;"></text> 起点:</view>
<view>{{nowAddress}}</view>
</view>
<view style="display: flex;">
<view style="flex-shrink: 0;margin-right: 16rpx;"><text class="cir" style="background-color: #FF7C32;"></text>终点:</view>
<view style="flex-shrink: 0;margin-right: 16rpx;"><text class="cir"
style="background-color: #FF7C32;"></text>终点:</view>
<view>{{goodsDetil.logistics.shop_address}}</view>
</view>
</view>
@ -101,7 +103,9 @@
import {
takeGoods
} from "@/api/logistics.js"
import { Toast } from "../../libs/uniApi";
import {
Toast
} from "../../libs/uniApi";
export default {
data() {
return {
@ -178,11 +182,14 @@ import { Toast } from "../../libs/uniApi";
plus.nativeUI.actionSheet({
title: "选择地图应用",
cancel: "取消",
buttons: [{title: "高德地图"}]
buttons: [{
title: "高德地图"
}]
}, function(e) {
if (e.index != 1) return;
try {
let url = `iosamap://viewMap?sourceApplication=applicationName&poiname=${that.goodsDetil.logistics.shop_name}&lat=${that.markers[0].latitude}&lon=${that.markers[0].longitude}&dev=0`;
let url =
`iosamap://viewMap?sourceApplication=applicationName&poiname=${that.goodsDetil.logistics.shop_name}&lat=${that.markers[0].latitude}&lon=${that.markers[0].longitude}&dev=0`;
if (url != "") {
url = encodeURI(url);
plus.runtime.openURL(url, function(e) {
@ -194,12 +201,13 @@ import { Toast } from "../../libs/uniApi";
Toast('暂不支持唤起地图')
}
})
}
else {
} else {
plus.nativeUI.actionSheet({
title: "选择地图应用",
cancel: "取消",
buttons: [{title: "高德地图"}]
buttons: [{
title: "高德地图"
}]
}, function(e) {
if (e.index != 1) return;
try {
@ -207,7 +215,8 @@ import { Toast } from "../../libs/uniApi";
var main = plus.android.runtimeMainActivity();
var packageManager = main.getPackageManager();
var PackageManager = plus.android.importClass(packageManager)
var packageInfo = packageManager.getPackageInfo(packageName, PackageManager.GET_ACTIVITIES);
var packageInfo = packageManager.getPackageInfo(packageName,
PackageManager.GET_ACTIVITIES);
if (packageInfo) {
var Uri = plus.android.importClass("android.net.Uri");
var url =
@ -223,8 +232,7 @@ import { Toast } from "../../libs/uniApi";
intent.setPackage("com.autonavi.minimap");
var main = plus.android.runtimeMainActivity();
main.startActivity(intent);
}
else {
} else {
// alert('' + packageName + '')
uni.showToast({
title: `您的手机没有安装高德地图`,

View File

@ -58,7 +58,7 @@
</view>
<view class="car_info" v-if="carList.length">
<view class="car_type">
<text v-if="true">空闲车辆</text>
<text v-if="true">租赁车辆</text>
<text v-else>自有车辆</text>
</view>
<view class="car_li" v-for="item,index in carList">
@ -105,7 +105,7 @@
</view>
<!-- 审核中 -->
<view class="" v-if="dataList.status==0">
<u-button :disabled="true" type="primary" text="合同已上传,等待审核" @tap="contractFn" color="grey"></u-button>
<u-button :disabled="true" type="primary" text="合同已上传,等待审核" color="grey"></u-button>
</view>
<!-- 审核通过 -->
<view class="" v-if="dataList.status==1||dataList.status==2">
@ -136,7 +136,6 @@
color="#0122C7"></u-button>
</view>
</view>
<!--uview 组件 -->
<view class="">
<u-modal :show="showPop" @close="showPop=false" @confirm="confirm" :closeOnClickOverlay="true"
@ -270,7 +269,7 @@
}).then(res => {
this.navTo('/subpkg/property/success')
})
this.navTo('/subpkg/property/success')
// this.navTo('/subpkg/property/success')
},
// sendcontractFn() {

View File

@ -13,7 +13,7 @@
</view>
</view>
<!-- <view class="right" @click="navToContract(dataList.file)"> -->
<view class="right" @click="showContractFn(item.file)">
<view class="right" @click="showContractFn(item.contract_url)">
<uni-icons type="paperclip" color="#3274F9"></uni-icons>
<view>查看</view>
</view>

View File

@ -17,9 +17,12 @@
<script>
export default {
onLoad() {
setTimeout(() => {
uni.redirectTo({
url: '/subpkg/property/index'
})
}, 3000)
}
}
</script>

View File

@ -73,7 +73,8 @@
</view>
</view>
<!-- <view class="right" @click="navToContract(dataList.file)"> -->
<view class="right" @click="showContractFn(datas.contract.file)">
<!-- <view class="right" @click="showContractFn(datas.contract.file)"> -->
<view class="right" @click="showContractFn(datas.contract.contract_url)">
<uni-icons type="paperclip" color="#3274F9"></uni-icons>
<view>查看</view>
</view>

View File

@ -51,10 +51,7 @@ function baseRequestTwo(url, method, data, {
url: Url + '/api' + url,
method: method || 'GET',
header: {
...header,
...{
'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'
}
...header
},
data: method != 'GET' ? data || {} : {},
params: method == 'GET' ? data : {},