1

parent 2647354d
......@@ -3,8 +3,10 @@ import App from "./App.vue";
import store from "./store";
import Vconsole from "vconsole";
import NavBar from "@/components/navBar/index.vue";
import { formatTimestamp } from "@/utils/utils";
export function createApp() {
const app = createSSRApp(App);
app.config.globalProperties.$formatTimestamp = formatTimestamp;
app.component("NavBar", NavBar);
const vConsole = new Vconsole();
app.use(store,vConsole);
......
<template>
<NavBar :showIcon="true" :showTitle="false" title="" backgroundBox="#FFFFFF"></NavBar>
<NavBar v-if="showTab" :showIcon="true" :showTitle="false" title="" backgroundBox="#FFFFFF"></NavBar>
<div class="page">
<view class="title">
<view class="t1">3/5工作地点</view>
......@@ -32,11 +32,12 @@
<script setup>
import { ref } from "vue";
import { useReleasePostionStore } from "./store";
const showTab = ref(true);
const address = ref("");
const { formData, setFormDataKey } = useReleasePostionStore();
const getLocaltion = () => {
showTab.value = false;
xma.chooseLocation({
success: res => {
console.log(res);
......@@ -46,6 +47,8 @@ const getLocaltion = () => {
setFormDataKey("locationLongitude", res.longitude || 106.647169);
setFormDataKey("locationLatitude", res.latitude || 26.615808);
setFormDataKey("address", res.name || "华贵保险大厦");
setTimeout(() => {}, 1000);
showTab.value = true;
/*
address: "长岭南路178号"
distance: 124
......@@ -72,6 +75,26 @@ image {
height: 13px;
}
:deep(#u-a-c .uni-system-choose-location .nav) {
top: 20px !important;
background-image: none;
}
:deep(#u-a-c .uni-system-choose-location .nav-btn) {
background-color: #007aff;
border-radius: 10px;
}
:deep(#u-a-c .uni-system-choose-location .nav-btn.back) {
background-color: #007aff;
border-radius: 10px;
top: 50px;
left: 10px;
}
:deep(#u-a-c .uni-system-choose-location .nav-btn.confirm) {
background-color: #007aff;
border-radius: 10px;
top: 50px;
right: 10px;
}
.foot-btn {
position: fixed;
display: flex;
......
......@@ -66,7 +66,7 @@ const feedbackByIdFn = id => {
};
function previewImage(url) {
xma.previewImage({
current: url // 当前显示图片的http链接
urls: [url] // 需要预览的图片http链接列表
});
}
/* 选择图片 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment