1

parent 2647354d
...@@ -3,8 +3,10 @@ import App from "./App.vue"; ...@@ -3,8 +3,10 @@ import App from "./App.vue";
import store from "./store"; import store from "./store";
import Vconsole from "vconsole"; import Vconsole from "vconsole";
import NavBar from "@/components/navBar/index.vue"; import NavBar from "@/components/navBar/index.vue";
import { formatTimestamp } from "@/utils/utils";
export function createApp() { export function createApp() {
const app = createSSRApp(App); const app = createSSRApp(App);
app.config.globalProperties.$formatTimestamp = formatTimestamp;
app.component("NavBar", NavBar); app.component("NavBar", NavBar);
const vConsole = new Vconsole(); const vConsole = new Vconsole();
app.use(store,vConsole); app.use(store,vConsole);
......
<template> <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"> <div class="page">
<view class="title"> <view class="title">
<view class="t1">3/5工作地点</view> <view class="t1">3/5工作地点</view>
...@@ -32,11 +32,12 @@ ...@@ -32,11 +32,12 @@
<script setup> <script setup>
import { ref } from "vue"; import { ref } from "vue";
import { useReleasePostionStore } from "./store"; import { useReleasePostionStore } from "./store";
const showTab = ref(true);
const address = ref(""); const address = ref("");
const { formData, setFormDataKey } = useReleasePostionStore(); const { formData, setFormDataKey } = useReleasePostionStore();
const getLocaltion = () => { const getLocaltion = () => {
showTab.value = false;
xma.chooseLocation({ xma.chooseLocation({
success: res => { success: res => {
console.log(res); console.log(res);
...@@ -46,6 +47,8 @@ const getLocaltion = () => { ...@@ -46,6 +47,8 @@ const getLocaltion = () => {
setFormDataKey("locationLongitude", res.longitude || 106.647169); setFormDataKey("locationLongitude", res.longitude || 106.647169);
setFormDataKey("locationLatitude", res.latitude || 26.615808); setFormDataKey("locationLatitude", res.latitude || 26.615808);
setFormDataKey("address", res.name || "华贵保险大厦"); setFormDataKey("address", res.name || "华贵保险大厦");
setTimeout(() => {}, 1000);
showTab.value = true;
/* /*
address: "长岭南路178号" address: "长岭南路178号"
distance: 124 distance: 124
...@@ -72,6 +75,26 @@ image { ...@@ -72,6 +75,26 @@ image {
height: 13px; 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 { .foot-btn {
position: fixed; position: fixed;
display: flex; display: flex;
......
...@@ -66,7 +66,7 @@ const feedbackByIdFn = id => { ...@@ -66,7 +66,7 @@ const feedbackByIdFn = id => {
}; };
function previewImage(url) { function previewImage(url) {
xma.previewImage({ 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