欢迎您的到来!     
注册用户 [请登录]      新用户 [免费注册]     
网站首页 电子教程 视频教程 在线题库 毕业设计作品 疑难解答 毕设文档
分类
毕业设计
毕设相关资料  
移动开发
WEBAPP   微信小程序  
数据库
SQL   MySQL  
后端开发
ASP   PHP   JSP   NET   Python  
前端JS
JavaScript   jQuery   Vue.js   React.JS   AngularJS  
前端界面
HTML   CSS   Bootstrap  
毕业设计
小程序毕设   Java毕设   PHP毕设  
 文章详情:基于微信小程序餐饮外卖点餐订餐系统 微信小程序线上订餐系统 毕业设计(4)我的订单

【套餐】基于微信小程序外卖点餐订餐系统 毕业设计

源代码下载地址:https://ke.qq.com/course/package/28654?tuin=2b10d56

有需要的请添加QQ 45157718(微信同号) 咨询


image.pngimage.png


wxml代码


<!--顶部切换菜单-->
<view class='swiper-tab'>
  <view class='swiper-tab-list {{currentTab==0 ? "xuanzhong" : ""}}' data-current='0' bindtap='swichNav'>
    待付款
  </view>
  <view class='swiper-tab-list {{currentTab==1 ? "xuanzhong" : ""}}' data-current='1' bindtap='swichNav'>
    待发货
  </view>
  <view class='swiper-tab-list {{currentTab==2 ? "xuanzhong" : ""}}' data-current='2' bindtap='swichNav'>
    待收货
  </view>
  <view class='swiper-tab-list {{currentTab==3 ? "xuanzhong" : ""}}' data-current='3' bindtap='swichNav'>
    全部菜单
  </view>
