【uniapp小程序】打印列表UI模板

这篇具有很好参考价值的文章主要介绍了【uniapp小程序】打印列表UI模板。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

这是一个云打印项目,首页查询接口渲染设备,设备是否在线是通过redis进行判断的,当设备在线时可以通过在线的驱动软件打印用户提交的文档,自动处理无需人工干预
【uniapp小程序】打印列表UI模板

今天主要是分享一下,文件列表界面,由于UI太丑于是我换了下,如图所示:

【uniapp小程序】打印列表UI模板
【uniapp小程序】打印列表UI模板

框架为uView2.0,代码如下:文章来源地址https://www.toymoban.com/news/detail-503522.html


<template>
	<view>
		<view class="container">
		    <!-- 页面内容 -->
		  
		<!-- 遮罩层 -->
		<u-popup
			:safeAreaInsetBottom="true"
			:safeAreaInsetTop="true"
			:mode="popupData.mode"
			:show="show"
			:round="popupData.round"
			:overlay="popupData.overlay"
			:borderRadius="popupData.borderRadius"
			:closeable="popupData.closeable"
			:closeOnClickOverlay="popupData.closeOnClickOverlay"
			@close="close"
		>
			<view class="u-popup-slot">
				<u-grid :border="true">
					<u-grid-item
						@click="click('1')"
						customStyle="padding-top: 10px; padding-bottom: 10px">
						<image src="/static/file_word.png" mode="" style="width: 100rpx;height: 100rpx;"></image>
						<text class="grid-text">word打印</text>
					</u-grid-item>
					
					<u-grid-item
						@click="click('1')"
						customStyle="padding-top: 10px; padding-bottom: 10px">
						<image src="/static/PDF.png" mode="" style="width: 100rpx;height: 100rpx;"></image>
						<text class="grid-text">pdf打印</text>
					</u-grid-item>
					<u-grid-item
						@click="click('1')"
						customStyle="padding-top: 10px; padding-bottom: 10px">
						<image src="/static/EXCEL.png" mode="" style="width: 100rpx;height: 100rpx;"></image>
						<text class="grid-text">excel打印</text>
					</u-grid-item>
					<u-grid-item
						@click="click('1')"
						customStyle="padding-top: 10px; padding-bottom: 10px">
						<image src="/static/tupian.png" mode="" style="width: 100rpx;height: 100rpx;"></image>
						<text class="grid-text">照片打印</text>
					</u-grid-item>
					<u-grid-item
						@click="click('1')"
						customStyle="padding-top: 10px; padding-bottom: 10px">
						<image src="/static/other.png" mode="" style="width: 100rpx;height: 100rpx;"></image>
						<text class="grid-text">本地文件</text>
					</u-grid-item>
					<u-grid-item
						@click="click('1')"
						customStyle="padding-top: 10px; padding-bottom: 10px">
						<image src="/static/wendangwenjian.png" mode="" style="width: 100rpx;height: 100rpx;"></image>
						<text class="grid-text">腾讯文档</text>
					</u-grid-item>
					
				</u-grid>
			</view>
		</u-popup>
		<!-- 遮罩层 -->
			
			
		
	<!-- 悬浮图标 -->
  <view class="float-icon" :style="{right: right + 'px', bottom: bottom + 'px'}" @touchstart="touchStart" @touchmove="touchMove" @touchend="touchEnd">
    <image src="/static/biaoge-tijiao.png" style="width: 50rpx;height: 50rpx;"></image>
  </view>
    <!-- 悬浮图标 -->
  <view class="card">
      <!-- 卡片内容 -->
  	  <view class="top_" >
  	  	<view class="zuo_">
  	  		<image src="/static/file_word.png" mode="" style="width: 150rpx;height: 165rpx;"></image>
  	  	</view>
  		<view class="you_">
  			<view>
  				大学生训练项目创业书.docx
  			</view>
  			<view style="display: flex;flex-direction: row;">
  				<!--  -->
				<u-tag text="黑白" style="width: 100rpx;margin-left: 10rpx;height: 50rpx;">
				</u-tag>
				<u-tag
				    text="标签"
				    type="warning"
					style="width: 100rpx;margin-left: 10rpx;height: 50rpx;">
				>
				</u-tag>
  			</view>
  			<view>
  				<view class="dayin_set">
  					<view class="dayin_set_zuo">
  						<image src="/static/shezhitianchong.png" mode="" style="width: 45rpx;height: 45rpx;"></image>
  						<text>打印设置</text>
  					</view>
  					<view class="dayin_set_you">
  						<image src="/static/yulan.png" mode="" style="width: 45rpx;height: 45rpx;"></image>
  						<text>预览</text>
  					</view>
  				</view>
  			</view>
  		</view>
  	  </view>
  	  <view class="u-demo-block__content">
  	  	<u-line-progress
  	  	    height="8"
  	  	    :showText="false"
  	  	    :percentage="percentage6"
  	  	    activeColor="#3c9cff"
  	  	    inactiveColor="#f3f4f6"
  	  	>
  	  	</u-line-progress>
  	  	
  	  </view>
  	  <view class="xia_">
  	  <text>15</text>
  	  <text style="margin-left: 370rpx;">打印份数:2</text>
  	  <text style="margin-left: 20rpx;color: red;">取消打印</text>
  	  </view>
	</view>
	
	</view>
	  <!-- 页面内容 -->
	  
	  
	  <view class="bottom-bar">
		  	<text>费用:¥0.4</text>
	      <!-- 底部视图 -->
			  <view style="display: flex;flex-direction: row;">
			  
				<u-button
			  	    text="确认支付"
			  	    size="normal"
			  	    type="primary"
			  		style="width: 100rpx;"
			  	></u-button>
				<u-button
				    text="模拟支付完成"
				    size="normal"
				    type="success"
					style="width: 100rpx;"
				></u-button>
			  </view>
		 
	    </view>
  </view>
  
  
  
  
  
  </view>
