微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

基于微信小程序毕业设计选题课题 疫苗预约小程序的设计与实现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;}

原文地址:https://blog.51cto.com/u_13898481/2890842

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