1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- import App from './App'
- import Vue from 'vue'
- import getOpenId from './apis/utils/init.js'
- //import './assets/font/font.css'
- // #ifdef MP-WEIXIN
-
- // #endif
- getOpenId.init()
- import mixin from './apis/utils/mixin.js'
- Vue.prototype.jphelp = mixin
- //import Vconsole from 'vconsole'
- //import uView from "uview-ui";
- import uView from '@/uni_modules/uview-ui'
- Vue.use(uView);
- import {
- newDate,
-
- } from '@/apis/utils'
- Vue.mixin({
- updated: function() {
-
- },
- onReady() {
- },
- onLoad(option) {
- if (option.test == 'test') {
- //let vConsole = new Vconsole()
- }
- var sz=this.jphelp.getInterval()
- if(sz){
- sz.forEach(item=>{
- clearInterval(item.id)
- })
- }
- this.jphelp.getIntervalClear()
-
- },
- onShow(){
-
- },
- onShareTimeline(){
- return {
- title: '智泊e家',
- path: '/pages/index/index' ,
- }
- },
- onShareAppMessage(res) {
- if (res.from === 'button') { // 来自页面内分享按钮
- //.log(res.target)
- }
- return {
- title: '智泊e家',
- path: '/pages/index/index'
- }
- },
- methods: {
- distanceN(distance){
- if(!distance){
- return ''
- }else if(distance*1000<50){
- return '小于50米'
- }else if(distance<1){
- return (distance*1000).toFixed(2)+'米'
- }else{
- return distance.toFixed(2)+'公里'
- }
- },
- gotoUrl(url,tab) {
- uni.navigateTo({
- url: "/" + url
- })
-
- }
- }
- })
- Vue.config.productionTip = false
- App.mpType = 'app'
- const app = new Vue({
- ...App
- })
- app.$mount()
|