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(() => {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -17,160 +17,162 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import NavBar from '@/components/nav-bar/nav-bar.vue'
|
import NavBar from '@/components/nav-bar/nav-bar.vue'
|
||||||
import {
|
import {
|
||||||
ref,
|
ref,
|
||||||
reactive,
|
reactive,
|
||||||
getCurrentInstance
|
getCurrentInstance
|
||||||
} from 'vue'
|
} from 'vue'
|
||||||
import {
|
import {
|
||||||
onLoad
|
onLoad
|
||||||
} from "@dcloudio/uni-app";
|
} from "@dcloudio/uni-app";
|
||||||
import {
|
import {
|
||||||
util
|
util
|
||||||
} from '@/utils/common.js';
|
} from '@/utils/common.js';
|
||||||
|
|
||||||
const { appContext, proxy } = getCurrentInstance();
|
const {
|
||||||
// 列表
|
appContext,
|
||||||
const source = ref([{
|
proxy
|
||||||
name: '苹果',
|
} = getCurrentInstance();
|
||||||
color: {
|
// 列表
|
||||||
bgColor: '#F3EAFF',
|
const source = ref([{
|
||||||
lineColor: '#B78EF5',
|
name: '苹果',
|
||||||
buttonColor: '#BA8DFF',
|
color: {
|
||||||
},
|
bgColor: '#F3EAFF',
|
||||||
icon: 'iphone',
|
lineColor: '#B78EF5',
|
||||||
messageUrl: "/pages/message/list-index?phone=iphone",
|
buttonColor: '#BA8DFF',
|
||||||
callUrl: "/pages/call-log/call?type=ios"
|
},
|
||||||
},
|
icon: 'iphone',
|
||||||
{
|
messageUrl: "/pages/message/list-index?phone=iphone",
|
||||||
name: '华为',
|
callUrl: "/pages/call-log/call?type=ios"
|
||||||
color: {
|
},
|
||||||
bgColor: '#FFE9E9',
|
{
|
||||||
lineColor: '#FF6969',
|
name: '华为',
|
||||||
buttonColor: '#FB6767',
|
color: {
|
||||||
},
|
bgColor: '#FFE9E9',
|
||||||
icon: 'huawei',
|
lineColor: '#FF6969',
|
||||||
messageUrl: "/pages/message/list-index?phone=huawei",
|
buttonColor: '#FB6767',
|
||||||
callUrl: "/pages/call-log/call?type=huawei"
|
},
|
||||||
},
|
icon: 'huawei',
|
||||||
{
|
messageUrl: "/pages/message/list-index?phone=huawei",
|
||||||
name: '小米',
|
callUrl: "/pages/call-log/call?type=huawei"
|
||||||
color: {
|
},
|
||||||
bgColor: '#FFF0DD',
|
{
|
||||||
lineColor: '#FFA143',
|
name: '小米',
|
||||||
buttonColor: '#FFA64D',
|
color: {
|
||||||
},
|
bgColor: '#FFF0DD',
|
||||||
icon: 'mi',
|
lineColor: '#FFA143',
|
||||||
messageUrl: "/pages/message/list-index?phone=mi",
|
buttonColor: '#FFA64D',
|
||||||
callUrl: "/pages/call-log/call?type=xiaomi"
|
},
|
||||||
},
|
icon: 'mi',
|
||||||
{
|
messageUrl: "/pages/message/list-index?phone=mi",
|
||||||
name: 'oppo',
|
callUrl: "/pages/call-log/call?type=xiaomi"
|
||||||
color: {
|
},
|
||||||
bgColor: '#E0FFD9',
|
{
|
||||||
lineColor: '#56B745',
|
name: 'oppo',
|
||||||
buttonColor: '#5DCD49',
|
color: {
|
||||||
},
|
bgColor: '#E0FFD9',
|
||||||
icon: 'oppo',
|
lineColor: '#56B745',
|
||||||
messageUrl: "/pages/message/list-index?phone=oppo",
|
buttonColor: '#5DCD49',
|
||||||
callUrl: "/pages/call-log/call?type=oppo"
|
},
|
||||||
}, {
|
icon: 'oppo',
|
||||||
name: 'vivo',
|
messageUrl: "/pages/message/list-index?phone=oppo",
|
||||||
color: {
|
callUrl: "/pages/call-log/call?type=oppo"
|
||||||
bgColor: '#D4F4FF',
|
}, {
|
||||||
lineColor: '#52C2FF',
|
name: 'vivo',
|
||||||
buttonColor: '#50C1FE',
|
color: {
|
||||||
},
|
bgColor: '#D4F4FF',
|
||||||
icon: 'vivo',
|
lineColor: '#52C2FF',
|
||||||
messageUrl: "/pages/message/list-index?phone=vivo",
|
buttonColor: '#50C1FE',
|
||||||
callUrl: "/pages/call-log/call?type=vivo"
|
},
|
||||||
},
|
icon: 'vivo',
|
||||||
])
|
messageUrl: "/pages/message/list-index?phone=vivo",
|
||||||
|
callUrl: "/pages/call-log/call?type=vivo"
|
||||||
|
},
|
||||||
|
])
|
||||||
|
|
||||||
const data = reactive({
|
const data = reactive({
|
||||||
navBar: {
|
navBar: {
|
||||||
title: '选择机型',
|
title: '选择机型',
|
||||||
bgColor: '#F0F4F9',
|
bgColor: '#F0F4F9',
|
||||||
},
|
},
|
||||||
type: "message"
|
type: "message"
|
||||||
})
|
})
|
||||||
|
|
||||||
onLoad((options) => {
|
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' ? '短信' : "通话"
|
||||||
})
|
|
||||||
util.goPage(url)
|
|
||||||
} else {
|
|
||||||
uni.showToast({
|
|
||||||
title: '开发中',
|
|
||||||
icon: 'none'
|
|
||||||
})
|
})
|
||||||
|
})
|
||||||
|
|
||||||
|
function goPage(url) {
|
||||||
|
if (url) {
|
||||||
|
util.goPage(url)
|
||||||
|
} else {
|
||||||
|
uni.showToast({
|
||||||
|
title: '开发中',
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
@import '@/common/main.css';
|
@import '@/common/main.css';
|
||||||
</style>
|
</style>
|
||||||
<style lang="less">
|
<style lang="less">
|
||||||
.list-container {
|
.list-container {
|
||||||
background-color: #F0F4F9;
|
background-color: #F0F4F9;
|
||||||
padding: 24rpx 32rpx;
|
padding: 24rpx 32rpx;
|
||||||
}
|
|
||||||
|
|
||||||
.item {
|
|
||||||
width: 100%;
|
|
||||||
height: 188rpx;
|
|
||||||
border-radius: 24rpx;
|
|
||||||
margin-bottom: 24rpx;
|
|
||||||
padding: 40rpx 36rpx 24rpx 28rpx;
|
|
||||||
|
|
||||||
.content {
|
|
||||||
.logo {
|
|
||||||
width: 96rpx;
|
|
||||||
height: 96rpx;
|
|
||||||
flex-shrink: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.name {
|
|
||||||
margin-left: 32rpx;
|
|
||||||
color: #1A1A1A;
|
|
||||||
font-size: 36rpx;
|
|
||||||
font-weight: 500;
|
|
||||||
}
|
|
||||||
|
|
||||||
.right-button {
|
|
||||||
width: 140rpx;
|
|
||||||
height: 64rpx;
|
|
||||||
border-radius: 16rpx;
|
|
||||||
color: #ffffff;
|
|
||||||
font-size: 28rpx;
|
|
||||||
line-height: 64rpx !important;
|
|
||||||
text-align: center;
|
|
||||||
// display: flex;
|
|
||||||
// align-items: center;
|
|
||||||
// justify-content: center;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.line {
|
.item {
|
||||||
width: 100rpx;
|
width: 100%;
|
||||||
height: 8rpx;
|
height: 188rpx;
|
||||||
filter: blur(5px);
|
border-radius: 24rpx;
|
||||||
opacity: 0.5;
|
margin-bottom: 24rpx;
|
||||||
margin-top: 4rpx;
|
padding: 40rpx 36rpx 24rpx 28rpx;
|
||||||
|
|
||||||
|
.content {
|
||||||
|
.logo {
|
||||||
|
width: 96rpx;
|
||||||
|
height: 96rpx;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.name {
|
||||||
|
margin-left: 32rpx;
|
||||||
|
color: #1A1A1A;
|
||||||
|
font-size: 36rpx;
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
|
||||||
|
.right-button {
|
||||||
|
width: 140rpx;
|
||||||
|
height: 64rpx;
|
||||||
|
border-radius: 16rpx;
|
||||||
|
color: #ffffff;
|
||||||
|
font-size: 28rpx;
|
||||||
|
line-height: 64rpx !important;
|
||||||
|
text-align: center;
|
||||||
|
// display: flex;
|
||||||
|
// align-items: center;
|
||||||
|
// justify-content: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.line {
|
||||||
|
width: 100rpx;
|
||||||
|
height: 8rpx;
|
||||||
|
filter: blur(5px);
|
||||||
|
opacity: 0.5;
|
||||||
|
margin-top: 4rpx;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
Loading…
Reference in New Issue