微信小程序之“自取”与“外卖”

效果演示:

Index.html代码:

<view class="section">
  <view class="section_content">
    <view class="left_ziqu" bindtap="goZiqu">
      <image src="/pages/image/11.png"></image>
      <text>自取</text>
    </view>
    <view class="right_waimai" bindtap="goOrder">
    <image src="/pages/image/22.png"></image>
    <text>外卖</text>
    </view>
  </view>
</view>

(由于自取与外卖页面没有编写所以点击后只显示原始页面内容)

在index.wxss的代码:

.section{
   display:flex;
   justify-content:center;
   padding:20rpx 0;
}
.section .section_content{
  display:flex;
  justify-content:space-between;
  width:690rpx;
  height:224rpx;
  background-color:#3e87991a;
}
.section .section_content .left_ziqu,
.section .section_content .right_waimai{
  width:50%;
  display:flex;
  justify-content: center;
  align-items:center;
  flex-direction:column;
  position:relative;
}
.section .section_content image{
  width:84rpx;
  height:84rpx;
  margin:20rpx 0;
}
.section .section_content text{
  font-size:30rpx;
  color:#5a5b5c;
  font-weight:bold;
}
.section .section_content .left_ziqu::after{
  content:"";
  display:block;
  width:1rpx;
  height:150rpx;
  background-color:red;
  position:absolute;
  right:0;
  top:0;
  bottom:0;
  margin:auto;
}
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值