</template>

<script>
export default {
  data() {
    return {
		percentage6: 50,
		// 悬浮按钮
      startX: 0,
      startY: 0,
      moveX: 0,
      moveY: 0,
      right: 20,
      bottom: 100,
	  // 悬浮按钮
	  
	  // 遮罩层
	  show: false,
	  popupData: {
	  	overlay: true,
	  	mode: 'center',
	  	round: 10,
		borderRadius: '',
		closeable: true,
	  	closeOnClickOverlay: true
	  },
	   // 遮罩层
    }
  },
  methods: {
	  click(name) {
	  	uni.showToast({
	  		title:name
	  	})
	  	this.$refs.uToast.success(`点击了第${name}个`)
	  },
	  close() {
	  	this.show = false
	  	// console.log('close');
	  },
    touchStart(e) {
      this.startX = e.touches[0].clientX
      this.startY = e.touches[0].clientY
    },
    touchMove(e) {
      this.moveX = e.touches[0].clientX - this.startX
      this.moveY = e.touches[0].clientY - this.startY
      this.right -= this.moveX
      this.bottom -= this.moveY
      this.startX = e.touches[0].clientX
      this.startY = e.touches[0].clientY
    },
    touchEnd(e) {
      // do something
	  // this.$token.toast("1",2000);
	uni.$u.sleep().then(() => {
		this.show = !this.show
	})
	
	this.percentage6 = uni.$u.range(0, 100, this.percentage6 + 10)
    },
  },
}
</script>

<style>
	/* 悬浮按钮 */
