liuxinyang 2 years ago
parent
commit
57d8187d54

+ 1 - 0
Web_Wave

@@ -0,0 +1 @@
+Subproject commit fee5e688269fb2a64b5fa5f7b8deea2af78e91f0

+ 38 - 9
app.json

@@ -1,13 +1,42 @@
 {
-  "pages":[
-    "pages/index/index",
-    "pages/logs/logs"
-  ],
-  "window":{
-    "backgroundTextStyle":"light",
+  "pages": ["pages/index/index", "pages/logs/logs"],
+  "window": {
+    "backgroundTextStyle": "light",
     "navigationBarBackgroundColor": "#fff",
-    "navigationBarTitleText": "Weixin",
-    "navigationBarTextStyle":"black"
+    "navigationBarTitleText": "配送端",
+    "navigationBarTextStyle": "black"
   },
-  "sitemapLocation": "sitemap.json"
+  "tabBar": {
+    "list": [
+      {
+        "pagePath": "pages/index/index",
+        "text": "订单",
+        "iconPath": "/images/wenbenbianji.png",
+        "selectedIconPath": "/images/wenbenbianjitianchong.png"
+      },
+      {
+        "pagePath": "pages/logs/logs",
+        "text": "我的",
+        "iconPath": "/images/wode.png",
+        "selectedIconPath": "/images/wode (1).png"
+      }
+    ]
+  },
+  "sitemapLocation": "sitemap.json",
+  "usingComponents": {
+    "van-search": "@vant/weapp/search/index",
+    "van-button": "@vant/weapp/button/index",
+    "van-tab": "@vant/weapp/tab/index",
+    "van-tabs": "@vant/weapp/tabs/index",
+    "van-cell": "@vant/weapp/cell/index",
+    "van-cell-group": "@vant/weapp/cell-group/index",
+    "van-divider": "@vant/weapp/divider/index",
+    "van-switch": "@vant/weapp/switch/index",
+    "van-checkbox": "@vant/weapp/checkbox/index",
+    "van-checkbox-group": "@vant/weapp/checkbox-group/index",
+    "van-submit-bar": "@vant/weapp/submit-bar/index",
+    "van-icon": "@vant/weapp/icon/index",
+    "van-calendar": "@vant/weapp/calendar/index",
+    "van-uploader": "@vant/weapp/uploader/index"
+  }
 }

+ 1 - 0
images/dayuhao (1).svg

@@ -0,0 +1 @@
+<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg class="icon" width="14px" height="14.00px" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"><path fill="#8B8B83" d="M798.38 538.03l-575.1-346.2 0.04-68.75 575.04 345.6 0.02 69.35z"  /><path fill="#8B8B83" d="M798.38 538.03L223.3 894.99v-69.52l575.06-356.79 0.02 69.35z"  /></svg>

BIN
images/fanhui.png


+ 1 - 0
images/jine.svg

@@ -0,0 +1 @@
+<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg class="icon" width="25px" height="25.00px" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"><path fill="#ea986c" d="M512 64c249.6 0 448 198.4 448 448s-198.4 448-448 448-448-198.4-448-448 198.4-448 448-448z m0 64C300.8 128 128 300.8 128 512s172.8 384 384 384 384-172.8 384-384-172.8-384-384-384zM377.6 256L512 390.4 646.4 256l44.8 44.8L544 448h128v64h-128v64h128v64h-128v128h-64v-128h-128V576h128V512h-128V448h128L332.8 300.8l44.8-44.8z" /></svg>

+ 1 - 0
images/kuaidi.svg

@@ -0,0 +1 @@
+<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg class="icon" width="14px" height="13.93px" viewBox="0 0 1029 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="M0 841.354253l497.202312 182.645747v-574.995871L0 266.358382v574.995871z" fill="#EF6E69" /><path d="M16.911643 214.77787l501.430223 189.410404 187.92218-71.231841L220.375623 127.632172 16.911643 214.77787zM1018.080925 214.77787L518.341866 0 345.724723 73.937704l495.984674 207.691891L1018.080925 214.77787z" fill="#F7A46B" /><path d="M345.724723 73.937704l-125.3491 53.694468 485.888423 205.324261 135.445351-51.326838L345.724723 73.937704z" fill="#EFEFEF" /><path d="M854.596069 330.757919V514.113955l-126.786589 57.499588V377.349496L532.716763 449.004129v574.995871l497.202312-182.645747v-574.995871l-175.323006 64.399537z" fill="#F7A46B" /><path d="M854.596069 514.113955V330.757919l-126.786589 46.591577V571.613543l126.786589-57.499588z" fill="#EFEFEF" /></svg>

+ 1 - 0
images/rili.svg

@@ -0,0 +1 @@
+<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg class="icon" width="14px" height="14.00px" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"><path fill="#eeb174" d="M938.688 96H800V32a32 32 0 1 0-64 0v64h-192V32a32 32 0 1 0-64 0v64H288V32a32 32 0 1 0-64 0v64H85.344A85.312 85.312 0 0 0 0 181.312v757.344A85.344 85.344 0 0 0 85.344 1024h853.344A85.312 85.312 0 0 0 1024 938.656V181.312A85.28 85.28 0 0 0 938.688 96zM960 938.656a21.344 21.344 0 0 1-21.312 21.344H85.344A21.344 21.344 0 0 1 64 938.656V181.312C64 169.568 73.568 160 85.344 160H224v64a32 32 0 1 0 64 0V160h192v64a32 32 0 1 0 64 0V160h192v64a32 32 0 1 0 64 0V160h138.688c11.744 0 21.312 9.568 21.312 21.312v757.344z"  /><path fill="#eeb174" d="M224 384h128v96H224zM224 544h128v96H224zM224 704h128v96H224zM448 704h128v96h-128zM448 544h128v96h-128zM448 384h128v96h-128zM672 704h128v96h-128zM672 544h128v96h-128zM672 384h128v96h-128z"  /></svg>

+ 1 - 0
images/shangpin.png

@@ -0,0 +1 @@
+<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg class="icon" width="14px" height="14.00px" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h1024v1024H0V0z" fill="#202425" opacity=".01" /><path d="M68.266667 375.466667a34.133333 34.133333 0 0 1 34.133333-34.133334h819.2a34.133333 34.133333 0 0 1 34.133333 34.133334v443.733333a136.533333 136.533333 0 0 1-136.533333 136.533333H204.8a136.533333 136.533333 0 0 1-136.533333-136.533333V375.466667z" fill="#FF7744" /><path d="M187.1872 108.202667A102.4 102.4 0 0 1 268.356267 68.266667h487.287466a102.4 102.4 0 0 1 81.169067 39.936l110.7968 144.042666A34.133333 34.133333 0 0 1 920.541867 307.2H103.458133a34.133333 34.133333 0 0 1-27.067733-54.954667l110.7968-144.042666z" fill="#FFAA44" /><path d="M441.344 116.667733A17.066667 17.066667 0 0 1 458.205867 102.4h107.588266a17.066667 17.066667 0 0 1 16.861867 14.267733L614.4 307.2h-204.8l31.744-190.532267zM409.6 341.333333h204.8v275.319467a17.066667 17.066667 0 0 1-26.5216 14.199467l-56.9344-37.956267a34.133333 34.133333 0 0 0-37.888 0l-56.9344 37.956267a17.066667 17.066667 0 0 1-26.5216-14.199467V341.333333z m273.066667 392.533334a51.2 51.2 0 0 0 0 102.4h102.4a51.2 51.2 0 0 0 0-102.4h-102.4z" fill="#FFFFFF" /></svg>

+ 1 - 0
images/shangpin.svg

@@ -0,0 +1 @@
+<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg class="icon" width="14px" height="14.00px" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h1024v1024H0V0z" fill="#202425" opacity=".01" /><path d="M68.266667 375.466667a34.133333 34.133333 0 0 1 34.133333-34.133334h819.2a34.133333 34.133333 0 0 1 34.133333 34.133334v443.733333a136.533333 136.533333 0 0 1-136.533333 136.533333H204.8a136.533333 136.533333 0 0 1-136.533333-136.533333V375.466667z" fill="#FF7744" /><path d="M187.1872 108.202667A102.4 102.4 0 0 1 268.356267 68.266667h487.287466a102.4 102.4 0 0 1 81.169067 39.936l110.7968 144.042666A34.133333 34.133333 0 0 1 920.541867 307.2H103.458133a34.133333 34.133333 0 0 1-27.067733-54.954667l110.7968-144.042666z" fill="#FFAA44" /><path d="M441.344 116.667733A17.066667 17.066667 0 0 1 458.205867 102.4h107.588266a17.066667 17.066667 0 0 1 16.861867 14.267733L614.4 307.2h-204.8l31.744-190.532267zM409.6 341.333333h204.8v275.319467a17.066667 17.066667 0 0 1-26.5216 14.199467l-56.9344-37.956267a34.133333 34.133333 0 0 0-37.888 0l-56.9344 37.956267a17.066667 17.066667 0 0 1-26.5216-14.199467V341.333333z m273.066667 392.533334a51.2 51.2 0 0 0 0 102.4h102.4a51.2 51.2 0 0 0 0-102.4h-102.4z" fill="#FFFFFF" /></svg>

+ 1 - 0
images/tuikuan.svg

@@ -0,0 +1 @@
+<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg class="icon" width="14px" height="14.00px" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"><path fill="#ea986c" d="M329.5 454.6c0 12.3 10 22.3 22.3 22.3h134.9v76.4H357.8c-12.3 0-22.3 10-22.3 22.3s10 22.3 22.3 22.3h128.9V757c0 12.3 10 22.3 22.3 22.3s22.3-10 22.3-22.3V597.7h141c12.3 0 22.3-10 22.3-22.3s-10-22.3-22.3-22.3h-141v-76.4h134.9c12.3 0 22.3-10 22.3-22.3s-10-22.3-22.3-22.3H555.7L675.9 284c7.7-9.5 6.3-23.6-3.3-31.3-9.5-7.7-23.6-6.3-31.3 3.3L508.9 419.3 373.6 253.1c-7.8-9.5-21.8-11-31.3-3.2s-11 21.8-3.2 31.3l123.1 151.1H351.8c-12.3 0-22.3 10-22.3 22.3zM512 0C229.7 0 0 229.7 0 512c0 9 5.4 17.1 13.7 20.6 8.3 3.4 17.9 1.5 24.3-4.8l120.2-120.2c8.7-8.7 8.7-22.8 0-31.5s-22.8-8.7-31.5 0L48 454.8C76.3 223.9 273.6 44.5 512 44.5c257.8 0 467.5 209.7 467.5 467.5S769.8 979.5 512 979.5c-140.3 0-272-62.2-361.2-170.8-7.8-9.5-21.8-10.9-31.3-3.1-9.5 7.8-10.9 21.8-3.1 31.3 97.7 118.8 241.9 187 395.6 187 282.3 0 512-229.7 512-512S794.3 0 512 0z" /></svg>

BIN
images/tupian2.png


BIN
images/wenbenbianji.png


BIN
images/wenbenbianjitianchong.png


BIN
images/wode (1).png


BIN
images/wode.png


+ 1 - 0
images/wodezhangdan.svg

@@ -0,0 +1 @@
+<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg class="icon" width="14px" height="14.00px" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="M271.36 151.552h481.28c22.528 0 40.96 18.432 40.96 40.96v634.88c0 22.528-18.432 40.96-40.96 40.96l-87.04-51.2-90.624 51.2-65.024-51.2-71.68 51.2-90.624-51.2-76.8 51.2c-22.528 0-40.96-18.432-40.96-40.96v-634.88c0.512-23.04 18.944-40.96 41.472-40.96z" fill="#FFFFFF" /><path d="M573.44 892.928l-63.488-50.176-69.632 49.664-90.624-51.2-71.68 47.616h-6.144c-33.792 0-61.44-27.648-61.44-61.44v-634.88c0-33.792 27.648-61.44 61.44-61.44h481.28c33.792 0 61.44 27.648 61.44 61.44v634.88c0 33.792-27.648 61.44-61.44 61.44H747.52l-81.408-48.128-92.672 52.224z m92.16-99.84l91.648 53.76c9.216-2.048 15.872-10.24 15.872-19.968v-634.88c0-11.264-9.216-20.48-20.48-20.48h-481.28c-11.264 0-20.48 9.216-20.48 20.48v634.88c0 9.728 6.656 17.408 15.36 19.968l80.896-54.272 90.112 51.2 73.728-52.736 66.048 52.224 88.576-50.176z" fill="#80878B" /><path d="M686.08 361.472h-348.16c-14.336 0-25.6-11.264-25.6-25.6s11.264-25.6 25.6-25.6h348.16c14.336 0 25.6 11.264 25.6 25.6 0 13.824-11.264 25.6-25.6 25.6z m-348.16 81.92h194.56c14.336 0 25.6 11.264 25.6 25.6s-11.264 25.6-25.6 25.6h-194.56c-14.336 0-25.6-11.264-25.6-25.6s11.264-25.6 25.6-25.6z" fill="#FAB90A" /></svg>

BIN
images/xiaoxi.png


BIN
images/xiaoxi_1.png


+ 1 - 0
images/xuanze.svg

@@ -0,0 +1 @@
+<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg class="icon" width="14px" height="14.00px" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"><path fill="#8B8B83" d="M512 950.857143a438.857143 438.857143 0 1 1 438.857143-438.857143 438.857143 438.857143 0 0 1-438.857143 438.857143z m0-804.571429a365.714286 365.714286 0 1 0 365.714286 365.714286A365.714286 365.714286 0 0 0 512 146.285714z" /></svg>

+ 1 - 0
images/xuanzeanniu.svg

@@ -0,0 +1 @@
+<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg class="icon" width="14px" height="14.00px" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"><path fill="#ea986c" d="M511.7 64.7c-247.4 0-448 200.6-448 448s200.6 448 448 448 448-200.6 448-448-200.6-448-448-448z m-0.2 850.5c-222.6 0-403-180.4-403-403s180.4-403 403-403 403 180.4 403 403-180.5 403-403 403z"  /><path fill="#ea986c" d="M512 513.2m-275 0a275 275 0 1 0 550 0 275 275 0 1 0-550 0Z"  /></svg>

File diff suppressed because it is too large
+ 0 - 0
images/yunshu.svg


+ 111 - 20
pages/index/index.wxml

@@ -1,23 +1,114 @@
-<!--index.wxml-->
-<view class="container">
-  <view class="userinfo">
-    <block wx:if="{{canIUseOpenData}}">
-      <view class="userinfo-avatar" bindtap="bindViewTap">
-        <open-data type="userAvatarUrl"></open-data>
+<view>
+  <view class="ert" bindtap="search">
+    <van-search value="{{ value }}" placeholder="请输入搜索关键词" shape="round" />
+    <van-button color="#FF8C00" class="btn" round type="info" size="mini">搜索</van-button>
+  </view>
+  <van-tabs active="a" type="line">
+    <van-tab title="待送达" name="a" title-active-color='#FF8C00'>
+      <!-- <van-cell-group inset>
+        <van-cell title="单元格" value="内容" label="描述信息" />
+      </van-cell-group> -->
+      <view style="background-color: #DCDCDC; width: 100%;height: 100%; padding: 14rpx 0;">
+        <template is="card" data="" />
+        <template is="card" data="" />
+      </view>
+      <view style="background-color: #DCDCDC; width: 100%;height: 100vh; padding: 14rpx 0;">
+      </view>
+    </van-tab>
+    <van-tab title="已送达" name="b">
+
+      <view style="background-color: #DCDCDC; width: 100%;height: 100vh; padding: 14rpx 0;">
+        <template is="card1" data="" />
+        <template is="card1" data="" />
+      </view>
+
+
+    </van-tab>
+    <van-tab title="已退款" name="c">
+      <view style="background-color: #DCDCDC; width: 100%;height: 100vh; padding: 14rpx 0;">
+        <template is="card2" data="" />
+        <template is="card1" data="" />
       </view>
-      <open-data type="userNickName"></open-data>
-    </block>
-    <block wx:elif="{{!hasUserInfo}}">
-      <button wx:if="{{canIUseGetUserProfile}}" bindtap="getUserProfile"> 获取头像昵称 </button>
-      <button wx:elif="{{canIUse}}" open-type="getUserInfo" bindgetuserinfo="getUserInfo"> 获取头像昵称 </button>
-      <view wx:else> 请使用1.4.4及以上版本基础库 </view>
-    </block>
-    <block wx:else>
-      <image bindtap="bindViewTap" class="userinfo-avatar" src="{{userInfo.avatarUrl}}" mode="cover"></image>
-      <text class="userinfo-nickname">{{userInfo.nickName}}</text>
-    </block>
+    </van-tab>
+  </van-tabs>
+  <!-- <view slot="action" bind:tap="onClick">搜索</view> -->
+</view>
+
+<template name="card">
+  <view class="card" bindtap="detail">
+    <view class="card2">
+      <text style="font-size:12px;">订单编号:98989898989</text>
+      <text style="font-size:12px;">详情></text>
+    </view>
+    <van-divider />
+    <view class="card1">
+      <text style="font-size:12px;">姓名:吴迪(先生)</text>
+      <text style="font-size:12px; color: #FF6347;">待送达</text>
+    </view>
+    <view class="card1">
+      <text style="font-size:12px;">手机号:13912345678</text>
+    </view>
+    <view class="card1">
+      <text style="font-size:12px;">地址:哈尔滨</text>
+    </view>
+    <view class="card1">
+      <text style="font-size:12px;">下单时间:2023-04-24 17:38:34</text>
+      <van-button color="#FF8C00" custom-style="border-radius:8px" class="btn1" round type="info" size="mini">重新打印</van-button>
+    </view>
   </view>
-  <view class="usermotto">
-    <text class="user-motto">{{motto}}</text>
+</template>
+<template name="card1">
+  <view class="card">
+    <view class="card2">
+      <text style="font-size:12px;">订单编号:98989898989</text>
+      <text style="font-size:12px;">详情></text>
+    </view>
+    <van-divider />
+    <view class="card1" style="margin-top:-20rpx;">
+      <text style="font-size:12px; ">姓名:吴迪(先生)</text>
+      <text style="font-size:12px; color: #DCDCDC;">已送达</text>
+    </view>
+    <view class="card1">
+      <text style="font-size:12px;">手机号:13912345678</text>
+    </view>
+    <view class="card1">
+      <text style="font-size:12px;">地址:哈尔滨</text>
+    </view>
+    <view class="card1">
+      <text style="font-size:12px;">下单时间:2023-04-24 17:38:34</text>
+    </view>
+    <view class="card1">
+      <text style="font-size:12px;">下单时间:2023-04-24 18:02:34</text>
+      <van-button color="#FF8C00" custom-style="border-radius:8px" class="btn1" round type="info" size="mini">重新打印</van-button>
+    </view>
   </view>
-</view>
+</template>
+
+<template name="card2">
+  <view class="card">
+    <view class="card2">
+      <text style="font-size:12px;">订单编号:98989898989</text>
+      <text style="font-size:12px;">详情></text>
+    </view>
+    <van-divider />
+    <view class="card1" style="margin-top:-20rpx;">
+      <text style="font-size:12px; ">姓名:吴迪(先生)</text>
+      <text style="font-size:12px; color: #FF6347;">待送达</text>
+    </view>
+    <view class="card1">
+      <text style="font-size:12px;">手机号:13912345678</text>
+    </view>
+    <view class="card1">
+      <text style="font-size:12px;">地址:哈尔滨</text>
+    </view>
+    <view class="card1">
+      <text style="font-size:12px;">下单时间:2023-04-24 17:38:34</text>
+    </view>
+    <view class="card1">
+      <text style="font-size:12px;">下单时间:2023-04-24 18:02:34</text>
+      <van-button color="#FF8C00" custom-style="border-radius:8px" class="btn1" round type="info" size="mini">重新打印</van-button>
+    </view>
+  </view>
+</template>
+
+<!-- <van-button type="primary">按钮</van-button> -->

+ 39 - 1
pages/index/index.wxss

@@ -16,4 +16,42 @@
 
 .usermotto {
   margin-top: 200px;
-}
+}
+
+
+.ert{
+  position: relative;
+}
+.btn{
+  position: absolute;
+  right: 40rpx;
+  top: 32rpx;
+}
+.card{
+  width: 90%;
+  margin: auto;
+  height: 270rpx;
+  background: #fff;
+  border-radius: 10rpx;
+  margin-top: 18rpx;
+  padding: 20rpx 20rpx;
+  position: relative;
+  /* box-shadow: 5px 5px 5px #cdcfcf; */
+ }
+ .card1{
+   display: flex;
+   justify-content: space-between;
+   color: #696969;
+   margin-bottom: 8rpx;
+ }
+ .card2{
+  display: flex;
+  justify-content: space-between;
+  color: #696969;
+  margin-bottom: -10rpx;
+}
+ .btn1{
+  position: absolute;
+  right: 20rpx;
+  bottom: 25rpx;
+}

Some files were not shown because too many files changed in this diff