From 0ed71d3bcda96eced38c17c0ac79cc5c561abfdc Mon Sep 17 00:00:00 2001 From: admin <> Date: Fri, 6 Sep 2024 14:37:50 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E5=84=AA=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Dialog/CarNoDialog.vue | 36 +++++ src/components/Layout/index.vue | 2 +- src/manifest.json | 208 ++++++++++++++------------ src/pages.json | 4 +- src/pagesBattery/index.vue | 27 +++- src/pagesScrapSteel/index.vue | 39 ++++- src/pagesScrapSteel/registration.vue | 2 +- src/pagesVehicle/index.vue | 27 +++- src/pagesVehicle/inquiry.vue | 52 ++++--- src/pagesVehicle/registration.vue | 28 ++++ 10 files changed, 293 insertions(+), 132 deletions(-) create mode 100644 src/components/Dialog/CarNoDialog.vue diff --git a/src/components/Dialog/CarNoDialog.vue b/src/components/Dialog/CarNoDialog.vue new file mode 100644 index 0000000..db1b696 --- /dev/null +++ b/src/components/Dialog/CarNoDialog.vue @@ -0,0 +1,36 @@ + + + diff --git a/src/components/Layout/index.vue b/src/components/Layout/index.vue index 82ff66e..c29b901 100644 --- a/src/components/Layout/index.vue +++ b/src/components/Layout/index.vue @@ -10,7 +10,7 @@ ", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ] - }, - /* 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": [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ] + }, + /* 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" } diff --git a/src/pages.json b/src/pages.json index 05736cd..0727c16 100644 --- a/src/pages.json +++ b/src/pages.json @@ -122,9 +122,7 @@ ] }, "permissions": { - "scope.userLocation": true, - "scope.userInfo": true, - "scope.snsapi_base": true + "scope.writePhotosAlbum": true }, "pageOrientation": "auto", "globalStyle": { diff --git a/src/pagesBattery/index.vue b/src/pagesBattery/index.vue index df05d21..e08bd32 100644 --- a/src/pagesBattery/index.vue +++ b/src/pagesBattery/index.vue @@ -80,7 +80,7 @@ 其他问题请咨询客服电话 - 15150231777 + 15150231777  欢迎咨询 @@ -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); + } +}; diff --git a/src/pagesScrapSteel/index.vue b/src/pagesScrapSteel/index.vue index 23f6b44..655844f 100644 --- a/src/pagesScrapSteel/index.vue +++ b/src/pagesScrapSteel/index.vue @@ -21,7 +21,9 @@ 主营业务:{{ item.business }} 货场名称:{{ item.name }} 货场地址:{{ item.address }} - 联系电话:{{ item.phone }} + 联系电话:{{item.owner}}   {{ item.phone }}   欢迎询价 @@ -49,10 +51,12 @@ 我要加入加入爱梵达 + + 爱梵达智能过磅系统,提升您的经营效率 @@ -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); + } +}; diff --git a/src/pagesVehicle/inquiry.vue b/src/pagesVehicle/inquiry.vue index 5e72ee1..e1ae2a1 100644 --- a/src/pagesVehicle/inquiry.vue +++ b/src/pagesVehicle/inquiry.vue @@ -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' + " >