修改样式
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
import { defineStore } from "pinia";
|
||||
import type { UserAddressBo } from '@/service/types';
|
||||
export const useAddressStore = defineStore('store-address', () => {
|
||||
/** 从地图搜索新增地址进入保存页时,首次需弹出建筑类型介绍层(与原先进入 choose-type 页等价) */
|
||||
const pendingIntroBuildingType = ref(false)
|
||||
|
||||
const addressInfo = ref<UserAddressBo>({
|
||||
type: '',
|
||||
/** 配送类型 1-亲自送达 2-放门口,默认放门口 */
|
||||
@@ -57,6 +60,7 @@ export const useAddressStore = defineStore('store-address', () => {
|
||||
}
|
||||
|
||||
function clearAddressInfo() {
|
||||
pendingIntroBuildingType.value = false
|
||||
addressInfo.value = {
|
||||
id: '',
|
||||
type: '',
|
||||
@@ -102,6 +106,7 @@ export const useAddressStore = defineStore('store-address', () => {
|
||||
return {
|
||||
addressInfo,
|
||||
addressLocation,
|
||||
pendingIntroBuildingType,
|
||||
setAddressLocation,
|
||||
clearAddressInfo
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user