修改关闭按钮样式
This commit is contained in:
parent
e12895d597
commit
aeba6816c8
@ -28,6 +28,7 @@ export function useLocation() {
|
||||
|
||||
// 3️⃣ 没有定位才请求
|
||||
SFUIP.getLocation().then(res => {
|
||||
console.log(res,"SFUIP.getLocation");
|
||||
if (!res.success) {
|
||||
resolve(false);
|
||||
return;
|
||||
|
||||
@ -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) {
|
||||
|
||||
4
main.js
4
main.js
@ -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";
|
||||
|
||||
@ -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",
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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) => {
|
||||
|
||||
@ -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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user