</view>
<swiper current='{{currentTab}}' class='swiper-box' duration='300' style='height:{{winHeight -50}}px' bindchange='huadong'>
  
  <!--待付款-->
  <swiper-item>
    <scroll-view scroll-y style='height:{{winHeight-40}}px' class='cps'>
      <block wx:for="{{ddcps}}" wx:key="key" wx:if="{{item.zt==2}}">
        <view class='cp-danhao'>
          单号:{{item.danhao}} | 时间:{{item.shijian}}
        </view>
        <block wx:for="{{item.cps}}"  wx:key="key" wx:for-item="item2">
          <view class='cp'>
            <view class='cp-tupian'>
              <image class='cp-img' src='{{item2.tupian}}' mode='widthFix'></image>
            </view>
            <view class='cp-xinxi'>
              <view class="cp-mingcheng">{{item2.mingcheng}}</view>
              <view class="cp-xiaoshou">库存:{{item2.kucun}} | 限购:{{item2.xiangou}}</view>
              <view class="cp-jiage">¥:{{item2.jiage}}</view>
            </view>
            <view class='cp-shuliang'>
              {{item2.shuliang}} 件
            </view>
          </view>
        </block>
        <view class='cp-jiesuan'>
          共{{item.chanpinshu}}件商品, 产品金额:¥{{item.feiyong}}
        </view>
        <view class='cp-caozou'>
          <button size='mini' bindtap='quxiao' data-danhao='{{item.danhao}}'>取消订单</button>
          <button size='mini' bindtap='fukuan' data-danhao='{{item.danhao}}'>去付款</button>
        </view>
      </block>
    </scroll-view>
  </swiper-item>
  <!--待发货-->
  <swiper-item>
    <scroll-view scroll-y style='height:{{winHeight-40}}px' class='cps'>
      <block wx:for="{{ddcps}}"  wx:key="key" wx:if="{{item.zt==3}}">
        <view class='cp-danhao'>
          {{item.zt}}单号:{{item.danhao}} | 时间:{{item.shijian}}
        </view>
        <block wx:for="{{item.cps}}"  wx:key="key" wx:for-item="item2">
          <view class='cp'>
            <view class='cp-tupian'>
              <image class='cp-img' src='{{item2.tupian}}' mode='widthFix'></image>
            </view>
            <view class='cp-xinxi'>
              <view class="cp-mingcheng">{{item2.mingcheng}}</view>
              <view class="cp-xiaoshou">库存:{{item2.kucun}} | 限购:{{item2.xiangou}}</view>
              <view class="cp-jiage">¥:{{item2.jiage}}</view>
            </view>
            <view class='cp-shuliang'>
              {{item2.shuliang}} 件
            </view>
          </view>
        </block>
        <view class='cp-jiesuan'>
          共{{item.chanpinshu}}件商品, 产品金额:¥{{item.feiyong}} 【待发货】
        </view>
      </block>
    </scroll-view>
  </swiper-item>
  <!--待收货-->
  <swiper-item>
    <scroll-view scroll-y style='height:{{winHeight-40}}px' class='cps'>
      <block wx:for="{{ddcps}}"  wx:key="key" wx:if="{{item.zt==4}}">
        <view class='cp-danhao'>
          单号:{{item.danhao}} | 时间:{{item.shijian}}
        </view>
        <block wx:for="{{item.cps}}"  wx:key="key" wx:for-item="item2">
          <view class='cp'>
            <view class='cp-tupian'>
              <image class='cp-img' src='{{item2.tupian}}' mode='widthFix'></image>
            </view>
            <view class='cp-xinxi'>
              <view class="cp-mingcheng">{{item2.mingcheng}}</view>
              <view class="cp-xiaoshou">库存:{{item2.kucun}} | 限购:{{item2.xiangou}}</view>
              <view class="cp-jiage">¥:{{item2.jiage}}</view>
            </view>
            <view class='cp-shuliang'>
              {{item2.shuliang}} 件
            </view>
          </view>
        </block>
        <view class='cp-jiesuan'>
          共{{item.chanpinshu}}件商品, 产品金额:¥{{item.feiyong}}
        </view>
        <view class='cp-caozou'>
          <button size='mini' bindtap='shouhuo' data-danhao='{{item.danhao}}'>确认收货</button>
        </view>
      </block>
    </scroll-view>
  </swiper-item>
  <!--全部-->
  <swiper-item>
    <scroll-view scroll-y style='height:{{winHeight-40}}px' class='cps'>
      <block wx:for="{{ddcps}}"  wx:key="key">
        <view class='cp-danhao'>
          单号:{{item.danhao}} | 时间:{{item.shijian}}
        </view>
        <block wx:for="{{item.cps}}"  wx:key="key" wx:for-item="item2">
          <view class='cp'>
            <view class='cp-tupian'>
              <image class='cp-img' src='{{item2.tupian}}' mode='widthFix'></image>
            </view>
            <view class='cp-xinxi'>
              <view class="cp-mingcheng">{{item2.mingcheng}}</view>
              <view class="cp-xiaoshou">库存:{{item2.kucun}} | 限购:{{item2.xiangou}}</view>
              <view class="cp-jiage">
              ¥:{{item2.jiage}}             
              </view>
            </view>
            <view class='cp-shuliang'>
              <view>{{item2.shuliang}} 件</view>
              <view wx:if="{{item.zt==5}}">
               <block wx:if="{{item2.yn_pinglun_gwc=='是'}}" class="myred">已评</block>
               <block wx:else>
                  <navigator class="myred" url="/pages/chanpin/pingjia?danhao={{item.danhao}}&gwc_id={{item2.gwc_id}}&cp_id={{item2.cp_id}}">评论</navigator>
                </block>      
              </view>         
            </view>
          </view>
        </block>
        <view class='cp-jiesuan'>
          共{{item.chanpinshu}}件商品, 产品金额:¥{{item.feiyong}}
        </view>
        <view class='cp-caozou' wx:if="{{item.zt==2}}">
          <button size='mini' bindtap='quxiao' data-danhao='{{item.danhao}}'>取消订单</button>
          <button size='mini' bindtap='fukuan' data-danhao='{{item.danhao}}'>去付款</button>
        </view>
        <view class='cp-caozou' wx:if="{{item.zt==3}}">
          已经付款,等待发货
        </view>
        <view class='cp-caozou' wx:if="{{item.zt==4}}">
          <button size='mini' bindtap='shouhuo' data-danhao='{{item.danhao}}'>确认收货</button>
        </view>
        <view class='cp-caozou' wx:if="{{item.zt==5}}">
          订单已经完结
        </view>
      </block>
    </scroll-view>
  </swiper-item>
