前端工作小结31-swiper使用

简介: 前端工作小结31-swiper使用
<!--首页管理-->
<template>
  <div>
    <el-card>
      <h1>等待处理</h1>
      <div style="width: 100%;height: 200px">
      <swiper  ref="mySwiper" >
        <swiper-slide v-for="(item,index) in task">
          <el-button style="float: right" type="primary" @click="ListClick">查看更多</el-button>
          <h1>订单名称:{{item.name}}</h1>
          <p>创建时间:{{item.created_at}}</p>
          <p>账号:{{item.name}}</p>
          <p>状态:{{item.status_name}}</p>
          <el-button type="primary" style="float: right" @click="ListClick">审核</el-button>
          <!-- Add Pagination -->
        </swiper-slide>
        <hr>
        <div class="swiper-pagination" slot="pagination"></div>
      </swiper>
      </div>
    </el-card>
    <el-card>
      <h1 style="float: left">我的订单</h1>
      <el-button style="float: right" type="primary" @click="ListClick" >订单列表</el-button>
       <ul  style="display: flex;justify-content: center">
         <li style="float: left;list-style: none"><p>待审核:</p><h1>{{task_status.completed}}</h1></li>
         <li style="float: left;list-style: none"><p>待修改:</p><h1>{{task_status.release}}</h1></li>
         <li style="float: left;list-style: none"><p>进行中:</p><h1>{{task_status.returned}}</h1></li>
         <li style="float: left;list-style: none"><p>待结算:</p><h1>{{task_status.underway}}</h1></li>
         <li style="float: left;list-style: none"><p>已完成:</p><h1>{{task_status.wait_confirm}}</h1></li>
         <li style="float: left;list-style: none"><p>已取消:</p><h1>{{task_status.wait_relevance}}</h1></li>
       </ul>
      <!--  <div style="float: left">
          <img src="./geyao.png" style="width: 40px;height: 40px" alt="">
          <p>hi暖视频</p>
        </div>
        <div style="float: left">
          <img src="./geyao.png" style="width: 40px;height: 40px" alt="">
          <p>hi暖视频</p>
        </div>
        <div style="float: left;">
          <img src="./geyao.png" style="width: 40px;height: 40px" alt="">
          <p>hi暖视频</p>
        </div>-->
    </el-card>
    <el-card>
      <h1 style="float: left">我的订单</h1>
      <el-button style="float: right" type="primary" @click="TaskClick">任务列表</el-button>
      <ul  style="display: flex;justify-content: center">
        <li style="float: left;list-style: none"><p>待审核:</p><h1>{{task_status.completed}}</h1></li>
        <li style="float: left;list-style: none"><p>待修改:</p><h1>{{task_status.release}}</h1></li>
        <li style="float: left;list-style: none"><p>进行中:</p><h1>{{task_status.returned}}</h1></li>
        <li style="float: left;list-style: none"><p>待结算:</p><h1>{{task_status.underway}}</h1></li>
        <li style="float: left;list-style: none"><p>已完成:</p><h1>{{task_status.wait_confirm}}</h1></li>
        <li style="float: left;list-style: none"><p>已取消:</p><h1>{{task_status.wait_relevance}}</h1></li>
      </ul>
      <!--  <div style="float: left">
          <img src="./geyao.png" style="width: 40px;height: 40px" alt="">
          <p>hi暖视频</p>
        </div>
        <div style="float: left">
          <img src="./geyao.png" style="width: 40px;height: 40px" alt="">
          <p>hi暖视频</p>
        </div>
        <div style="float: left;">
          <img src="./geyao.png" style="width: 40px;height: 40px" alt="">
          <p>hi暖视频</p>
        </div>-->
    </el-card>
  </div>
</template>
<script>
import { Swiper, SwiperSlide, directive } from 'vue-awesome-swiper'
// import style (>= Swiper 6.x)
import 'swiper/swiper-bundle.css'
// import style (<= Swiper 5.x)
import 'swiper/swiper.scss'
import {getAction} from "@/api";
export default {
  name: "Home",
  components: {
    Swiper,
    SwiperSlide
  },
  directives: {
    swiper: directive
  },
  data(){
    return{
      task:[],
      task_status:{}
    }
  },
  methods:{
    ListClick(){
      this.$router.push('/order')
    },
    TaskClick(){
      this.$router.push('/task')
    }
  },
  created() {
    getAction("/home/business").then(res=>{
        console.log(res)
      this.task=res.data.task
      this.task_status=res.data.task_status
    })
  }
};
</script>
<style scoped>
</style>
相关文章
|
6天前
|
人工智能 运维 安全
|
4天前
|
人工智能 异构计算
敬请锁定《C位面对面》,洞察通用计算如何在AI时代持续赋能企业创新,助力业务发展!
敬请锁定《C位面对面》,洞察通用计算如何在AI时代持续赋能企业创新,助力业务发展!
|
5天前
|
机器学习/深度学习 人工智能 自然语言处理
B站开源IndexTTS2,用极致表现力颠覆听觉体验
在语音合成技术不断演进的背景下,早期版本的IndexTTS虽然在多场景应用中展现出良好的表现,但在情感表达的细腻度与时长控制的精准性方面仍存在提升空间。为了解决这些问题,并进一步推动零样本语音合成在实际场景中的落地能力,B站语音团队对模型架构与训练策略进行了深度优化,推出了全新一代语音合成模型——IndexTTS2 。
529 14
|
11天前
|
人工智能 JavaScript 测试技术
Qwen3-Coder入门教程|10分钟搞定安装配置
Qwen3-Coder 挑战赛简介:无论你是编程小白还是办公达人,都能通过本教程快速上手 Qwen-Code CLI,利用 AI 轻松实现代码编写、文档处理等任务。内容涵盖 API 配置、CLI 安装及多种实用案例,助你提升效率,体验智能编码的乐趣。
896 109
|
5天前
|
人工智能 测试技术 API
智能体(AI Agent)搭建全攻略:从概念到实践的终极指南
在人工智能浪潮中,智能体(AI Agent)正成为变革性技术。它们具备自主决策、环境感知、任务执行等能力,广泛应用于日常任务与商业流程。本文详解智能体概念、架构及七步搭建指南,助你打造专属智能体,迎接智能自动化新时代。