完善培训内容

This commit is contained in:
wangxiaowei
2026-02-12 02:11:46 +08:00
parent 40f1307161
commit c25ed3954e
17 changed files with 3133 additions and 114 deletions

View File

@ -11,8 +11,13 @@
<template>
<view class="flex flex-col min-h-screen">
<view class="bg-[#fff] mt-28rpx px-30rpx">
<view class="font-800 text-36rpx text-[#303133] leading-50rpx">经营资质</view>
<view class="bg-[#fff] pt-28rpx px-30rpx">
<view class="font-800 text-36rpx text-[#303133] leading-50rpx flex items-center">
<view class="mr-20rpx">经营资质</view>
<view @click="router.navigateTo(`/bundle/store-license/add?id=${licenses.id}`)">
<wd-icon name="edit-outline" size="32rpx"></wd-icon>
</view>
</view>
<view class="flex items-center mt-28rpx text-28rpx leading-40rpx">
<view class="mr-20rpx text-[#606266]">证件号码</view>
<view class="text-[#303133]">{{ licenses.card }}</view>
@ -29,7 +34,7 @@
</view>
<view class="flex items-center mt-28rpx text-28rpx leading-40rpx">
<view class="mr-20rpx text-[#606266]">有效期至{{ licenses.effective == 1 ? '有效期至:永久有效' : licenses.end_time }}</view>
<view class="mr-20rpx text-[#606266]">有效期至{{ licenses.effective == 1 ? '永久有效' : licenses.end_time }}</view>
</view>
<view class="mt-24rpx mb-34rpx">
@ -47,12 +52,19 @@
<script lang="ts" setup>
import { getStoreQual } from '@/api/store'
import { useStoreStore } from '@/store'
import type { IAddStoreQualiParams } from '@/api/store'
import { previewImage } from '@/utils/tools'
import { previewImage, router } from '@/utils/tools'
const useStore = useStoreStore()
const licenses = ref<IAddStoreQualiParams>()
const licenses = ref({
id: 0,
card: '', // 证件号码
name: '', // 企业名称
legal_person: '', // 法定代表
effective: 0, // 有效期 1-长期 2-非长期
end_time: '', // 结束时间
license_img: '' // 营业执照图片地址
})
onLoad(() => {
getStoreQual(useStore.defaultStore.id).then(res => {