修复小程序运行报错bug
This commit is contained in:
parent
03a7c73f90
commit
3dea396d0d
3
App.vue
3
App.vue
|
|
@ -3,10 +3,7 @@
|
||||||
App.vue本身不是页面,这里不能编写视图元素,也就是没有<template>
|
App.vue本身不是页面,这里不能编写视图元素,也就是没有<template>
|
||||||
-->
|
-->
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref, reactive } from 'vue';
|
|
||||||
import appConfig from '@/config/appConfig.js';
|
|
||||||
import { onLaunch } from '@dcloudio/uni-app';
|
import { onLaunch } from '@dcloudio/uni-app';
|
||||||
import { checkCurrVersion, getExtStoreId } from '@/commons/utils/versionManage.js';
|
|
||||||
|
|
||||||
onLaunch(() => {
|
onLaunch(() => {
|
||||||
// console.log(uni.getExtConfigSync(),'uni.getExtConfigSync()')
|
// console.log(uni.getExtConfigSync(),'uni.getExtConfigSync()')
|
||||||
|
|
|
||||||
|
|
@ -99,9 +99,6 @@
|
||||||
import {
|
import {
|
||||||
formatPrice
|
formatPrice
|
||||||
} from "@/commons/utils/format.js";
|
} from "@/commons/utils/format.js";
|
||||||
import {
|
|
||||||
TRUE
|
|
||||||
} from 'sass';
|
|
||||||
|
|
||||||
function priceFormat(item, key, val) {
|
function priceFormat(item, key, val) {
|
||||||
let min = 0;
|
let min = 0;
|
||||||
|
|
|
||||||
|
|
@ -115,12 +115,12 @@
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
* {
|
// * {
|
||||||
padding: 0;
|
// padding: 0;
|
||||||
margin: 0;
|
// margin: 0;
|
||||||
text-decoration: none;
|
// text-decoration: none;
|
||||||
outline: none;
|
// outline: none;
|
||||||
}
|
// }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
16
pages.json
16
pages.json
|
|
@ -9,22 +9,6 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"pages": [
|
"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",
|
"pageId": "PAGES_INDEX",
|
||||||
"path": "pages/index/index",
|
"path": "pages/index/index",
|
||||||
|
|
|
||||||
|
|
@ -36,17 +36,12 @@
|
||||||
} from '@/http/apiManager.js';
|
} from '@/http/apiManager.js';
|
||||||
import go from '@/commons/utils/go.js';
|
import go from '@/commons/utils/go.js';
|
||||||
import Stats from './components/Stats.vue';
|
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 statistics from './components/statistics.vue'
|
||||||
import {
|
import {
|
||||||
onPullDownRefresh,
|
onPullDownRefresh,
|
||||||
onLoad
|
onLoad
|
||||||
} from '@dcloudio/uni-app';
|
} from '@dcloudio/uni-app';
|
||||||
import storageManage from '@/commons/utils/storageManage.js';
|
import storageManage from '@/commons/utils/storageManage.js';
|
||||||
import {
|
|
||||||
$adList
|
|
||||||
} from '@/http/apiManager.js';
|
|
||||||
import {
|
import {
|
||||||
hasPermission
|
hasPermission
|
||||||
} from '@/commons/utils/hasPermission.js'
|
} from '@/commons/utils/hasPermission.js'
|
||||||
|
|
@ -256,7 +251,6 @@
|
||||||
navList.splice(index, 1);
|
navList.splice(index, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const statsRef = ref();
|
|
||||||
|
|
||||||
const vdata = reactive({
|
const vdata = reactive({
|
||||||
noticeList: [], // 公告列表
|
noticeList: [], // 公告列表
|
||||||
|
|
|
||||||
|
|
@ -191,12 +191,6 @@
|
||||||
const loginFormRef = ref()
|
const loginFormRef = ref()
|
||||||
const envChangeTipsRef = ref()
|
const envChangeTipsRef = ref()
|
||||||
const refAgr = ref()
|
const refAgr = ref()
|
||||||
// #ifdef MP-WEIXIN
|
|
||||||
// 控制 音乐播放 和暂停
|
|
||||||
import {
|
|
||||||
getPushStatus
|
|
||||||
} from "@/commons/utils/pushmsg/wxTextToSpeach.js"
|
|
||||||
// #endif
|
|
||||||
const rules = {
|
const rules = {
|
||||||
merchantName: {
|
merchantName: {
|
||||||
rules: [formUtil.rules.requiredInputShowToast('商户号')],
|
rules: [formUtil.rules.requiredInputShowToast('商户号')],
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue