欢迎来到懒人模板!我们专注移动互联网,所有模板永久免费下载!
  • 首 页
  • 当前位置:主页 > 小程序教程 >

    微信小程序生鲜果蔬酒类食品首页样式模板制作设计下载

    2018-06-13 09:57 来源/作者:懒人模板 分类:小程序教程  « »
    制作好以后效果图如下:
    一、wxml页面代码如下:
    <!--index.wxml-->
    <view class="container">
      <swiper indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" duration="{{duration}}" circular="{{circular}}">
        <block wx:for="{{imgUrl}}">
          <swiper-item>
            <image bindload="cusImageLoad" src="{{item}}" class="slide-image" style="width:{{imageWidth}};height:{{imageHeight}}"></image>
          </swiper-item>
        </block>
      </swiper> 
    </view>
    <view class="headline">
        <view class="headline-img"><image class="headimg" src="{{headImg}}"></image></view>
        <view class="headline-text">缤纷圣诞季,圣诞节礼物送她颜值高的甜蜜礼盒吧</view>
    </view>
    
    
    <!--生鲜-->
    <view class="friuts">
          <view class="classifytitle">{{goodclassify[0]}}</view>
          <view class="goodclassifyimg">
                <image class="classifyimg" src="{{goodclassifyimg[0]}}"></image>
          </view>
          <view class="goods">
              <view class="gooditem" wx:for="{{friut}}">
                  <view class="goodview">
                      <image class="goodimg" src="{{item.pic}}"></image>
                  </view>
                  <view class="goodprice">{{item.price}}</view>
                  <view class="goodtext">{{item.name}}</view>
              </view>
          </view>
    </view>
    <!--粮油-->
    <view class="grain ">
          <view class="classifytitle">{{goodclassify[1]}}</view>
          <view class="goodclassifyimg">
                <image class="classifyimg" src="{{goodclassifyimg[1]}}"></image>
          </view>
          <view class="goods">
              <view class="gooditem" wx:for="{{grain}}">
                  <view class="goodview">
                      <image class="goodimg" src="{{item.pic}}"></image>
                  </view>
                  <view class="goodprice">{{item.price}}</view>
                  <view class="goodtext">{{item.name}}</view>
              </view>
          </view>
    </view>
    <!--特产-->
    <view class="local">
          <view class="classifytitle">{{goodclassify[2]}}</view>
          <view class="goodclassifyimg">
                <image class="classifyimg" src="{{goodclassifyimg[2]}}"></image>
          </view>
          <view class="goods">
              <view class="gooditem" wx:for="{{local}}">
                  <view class="goodview">
                      <image class="goodimg" src="{{item.pic}}"></image>
                  </view>
                  <view class="goodprice">{{item.price}}</view>
                  <view class="goodtext">{{item.name}}</view>
              </view>
          </view>
    </view>
    <!--茶酒-->
    <view class="teawine">
          <view class="classifytitle">{{goodclassify[3]}}</view>
          <view class="goodclassifyimg">
                <image class="classifyimg" src="{{goodclassifyimg[3]}}"></image>
          </view>
          <view class="goods">
              <view class="gooditem" wx:for="{{teawine}}">
                  <view class="goodview">
                      <image class="goodimg" src="{{item.pic}}"></image>
                  </view>
                  <view class="goodprice">{{item.price}}</view>
                  <view class="goodtext">{{item.name}}</view>
              </view>
          </view>
    </view>
    <!--进口-->
    <view class="imported">
          <view class="classifytitle">{{goodclassify[4]}}</view>
          <view class="goodclassifyimg">
                <image class="classifyimg" src="{{goodclassifyimg[4]}}"></image>
          </view>
          <view class="goods">
              <view class="gooditem" wx:for="{{imported}}">
                  <view class="goodview">
                      <image class="goodimg" src="{{item.pic}}"></image>
                  </view>
                  <view class="goodprice">{{item.price}}</view>
                  <view class="goodtext">{{item.name}}</view>
              </view>
          </view>
    </view>
    
    <loading hidden="{{hiddening}}">正在加载</loading>
    

    点击扫描效果预览免费下载免登陆网盘下载
    标签:
    * 懒人模板承诺:本站所有资源免费下载,无病毒,无弹窗,无干扰链接! 提点建议