修改关闭按钮样式

This commit is contained in:
有果 2026-04-14 13:34:55 +08:00
parent e12895d597
commit aeba6816c8
7 changed files with 25 additions and 18 deletions

View File

@ -28,6 +28,7 @@ export function useLocation() {
// 3⃣ 没有定位才请求 // 3⃣ 没有定位才请求
SFUIP.getLocation().then(res => { SFUIP.getLocation().then(res => {
console.log(res,"SFUIP.getLocation");
if (!res.success) { if (!res.success) {
resolve(false); resolve(false);
return; return;

View File

@ -13,8 +13,9 @@
<!-- <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover" /> --> <!-- <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover" /> -->
<link rel="icon" href="/favicon.ico" /> <link rel="icon" href="/favicon.ico" />
<script src="./config.js"></script> <script src="./config.js"></script>
<script src="https://ucmp-static.sf-express.com/assets/sdks/microservice-1.0.4.min.js"></script> <script src="https://ucmp-static.sf-express.com/assets/sdks/microservice-1.1.9.min.js"></script>
<script> <script>
console.log(SFUIP,"SFUIP")
const sf = new SFUIP.SfMicroservice(window?.config?.ENV??'sit') const sf = new SFUIP.SfMicroservice(window?.config?.ENV??'sit')
window.sf = sf window.sf = sf
// function loadScript(url, retry = 3) { // function loadScript(url, retry = 3) {

View File

@ -2,8 +2,8 @@ import { createSSRApp } from "vue";
import App from "./App"; import App from "./App";
import i18n from "./locale/index"; import i18n from "./locale/index";
import * as Pinia from "pinia"; import * as Pinia from "pinia";
// import VConsole from 'vconsole' import VConsole from 'vconsole'
// new VConsole() new VConsole()
// import '@/uni.scss' // import '@/uni.scss'
// 引入uvUI // 引入uvUI
import uvUI from "@/uni_modules/uv-ui-tools"; import uvUI from "@/uni_modules/uv-ui-tools";

View File

@ -75,7 +75,7 @@
"vueVersion" : "3", "vueVersion" : "3",
"h5" : { "h5" : {
"router" : { "router" : {
"base" : "./" "base" : "/client/"
}, },
"devServer" : { "devServer" : {
"port" : 8999, "port" : 8999,
@ -100,7 +100,7 @@
} }
}, },
"uniStatistics" : { "uniStatistics" : {
"enable" : true "enable" : false
} }
}, },
"locale" : "zh-Hans", "locale" : "zh-Hans",

View File

@ -502,7 +502,7 @@ const state = ref({
active: 0, active: 0,
id: "", id: "",
radiovalue: 0, radiovalue: 0,
radioMonthvalue: 24, radioMonthvalue: -1,
checkAgreementUrlTime: 0, checkAgreementUrlTime: 0,
agreementContent: "无", agreementContent: "无",
enAgreementContent: "无", enAgreementContent: "无",
@ -571,6 +571,8 @@ const callPhone = ()=>{
const goOrder = async () => { const goOrder = async () => {
if (!state.value.lockerId) { if (!state.value.lockerId) {
return uni.showToast({ return uni.showToast({
@ -988,8 +990,6 @@ onLoad(async (params) => {
} }
uni.$on('homeSiteId', (data) => { uni.$on('homeSiteId', (data) => {
if (data.id) { if (data.id) {
state.value.siteId = data.id state.value.siteId = data.id

View File

@ -62,6 +62,7 @@ import { useSiteApi } from "@/Apis/site.js";
import { useLoginApi } from "@/Apis/login.js"; import { useLoginApi } from "@/Apis/login.js";
import { ClientSite } from "@/Apis/book.js"; import { ClientSite } from "@/Apis/book.js";
import uvPickerSlef from "@/components/uv-pickerself/components/uv-picker/uv-picker.vue"; import uvPickerSlef from "@/components/uv-pickerself/components/uv-picker/uv-picker.vue";
import { wgs84ToGcj02 } from '@/utils/map.js'
// //
import { useMainStore } from "@/store/index.js"; import { useMainStore } from "@/store/index.js";
// //
@ -87,13 +88,16 @@ let siteData = reactive({
}); });
// 线 // 线
const handleNavigate = (item) => { const handleNavigate = async (item) => {
SFUIP.openLocation({ const { latitude, longitude } = wgs84ToGcj02(item.latitude, item.longitude);
latitude: Number(item.latitude), const { success, errorMessage } = await SFUIP.openLocation({
longitude: Number(item.longitude), latitude:"113.330713",
name: item.name, longitude:"23.113539",
address: item.address, name: "广州",
}); address: "广州天河",
})
console.log((window || global).UIP_WX);
console.log(success,errorMessage, "openLocationerr");
}; };
const toHome = (item) => { const toHome = (item) => {

View File

@ -43,12 +43,13 @@
hover-class="uv-popup__content__close--hover" hover-class="uv-popup__content__close--hover"
hover-stay-time="150" hover-stay-time="150"
> >
<uv-icon <!-- <uv-icon
name="close" name="close"
color="#000000" color="#000000"
size="32rpx" size="32rpx"
bold bold
></uv-icon> ></uv-icon> -->
<image class="close-icon" style="width: 30rpx;height: 30rpx;" src="/static/home/close2.svg"></image>
</view> </view>
</view> </view>
</uv-transition> </uv-transition>