</swiper>
<view style="height:55px;"></view>
 
<view class='sys_caidan'>
  <navigator class='sys_caidan_xiangmu' url='/pages/index/index' open-type='switchTab'>
    <image src='/images/a-on.png' class='sys_caidan_xiangmu_img'></image>
    <view class='sys_caidan_xiangmu_txt sys_caidan_xiangmu_xuanzhong'>首页</view>
  </navigator>
  <navigator class='sys_caidan_xiangmu'  url='/pages/fenlei/index' open-type='switchTab'>
    <image src='/images/b-off.png' class='sys_caidan_xiangmu_img'></image>
    <view class='sys_caidan_xiangmu_txt'>分类</view>
  </navigator>
  <navigator class='sys_caidan_xiangmu' url='/pages/huiyuan/gouwuche/che_list'  open-type='switchTab'>
    <image src='/images/c-off.png' class='sys_caidan_xiangmu_img'></image>
    <view class='sys_caidan_xiangmu_txt'>购物车</view>
  </navigator>
  <navigator class='sys_caidan_xiangmu' url='/pages/huiyuan/index'  open-type='switchTab'>
    <image src='/images/d-off.png' class='sys_caidan_xiangmu_img'></image>
    <view class='sys_caidan_xiangmu_txt'>会员</view>
  </navigator>
     
</view>

wxss代码

/*菜单切换样式*/ 
.swiper-tab {
  width: 100%;
  border-bottom: 1px solid gray;
  text-align: center;
  line-height: 31px;
  display: flex;
}
.swiper-tab-list {
  display: inline-block;
  width: 33%;
  color: gray;
}
.xuanzhong {
  color: tomato;
  border-bottom: 3px solid tomato;
}
.swiper-box {
  width: 100%;
  height: 100%;
  display: block;
  overflow: scroll;
}
/*订单产品样式*/
.cps{
  display: flex;
  flex-direction: ;
  box-sizing: border-box;
  padding: 3px;
}
.cp-danhao{
  background-color: #f2f2f2;
  font-size: 12px;
  color: gray;
  height: 30px;
  line-height: 30px;
}
.cp{
  display: flex;
  padding: 5px;
  border-bottom: 1px solid gainsboro;
}
.cp-tupian{
  width: 20%;
}
.cp-img{
  width: 100%;
}
.cp-xinxi{
  width: 65%;
  margin-left: 5px;
  display: flex;
  flex-direction: column;
  flex:1;
}
.cp-mingcheng{
  font-size: 14px;
  width: 95%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.cp-xiaoshou{
  font-size: 12px;
  color: gray;
  padding: 3px 0;
}
.cp-jiage{
  font-size: 13px;
  color: red;
  display: inline;
}
.cp-shuliang{
  width: 15%;
}
.myred{ color: red; font-weight: bold;}
.cp-jiesuan{
  font-size: 13px;
  color: gray;
  height: 30px; line-height: 30px; text-align: center;
  border-bottom: 1px solid gainsboro;
}
.cp-caozou{
   height: 40px;
   display: flex;
   align-items: center;
   justify-content: center;
  
}



有需要的请添加QQ 45157718(微信同号) 咨询


上一篇: 基于微信小程序餐饮外卖点餐订餐系统 微信小程序线上订餐系统 毕业设计(3)结算 下一篇: 基于微信小程序餐饮外卖点餐订餐系统 微信小程序线上订餐系统 毕业设计(5)评价


第一步:学习免费电子文档;   第二步:在线测试考试;   第三步:选择收费视频学习;   第四步:学习技术文章和疑难解答.
友情链接: 微信小程序中文网  |   计算机毕业设计作品网  |   洪荒毕业设计网  |   小白教程网  |   毕业设计资料网  |  
浙ICP备18013434号-3 Copyright ©2020 小白教程网 www.2d5.net (QQ交流群:147415688). Technical support/技术支持:杭州摇亿网络科技