微信小程序信息展示列表

标题图

微信小程序信息展示列表

效果展示:

效果展示

代码展示:

wxml

<view class="head"><view class="head_item">分类</view><view class="ring"></view><view class="head_item">价格</view>
</view>
<block wx:for="{{ets}}"><view class="item" bindtap="seePerson" id="{{item.id}}"><view class='img'><!-- img --><image src="{{baseUrl}}{{item.avatar}}" style="width:100px;height:100px;"></image></view><view class="intro"><!-- 广东礼仪带队宵夜 --><view class="position">{{item.name}}</view><view class="jiaqian">¥--/人</view><view class="address">原价:¥--</view><!-- 广州市 | 共有49个案例,0个视频 --><view class="dizhi">{{item.city}} {{item.gender}} {{item.age}} {{item.label}}</view></view><button class='but'>火爆</button><view class='rendu'>热度:190</view></view><view class="hr"></view>
</block><!-- 
<view class="item"><view class='img'><image src="{{img}}" style="width:100px;height:100px;"></image></view><view class="intro"><view class="position">广东礼仪带队宵夜</view><view class="jiaqian">¥300/人</view><view class="address">原价:¥500</view><view class="dizhi">广州市 | 共有49个案例,0个视频</view></view><button class='but'>6.0折</button><view class='rendu'>热度:190</view>
</view>
<view class="hr"></view><view class="item"><view class='img'><image src="{{img}}" style="width:100px;height:100px;"></image></view><view class="intro"><view class="position">广东礼仪带队宵夜</view><view class="jiaqian">¥300/人</view><view class="address">原价:¥500</view><view class="dizhi">广州市 | 共有49个案例,0个视频</view></view><button class='but'>6.0折</button><view class='rendu'>热度:190</view>
</view>
<view class="hr"></view><view class="item"><view class='img'><image src="{{img}}" style="width:100px;height:100px;"></image></view><view class="intro"><view class="position">广东礼仪带队宵夜</view><view class="jiaqian">¥300/人</view><view class="address">原价:¥500</view><view class="dizhi">广州市 | 共有49个案例,0个视频</view></view><button class='but'>6.0折</button><view class='rendu'>热度:190</view>
</view>
<view class="hr"></view><view class="item"><view class='img'><image src="{{img}}" style="width:100px;height:100px;"></image></view><view class="intro"><view class="position">广东礼仪带队宵夜</view><view class="jiaqian">¥300/人</view><view class="address">原价:¥500</view><view class="dizhi">广州市 | 共有49个案例,0个视频</view></view><button class='but'>6.0折</button><view class='rendu'>热度:190</view>
</view>
<view class="hr"></view> -->

wxss

.item {display: flex;flex-direction: row;
}
.head_item {width: 374rpx;text-align: center;font-size: 30rpx;color: #fff;
}.head {height:80rpx;background-color: #D53E37;border-top: 1rpx solid #fff;border-bottom: 1rpx solid rgba(204, 204, 204, 1);display: flex;align-items: center;top: 0;
}.ring {width: 2rpx;height: 100%;background-color: rgba(204, 204, 204, 1);
}.img {margin: 10rpx 0 10rpx 10rpx;
}.intro {display: flex;flex-direction: column;margin-left: 10px;width: 100%;
}.introing {display: flex;flex-direction: column;flex: right;margin-right: 30rpx;
}.position {margin-top: 20rpx;width: 60%;font-size: 28rpx;font-weight: bold;
}.jiaqian {font-size: 28rpx;color: red;margin-top: 20rpx;
}.address {font-size: 25rpx;color: #999;margin-top: 20rpx;
}.dizhi {font-size: 25rpx;margin-top: 20rpx;
}.but {position: absolute;font-size: 25rpx;margin-left: 620rpx;margin-top: 55rpx;border: red;color: red;
}.rendu {position: absolute;font-size: 25rpx;margin-left: 620rpx;margin-top: 120rpx;
}.line {align-content: center;border: 1px solid #ccc;opacity: 0.2;
}.hr {height: 10px;background-color: #eee;
}

json

{"navigationBarTitleText": "达叔小生","enablePullDownRefresh": true
}

js

