wxml
<view class="allbox">
  <view class="box1">
    <view class="input_box">
      <input type="text" placeholder-class="placeholder" placeholder="请输入关键字搜索" />
    </view>
    <view class="button_box">
      <button size="mini" type="primary">搜索</button>
    </view>
  </view>
  <view>
    <swiper autoplay="true" indicator-dots="true" >
      <swiper-item wx:for="{{img_Urls}}" wx:key="*this">
        <image src="{{item}}" class="img" ></image>
      </swiper-item>
    </swiper>
  </view>

<view class="box_button">
    <view class="btn">
      <image src="/imges/酒水饮料1.png" class="images_button"></image>
      <image src="/imges/粮油.png" class="images_button"></image>
      <image src="/imges/清洁用品.png" class="images_button"></image>
      <image src="/imges/家禽肉类.png" class="images_button"></image>
      <image src="/imges/零食.png" class="images_button"></image>

</view>
    <view class="btn">
      <text>聚餐酒水</text>
      <text>食用粮油</text>
      <text>清洁物品</text>
      <text>肉类食品</text>
      <text>休闲零食</text>
    </view>
    <view class="btn">
      <image src="/imges/宠物.png" class="images_button"></image>
      <image src="/imges/美妆蛋.png" class="images_button"></image>
      <image src="/imges/母婴玩具.png" class="images_button"></image>
      <image src="/imges/猕猴桃.png" class="images_button"></image>
      <image src="/imges/物品类别.png" class="images_button"></image>
    </view>
    <view class="btn" hover-class="wsui-btn__hover_list">
      <text>宠物用品</text>
      <text>手工美妆</text>
      <text>母婴用品</text>
      <text>新鲜水果</text>
      <text>全部类别</text>
    </view>
  </view>
  <!-- <view>
    <image src="../../imges/实时热卖.png" style="height: 120px; width: 100%;"></image>
  </view> -->

<button class="tapbtn1" plain="true" bindtap="skyOnclick">
    <!-- <navigator url="http://weibo.com"> -->
      <image class="tapimg1" src='../../imges/实时热卖.png'></image>
    <!-- </navigator> -->
  </button>
  <!-- <button class="tapbtn1" plain="true">
    <img class="tapimg1" src="../../imges/物品类别.png" />
  </button> -->
</view>

wxss

.allbox{

background-color: white;

}

input{

border: 1px solid white;

width: 240px;

height: 30px;

padding-left: 10px;

/* border-top:solid 10rpx #04BE02;

border-bottom :solid 10rpx #04BE02;

border-left: solid 10rpx #04BE02;

border-right: solid 10rpx #04BE02; */

}

.box1{

flex: 1;

display: flex;

flex-direction: row;

border-top:solid 10rpx #04BE02;

border-bottom :solid 10rpx #04BE02;

border-left: solid 10rpx #04BE02;

}

.button_box{

flex: 1;

display: flex;

flex-direction: row;

background:  #04BE02;

}

.input_box{

}

.placeholder{

text-align: center;

color:darkgray;

}

.img{

height: 100%;

width: 90%;

padding-left: 15px;

}

.box_button{

display: flex;

width: 100%;

flex-wrap: wrap;

}

.btn{

text-align: center;

display: flex;

width: 100%;

}

.btn>text{

padding-left: 20px;

height: auto;

width: 90rpx;

}

.images_button{

text-align:center;

width: 45px;

height: 45px;

padding-left: 14px;

padding-top: 5px;

}

.tapimg1{

width:315px;

height: 120px;

}

.tapbtn1[plain]{

padding: 0;

border:none;

width: 315px;

height: 120px;

}

app.json部分代码:

"window": {

"backgroundTextStyle": "dark",

"navigationBarBackgroundColor": "#04BE02",

"navigationBarTitleText": "朴朴超市",

"navigationBarTextStyle": "white"

},

"tabBar": {

"color": "#2F0000",

"selectedColor": "#04BE02",

"backgroundColor": "#fffff",

"borderStyle": "black",

"position": "bottom",

"list": [

{

"pagePath": "pages/main/main",

"text": "首页",

"iconPath": "imges/main.png",

"selectedIconPath": "imges/main.png"

},

{

"pagePath": "pages/selector/selector",

"text": "分类",

"iconPath": "imges/分类.png",

"selectedIconPath": "imges/分类.png"

},

{

"pagePath": "pages/get/get",

"text": "发现",

"iconPath": "imges/搜索.png",

"selectedIconPath": "imges/搜索.png"

},

{

"pagePath": "pages/compare/compare",

"text": "我的",

"iconPath": "imges/我的.png",

"selectedIconPath": "imges/我的.png"

}

]

},

"style": "v2",

"sitemapLocation": "sitemap.json"

}

实现效果:

微信小程序简易朴朴超市相关推荐

  1. 微信小程序-简易计算器

    代码地址如下: http://www.demodashi.com/demo/14210.html 一.前期准备工作 软件环境:微信开发者工具 官方下载地址:https://mp.weixin.qq.c ...

  2. 微信小程序简易搭建之框架/组件库

    微信小程序简易搭建之框架/组件库 Vant weapp 下面看看如何导入 https://github.com/youzan/vant-weapp 使用教程: 1.下载后找到dist 2. 在你的项目 ...

  3. 微信小程序--简易计算器

    一.项目概述 本文主要介绍了微信小程序的一个简易计算器的实现代码实例. 实现的功能有: 实现简单的加减乘除 删除 全部清空 小程序页面目录如下: 计算器页面如下: 二.WXML文件编写 首先我们对计算 ...

  4. 0基础制作微信小程序(案例:超市)

    简介:这是不要服务器不要域名,无后台,上传即用的超市小程序,终身使用,无需任何费用.即使你是小白菜鸟都可以使用. 功能:首页轮播.公告.产品展示.底部导航.一键拨号.地图导航等功能. 用途:超市.小卖 ...

  5. 微信小程序简易评分样式

    微信小程序的简单评分功能实现 注意:以下代码加入了Node框架的脚本 直接上代码 JS: Page({ data:{ }, showModal:function(){ wx.showModal({ t ...

  6. 微信小程序 - 简易天气预报

    预览图: 一.代码部分 1:WXML: <!--pages/weather/weather.wxml--> <view class="father_box"> ...

  7. 微信小程序————简易计算器

    1.计算器小程序 点击页面数字按键可以计算简单的加减乘除数据运算. 2.大概结构 页面显示 大概逻辑是当点第一次击数字键的时候要有个变量来存储这个点击的数,然后再来个记录点击运算符的变量,等要算的数全 ...

  8. 微信小程序---简易教程

    1:安装好微信开发者工具之后 新建项目选择小程序项目,选择代码存放的硬盘路径,填入刚刚申请到的小程序的 AppID,给你的项目起一个好听的名字,最后,勾选 "创建 QuickStart 项目 ...

  9. 微信小程序简易音频播放器(wx.getBackgroundAudioManager())

    开发工具:微信开发者工具 源代码(百度网盘:)链接: 提取码:ldb9 注意:如果点击播放没反应,或者爆红,则需要更换js中的视频地址 第一步.首先要在app.json里设置: "requi ...

最新文章

  1. 如何处理“已超出域所允许创建计算机账户的最大值”
  2. 知乎李大海:AI 不只是噱头,满足需求才是真落地
  3. 初识 Spring(02)---(IOC)
  4. paddleocr win10 编译
  5. html中如何把两行合并单元格,怎么把Excel单元格中多行文字合并为一行(2)
  6. python3精要(7)-集合,集合运算,集合解析
  7. 天津大学计算机在线作业答案,天大19秋《计算机应用基础》在线作业二【满分答案】...
  8. 2015计算机应用基础平时作业答案,2015秋《计算机应用基础》第一次作业
  9. (摘要)新基建风口下,今年工业互联网平台将呈现十大新特征
  10. Java8 默认方法
  11. Symfony1.4.11学习笔记(三):设置虚拟机
  12. python导出csv 字符串变成数字_python – pandas read_csv列dtype设置为十进制但转换为字符串...
  13. 03-09 toast 控件识别
  14. 解决navicat在未联网的情况下访问不了MySQL数据库的现象
  15. can总线短距离不用双绞线_CAN总线抗干扰的6条“军规”
  16. 6-2 两顶点之前有路径吗?
  17. 20155317 2016-2017-2 蓝墨云班课考题第2周
  18. 2023电工杯数学建模竞赛A题思路解析+代码+论文
  19. 12c oracle 01109,Oracle 12c redo 丢失恢复
  20. JavaScript高级程序设计学习笔记(三)

热门文章

  1. 厦大博士学位论文抄袭案后续
  2. HTML,CSS,font-family:中文字体的英文名称
  3. SpringBoot配置文件数据库密码加密
  4. SpringBoot实现文件上传接口
  5. 未来教育python全程班百度云_2019、3未来教育等级考试
  6. 2.1 Mybatis——log4j日志文件应用
  7. HTML中如何改变多选框的背景色,如何用css更改输入复选框的背景颜色?
  8. 串口字符串-HEX格式
  9. 质量员考试建筑八大员考试给排水工程遵循的原则和质量监管措施
  10. 如何看懂Code128条形码