完善培训内容
This commit is contained in:
@ -99,23 +99,26 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="">
|
||||
<text class="font-400 text-24rpx text-[#909399] leading-34rpx">更多</text>
|
||||
<text class="font-400 text-24rpx text-[#909399] leading-34rpx" @click="router.navigateTo('/bundle/teaching/list')">更多</text>
|
||||
<wd-icon name="arrow-right" size="20rpx" color="#C9C9C9" class="ml-4rpx"></wd-icon>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="mt-30rpx">
|
||||
<view v-for="i in 4" :key="i">
|
||||
<view class="flex items-center justify-between">
|
||||
<view v-for="item in teachingList" :key="item.id">
|
||||
<view class="flex items-center justify-between" @click="router.navigateTo(`/bundle/teaching/detail?id=${item.id}`)">
|
||||
<view class="mr-26rpx">
|
||||
<view class="font-400 text-26rpx text-[#303133] leading-40rpx w-440rpx line-2">必备课,如何做好门店评价管理。客户为什么给好评?</view>
|
||||
<view class="font-400 text-22rpx text-[#909399] leading-32rpx">2025-08-09 17:21</view>
|
||||
<view class="font-400 text-26rpx text-[#303133] leading-40rpx w-440rpx line-2">{{ item.title }}</view>
|
||||
<view class="font-400 text-22rpx text-[#909399] leading-32rpx">{{ item.dtime }}</view>
|
||||
</view>
|
||||
<view>
|
||||
<wd-img width="164rpx" height="108rpx" radius="4rpx" :src="`${OSS}images/banner1.png`" mode="aspectFit" />
|
||||
<wd-img width="164rpx" height="108rpx" radius="4rpx" :src="item.image" mode="aspectFit" />
|
||||
</view>
|
||||
</view>
|
||||
<view class="mt-22rpx mb-30rpx" v-if="i !== 4">
|
||||
<view
|
||||
class="mt-22rpx mb-30rpx"
|
||||
v-if="teachingList.length > 1 && teachingList[teachingList.length - 1].id !== item.id"
|
||||
>
|
||||
<wd-gap bg-color="#F6F7F9" height="2rpx"></wd-gap>
|
||||
</view>
|
||||
</view>
|
||||
@ -130,9 +133,9 @@
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { router } from '@/utils/tools'
|
||||
import { getStoreList, getStoreDetails, getStoreStatistics, scanVerifyCoupon } from '@/api/store'
|
||||
import { getStoreList, getStoreDetails, getStoreStatistics, scanVerifyCoupon, getTeachingList } from '@/api/store'
|
||||
import { useStoreStore } from '@/store'
|
||||
import { useToast } from 'wot-design-uni'
|
||||
import { useToast } from 'wot-design-uni'
|
||||
|
||||
const OSS = inject('OSS')
|
||||
const navbarHeight = inject('navbarHeight')
|
||||
@ -170,16 +173,27 @@
|
||||
yesterday_yan_price: 0 // 昨日验券
|
||||
})
|
||||
|
||||
// 培训列表
|
||||
const teachingList = ref<Array<any>>([])
|
||||
|
||||
onShow(() => {
|
||||
// 初始化页面数据
|
||||
Index.handleInit()
|
||||
})
|
||||
|
||||
const Index = {
|
||||
/**
|
||||
* 初始化
|
||||
*/
|
||||
handleInit: async() => {
|
||||
await Index.handleGetStoreList()
|
||||
await Index.handleGetStoreDetails()
|
||||
await Index.handleGetStoreStatistics()
|
||||
|
||||
// 获取商家培训内容
|
||||
getTeachingList({ page: 1, size: 5, search: '' }).then(res => {
|
||||
teachingList.value = res.list
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
@ -62,16 +62,9 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- <view class="tabs">
|
||||
<wd-tabs v-model="tab" swipeable slidable="always" :lazy="false">
|
||||
<wd-tab title="门店信息"></wd-tab>
|
||||
<wd-tab title="门店服务"></wd-tab>
|
||||
</wd-tabs>
|
||||
</view> -->
|
||||
|
||||
|
||||
<!-- 门店信息区域 -->
|
||||
<view class="store-info-card mt-28rpx bg-white pt-10rpx pl-30rpx">
|
||||
<view class="store-info-card mt-28rpx bg-white pt-10rpx relative">
|
||||
<view class="my-tabs">
|
||||
<wd-tabs v-model="tab" swipeable slidable="always" :lazy="false">
|
||||
<wd-tab title="门店信息"></wd-tab>
|
||||
@ -79,8 +72,16 @@
|
||||
</wd-tabs>
|
||||
</view>
|
||||
|
||||
<view v-if="tab == 0" class="modify-btn absolute top-340rpx right-0 flex items-center px-20rpx py-8rpx"
|
||||
:style="{ backgroundImage: `url('${OSS}images/store/my/image3.png')` }"
|
||||
@click="router.navigateTo('/bundle/store/edit-store')">
|
||||
<wd-img width="24rpx" height="24rpx" :src="`${OSS}images/store/my/image4.png`"
|
||||
class="mr-8rpx" />
|
||||
<text class="text-24rpx text-[#fff]">修改</text>
|
||||
</view>
|
||||
|
||||
<template v-if="tab == 0">
|
||||
<view class="mt-34rpx">
|
||||
<view class="mt-34rpx px-30rpx">
|
||||
<view class="mb-24rpx text-32rpx text-[#303133] font-bold leading-44rpx">
|
||||
{{ storeInfo.name }}
|
||||
</view>
|
||||
@ -98,13 +99,7 @@
|
||||
<text class="flex-1 text-[#000]">{{ `${storeInfo.start_time}-${storeInfo.end_time}` ||
|
||||
'-' }}</text>
|
||||
</view>
|
||||
<view class="modify-btn absolute right-0 flex items-center px-20rpx py-8rpx"
|
||||
:style="{ backgroundImage: `url('${OSS}images/store/my/image3.png')` }"
|
||||
@click="router.navigateTo('/bundle/store/edit-store')">
|
||||
<wd-img width="24rpx" height="24rpx" :src="`${OSS}images/store/my/image4.png`"
|
||||
class="mr-8rpx" />
|
||||
<text class="text-24rpx text-[#fff]">修改</text>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view class="flex items-center text-24rpx text-[#606266] leading-40rpx"
|
||||
@click="My.handleCall(storeInfo.contact_phone)">
|
||||
|
||||
Reference in New Issue
Block a user