修改关闭按钮样式

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⃣ 没有定位才请求
SFUIP.getLocation().then(res => {
console.log(res,"SFUIP.getLocation");
if (!res.success) {
resolve(false);
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" /> -->
<link rel="icon" href="/favicon.ico" />
<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>
console.log(SFUIP,"SFUIP")
const sf = new SFUIP.SfMicroservice(window?.config?.ENV??'sit')
window.sf = sf
// function loadScript(url, retry = 3) {

View File

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

View File

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

View File

@ -502,7 +502,7 @@ const state = ref({
active: 0,
id: "",
radiovalue: 0,
radioMonthvalue: 24,
radioMonthvalue: -1,
checkAgreementUrlTime: 0,
agreementContent: "无",
enAgreementContent: "无",
@ -514,7 +514,7 @@ const state = ref({
unitTypeId: "",
lockerId: "",
selectUnitRow: {},
month:1,
month: 1,
selfMonth: 1,
lockData: {
discountList: []
@ -571,6 +571,8 @@ const callPhone = ()=>{
const goOrder = async () => {
if (!state.value.lockerId) {
return uni.showToast({
@ -988,8 +990,6 @@ onLoad(async (params) => {
}
uni.$on('homeSiteId', (data) => {
if (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 { ClientSite } from "@/Apis/book.js";
import uvPickerSlef from "@/components/uv-pickerself/components/uv-picker/uv-picker.vue";
import { wgs84ToGcj02 } from '@/utils/map.js'
//
import { useMainStore } from "@/store/index.js";
//
@ -87,13 +88,16 @@ let siteData = reactive({
});
// 线
const handleNavigate = (item) => {
SFUIP.openLocation({
latitude: Number(item.latitude),
longitude: Number(item.longitude),
name: item.name,
address: item.address,
});
const handleNavigate = async (item) => {
const { latitude, longitude } = wgs84ToGcj02(item.latitude, item.longitude);
const { success, errorMessage } = await SFUIP.openLocation({
latitude:"113.330713",
longitude:"23.113539",
name: "广州",
address: "广州天河",
})
console.log((window || global).UIP_WX);
console.log(success,errorMessage, "openLocationerr");
};
const toHome = (item) => {

View File

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