// 获取应用实例
var app = getApp()
Page({data: {ets: [],baseUrl: app.globalData.baseUrl},onLoad: function() {// this.loading();var that = this;that.loadPer();},// 加载艺人列表loadPer: function() {var that = this;wx.request({url: app.globalData.baseUrl + '/list/', // 接口地址method: 'GET',header: {'content-type': 'application/json' //默认值},// 成功success: function(res) {console.log("加载艺人列表 成功", res.data.data);that.setData({ets: res.data.data});},// 失败fail: function(err) {console.log("加载艺人列表 失败", err);}})},// 下拉刷新onPullDownRefresh: function() {console.log("下拉刷新")var that = this;wx.showNavigationBarLoading()setTimeout(() => {that.loadPer();wx.hideNavigationBarLoading()wx.stopPullDownRefresh()}, 2000)},seePerson: function(e) {// if (!e.currentTarget.id == "") {//   wx.navigateTo({//     url: "../person/person?id=" + e.currentTarget.id//   })//   console.log(e)// } else {//   console.log("无内容")// }if (!e.currentTarget.id == "") {wx.navigateTo({url: "../detailjiemu/detailjiemu?id=" + e.currentTarget.id})console.log(e)} else {console.log("无内容")}}
})

达叔小生:往后余生,唯独有你
You and me, we are family !
90后帅气小伙,良好的开发习惯;独立思考的能力;主动并且善于沟通
简书博客: 达叔小生
https://www.jianshu.com/u/c785ece603d1

结语

  • 下面我将继续对 其他知识 深入讲解 ,有兴趣可以继续关注
  • 小礼物走一走 or 点赞

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

如若内容造成侵权/违法违规/事实不符,请联系瞎胡闹网进行投诉反馈,一经查实,立即删除!

相关文章

微信小程序列表开发-个人中心界面(一)

先放个效果图让你们看一下是不是你们需要的&#xff0c;到时候会写几篇博客把里面的组件也讲一下 .wxml .wxss .js .json 我里面的引用的照片都放在image文件里的&#xff0c;image文件是放在pages文件下面的&#xff0c;因为放的位置不同&#xff0c;图片引用的路径…

JDK8-JDK17中的新特性(var类型推断、模式匹配、Record、密封类)

文章目录 1. 新语法结构1.1 Java的REPL工具&#xff1a; jShell命令1.2 异常处理之try-catch资源关闭1.3 局部变量类型推断1.4 instanceof的模式匹配1.5 switch表达式1.6 文本块1.7 Record1.8 密封类 2. API的变化2.1 Optional类2.2 String存储结构和API变更2.3 JDK17&#xff…

linux下安装使用dig命令

有时候用的精简版linux系统会发现没有dig命令,这时候就需要安装一下。 centos系 yum install bind-utils dig命令大多时候可以取代nslookup 简明使用,只会输出A记录(写脚本的时候容易获取ip地址) dig www.baidu.com +short只输出mx记录,简明使用 dig mx www.baidu.com…

dig命令后+trace的含义

dig trace命令 dig ip 域名 类型 trace工作过程 以 dig pbc.gov.cn trace 为例。 用户看到的结果 wireshark抓包看到的结果&#xff08;只显示了查询部分&#xff0c;响应就是查询目的对源地址的响应&#xff09; 步骤源目的查询1本机ip中指定的ip.的NS2本机本地DNS.的NS…

linux dig命令使用详解

linux dig命令使用详解 Linux下解析域名除了使用nslookup之外&#xff0c;开可以使用dig命令来解析域名&#xff0c;dig命令可以得到更多的域名信息。dig 命令主要用来从 DNS 域名服务器查询主机地址信息。 dig的全称是 (domain information groper)。它是一个用来灵活探测DN…

dig命令笔记

dig 命令全称域信息搜索器&#xff0c;是一个用于查询 DNS 域名服务器信息的命令行工具。因为dig命令灵活&#xff0c;容易使用&#xff0c;多数DNS管理员使用dig命令来诊断 DNS 问题。 dig 常用命令格式 dig [server] [-p port] [-t type] [-4] [-6] [trace] name 指定 DNS …

linux中dig 命令解释

dig&#xff08;域信息搜索器&#xff09;命令是个用于询问 DNS 域名服务器的灵活的工具。他执行 DNS 搜索&#xff0c;显示从受请求的域名服务器返回的答复。多数 DNS 管理员利用 dig 作为 DNS 问题的故障诊断&#xff0c;因为他灵活性好、易用、输出清楚 1、A记录&#xff1…

从dig命令理解DNS

DNS&#xff08;Domain Name System&#xff0c;域名系统&#xff09;&#xff0c;是一种用于将域名解析为IP的服务器系统&#xff0c;当你上网时输入一个网址&#xff0c;它之所以能够找到该网址指向的服务器地址&#xff0c;都是靠域名系统来进行解析的。 先来讲讲域名。以华…

dig命令(dig命令怎么用)

林肯公园digdeeper是哪首歌 出自专辑《Minutes to Midnight》 nslookup、dig和host这几个命令有什么作用&#xff1f; nslookup、dig和host 这几个命令在UNIX和linux系统中使用,都可以进行域名的解析?nslookup使用交互方式查询域名与IP地址的映射关系?dig的功能是发送域名查…

Windows10 下安装 dig 命令的步骤(一)

前言&#xff1a; 今天在电脑上解析域名&#xff0c;但是发现dig命令报以下错误&#xff1a; Dig 工具全称为域名信息搜索器&#xff08;Domain InformationGroper&#xff09;&#xff0c;能够显示详细的DNS查询过程&#xff0c;是一个非常强大的DNS故障诊断工具。一般Linux…

linux中dig命令返回结果解释

dig baidu.com 返回 下面说明各项意义&#xff1a; ; <<>> DiG 9.3.6-P1-RedHat-9.3.6-20.P1.el5_8.6 <<>> baidu.com ;; global options: printcmd dig程序的版本号&#xff0c;和要查询的域名 Dig的部分输出告诉我们一些有关于它的版本信息(versio…

Windows系统下安装dig命令

dig 是一个 Linux 下用来 DNS 查询信息的工具&#xff0c;全称是Domain Information Groper&#xff0c;与 nslookup 类似&#xff0c;但比 nslookup 功能更强大。Windows 下只有 nslookup&#xff0c;如果也想用到 dig 命令&#xff0c;就只能自己动手安装了。 dig 作为 bind …

(学习日记)AD学习 #4

写在前面&#xff1a; 由于时间的不足与学习的碎片化&#xff0c;写博客变得有些奢侈。 但是对于记录学习&#xff08;忘了以后能快速复习&#xff09;的渴望一天天变得强烈。 既然如此 不如以天为单位&#xff0c;以时间为顺序&#xff0c;仅仅将博客当做一个知识学习的目录&a…

Excel表格匹配合并

在日常的工作中&#xff0c;免不了存在多个表格根据相同数据匹配合并的情况&#xff0c;很多人会因为复杂的公式导致匹配失败或错误。接下来&#xff0c;我将用一个简单的方式完成这一个任务。 1、打开网址www.excelutil.com 2、选择匹配合并 3、上传左文件和右文件 这两个文…

Excel模糊匹配相同内容的数据求和,使用SUMIF函数

看到朋友在对Excel表格数据进行机械操作&#xff0c;想到excel应该是个很强大的应用&#xff0c;这些机械操作应该可以通过函数简化操作的&#xff0c;于是不正经的研究下。 首先我们上图&#xff1a; 简单的需求&#xff0c;把每个店铺的每个月充值分别是200,500,1000,1500,2…

大模型时代的prompt学习(持续更新)

目录 为什么要学prompt基本原则prompt撰写框架Base Prompt FrameworkCRISPE Prompt Framework 场景撰写文案文档竞品分析产品设计数据分析 chain of thoughtzero shotin context learning(few shot)Self-Consistency Program-Aidedprompt tipsTo Do and Not To Doadd examples引…

excel数据分析 - 8个关联匹配类函数

1. LOOKUP函数 ①单条件定位查找 lookup( 待匹配内容, 待匹配内容所在区域 , 结果范围显示区域 ) 两个区域的列数需相同 e.g. 查找 “东区”对应的C1省会城市&#xff0c; lookup &#xff08;A2, A:A , C:C &#xff09; 杭州 A1B1C1东区 浙江杭州西区甘肃兰州 ②多条…

python excel 数据匹配_python将一个excel表格的数据匹配到另一个表中

python将一个excel表格的数据匹配到另一个表中 python将一个excel表格的数据匹配到另一个表中 打开excel表&#xff0c;需要在另一个表中匹配相应学生姓名的学号信息。 之前尝试了excel中的VLOOKUP函数&#xff0c;试了很多次都没有成功&#xff0c;因此&#xff0c;用python试…

EXCEL省份和年份的数据匹配

目录 EXCEL对两个满足两个条件的数据匹配公式 使用的函数 实例一 实例二 可能存在的问题 参考 本文用于记录处理数据的一些经验和方法 EXCEL对两个满足两个条件的数据匹配公式 使用的函数 INDEX(array, row_num, [column_num]) 说明&#xff1a;函数返回表格或区域中…

Excel的两个表格按照某一列数据进行匹配

我们在操作excel表的时&#xff0c;有时需要将一个excel表中的数据匹配到另一个表中&#xff0c;那么就需要用到VLOOKUP函数&#xff0c;VLOOKUP函数是Excel中的一个纵向查找函数&#xff0c;VLOOKUP是按列查找&#xff0c;最终返回该列所需查询列序所对应的值&#xff0c;下面…