仿中国婚博会微信小程序

仿中国婚博会微信小程序

在这里插入图片描述
在这里插入图片描述
app.json

{ 
  "pages": [ 
    "pages/index/index", 
    "pages/cash/cash", 
    "pages/marry/marry", 
    "pages/community/community", 
    "pages/me/me", 
    "pages/type/type" 
  ], 
  "window": { 
    "backgroundTextStyle": "light", 
    "navigationBarBackgroundColor": "#D73E3E", 
    "navigationBarTitleText": "中国婚博会", 
    "navigationBarTextStyle": "white" 
  }, 
  "tabBar": { 
    "selectedColor": "#D73E3E", 
    "backgroundColor": "#F3F1EF", 
    "borderStyle": "white", 
    "list": [ 
      { 
        "pagePath": "pages/index/index", 
        "text": "首页", 
        "iconPath": "images/bar/index-0.jpg", 
        "selectedIconPath": "images/bar/index-1.jpg" 
      }, 
      { 
        "pagePath": "pages/cash/cash", 
        "text": "现金券", 
        "iconPath": "images/bar/cash-0.jpg", 
        "selectedIconPath": "images/bar/cash-1.jpg" 
      }, 
      { 
        "pagePath": "pages/marry/marry", 
        "text": "婚博会",         "iconPath": "images/bar/marry-0.jpg", 
        "selectedIconPath": "images/bar/marry-1.jpg" 
      }, 
      { 
        "pagePath": "pages/community/community", 
        "text": "社区", 
        "iconPath": "images/bar/community-0.jpg", 
        "selectedIconPath": "images/bar/community-1.jpg" 
      }, 
      { 
        "pagePath": "pages/me/me", 
        "text": "我的", 
        "iconPath": "images/bar/me-0.jpg", 
        "selectedIconPath": "images/bar/me-1.jpg" 
      } 
    ] 
  }, 
  "sitemapLocation": "sitemap.json" 
} 

app.wxss 文件代码:

.container { 
  height: 100%; 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  justify-content: space-between; 
  padding: 200rpx 0; 
  box-sizing: border-box; 
}

index.wxml 文件代码如下:

<view class="haibao"> 
   <swiper indicator-
dots="{{indicatorDots}}" autoplay="{{autoplay}}" interval="{{interval}}" duration="
{{duration}}"> 
     <block wx:for="{{imgUrls}}"> 
        <swiper-item>           <image src="{{item}}" class="silde-
image" style="width:100%;height:176px;"></image> 
        </swiper-item> 
     </block> 
   </swiper> 
 </view> 
 <view class="nav"> 
 <block wx:for="{{navs}}"> 
   <view class="item" bindtap="navBtn" id="{{index}}"> 
      <view> 
        <image src="{{item.img}}" style="width:58px;height:56px;"></image> 
      </view> 
      <view> 
        {{item.name}} 
      </view> 
   </view> 
   </block> 
 </view> 
  <view class="hr"></view>

剩余代码图片资源链接https://download.csdn.net/download/weixin_43474701/13769718

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

编程ID

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值