This commit is contained in:
parent
6229949c1a
commit
fb6942abbd
2
main.js
2
main.js
|
|
@ -27,7 +27,7 @@ export function createApp() {
|
||||||
const systemInfo = uni.getStorageSync('systemInfo') || {}
|
const systemInfo = uni.getStorageSync('systemInfo') || {}
|
||||||
app.config.globalProperties.$system = systemInfo.platform == 'ios' ? 'iOS' : 'Android'
|
app.config.globalProperties.$system = systemInfo.platform == 'ios' ? 'iOS' : 'Android'
|
||||||
app.config.globalProperties.$systemInfo = systemInfo
|
app.config.globalProperties.$systemInfo = systemInfo
|
||||||
uni.setStorageSync('version', '1.0.3.sp8')
|
uni.setStorageSync('version', '1.0.3.sp9')
|
||||||
app.config.globalProperties.$version = uni.getStorageSync('version')
|
app.config.globalProperties.$version = uni.getStorageSync('version')
|
||||||
|
|
||||||
app.use(globalMethods);
|
app.use(globalMethods);
|
||||||
|
|
|
||||||
|
|
@ -33,8 +33,6 @@
|
||||||
let callLogList = ref();
|
let callLogList = ref();
|
||||||
onLoad((option) => {
|
onLoad((option) => {
|
||||||
data.type=option.type
|
data.type=option.type
|
||||||
|
|
||||||
|
|
||||||
})
|
})
|
||||||
onReady(() => {
|
onReady(() => {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,10 @@ import {
|
||||||
util
|
util
|
||||||
} from '@/utils/common.js';
|
} from '@/utils/common.js';
|
||||||
|
|
||||||
const { appContext, proxy } = getCurrentInstance();
|
const {
|
||||||
|
appContext,
|
||||||
|
proxy
|
||||||
|
} = getCurrentInstance();
|
||||||
// 列表
|
// 列表
|
||||||
const source = ref([{
|
const source = ref([{
|
||||||
name: '苹果',
|
name: '苹果',
|
||||||
|
|
@ -100,17 +103,16 @@ onLoad((options) => {
|
||||||
if (options.type) {
|
if (options.type) {
|
||||||
data.type = options.type
|
data.type = options.type
|
||||||
}
|
}
|
||||||
})
|
|
||||||
|
|
||||||
function goPage(url) {
|
|
||||||
|
|
||||||
if (url) {
|
|
||||||
proxy.$apiUserEvent('all', {
|
proxy.$apiUserEvent('all', {
|
||||||
type: 'event',
|
type: 'event',
|
||||||
key: data.type == 'message' ? 'message' : 'call-log',
|
key: data.type == 'message' ? 'message' : 'call-log',
|
||||||
prefix: '.uni.other.',
|
prefix: '.uni.other.',
|
||||||
value: data.type == 'message' ? '短信' : "通话"
|
value: data.type == 'message' ? '短信' : "通话"
|
||||||
})
|
})
|
||||||
|
})
|
||||||
|
|
||||||
|
function goPage(url) {
|
||||||
|
if (url) {
|
||||||
util.goPage(url)
|
util.goPage(url)
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue