修复小程序运行报错bug

This commit is contained in:
YeMingfei666 2024-10-25 09:27:58 +08:00
parent 03a7c73f90
commit 3dea396d0d
6 changed files with 6 additions and 40 deletions

View File

@ -3,10 +3,7 @@
App.vue本身不是页面这里不能编写视图元素也就是没有<template>
-->
<script setup>
import { ref, reactive } from 'vue';
import appConfig from '@/config/appConfig.js';
import { onLaunch } from '@dcloudio/uni-app';
import { checkCurrVersion, getExtStoreId } from '@/commons/utils/versionManage.js';
onLaunch(() => {
// console.log(uni.getExtConfigSync(),'uni.getExtConfigSync()')

View File

@ -99,9 +99,6 @@
import {
formatPrice
} from "@/commons/utils/format.js";
import {
TRUE
} from 'sass';
function priceFormat(item, key, val) {
let min = 0;

View File

@ -115,12 +115,12 @@
}
</style>
<style lang="less" scoped>
* {
padding: 0;
margin: 0;
text-decoration: none;
outline: none;
}
// * {
// padding: 0;
// margin: 0;
// text-decoration: none;
// outline: none;
// }

View File

@ -9,22 +9,6 @@
}
},
"pages": [
// {
// "path": "pages/adStart/adStart",
// "style": {
// "navigationBarTitleText": "开屏广告",
// "navigationStyle": "custom"
// }
// },
// {
// "pageId": "PAGES_INDEX",
// "path": "pages/index/indexCopy",
// "style": {
// "navigationBarTitleText": "首页",
// "navigationStyle": "custom",
// "enablePullDownRefresh": true
// }
// },
{
"pageId": "PAGES_INDEX",
"path": "pages/index/index",

View File

@ -36,17 +36,12 @@
} from '@/http/apiManager.js';
import go from '@/commons/utils/go.js';
import Stats from './components/Stats.vue';
import registerPush from '@/commons/utils/pushmsg/registerPush.js';
import pushMsgManage from '@/commons/utils/pushmsg/pushMsgManage.js';
import statistics from './components/statistics.vue'
import {
onPullDownRefresh,
onLoad
} from '@dcloudio/uni-app';
import storageManage from '@/commons/utils/storageManage.js';
import {
$adList
} from '@/http/apiManager.js';
import {
hasPermission
} from '@/commons/utils/hasPermission.js'
@ -256,7 +251,6 @@
navList.splice(index, 1);
}
}
const statsRef = ref();
const vdata = reactive({
noticeList: [], //

View File

@ -191,12 +191,6 @@
const loginFormRef = ref()
const envChangeTipsRef = ref()
const refAgr = ref()
// #ifdef MP-WEIXIN
//
import {
getPushStatus
} from "@/commons/utils/pushmsg/wxTextToSpeach.js"
// #endif
const rules = {
merchantName: {
rules: [formUtil.rules.requiredInputShowToast('商户号')],