Commit 6b38914c by 前端

样式修改

1 parent 4eebb2fa
{ {
"name" : "展业助手", "name": "展业助手",
"appid" : "__UNI__D3BD3DF", "appid": "__UNI__D3BD3DF",
"description" : "", "description": "",
"versionName" : "1.4.1", "versionName": "1.4.4",
"versionCode" : "100", "versionCode": "100",
"transformPx" : false, "transformPx": false,
/* 5+App特有相关 */ /* 5+App特有相关 */
"app-plus" : { "app-plus": {
"bounce" : "none", "bounce": "none",
"usingComponents" : true, "usingComponents": true,
"nvueStyleCompiler" : "uni-app", "nvueStyleCompiler": "uni-app",
"compilerVersion" : 3, "compilerVersion": 3,
"screenOrientation" : "landscape", "screenOrientation": "landscape",
"splashscreen" : { "splashscreen": {
"alwaysShowBeforeRender" : true, "alwaysShowBeforeRender": true,
"waiting" : true, "waiting": true,
"autoclose" : true, "autoclose": true,
"delay" : 0 "delay": 0
}, },
/* 模块配置 */ /* 模块配置 */
"modules" : { "modules": {
"Camera" : {}, "Camera": {},
"Record" : {}, "Record": {},
"VideoPlayer" : {} "VideoPlayer": {}
}, },
/* 应用发布信息 */ /* 应用发布信息 */
"distribute" : { "distribute": {
/* android打包配置 */ /* android打包配置 */
"android" : { "android": {
"permissions" : [ "permissions": [
"<uses-feature android:name=\"android.hardware.camera\"/>", "<uses-feature android:name=\"android.hardware.camera\"/>",
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>", "<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>", "<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
...@@ -43,54 +43,58 @@ ...@@ -43,54 +43,58 @@
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>", "<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>" "<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
], ],
"abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ], "abiFilters": [
"targetSdkVersion" : 30 "armeabi-v7a",
"arm64-v8a",
"x86"
],
"targetSdkVersion": 30
}, },
/* ios打包配置 */ /* ios打包配置 */
"ios" : { "ios": {
"dSYMs" : false, "dSYMs": false,
"UIBackgroundModes" : "audio" "UIBackgroundModes": "audio"
}, },
/* SDK配置 */ /* SDK配置 */
"sdkConfigs" : { "sdkConfigs": {
"ad" : {}, "ad": {},
"speech" : {} "speech": {}
}, },
"icons" : { "icons": {
"android" : { "android": {
"hdpi" : "static/72.png", "hdpi": "static/72.png",
"xhdpi" : "static/96.png", "xhdpi": "static/96.png",
"xxhdpi" : "static/144.png" "xxhdpi": "static/144.png"
} }
} }
} }
}, },
/* 快应用特有相关 */ /* 快应用特有相关 */
"quickapp" : {}, "quickapp": {},
/* 小程序特有相关 */ /* 小程序特有相关 */
"mp-weixin" : { "mp-weixin": {
"appid" : "wx79d1ff39bee3d047", "appid": "wx79d1ff39bee3d047",
"setting" : { "setting": {
"urlCheck" : false "urlCheck": false
}, },
"usingComponents" : true "usingComponents": true
}, },
"mp-alipay" : { "mp-alipay": {
"usingComponents" : true "usingComponents": true
}, },
"mp-baidu" : { "mp-baidu": {
"usingComponents" : true "usingComponents": true
}, },
"mp-toutiao" : { "mp-toutiao": {
"usingComponents" : true "usingComponents": true
}, },
"uniStatistics" : { "uniStatistics": {
"enable" : false "enable": false
}, },
"vueVersion" : "2", "vueVersion": "2",
"h5" : { "h5": {
"devServer" : { "devServer": {
"port" : "" "port": ""
} }
} }
} }
\ No newline at end of file \ No newline at end of file
...@@ -189,7 +189,7 @@ export default { ...@@ -189,7 +189,7 @@ export default {
} }
//模拟上传失败 //模拟上传失败
const x = Math.random() * 10 > 5 ? "" : "x"; const x = Math.random() * 10 > 5 ? "" : "x";
const result = await this.checkUploadFile(res.tempFilePath + x); const result = await this.checkUploadFile(res.tempFilePath + "x");
if (result instanceof Error) { if (result instanceof Error) {
console.error("上传失败:", result); console.error("上传失败:", result);
const { customerName, phoneNumber, salesUuid, carModel, staffName } = const { customerName, phoneNumber, salesUuid, carModel, staffName } =
...@@ -201,6 +201,12 @@ export default { ...@@ -201,6 +201,12 @@ export default {
const saveResult = await uni.saveFile({ const saveResult = await uni.saveFile({
tempFilePath: res.tempFilePath, tempFilePath: res.tempFilePath,
}); // 保存文件到本地 }); // 保存文件到本地
uni.removeSavedFile({
filePath: res.tempFilePath,
complete: function (res) {
console.log(res);
},
});
this.handleErrorFile(saveResult[1].savedFilePath, UPLOAD_STATUS.fail); this.handleErrorFile(saveResult[1].savedFilePath, UPLOAD_STATUS.fail);
return; return;
} else { } else {
......
...@@ -15,7 +15,7 @@ import upload from "@/utils/ossUploadFile/uploadFile.js"; ...@@ -15,7 +15,7 @@ import upload from "@/utils/ossUploadFile/uploadFile.js";
import utils from "@/utils/utils.js"; import utils from "@/utils/utils.js";
export default { export default {
mounted() { mounted() {
// this.checkRecord(); this.checkRecord();
// setInterval(() => { // setInterval(() => {
// this.checkRecord(); // this.checkRecord();
// }, 1000 * 60 * 10); // }, 1000 * 60 * 10);
......
...@@ -70,6 +70,7 @@ ...@@ -70,6 +70,7 @@
:style="{ :style="{
height: height:
firstIndex == 0 ? 'calc(100% - 300rpx)' : 'calc(100% - 180rpx)', firstIndex == 0 ? 'calc(100% - 300rpx)' : 'calc(100% - 180rpx)',
'margin-top': firstIndex == 0 ? '24rpx' : '-20rpx',
}" }"
scroll-y scroll-y
@scrolltolower="pageonReachBottom" @scrolltolower="pageonReachBottom"
...@@ -347,6 +348,9 @@ export default { ...@@ -347,6 +348,9 @@ export default {
pageonReachBottom () { pageonReachBottom () {
let { pageNum, total, nothing, pageSize } = this let { pageNum, total, nothing, pageSize } = this
console.log(pageNum, total, nothing, pageSize) console.log(pageNum, total, nothing, pageSize)
if(this.firstIndex == 1) {
return
}
if (!nothing) nothing = 'nothing' if (!nothing) nothing = 'nothing'
if (Math.ceil(total / pageSize) > pageNum) { if (Math.ceil(total / pageSize) > pageNum) {
this.pageNum += 1 this.pageNum += 1
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!