ICode9

精准搜索请尝试: 精确搜索
首页 > 编程语言> 文章详细

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

2021-06-10 17:03:10  阅读:157  来源: 互联网

标签:flex color 程序 height padding width 疫苗 毕业设计 0px


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

效果图

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

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

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有