diff --git a/src/api/store.ts b/src/api/store.ts index 7c65455..32a9c8f 100644 --- a/src/api/store.ts +++ b/src/api/store.ts @@ -289,4 +289,29 @@ export interface IGetStoreRechargeListParams { export function getStoreRechargeList(data: IGetStoreRechargeListParams) { return http.Post('/storeapi/user/storeRechargeLists', data) +} + +/** + * 添加门店资质信息 + */ +export interface IAddStoreQualiParams { + store_id: number // 门店id + name: string // 企业名称 + legal_person: string // 法人 + card: string // 统一社会信用代码 + license_img: string // 营业执照图片 + effective: number // 营业执照有效期 1-长期 2-非长期 + start_time: string // 营业执照开始时间 + end_time: string // 营业执照结束时间 +} + +export function addStoreQual(data: IAddStoreQualiParams) { + return http.Post('/storeapi/store/addQual', data) +} + +/** + * 获取门店资质信息 + */ +export function getStoreQual(store_id: number) { + return http.Post('/storeapi/store/qualDetails', { store_id }) } \ No newline at end of file diff --git a/src/bundle/profile/change-password.vue b/src/bundle/profile/change-password.vue index b9d132d..a924499 100644 --- a/src/bundle/profile/change-password.vue +++ b/src/bundle/profile/change-password.vue @@ -68,7 +68,7 @@ \ No newline at end of file diff --git a/src/bundle/store-license/add.vue b/src/bundle/store-license/add.vue new file mode 100644 index 0000000..baf6336 --- /dev/null +++ b/src/bundle/store-license/add.vue @@ -0,0 +1,197 @@ +{ + "layout": "default", + "style": { + "navigationStyle": "custom" + } +} + + + + + + \ No newline at end of file diff --git a/src/bundle/store-license/license.vue b/src/bundle/store-license/license.vue new file mode 100644 index 0000000..4dfaadf --- /dev/null +++ b/src/bundle/store-license/license.vue @@ -0,0 +1,64 @@ + +{ + "needLogin": true, + "layout": "default", + "style": { + "navigationBarBackgroundColor": "#FFF", + "navigationBarTitleText": "资质信息" + } +} + + + + + + + diff --git a/src/pages/my/my.vue b/src/pages/my/my.vue index 07dd73b..23f7ff5 100644 --- a/src/pages/my/my.vue +++ b/src/pages/my/my.vue @@ -1,6 +1,6 @@ { "layout": "tabbar", - "needLogin": true, + "needLogin": true, "style": { "navigationStyle": "custom" } @@ -12,7 +12,7 @@ :style="{ backgroundImage: `url('${OSS}images/store/my/image2.png')` }"> - diff --git a/src/utils/tools.ts b/src/utils/tools.ts index c711240..e84783b 100644 --- a/src/utils/tools.ts +++ b/src/utils/tools.ts @@ -175,4 +175,14 @@ export function removeImageUrlPrefix(file: any) { return item.url.replace(import.meta.env.VITE_UPLOAD_IMAGE_URL, '') }) return fileList +} + +/** + * 预览图片 + */ +export function previewImage(current: string, urls: string[]) { + uni.previewImage({ + current, + urls + }) } \ No newline at end of file