编程语言
首页 > 编程语言> > 基于微信小程序毕业设计选题课题 疫苗预约小程序的设计与实现(2)疫苗介绍页面

基于微信小程序毕业设计选题课题 疫苗预约小程序的设计与实现(2)疫苗介绍页面

作者:互联网

该页面主要是疫苗介绍信息
同时提供收藏和预约跳转

效果图

在这里插入图片描述
在这里插入图片描述

wxml代码

<view  class="kecheng">
    <view class="kecheng_fengmian">
        <image class="kecheng_fengmian_tu"   src="{{dianying.sp_tupian}}"></image>
    </view>
    <view class="kecheng_xinxi">
        <view class="kecheng_xinxi1">{{dianying.sp_mc}}</view>
        <view class="kecheng_xinxi2">收费标准:¥{{dianying.sp_jiage}} 元</view>
        <view class="kecheng_xinxi3">观察时长:{{dianying.shichang}} 分钟</view>
        <view class="kecheng_xinxi3">疫苗地区:{{dianying.diqu}} </view>
    </view>
</view>

<!--顶部切换菜单-->
<view class="qukuai">
    <view class="qukuai_zuo"></view>
    <view class="qukuai_zhong">疫苗介绍</view>
    <view class="qukuai_you"></view>
</view>
<swiper current='{{currentTab}}' class='swiper-box' duration='300' style='height:{{winHeight -150}}px'  bindchange='huadong'>
    <swiper-item>
      <scroll-view scroll-y style='height:{{winHeight -150}}px'>
        <view class="jianjie">
           <view class="myred">使用方式:{{dianying.leixing}} | 疫苗种类:{{dianying.niandai}}</view>
           <rich-text nodes="{{jieshao}}"></rich-text>
        </view>
      </scroll-view>
    </swiper-item>

</swiper>

<view class="caidan">
    <navigator class="caidan_shouye" url="/pages/index/index" open-type="switchTab">
        <image class="caidan_shouye_tu" src="/img/sp01.png"></image>
        <view  class="caidan_shouye_wenzi">首页</view>
    </navigator>
    <view  class="caidan_shoucang" bindtap="shoucang" data-dyid="{{sp_id}}"   data-dymc="{{sp_mc}}" >
        <image class="caidan_shoucang_tu" src="/img/sp03.png"></image>
        <view class="caidan_shoucang_wenzi">收藏</view>
    </view>
    <navigator class="caidan_goumai" url="/pages/dianying/dingzuo?sp_id={{sp_id}}&sp_mc={{sp_mc}}">预约疫苗</navigator>
</view>

wxss代码

/* pages/shipin/xiangqing.wxss */

.biaoti{font-size: 16px; padding:0px 5px; background-color: white; height: 25px;box-sizing: border-box; line-height: 25px;text-shadow: 1px 1px 2px gainsboro;}

.kecheng{display: flex;height: 100px; box-sizing: border-box;}
.kecheng_fengmian{width: 35%; padding: 5px; text-align: center;}
.kecheng_fengmian_tu{height: 90px; width: 120px;}
.kecheng_xinxi{width: 65%; padding: 5px; font-size: 14px; color: gray;}
.kecheng_xinxi1{padding: 0px 0px 5px 0px;}
.kecheng_xinxi2{padding: 0px 0px 5px 0px;}
.kecheng_xinxi3{padding: 0px 0px 5px 0px;}
.kecheng_xinxi4{padding: 0px 0px 5px 0px;}

.myred{color: red;}

.swiper-tab {
    background-color:#f6f6f6;
    width: 100%;
    border-bottom: 1px solid gray;
    text-align: center;
    line-height: 30px;
    display: flex;
  }
  .swiper-tab-list {
    display: inline-block;
    width: 100%;
    color: gray;
  }
  .xuanzhong {
    color: tomato;
    border-bottom: 3px solid tomato;
  }
 
  .qukuai{display: flex;align-items:center; background-color: #f2f2f2;}
  .qukuai_zuo{margin: 5px 10px; width:5px; height:20px; background-color: rgb(13, 163, 233);border-radius: 10px;}
  .qukuai_zhong{font-size: 16px; flex-grow: 1;color: rgb(13, 163, 233);}
  .qukuai_you{font-size: 16px; color: gray;padding-right: 10px;}
  
  .jianjie{color: gray; font-size: 14px; background-color: white; padding: 10px;line-height:2;}

  
/*评论内容*/
.pl{
  background-color: #f6f6f6;
  border-top: 1px solid gainsboro;
 border-bottom: 1px solid gainsboro;
 display: flex;
 flex-direction: column;
 padding: 10px;
 margin-top: 10px;
 background-color: white;
}
.pl-yonghu{
 display: flex;
 border-bottom: 1px dotted gainsboro;
 padding-bottom: 5px;
 }
.pl-nicheng{
 flex-grow: 1;
 font-size: 14px;
}
.pl-shijian{
 font-size: 12px;
 color: gray;
}
.pl-xx{}
.pl-img{
 width: 15px; height: 15px;
}
.pl-neirong{
 color: gray;
 font-size: 12px;
}
 
.caidan{
  height: 45px;background-color: white; display: flex;
  position: fixed; bottom: 0; width: 100%; 
  font-size: 15px; color: gray; text-align: center;border-top: 1px solid gainsboro;
}
.caidan_shouye{width: 25%; display: flex; flex-direction: column;justify-content: center; align-items: center;border-right: 1px solid gainsboro;}
.caidan_shouye_tu{width: 20px;height: 20px;}
.caidan_shouye_wenzi{}
.caidan_shoucang{width: 25%;display: flex; flex-direction: column;justify-content: center; align-items: center;}
.caidan_shoucang_tu{width: 16px;height: 16px;}
.caidan_shoucang_wenzi{}
.caidan_goumai{width: 50%;line-height: 45px; background-color: orangered; color: white;line-height: 45px; text-align: center;}

标签:flex,color,程序,height,padding,width,疫苗,毕业设计,0px
来源: https://blog.51cto.com/u_13898481/2890842