工作108: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.taskthis.task_status=res.data.task_status})}
};
</script>
<style scoped></style>

 

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/415752.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

背景图片生成网站收集

https://pissang.github.io/little-big-city/ 生成星球 https://alteredqualia.com/ 很多效果 http://www.decrooks.com/ 毛线球生成器

python入门-分类和回归各种初级算法

引自&#xff1a;http://www.cnblogs.com/taichu/p/5251332.html ########################### #说明&#xff1a; # 撰写本文的原因是&#xff0c;笔者在研究博文“http://python.jobbole.com/83563/”中发现 # 原内容有少量笔误&#xff0c;并且对入门学友缺少一些…

Git Bash下载安装,git命令下载项目,上传android项目到github步骤,以及取消项目关联Git,设置git忽略文件

设置忽略文件 1、工程下创建文件夹gitignore。push即可 *.iml .gradle /local.properties /.idea/caches /.idea/libraries /.idea/modules.xml /.idea/workspace.xml /.idea/navEditor.xml /.idea/assetWizardSettings.xml .DS_Store /build /captures .externalNativeBuild …

软件测试是找BUG,不是找茬

做测试久了&#xff0c;经常会有一些感悟&#xff0c;最近在51上看到一贴&#xff0c;说出了我的心声&#xff0c;把我一直想写却一直以时间为借口为由拖着未写的心声写出来&#xff0c;摘抄了部分过不&#xff0c;一起纪念测试的年代&#xff0c;测试的心声。测试好象一直会被…

比较精确的js倒计时实现

// 传入需要倒计时的秒数countDown(times) {// 时间间隔 1秒const interval 1000;// 计算时间&#xff0c;转化为毫秒let ms times * 1000;let count 0;const startTime new Date().getTime();const endTime startTime ms;let timeCounter;timeCounter setTimeout(count…

java 如何让循环结束,跳过某个条件,跳出当前的多重嵌套循环

当数据比较庞大的时候&#xff0c;需要循环遍历某个数据的时候可用 for (int ab 0;ab<10000;ab){if (ab 7){//当找到7的时候&#xff0c;结束循环Log.v("map","..ab 7....11......"ab);break;}else {Log.v("map","......11..else....&qu…

服务器虚拟化之-——VMware组件与功能。

最近公司提出帮服务器虚拟化&#xff0c;以前也没接触过&#xff0c;在网上搜了一通&#xff0c;查看了一少资料&#xff0c;感觉现在对虚拟化有了一些了解&#xff0c;在售前我们要出方案&#xff0c;需要对虚拟化进行一个整体评估&#xff0c;这步先省略&#xff0c;后期再补…

vue 获取验证码倒计时组件

之前写过一个计时函数&#xff0c;有计算误差&#xff0c;但是验证码的60秒倒计时可以忽略这一点点误差。直接上代码。 <template><div class"captcha-row"><input class"captcha-input" placeholder"输入验证码" auto-focus …

【iCore1S 双核心板_FPGA】例程十六:基于SPI的ARM与FPGA通信实验

实验现象&#xff1a; 核心代码&#xff1a; int main(void) {int i,n;char buffer[20];char spi_buffer[20];HAL_Init();system_clock.initialize();led.initialize();usart1.initialize(115200);spi.initialize();usart1.printf("Hello! I am iCore1S!\r\n"); …

WebView纯浏览模式,webView不可点击

方法1&#xff1a; webView.setWebViewClient(new WebViewClient() {Overridepublic boolean shouldOverrideUrlLoading(WebView view, String url) { // view.loadUrl(url);return true;//true时&#xff0c;不可点击跳页效果&#xff0c;false时&#xff0c;可…

js 短信验证码 6位数字

其死后就一样代码&#xff0c;比较简单&#xff0c;但是非常常用 const code (000000 Math.floor(Math.random() * 999999)).slice(-6);

服务器的性能监测及工具(profmon)

在使用PerfMon进行服务器基准测试之前&#xff0c;我们将介绍几个技巧来检测服务器的内存使用情况&#xff0c;以确保内存分配不会影响服务器性能。 Memory:Available Bytes-这个功能检测操作系统(OS)的物理内存总量&#xff0c;并计算服务器上运行所有必须进程和应用程序所需的…

Android中1像素Activity进程保活

背景Android8.0马上就要发布&#xff0c;Google对于安卓市场上各种应用占据内存空间的问题不断进行内存完善&#xff0c;我们的应用进程很难再保持不死之身&#xff0c;以前的服务唤醒在5.0已经失效&#xff0c;现在我们尽可能的做到保活方式就是提高进程的优先级&#xff0c;本…

记录一个奇葩问题 宝塔 nginx: [warn] conflicting server

宝塔面板里面运行很久的nginx&#xff0c;好久没有重启&#xff0c;这次一重启&#xff0c;报错了。 解决方法&#xff0c;去/www/server/panel/vhost/nginx目录下&#xff0c;把相关的历史记录给删掉&#xff0c;再重启&#xff0c;就没有问题了

fn:replace()函数

fn:replace()函数将字符串中所有指定的子串用另外的字符串替换。 语法 fn:replace()函数的语法如下&#xff1a; ${fn:replace(<原始字符串>, <被替换的字符串>, <要替换的字符串>)} 实例演示 以下实例演示了这个函数的功能&#xff1a; <% page language…

oracle 数据更新

项目在外地实施&#xff0c;回公司时需要将数据同步&#xff0c;带回来一个&#xff24;&#xff35;&#xff2d;&#xff30;文件&#xff0c;怎么做呢&#xff1f; 首先删除本地的用户 &#xff1a;drop user username cascade; 然后新建这个用户&#xff0c;付权限&…