添加门店资质信息
This commit is contained in:
@ -385,3 +385,10 @@ export function getTeaRoomPayOrderAmount(data: {id: number, pay_way: number}) {
|
||||
export function getRenewTeaRoomPayOrderAmount(data: {id: number, pay_way: number}) {
|
||||
return http.Post<any>('/api/order/getOrderRenewAmount', data)
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取门店资质信息
|
||||
*/
|
||||
export function getStoreQual(store_id: number) {
|
||||
return http.Post<any>('/api/teaStore/qualDetails', { store_id })
|
||||
}
|
||||
@ -324,6 +324,7 @@
|
||||
mobile: '',
|
||||
code: ''
|
||||
})
|
||||
const both = ref<string>('1998-12-21')
|
||||
|
||||
// 审核状态
|
||||
const status = ref<number>(-1) // 0待审核 1审核成功 2审核失败 3未提交数据
|
||||
@ -379,10 +380,23 @@
|
||||
city.value = item.selectedItems.name
|
||||
},
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
handleConfirmBoth({ value }: any) {
|
||||
const d = new Date(value)
|
||||
const year = d.getFullYear()
|
||||
const month = d.getMonth() + 1
|
||||
const day = d.getDate()
|
||||
const date = `${year}-${month < 10 ? '0' + month : month}-${day < 10 ? '0' + day : day}`
|
||||
both.value = date
|
||||
},
|
||||
|
||||
/**
|
||||
* 提交申请
|
||||
*/
|
||||
handleSubmit: async () => {
|
||||
|
||||
if (!form.value.username) {
|
||||
toast.show('请输入姓名')
|
||||
return false
|
||||
@ -434,6 +448,9 @@
|
||||
form.value.certificate = "" + "," +removeImageUrlPrefix(fileList4.value)[0]
|
||||
}
|
||||
|
||||
let data = form.value
|
||||
data.both = both.value
|
||||
|
||||
toast.loading({
|
||||
loadingType: 'ring',
|
||||
loadingColor: '#4C9F44',
|
||||
@ -442,7 +459,7 @@
|
||||
try {
|
||||
toast.close()
|
||||
|
||||
await addTeaSpecialist(form.value)
|
||||
await addTeaSpecialist(data)
|
||||
status.value = 0 // 提交成功,变更状态为待审核
|
||||
|
||||
setTimeout(() => {
|
||||
|
||||
@ -43,15 +43,14 @@
|
||||
</wd-swiper>
|
||||
</view>
|
||||
<view class="mt-38rpx flex justify-between">
|
||||
<view class="line-1">
|
||||
<view>
|
||||
<view class="text-34rpx text-[#303133] leading-48rpx font-bold line-1">{{ teaRoom.name }}</view>
|
||||
<view class="relative mt-18rpx h-34rpx">
|
||||
<view class="absolute top-0 flex items-center">
|
||||
<view class="flex items-center">
|
||||
<wd-rate v-model="teaRoom.star" readonly active-color="#FF5951" allow-half active-icon="star-filled" icon="star" space="4rpx"/>
|
||||
<view class="text-26rpx text-[#606266] leading-34rpx ml-8rpx">{{ teaRoom.star }} 推荐</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="text-26rpx mt-18rpx leading-48rpx text-[#606266]">营业时间:{{ teaRoom.day_time }} {{ teaRoom.start_time }}-{{ teaRoom.end_time }}</view>
|
||||
</view>
|
||||
<view class="flex flex-col items-end">
|
||||
<!-- TODO 后续改为门店充值 -->
|
||||
@ -64,6 +63,16 @@
|
||||
<view class="mt-26rpx">
|
||||
<wd-gap bg-color="#F6F7F9" height="2rpx"></wd-gap>
|
||||
</view>
|
||||
<view class="flex justify-between items-center mt-30rpx mb-34rpx">
|
||||
<view class="text-26rpx text-[#606266]">营业时间:{{ teaRoom.day_time }} {{ teaRoom.start_time }}-{{ teaRoom.end_time }}</view>
|
||||
<view class="flex items-center" @click="router.navigateTo(`/bundle/tea-room/license?id=${teaRoomId}`)">
|
||||
<view class="text-24rpx text-[#92928C]">资质信息</view>
|
||||
<wd-icon name="chevron-right" size="32rpx" color="#C7C7C7"></wd-icon>
|
||||
</view>
|
||||
</view>
|
||||
<view class="mt-26rpx">
|
||||
<wd-gap bg-color="#F6F7F9" height="2rpx"></wd-gap>
|
||||
</view>
|
||||
<view class="mt-22rpx flex items-center justify-between">
|
||||
<view class="">
|
||||
<view class="flex items-center">
|
||||
|
||||
@ -314,6 +314,16 @@
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "tea-room/license",
|
||||
"type": "page",
|
||||
"needLogin": true,
|
||||
"layout": "default",
|
||||
"style": {
|
||||
"navigationBarBackgroundColor": "#FFF",
|
||||
"navigationBarTitleText": "资质信息"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "tea-room/room",
|
||||
"type": "page",
|
||||
|
||||
Reference in New Issue
Block a user