feat : 默认经纬度替换,bugfix,添加一体机样式
This commit is contained in:
@@ -42,3 +42,27 @@ uni-modal .uni-modal__ft{
|
|||||||
font-size: 36rpx !important;
|
font-size: 36rpx !important;
|
||||||
line-height: 80rpx !important;
|
line-height: 80rpx !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.uni-popup-dialog{
|
||||||
|
width: 420rpx !important;
|
||||||
|
}
|
||||||
|
.uni-dialog-title{
|
||||||
|
padding-top: 40rpx !important;
|
||||||
|
}
|
||||||
|
.uni-dialog-title-text{
|
||||||
|
font-size: 34rpx !important;
|
||||||
|
}
|
||||||
|
.uni-dialog-content{
|
||||||
|
padding: 25rpx !important;
|
||||||
|
}
|
||||||
|
.uni-dialog-content-text{
|
||||||
|
font-size: 30rpx !important;
|
||||||
|
}
|
||||||
|
.uni-dialog-button{
|
||||||
|
height: 80rpx !important;
|
||||||
|
}
|
||||||
|
.uni-dialog-button-text{
|
||||||
|
font-size: 36rpx !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -66,11 +66,11 @@ const props = defineProps({
|
|||||||
},
|
},
|
||||||
longitude: {
|
longitude: {
|
||||||
type: Number,
|
type: Number,
|
||||||
default: 120.382665,
|
default: 120.366085,
|
||||||
},
|
},
|
||||||
latitude: {
|
latitude: {
|
||||||
type: Number,
|
type: Number,
|
||||||
default: 36.066938,
|
default: 36.086656,
|
||||||
},
|
},
|
||||||
seeDate: {
|
seeDate: {
|
||||||
type: String,
|
type: String,
|
||||||
|
|||||||
@@ -41,11 +41,11 @@ const props = defineProps({
|
|||||||
},
|
},
|
||||||
longitude: {
|
longitude: {
|
||||||
type: Number,
|
type: Number,
|
||||||
default: 120.382665,
|
default: 120.366085,
|
||||||
},
|
},
|
||||||
latitude: {
|
latitude: {
|
||||||
type: Number,
|
type: Number,
|
||||||
default: 36.066938,
|
default: 36.086656,
|
||||||
},
|
},
|
||||||
seeDate: {
|
seeDate: {
|
||||||
type: String,
|
type: String,
|
||||||
|
|||||||
@@ -50,11 +50,11 @@ const props = defineProps({
|
|||||||
},
|
},
|
||||||
longitude: {
|
longitude: {
|
||||||
type: Number,
|
type: Number,
|
||||||
default: 120.382665,
|
default: 120.366085,
|
||||||
},
|
},
|
||||||
latitude: {
|
latitude: {
|
||||||
type: Number,
|
type: Number,
|
||||||
default: 36.066938,
|
default: 36.086656,
|
||||||
},
|
},
|
||||||
seeDate: {
|
seeDate: {
|
||||||
type: String,
|
type: String,
|
||||||
|
|||||||
@@ -93,11 +93,11 @@ const props = defineProps({
|
|||||||
},
|
},
|
||||||
longitude: {
|
longitude: {
|
||||||
type: Number,
|
type: Number,
|
||||||
default: 120.382665,
|
default: 120.366085,
|
||||||
},
|
},
|
||||||
latitude: {
|
latitude: {
|
||||||
type: Number,
|
type: Number,
|
||||||
default: 36.066938,
|
default: 36.086656,
|
||||||
},
|
},
|
||||||
seeDate: {
|
seeDate: {
|
||||||
type: String,
|
type: String,
|
||||||
|
|||||||
@@ -93,11 +93,11 @@ const props = defineProps({
|
|||||||
},
|
},
|
||||||
longitude: {
|
longitude: {
|
||||||
type: Number,
|
type: Number,
|
||||||
default: 120.382665,
|
default: 120.366085,
|
||||||
},
|
},
|
||||||
latitude: {
|
latitude: {
|
||||||
type: Number,
|
type: Number,
|
||||||
default: 36.066938,
|
default: 36.086656,
|
||||||
},
|
},
|
||||||
seeDate: {
|
seeDate: {
|
||||||
type: String,
|
type: String,
|
||||||
|
|||||||
@@ -93,11 +93,11 @@ const props = defineProps({
|
|||||||
},
|
},
|
||||||
longitude: {
|
longitude: {
|
||||||
type: Number,
|
type: Number,
|
||||||
default: 120.382665,
|
default: 120.366085,
|
||||||
},
|
},
|
||||||
latitude: {
|
latitude: {
|
||||||
type: Number,
|
type: Number,
|
||||||
default: 36.066938,
|
default: 36.086656,
|
||||||
},
|
},
|
||||||
seeDate: {
|
seeDate: {
|
||||||
type: String,
|
type: String,
|
||||||
|
|||||||
@@ -56,11 +56,11 @@ const props = defineProps({
|
|||||||
},
|
},
|
||||||
longitude: {
|
longitude: {
|
||||||
type: Number,
|
type: Number,
|
||||||
default: 120.382665,
|
default: 120.366085,
|
||||||
},
|
},
|
||||||
latitude: {
|
latitude: {
|
||||||
type: Number,
|
type: Number,
|
||||||
default: 36.066938,
|
default: 36.086656,
|
||||||
},
|
},
|
||||||
seeDate: {
|
seeDate: {
|
||||||
type: String,
|
type: String,
|
||||||
|
|||||||
@@ -56,11 +56,11 @@ const props = defineProps({
|
|||||||
},
|
},
|
||||||
longitude: {
|
longitude: {
|
||||||
type: Number,
|
type: Number,
|
||||||
default: 120.382665,
|
default: 120.366085,
|
||||||
},
|
},
|
||||||
latitude: {
|
latitude: {
|
||||||
type: Number,
|
type: Number,
|
||||||
default: 36.066938,
|
default: 36.086656,
|
||||||
},
|
},
|
||||||
seeDate: {
|
seeDate: {
|
||||||
type: String,
|
type: String,
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ import { useReadMsg } from '@/stores/useReadMsg';
|
|||||||
import useScreenStore from '@/stores/useScreenStore'
|
import useScreenStore from '@/stores/useScreenStore'
|
||||||
|
|
||||||
import useUserStore from '@/stores/useUserStore';
|
import useUserStore from '@/stores/useUserStore';
|
||||||
const { isMachineEnv } = storeToRefs(useUserStore());
|
const { isMachineEnv, hasLogin } = storeToRefs(useUserStore());
|
||||||
|
|
||||||
const screenStore = useScreenStore()
|
const screenStore = useScreenStore()
|
||||||
const {isWideScreen} = screenStore
|
const {isWideScreen} = screenStore
|
||||||
@@ -95,7 +95,7 @@ onMounted(() => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const changeItem = (item) => {
|
const changeItem = (item) => {
|
||||||
if(isMachineEnv.value && item.needLogin){
|
if(isMachineEnv.value && item.needLogin && !hasLogin.value){
|
||||||
useUserStore().logOut()
|
useUserStore().logOut()
|
||||||
}else{
|
}else{
|
||||||
uni.switchTab({
|
uni.switchTab({
|
||||||
|
|||||||
@@ -112,6 +112,10 @@ function handleFocus() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function confirm() {
|
function confirm() {
|
||||||
|
if(!hasLogin.value){
|
||||||
|
useUserStore().logOut()
|
||||||
|
return
|
||||||
|
}
|
||||||
const { id } = dataItem.value;
|
const { id } = dataItem.value;
|
||||||
let ids = userInfo.value.jobTitleId + `,${id}`;
|
let ids = userInfo.value.jobTitleId + `,${id}`;
|
||||||
const result = dedupeAndCheck(ids);
|
const result = dedupeAndCheck(ids);
|
||||||
|
|||||||
@@ -10,8 +10,8 @@ import {
|
|||||||
import config from '../config';
|
import config from '../config';
|
||||||
|
|
||||||
const defalutLongLat = {
|
const defalutLongLat = {
|
||||||
longitude: 120.382665,
|
longitude: 120.366085,
|
||||||
latitude: 36.066938,
|
latitude: 36.086656,
|
||||||
}
|
}
|
||||||
|
|
||||||
const useLocationStore = defineStore("location", () => {
|
const useLocationStore = defineStore("location", () => {
|
||||||
@@ -53,7 +53,7 @@ const useLocationStore = defineStore("location", () => {
|
|||||||
fail: function(data) {
|
fail: function(data) {
|
||||||
longitudeVal.value = defalutLongLat.longitude
|
longitudeVal.value = defalutLongLat.longitude
|
||||||
latitudeVal.value = defalutLongLat.latitude
|
latitudeVal.value = defalutLongLat.latitude
|
||||||
resole(defalutLongLat)
|
reject()
|
||||||
msg('用户位置获取失败')
|
msg('用户位置获取失败')
|
||||||
console.log('失败2', data)
|
console.log('失败2', data)
|
||||||
}
|
}
|
||||||
@@ -62,7 +62,7 @@ const useLocationStore = defineStore("location", () => {
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
longitudeVal.value = defalutLongLat.longitude
|
longitudeVal.value = defalutLongLat.longitude
|
||||||
latitudeVal.value = defalutLongLat.latitude
|
latitudeVal.value = defalutLongLat.latitude
|
||||||
resole(defalutLongLat)
|
reject()
|
||||||
msg('测试环境,使用模拟定位')
|
msg('测试环境,使用模拟定位')
|
||||||
console.log('失败1', e)
|
console.log('失败1', e)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user