【微信小程序】小茶书项目

1. app.json代码: 

"pages": [

    "pages/home/home",

    "pages/auction/auction",

    "pages/promulgate/promulgate",

    "pages/news/news",

    "pages/mine/mine",

    "pages/index/index",

    "pages/logs/logs",

    "pages/redirect/redirect",

    "pages/bind/bind",

    "pages/login/login",

    "pages/goods/goods",

    "pages/publish/publish",

    "pages/detail/detail",

    "pages/telphone/telphone"

  ],

  "window": {

    "backgroundTextStyle": "light",

    "navigationBarBackgroundColor": "#FF8247",

    "navigationBarTitleText": "小茶书",

    "navigationBarTextStyle": "black"

  },

  "tabBar": {

    "selectedColor": "#EE5C42",

    "list": [

      {

        "pagePath": "pages/home/home",

        "text": "首页",

        "iconPath": "pages/images/1.png",

        "selectedIconPath": "pages/images/1.1.png"

      },

      {

        "pagePath": "pages/auction/auction",

        "text": "拍卖",

        "iconPath": "pages/images/2.png",

        "selectedIconPath": "pages/images/2.2.png"

      },

      {

        "pagePath": "pages/promulgate/promulgate",

        "text": "发布",

        "iconPath": "pages/images/3.png",

        "selectedIconPath": "pages/images/3.3.png"

      },

      {

        "pagePath": "pages/news/news",

        "text": "消息",

        "iconPath": "pages/images/4.png",

        "selectedIconPath": "pages/images/4.4.png"

      },

      {

        "pagePath": "pages/mine/mine",

        "text": "我的",

        "iconPath": "pages/images/5.png",

        "selectedIconPath": "pages/images/5.5.png"

      }

    ]

  },

  "style": "v2",

  "sitemapLocation": "sitemap.json"

}

2.首页

 wxml代码:

<view class="container">

  <view class="top-view">

    <view class="item">

      <image src="../images/6.png"></image>

      <text>精品文章</text>

    </view>

    <view class="item">

      <image src="../images/7.png"></image>

      <text>小视频</text>

    </view>

    <view class="item">

      <image src="../images/8.png"></image>

      <text>名人堂</text>

    </view>

    <view class="item">

      <image src="../images/9.png"></image>

      <text>观点说</text>

    </view>

  </view>



  <view class="middle-view">

    <view class="mood1">

      <image src="../images/10.png"></image>

      <view class="author">

        <view class="left">

          <image src="../images/touxiang.png"></image>

          <view class="name">枫叶堂堂主</view>

        </view>

        <view class="right">

          <image src="../images/28.png"></image>

          <text>20</text>

        </view>

      </view>

      <view class="Content">小茶书图册</view>

    </view>

    <view class="mood">

      <image src="../images/11.png"></image>

      <view class="author">

        <view class="left">

          <image src="../images/touxiang.png"></image>

          <view class="name">枫叶堂堂主</view>

        </view>

        <view class="right">

          <image src="../images/28.png"></image>

          <text>20</text>

        </view>

      </view>

      <view class="Content">乾隆年间青花瓷</view>

    </view>

  </view>

</view>

wxss代码:

.item image{

  width: 100rpx;

  height: 100rpx;

  border-radius: 50rpx;

}

.top-view{

  display: flex;

  flex-direction: row;

  justify-content: space-around;

  padding: 40rpx;

}

.item{

  display: flex;

  flex-direction:column;

  align-items:center;

  font-size: 30rpx;

  font-weight: 550;

}

.menu1 {

  display: flex;

  flex-direction: row;

  justify-content: space-around;

}

.mood image{

  width: 350rpx;

  height: 200rpx;

}

.mood1 image{

  width: 35
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 3
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值