纯静态微信小程序汽车商城

首页代码

<!--index.wxml-->
<view class="container">
  <view class="top_img">
    <swiper indicator-dots="true" autoplay="true" duration="{
  {duration}}" interval="{
  {interval}}">
      <block wx:for="{
  {img_urls}}">
        <swiper-item>
          <image src="{
  {item}}" style="width: 100%; height: 100%"></image>
        </swiper-item>
      </block>
    </swiper>
  </view>

  <view class="title">
    <text id="font">热点资讯</text>
  </view>

  <view class="news">
    <block wx:for="{
  {contents}}">
      <view class="new" >
        <view class="text">
          <text>{
  {items[index]}}</text>
        </view>
        <view class="pic">
          <image src="{
  {new_pic[item]}}" style="height: 60px; width: 60px"></image>
        </view>
      </view>
    </block>
  </view>

  <button id="btn" type="primary" size="mini" plain loading="{
  {load}}" bindtap="setLoad">
   更多
  </button>
</view>

汽车详情代码

<view class="container">
    <view id="car_title_cont">
        <text id="car_title">超跑阵容</text>
    </view>

    <view class="car_names">法拉利</view>
    <view class="img_cont">
      <swiper class="img_pic">
        <block>
          <swiper-item>
            <image src="http://img1.xcarimg.com/b70/s8124/c_20160708111430452859370711393.jpg" style="width: 100% height: 100%;"></image>
          </swiper-item>
        </block>
      </swiper>
    </view>

    <view class="car_names">兰博基尼</view>
    <view class="img_cont">
      <swiper class="img_pic">
        <block>
          <swiper-item>
            <image src="http://img1.xcarimg.com/b67/s6633/c_20150710104510986162680120832.jpg" style="width: 100% height: 100%;"></image>
          </swiper-item>
        </block>
      </swiper>
    </view>

    <view class="car_names">迈凯伦</view>
    <view class="img_cont">
      <swiper class="img_pic">
        <block>
          <swiper-item>
            <image src="http://img1.xcarimg.com/b226/s6991/c_20150629145006087467591186056.jpg" style="width: 100% height: 100%;"></image>
          </swiper-item>
        </block>
      </swiper>
    </view>
</view>

私聊获取源码

运行部分截图

相关推荐

  1. 基于SpringBoot和程序网上购物商城

    2024-01-30 08:34:02       72 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-01-30 08:34:02       98 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-01-30 08:34:02       106 阅读
  3. 在Django里面运行非项目文件

    2024-01-30 08:34:02       87 阅读
  4. Python语言-面向对象

    2024-01-30 08:34:02       96 阅读

热门阅读

  1. 【PostGIS】POSTGIS实现聚类统计提取外轮廓

    2024-01-30 08:34:02       67 阅读
  2. 后端商品分类显示接口实现

    2024-01-30 08:34:02       39 阅读
  3. arch liunx安装android studio

    2024-01-30 08:34:02       52 阅读
  4. uniapp日志写入

    2024-01-30 08:34:02       57 阅读
  5. WebSocket详解

    2024-01-30 08:34:02       45 阅读
  6. 实时搜索建议

    2024-01-30 08:34:02       54 阅读