update: 優化
This commit is contained in:
parent
f6bba9e78d
commit
0ed71d3bcd
|
@ -0,0 +1,36 @@
|
|||
<template>
|
||||
<u-popup
|
||||
:show="show"
|
||||
mode="bottom"
|
||||
:round="10"
|
||||
:closeable="true"
|
||||
@close="handleClose"
|
||||
>
|
||||
<plate-input
|
||||
:plate="statePlate.plateNo"
|
||||
@export="setPlate"
|
||||
@close="handleClose"
|
||||
/>
|
||||
</u-popup>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
import plateInput from "@/components/uni-plate-input/uni-plate-input.vue";
|
||||
|
||||
const props = defineProps<{
|
||||
show: boolean;
|
||||
}>();
|
||||
const emit = defineEmits(["handleDialog", "changeCarNo"]);
|
||||
const statePlate = reactive({
|
||||
plateNo: "",
|
||||
});
|
||||
|
||||
const handleClose = () => {
|
||||
emit("handleDialog", false);
|
||||
};
|
||||
const setPlate = (plate: string) => {
|
||||
if (plate.length >= 7) statePlate.plateNo = plate;
|
||||
emit("changeCarNo", plate);
|
||||
statePlate.plateNo = ''
|
||||
};
|
||||
</script>
|
||||
<style lang="scss" scoped></style>
|
|
@ -10,7 +10,7 @@
|
|||
<!-- background: '#ddd', -->
|
||||
<view
|
||||
:style="{
|
||||
paddingBottom: navbarRect.bottom + 'px',
|
||||
paddingBottom: navbarRect.bottom + 'rpx',
|
||||
|
||||
height: '50px',
|
||||
}"
|
||||
|
|
|
@ -1,103 +1,117 @@
|
|||
{
|
||||
"name" : "在生万有",
|
||||
// 应用标识 由DCloud 云端分配 (安卓 ios)
|
||||
"appid" : "__UNI__898003A",
|
||||
"description" : "",
|
||||
"versionName" : "1.0.0",
|
||||
"versionCode" : 100,
|
||||
"transformPx" : false,
|
||||
/* 5+App特有相关 */
|
||||
"app-plus" : {
|
||||
"compatible" : {
|
||||
"ignoreVersion" : true
|
||||
},
|
||||
"usingComponents" : true,
|
||||
"nvueStyleCompiler" : "uni-app",
|
||||
"compilerVersion" : 3,
|
||||
"splashscreen" : {
|
||||
"alwaysShowBeforeRender" : true,
|
||||
"waiting" : true,
|
||||
"autoclose" : true,
|
||||
"delay" : 0
|
||||
},
|
||||
/* 模块配置 */
|
||||
"modules" : {
|
||||
"Camera" : {}
|
||||
},
|
||||
/* 应用发布信息 */
|
||||
"distribute" : {
|
||||
/* android打包配置 */
|
||||
"android" : {
|
||||
"permissions" : [
|
||||
"<uses-feature android:name=\"android.hardware.camera\"/>",
|
||||
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.CAMERA\"/>",
|
||||
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
|
||||
"<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
|
||||
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
|
||||
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
|
||||
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.VIBRATE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
|
||||
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
|
||||
]
|
||||
},
|
||||
/* ios打包配置 */
|
||||
"ios" : {
|
||||
"dSYMs" : false
|
||||
},
|
||||
/* SDK配置 */
|
||||
"sdkConfigs" : {
|
||||
"ad" : {}
|
||||
},
|
||||
"icons" : {
|
||||
"android" : {
|
||||
"hdpi" : "/Users/admin/workspace/aifanda/project/在生万有/logo 72 x 72.png",
|
||||
"xhdpi" : "/Users/admin/workspace/aifanda/project/在生万有/logo 96 x 96.png",
|
||||
"xxhdpi" : "/Users/admin/workspace/aifanda/project/在生万有/logo 144 x144.png",
|
||||
"xxxhdpi" : "/Users/admin/workspace/aifanda/project/在生万有/logo 192 x192.png"
|
||||
}
|
||||
}
|
||||
"name": "在生万有",
|
||||
// 应用标识 由DCloud 云端分配 (安卓 ios)
|
||||
"appid": "__UNI__898003A",
|
||||
"description": "",
|
||||
"versionName": "1.0.0",
|
||||
"versionCode": 100,
|
||||
"transformPx": false,
|
||||
/* 5+App特有相关 */
|
||||
"app-plus": {
|
||||
"compatible": {
|
||||
"ignoreVersion": true
|
||||
},
|
||||
"usingComponents": true,
|
||||
"nvueStyleCompiler": "uni-app",
|
||||
"compilerVersion": 3,
|
||||
"splashscreen": {
|
||||
"alwaysShowBeforeRender": true,
|
||||
"waiting": true,
|
||||
"autoclose": true,
|
||||
"delay": 0
|
||||
},
|
||||
/* 模块配置 */
|
||||
"modules": {
|
||||
"Camera": {}
|
||||
},
|
||||
/* 应用发布信息 */
|
||||
"distribute": {
|
||||
/* android打包配置 */
|
||||
"android": {
|
||||
"permissions": [
|
||||
"<uses-feature android:name=\"android.hardware.camera\"/>",
|
||||
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
|
||||
"<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>",
|
||||
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.CALL_PHONE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.CAMERA\"/>",
|
||||
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
|
||||
"<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
|
||||
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
|
||||
"<uses-permission android:name=\"android.permission.READ_EXTERNAL_STORAGE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.VIBRATE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
|
||||
"<uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
|
||||
]
|
||||
},
|
||||
/* ios打包配置 */
|
||||
"ios": {
|
||||
"dSYMs": false
|
||||
},
|
||||
/* SDK配置 */
|
||||
"sdkConfigs": {
|
||||
"ad": {}
|
||||
},
|
||||
"icons": {
|
||||
"android": {
|
||||
"hdpi": "/Users/admin/workspace/aifanda/project/在生万有/logo 72 x 72.png",
|
||||
"xhdpi": "/Users/admin/workspace/aifanda/project/在生万有/logo 96 x 96.png",
|
||||
"xxhdpi": "/Users/admin/workspace/aifanda/project/在生万有/logo 144 x144.png",
|
||||
"xxxhdpi": "/Users/admin/workspace/aifanda/project/在生万有/logo 192 x192.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
/* 快应用特有相关 */
|
||||
"quickapp": {},
|
||||
// h5
|
||||
"h5": {
|
||||
"router": {
|
||||
"base": "./"
|
||||
}
|
||||
},
|
||||
/* 小程序特有相关 */
|
||||
"mp-weixin": {
|
||||
"appid": "wx9251d74fe0e87028",
|
||||
"logoPath": "https://backend-common.obs.cn-east-3.myhuaweicloud.com/static/pagesLogin/logo-simple.png",
|
||||
"setting": {
|
||||
"urlCheck": false
|
||||
},
|
||||
/* 快应用特有相关 */
|
||||
"quickapp" : {},
|
||||
// h5
|
||||
"h5" : {
|
||||
"router" : {
|
||||
"base" : "./"
|
||||
}
|
||||
"usingComponents": true,
|
||||
"optimization": {
|
||||
"subPackages": true //是否启用分包优化
|
||||
},
|
||||
/* 小程序特有相关 */
|
||||
"mp-weixin" : {
|
||||
"appid" : "wx9251d74fe0e87028",
|
||||
"logoPath" : "https://backend-common.obs.cn-east-3.myhuaweicloud.com/static/pagesLogin/logo-simple.png",
|
||||
"setting" : {
|
||||
"urlCheck" : false
|
||||
},
|
||||
"usingComponents" : true,
|
||||
"optimization" : {
|
||||
"subPackages" : true //是否启用分包优化
|
||||
},
|
||||
"lazyCodeLoading" : "requiredComponents"
|
||||
"lazyCodeLoading": "requiredComponents"
|
||||
},
|
||||
"mp-alipay": {
|
||||
"usingComponents": true
|
||||
},
|
||||
"mp-baidu": {
|
||||
"usingComponents": true
|
||||
},
|
||||
"mp-toutiao": {
|
||||
"appid": "tt5ff52948c0c236df01",
|
||||
"usingComponents": true,
|
||||
"setting": {
|
||||
"minified": true
|
||||
},
|
||||
"mp-alipay" : {
|
||||
"usingComponents" : true
|
||||
},
|
||||
"mp-baidu" : {
|
||||
"usingComponents" : true
|
||||
},
|
||||
"mp-toutiao" : {
|
||||
"usingComponents" : true,
|
||||
"setting" : {
|
||||
"minified" : true
|
||||
}
|
||||
},
|
||||
"uniStatistics" : {
|
||||
"enable" : false
|
||||
},
|
||||
"vueVersion" : "3"
|
||||
"permissions": {
|
||||
"writePhotosAlbum": true,
|
||||
"photos": {
|
||||
"desc": "你的应用使用照片的目的描述"
|
||||
},
|
||||
"camera": {
|
||||
"desc": "你的应用使用摄像头的目的描述"
|
||||
}
|
||||
}
|
||||
},
|
||||
"uniStatistics": {
|
||||
"enable": false
|
||||
},
|
||||
"vueVersion": "3"
|
||||
}
|
||||
|
|
|
@ -122,9 +122,7 @@
|
|||
]
|
||||
},
|
||||
"permissions": {
|
||||
"scope.userLocation": true,
|
||||
"scope.userInfo": true,
|
||||
"scope.snsapi_base": true
|
||||
"scope.writePhotosAlbum": true
|
||||
},
|
||||
"pageOrientation": "auto",
|
||||
"globalStyle": {
|
||||
|
|
|
@ -80,7 +80,7 @@
|
|||
|
||||
<view class="other">
|
||||
<view>其他问题请咨询客服电话</view>
|
||||
<view>15150231777</view>
|
||||
<view><text @click="callNumber('15150231777')" class="active">15150231777 欢迎咨询</text></view>
|
||||
</view>
|
||||
</uni-card>
|
||||
</template>
|
||||
|
@ -180,6 +180,28 @@ const handleClick = (item: any) => {
|
|||
url: item.url, // 要跳转到的页面路径
|
||||
});
|
||||
};
|
||||
|
||||
const callNumber = (number) => {
|
||||
// 判断是否为移动端
|
||||
if (
|
||||
uni.getSystemInfoSync().platform === "android" ||
|
||||
uni.getSystemInfoSync().platform === "ios"
|
||||
) {
|
||||
// 在移动端使用内置拨号程序进行拨号
|
||||
uni.makePhoneCall({
|
||||
phoneNumber: number, // 电话号码
|
||||
success: function () {
|
||||
console.log("拨号成功");
|
||||
},
|
||||
fail: function (err) {
|
||||
console.error("拨号失败:", err);
|
||||
},
|
||||
});
|
||||
} else {
|
||||
// 在桌面端或者其他平台,可以直接使用window.open打开拨号链接
|
||||
window.open("tel:" + number);
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
@ -289,6 +311,9 @@ const handleClick = (item: any) => {
|
|||
text-align: center;
|
||||
margin-top: 50rpx;
|
||||
margin-bottom: 50rpx;
|
||||
.active {
|
||||
color: $u-primary;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -21,7 +21,9 @@
|
|||
<view>主营业务:{{ item.business }}</view>
|
||||
<view>货场名称:{{ item.name }}</view>
|
||||
<view>货场地址:{{ item.address }}</view>
|
||||
<view>联系电话:{{ item.phone }}</view>
|
||||
<view
|
||||
>联系电话:{{item.owner}} <text @click="callNumber(item.phone)" class="active">{{ item.phone }} 欢迎询价</text></view
|
||||
>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
@ -49,10 +51,12 @@
|
|||
<view class="mt-30 mb-30" style="width: 60%">
|
||||
<view
|
||||
><u-button type="primary" shape="circle" @click="handleJoin"
|
||||
>我要加入</u-button
|
||||
>加入爱梵达</u-button
|
||||
></view
|
||||
>
|
||||
|
||||
</view>
|
||||
<view class="mt-30 mb-30">爱梵达智能过磅系统,提升您的经营效率</view>
|
||||
</uni-grid>
|
||||
</view>
|
||||
</uni-card>
|
||||
|
@ -75,7 +79,8 @@ const list = ref([
|
|||
"长期回收废钢(轻一、轻二、轻三、重废、钢板料等)、废纸、泡沫、塑料等,量大价优,欢迎来电咨询。",
|
||||
name: "在生万有-中悦犇站",
|
||||
address: "上海市奉贤区川南奉公路8598号",
|
||||
phone: "刘女士 13341778368",
|
||||
owner: '刘先生',
|
||||
phone: "13651779998",
|
||||
},
|
||||
{
|
||||
path: "f2.png",
|
||||
|
@ -83,7 +88,8 @@ const list = ref([
|
|||
"长期回收重废、中废、轻废、小废、岩棉板、花盒等,量大价优,欢迎来电咨询。",
|
||||
name: "上海宽钢公司",
|
||||
address: "上海市宝山区兰岗路2号门",
|
||||
phone: "李女士 13601647155",
|
||||
owner: '李女士',
|
||||
phone: "13601647155",
|
||||
},
|
||||
]);
|
||||
|
||||
|
@ -115,6 +121,28 @@ const handleJoin = () => {
|
|||
url: "/pagesScrapSteel/registration", // 要跳转到的页面路径
|
||||
});
|
||||
};
|
||||
|
||||
const callNumber = (number) => {
|
||||
// 判断是否为移动端
|
||||
if (
|
||||
uni.getSystemInfoSync().platform === "android" ||
|
||||
uni.getSystemInfoSync().platform === "ios"
|
||||
) {
|
||||
// 在移动端使用内置拨号程序进行拨号
|
||||
uni.makePhoneCall({
|
||||
phoneNumber: number, // 电话号码
|
||||
success: function () {
|
||||
console.log("拨号成功");
|
||||
},
|
||||
fail: function (err) {
|
||||
console.error("拨号失败:", err);
|
||||
},
|
||||
});
|
||||
} else {
|
||||
// 在桌面端或者其他平台,可以直接使用window.open打开拨号链接
|
||||
window.open("tel:" + number);
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
@ -134,6 +162,9 @@ const handleJoin = () => {
|
|||
color: #000000;
|
||||
line-height: 42rpx;
|
||||
padding: 0px 10px 10px 10px;
|
||||
.active {
|
||||
color: $u-primary;
|
||||
}
|
||||
}
|
||||
}
|
||||
> view + view {
|
||||
|
|
|
@ -65,7 +65,7 @@
|
|||
<view class="btn-box-fix-btn">
|
||||
<view
|
||||
><u-button type="primary" shape="circle" @click="save"
|
||||
>提交试用</u-button
|
||||
>提交申请</u-button
|
||||
></view
|
||||
>
|
||||
</view>
|
||||
|
|
|
@ -69,7 +69,7 @@
|
|||
|
||||
<view class="other">
|
||||
<view>其他问题请咨询客服电话</view>
|
||||
<view>15150231777</view>
|
||||
<view><text @click="callNumber('15150231777')" class="active">15150231777 欢迎咨询</text></view>
|
||||
</view>
|
||||
</uni-card>
|
||||
</template>
|
||||
|
@ -176,6 +176,28 @@ const handleClick = (item: any) => {
|
|||
url: item.url, // 要跳转到的页面路径
|
||||
});
|
||||
};
|
||||
|
||||
const callNumber = (number) => {
|
||||
// 判断是否为移动端
|
||||
if (
|
||||
uni.getSystemInfoSync().platform === "android" ||
|
||||
uni.getSystemInfoSync().platform === "ios"
|
||||
) {
|
||||
// 在移动端使用内置拨号程序进行拨号
|
||||
uni.makePhoneCall({
|
||||
phoneNumber: number, // 电话号码
|
||||
success: function () {
|
||||
console.log("拨号成功");
|
||||
},
|
||||
fail: function (err) {
|
||||
console.error("拨号失败:", err);
|
||||
},
|
||||
});
|
||||
} else {
|
||||
// 在桌面端或者其他平台,可以直接使用window.open打开拨号链接
|
||||
window.open("tel:" + number);
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
@ -242,6 +264,9 @@ const handleClick = (item: any) => {
|
|||
text-align: center;
|
||||
margin-top: 50rpx;
|
||||
margin-bottom: 50rpx;
|
||||
.active {
|
||||
color: $u-primary;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -31,7 +31,11 @@
|
|||
:customStyle="{}"
|
||||
border="none"
|
||||
:disabled="item.disabled"
|
||||
:type="['contactInfo', 'curbWeight'].indexOf(item.key) > -1 ? 'number' : 'text'"
|
||||
:type="
|
||||
['contactInfo', 'curbWeight'].indexOf(item.key) > -1
|
||||
? 'number'
|
||||
: 'text'
|
||||
"
|
||||
>
|
||||
<template #suffix>
|
||||
<text v-if="item.unit">
|
||||
|
@ -282,7 +286,6 @@ const contrlModalParams = reactive<any>({
|
|||
},
|
||||
});
|
||||
|
||||
|
||||
const handleSelect = (key: string, v: any) => {
|
||||
contrlModalParams[key].isShow = false;
|
||||
if (key === "vehicleType") {
|
||||
|
@ -295,28 +298,29 @@ const handleSelect = (key: string, v: any) => {
|
|||
};
|
||||
// 授权
|
||||
const handleUpload = () => {
|
||||
upload();
|
||||
// uni.getSetting({success(res){
|
||||
// if(!res.authSetting['scope.userInfo']) {
|
||||
// uni.showModal({
|
||||
// title:'提示',
|
||||
// content:'授权后继续操作',
|
||||
// showCancel:false,
|
||||
// confirmText:'同意',
|
||||
// cancelText:'',
|
||||
// success:(res)=>{
|
||||
// if(res.confirm) {
|
||||
// uni.openSetting({success: res => {
|
||||
// debugger
|
||||
// if(res.authSetting['scope.userInfo']) {
|
||||
// upload()
|
||||
// }
|
||||
// }})
|
||||
// }
|
||||
// },
|
||||
// })
|
||||
// }
|
||||
// }})
|
||||
upload()
|
||||
// uni.authorize({
|
||||
// scope: "scope.writePhotosAlbum",
|
||||
// success() {
|
||||
// console.log("授权成功");
|
||||
// // 用户同意授权后,可以执行相关上传文件的操作
|
||||
// },
|
||||
// fail() {
|
||||
// console.log("用户拒绝授权");
|
||||
// // 引导用户到设置中开启权限
|
||||
// if (uni.getSystemInfoSync().platform === "android") {
|
||||
// uni.showModal({
|
||||
// title: "提示",
|
||||
// content: "此功能需要访问您的相册,请在设置中允许访问相册",
|
||||
// success: function (modalRes) {
|
||||
// if (modalRes.confirm) {
|
||||
// uni.openSetting();
|
||||
// }
|
||||
// },
|
||||
// });
|
||||
// }
|
||||
// },
|
||||
// });
|
||||
};
|
||||
// 上传
|
||||
const upload = () => {
|
||||
|
|
|
@ -31,7 +31,9 @@
|
|||
:customStyle="{}"
|
||||
border="none"
|
||||
:disabled="item.disabled"
|
||||
:disabledColor="'#ffffff'"
|
||||
:type="['contactInfo'].indexOf(item.key) > -1 ? 'number' : 'text'"
|
||||
|
||||
>
|
||||
<template #suffix>
|
||||
<text v-if="item.unit">
|
||||
|
@ -81,13 +83,26 @@
|
|||
:closeOnClickAction="true"
|
||||
></u-action-sheet>
|
||||
</block>
|
||||
|
||||
<!-- 车牌号 -->
|
||||
<CarNoDialog
|
||||
:show="showDialog.showCarNo"
|
||||
@handleDialog="(v:boolean) => {handleDialog('showCarNo', v)}"
|
||||
@changeCarNo="changeCarNo"
|
||||
ref="carNoRef"
|
||||
></CarNoDialog>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import CarNoDialog from "@/components/Dialog/CarNoDialog.vue";
|
||||
import { VehicleApi, UserApi } from "@/services";
|
||||
import pinia from "@/store";
|
||||
import { useMemberStore } from "@/store/index";
|
||||
const store = useMemberStore(pinia);
|
||||
// 供应商选择
|
||||
const showDialog = <any>reactive({
|
||||
showCarNo: false,
|
||||
});
|
||||
const model1 = reactive<any>({
|
||||
formData: {},
|
||||
});
|
||||
|
@ -116,6 +131,10 @@ const formAttrList = reactive<any>([
|
|||
type: "input",
|
||||
required: true,
|
||||
unit: "",
|
||||
disabled: true,
|
||||
fn: () => {
|
||||
showDialog.showCarNo = true;
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "所在地",
|
||||
|
@ -225,6 +244,15 @@ const startSave = () => {
|
|||
}
|
||||
});
|
||||
};
|
||||
|
||||
const handleDialog = (key: string, v: boolean) => {
|
||||
showDialog[key] = v;
|
||||
};
|
||||
|
||||
const changeCarNo = (plate: string) => {
|
||||
if (plate.length >= 7) model1.formData.licensePlate = plate;
|
||||
showDialog.showCarNo = false;
|
||||
};
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
::v-deep .uni-card__content {
|
||||
|
|
Loading…
Reference in New Issue