.float-icon {
  position: fixed;
  width: 50px;
  height: 50px;
  border-radius: 25px;
  background-color: #83deff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}
/* 悬浮按钮 */



/* 卡片部分 */
.card {
  width: 650rpx;
  height: 250rpx;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 16px;
  margin: auto;
   margin-top: 20rpx;
}
.top_{
	width: 650rpx;
	height: 180rpx;
	display: flex;
	flex-direction: row;
	/* background-color: red; */
}

.xia_{
	margin-top: 20rpx;
	width: 650rpx;
	height: 40rpx;
	display: flex;
	flex-direction: row;
	/* background-color: yellow; */
	font-size: 0.65em;
	
}

.zuo_{
	width: 180rpx;
	height: 175rpx;
	display: flex;
	flex-direction: column;
	/* background-color: yellowgreen; */
	
	
}
.you_{
	width: 468rpx;
	height: 175rpx;
	display: flex;
	flex-direction: column;
	/* background-color: bisque; */
}

.dayin_set{
	height: 70rpx;
	/* background-color: red; */
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	width: 469rpx;
}
.dayin_set_zuo{
	width: 200rpx;
	height: 50rpx;
	color: white;
	border-radius: 15rpx;
	justify-content: center;
	background-color: #52B1E2;
	display: flex;
	flex-direction: row;
	align-items: center;
}
.dayin_set_you{
width: 150rpx;
height: 50rpx;
justify-content: center;
color: white;
border-radius: 15rpx;
background-color: #52B1E2;
display: flex;
flex-direction: row;
align-items: center;
margin-left: 110rpx;
}
/* 卡片部分 */



/* 遮罩层 */
.u-popup-slot {
		width: 700rpx;
		height: 500rpx;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}
	
	
	
	/* 九宫格 */
	.swiper {
		height: 220px;
	}
	
	.grid-text {
		font-size: 14px;
		color: #909399;
		padding: 10rpx 0 20rpx 0rpx;
		/* #ifndef APP-PLUS */
		box-sizing: border-box;
		/* #endif */
	}
	
	
	
	/* 板块 */
	 .container {
	    display: flex;
	    flex-direction: column;
	    height: 100%;
	  }
	  .bottom-bar {
	    position: fixed;
	    bottom: 0;
	    left: 0;
	    width: 100%;
	    height: 65px;
	    background-color: #F3F3F6;
	    /* 其他样式 */
	  }
</style>

到了这里,关于【uniapp小程序】打印列表UI模板的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • dedecms列表页内容页模板调用上一个栏目下一个栏目方法

    织梦CMS内容页有上一篇下一篇文章,没有上一个栏目下一个栏目,我们可以不用修改程序内核文件,直接在模板里用“runphp”输出上一个栏目和下一个栏目。 上一个栏目下一个栏目标签写法: 适用于列表页、内容页,适用于动态、静态 上一个栏目:{$row[\\\'typename\\\']}\\\";}{/dede:fi

    2024年02月03日
    浏览(28)
  • uniapp组件-ui-list列表

    目录 一、基本用法 二、显示图标或图片 三、右侧显示 switch/badge 四、使用插槽 官方示例:https://ext.dcloud.net.cn/plugin?id=24 列表组件可以在其中使用图标、略缩图或放置任何你想放的元素,使用场景如:导航菜单、列表、设置中心排版等 基于uni-list的聊天列表组件:https://blog

    2024年02月12日
    浏览(30)
  • 帝国cms列表页模板里推荐信息添加一个图标的方法

    在帝国cms列表模板里面-列表内容模板(list.var)如下:记得使用程序代码打钩 if($r[isgood]\\\'\\\') { $isgood=\\\'图标\\\'; } else { $isgood=\\\'\\\'; } $listtemp=\\\' \\\'.$isgood.\\\'[!--title--]\\\"/\\\'; 前提就是你得推荐一个信息,然后做一个图表图片即可。

    2024年02月03日
    浏览(36)
  • 微信小程序横向滚动卡片列表模板

    在开发微信小程序时,横向可滚动卡片列表是一个必不可缺的页面组件。其不仅美观还可以节省屏幕空间。具体截图如下: 主要用的是scroll-x,具体代码如下: wxml 附:renshu.png wxss js 在微信小程序开发中,横向滚动卡片列表是提升用户体验和界面美观的重要组件。本文介绍了

    2024年02月16日
    浏览(35)
  • 前端小票打印、网页打印(uniapp、小程序、ESC/POS指令)

    由于我在做项目期间遇到各种各样的打印,于是想写一篇文章来总结一下我遇到的打印需求以及解决方案。总的来说,目前我遇到的打印需求可以分为两类,网页打印和小票打印,在实现过程中,又可以分为前后端分别来实现,下面我就来说一下前端实现的方法和思路 目录

    2024年02月13日
    浏览(61)
  • uniapp微信小程序连接蓝牙打印机 打印文字、图片

    首先感谢几位的文章分享 https://blog.csdn.net/guairena/article/details/127941515 https://blog.csdn.net/qq_37970097/article/details/119148707 效果图: 使用的是 芝柯cc3 蓝牙打印机, 我这里没有存储蓝牙设备相关信息。所以每次打印都会重新初始化并搜索设备,储存相关的代码下面也有,所以代码部分

    2024年02月13日
    浏览(51)
  • uniapp实现:点击拨打电话,弹出电话号码列表,可以选择其中一个进行拨打

    在uni-app中,使用 uni.showActionSheet 方法实现点击拨打电话的功能,并弹出相关的电话列表供用户选择。 当用户选择了其中一个电话后,会触发success回调函数,并通过res.tapIndex获取用户选择的电话的索引。然后,可以根据索引从电话号码数组中取出对应的电话号码,并使用 un

    2024年02月11日
    浏览(48)
  • 微信小程序------WXML模板语法之条件渲染和列表渲染

    目录 前言 一、条件渲染 1.wx:if 2. 结合 使用 wx:if 3. hidden 4. wx:if 与 hidden 的对比 二、列表渲染 1. wx:for 2. 手动指定索引和当前项的变量名* 3. wx:key 的使用         上一期我们讲解wxml模版语法中的数据绑定和事件绑定(上一期链接:微信小程序-----WXML模板语法之数据绑定与事件

    2024年01月16日
    浏览(42)
  • uniapp - [微信小程序] 详细动态设置分享转发时的参数,实现点击按钮元素后 “手动触发“ 动态设置参数并调起转发分享给好友(列表上每一个分享按钮,单独设置分享转发参数,每次都是不同的分享参数)

    网上都是直接写死(默认不变)的分享参数,有时候需要动态赋值分享的标题、图片等,本文,这时候就不行了。 【如果需要原生微信小程序的教程,请访问:这篇文章】 本文 实现了在 uniapp 微信小程序端开发中,动态设置分享的参数(并与右上角胶囊点击的分享共存,互

    2024年02月14日
    浏览(30)
  • 全新UI基于Thinkphp的最新自助打印系统/云打印小程序源码/附教程

    这是一款全新的基于Thinkphp的最新自助打印系统,最新UI界面设计的云打印小程序源码,带有简单的教程。 源码下载:YISHEN源码网(ms3.ishenglu.c)om 

    2024年01月25日
    浏览(33)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包