|
@@ -1,50 +1,97 @@
|
|
import Vue from 'vue'
|
|
import Vue from 'vue'
|
|
-import App from './App'
|
|
|
|
-//import MyCommon from '@/components/Common.vue'
|
|
|
|
-//import CarLoading from '@/components/Loading.vue'
|
|
|
|
-import getOpenId from './utils/init.js'
|
|
|
|
-getOpenId.init()
|
|
|
|
-
|
|
|
|
-import mixin from './utils/mixin.js'
|
|
|
|
-
|
|
|
|
-Vue.config.ignoredElements.push("wx-open-subscribe") ;
|
|
|
|
-Vue.prototype.carhelp=mixin
|
|
|
|
|
|
+import App from './App'
|
|
|
|
+//import MyCommon from '@/components/Common.vue'
|
|
|
|
+//import CarLoading from '@/components/Loading.vue'
|
|
|
|
+import getOpenId from './utils/init.js'
|
|
|
|
+getOpenId.init()
|
|
|
|
+
|
|
|
|
+import mixin from './utils/mixin.js'
|
|
|
|
+
|
|
|
|
+Vue.config.ignoredElements.push("wx-open-subscribe");
|
|
|
|
+Vue.prototype.carhelp = mixin
|
|
// 先运行yarn 初始化
|
|
// 先运行yarn 初始化
|
|
-import Vconsole from 'vconsole'
|
|
|
|
- //import './router' // 引入路由
|
|
|
|
-import router from './bobo-router'
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-// main.js
|
|
|
|
-// 先运行yarn 初始化
|
|
|
|
-import uView from "uview-ui";
|
|
|
|
-Vue.use(uView);
|
|
|
|
-
|
|
|
|
|
|
+import Vconsole from 'vconsole'
|
|
|
|
+//import './router' // 引入路由
|
|
|
|
+import router from './bobo-router'
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+// main.js
|
|
|
|
+// 先运行yarn 初始化
|
|
|
|
+import uView from "uview-ui";
|
|
|
|
+Vue.use(uView);
|
|
|
|
+
|
|
Vue.config.productionTip = false
|
|
Vue.config.productionTip = false
|
|
-App.mpType = 'app'
|
|
|
|
-
|
|
|
|
-const app = new Vue({
|
|
|
|
-
|
|
|
|
- ...App
|
|
|
|
-})
|
|
|
|
-//Vue.component('my-common',MyCommon)
|
|
|
|
-//Vue.component('car-loading',CarLoading)
|
|
|
|
-//Vue.use(mixin)
|
|
|
|
-Vue.mixin({
|
|
|
|
- onLoad( option){
|
|
|
|
- if (option.test == 'test') {
|
|
|
|
- let vConsole = new Vconsole()
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- } ,methods:{
|
|
|
|
-
|
|
|
|
- gotoUrl(url){
|
|
|
|
- uni.navigateTo({
|
|
|
|
- url:"/"+url
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
-})
|
|
|
|
|
|
+App.mpType = 'app'
|
|
|
|
+
|
|
|
|
+const app = new Vue({
|
|
|
|
+
|
|
|
|
+ ...App
|
|
|
|
+})
|
|
|
|
+//Vue.component('my-common',MyCommon)
|
|
|
|
+//Vue.component('car-loading',CarLoading)
|
|
|
|
+//Vue.use(mixin)
|
|
|
|
+Vue.mixin({
|
|
|
|
+ updated: function() {
|
|
|
|
+ this.$nextTick(function() {
|
|
|
|
+ if (false) {
|
|
|
|
+ // 仅在整个视图都被重新渲染之后才会运行的代码
|
|
|
|
+ var list = document.getElementsByClassName("oldTextjp")
|
|
|
|
+ var relist = {
|
|
|
|
+ oldNum1: "font-size:[num]px !important ;font-weight:bold !important;",
|
|
|
|
+ oldNum2: "line-height:[num]px ;",
|
|
|
|
+ oldNum3: "width:[num]px;",
|
|
|
|
+ oldNum4: "height:[num]px; ",
|
|
|
|
+ };
|
|
|
|
|
|
|
|
+ for (var i = 0; i < list.length; i++) {
|
|
|
|
+ var str = list[i].getAttribute("oldstyle");
|
|
|
|
+ if(str){
|
|
|
|
+ list[i].style = str+";font-weight:bold !important;"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ for (var i = 0; i < list.length; i++) {
|
|
|
|
+ var str = ""
|
|
|
|
+
|
|
|
|
+ for (var j in relist) {
|
|
|
|
+
|
|
|
|
+ var num = list[i].getAttribute(j);
|
|
|
|
+
|
|
|
|
+ if (num) {
|
|
|
|
+ var k = relist[j]
|
|
|
|
+ k = k.replaceAll("[num]", num)
|
|
|
|
+ str += k + ";";
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ list[i].style = str
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ onReady() {
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ },
|
|
|
|
+ onLoad(option) {
|
|
|
|
+ if (option.test == 'test') {
|
|
|
|
+ let vConsole = new Vconsole()
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ },
|
|
|
|
+ methods: {
|
|
|
|
+
|
|
|
|
+ gotoUrl(url) {
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url: "/" + url
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+})
|
|
|
|
+
|
|
|
|
|
|
app.$mount()
|
|
app.$mount()
|