Quellcode durchsuchen

优化加载缓慢

master
yangteng vor 8 Monaten
Ursprung
Commit
2b1fdfb0a0

+ 1
- 1
pages.json Datei anzeigen

@@ -1851,7 +1851,7 @@
"root": "subpackage/carPark",
"plugins": {
"issuer-plugin": {
"version": "dev-f3fef32241dbfbe13a7c1cf1b42da8cc",
"version": "dev-a0003b1a405b7995827e5ab6ebef3caa",
// "version": "1.0.2",
"provider": "wxa2d9acdd1054e69b"
}

+ 17
- 13
pages/index/index.vue Datei anzeigen

@@ -165,7 +165,7 @@
} from "vue";
import {
onPageScroll,
onLoad, onReachBottom
onLoad, onReachBottom,onReady
} from "@dcloudio/uni-app";
import flowPathList from "./components/flow-path-list.vue";
import filter from '@/components/filter/filter.vue';
@@ -278,9 +278,12 @@
onLoad((options) => {
console.log("wechatSignNo",options)
getInfo();
quanKeyAction().then((val : any) => {
setItem('key', val.dictTypeAndItem)
})
})
// 页面初次渲染完成时触发
onReady(()=>{
setTimeout(()=>{
quanKeyAction()
},5000)
})
onMounted(() => {
uni.getSystemInfo({
@@ -330,7 +333,7 @@
commonQuestion();
}
};
//全量枚举值查询
// //全量枚举值查询
const quanKeyAction = () => {
var data = {};
const options = {
@@ -339,14 +342,15 @@
method: "POST",
showLoading: true,
};

return new Promise(async (resolve, reject) => {
const res = await request(queryKey, options);
const data = stringToJson(res.bizContent);
resolve(data);
}).catch((error) => {
reject(error);
});
request(queryKey, options).then((res) => {
console.log(stringToJson(res.bizContent));
const data = stringToJson(res.bizContent)
console.log("轮播图", data)
setItem('key', data.dictTypeAndItem)
})
.catch((err) => {
console.log(err);
});

}


+ 1
- 0
subpackage/after-sale/deviceInfo/deviceInfo.vue Datei anzeigen

@@ -226,6 +226,7 @@
console.log(cmdArr);
console.log(bluetoothUtil);
bluetoothUtil.transCmd(cmdArr, '10', function(res) { //10:写卡 20:写OBU
console.log("5201",res)
let str = res[2].substring(res[2].length - 4, res[2].length); //判断是否为9000
let str3 = res[3].substring(res[3].length - 4, res[3].length); //判断是否为9000
if (str == "9000" || str3 == "9000") {

+ 1
- 1
subpackage/orders/order_payment.vue Datei anzeigen

@@ -92,7 +92,7 @@
type: 2,
data: {
orderId: state.orderId,
wxOpenid: data.openId,
wxOpenid: data.openId?data.openId:data.alipayUserId,
payType: val.payType
},
method: "POST",

Laden…
Abbrechen
Speichern