Browse Source

取件单暂存

Hello小健 1 week ago
parent
commit
b5875f52a0

+ 1 - 0
.eslintignore

@@ -0,0 +1 @@
+iconfont

+ 20 - 21
src/pages.json

@@ -77,10 +77,7 @@
                 "fontSize": "16px",
                 "text": "历史"
               }
-            ],
-            "backButton": {
-              "background": "#00FF00"
-            }
+            ]
           }
         }
       }
@@ -103,10 +100,7 @@
                 "fontSize": "16px",
                 "text": "历史"
               }
-            ],
-            "backButton": {
-              "background": "#00FF00"
-            }
+            ]
           }
         }
       }
@@ -129,10 +123,7 @@
                 "fontSize": "16px",
                 "text": "历史"
               }
-            ],
-            "backButton": {
-              "background": "#00FF00"
-            }
+            ]
           }
         }
       }
@@ -155,10 +146,7 @@
                 "fontSize": "16px",
                 "text": "历史"
               }
-            ],
-            "backButton": {
-              "background": "#00FF00"
-            }
+            ]
           }
         }
       }
@@ -187,10 +175,7 @@
                 "fontSize": "16px",
                 "text": "历史"
               }
-            ],
-            "backButton": {
-              "background": "#00FF00"
-            }
+            ]
           }
         }
       }
@@ -204,7 +189,21 @@
     {
       "path": "pages/pickup/waybillPickUpOrder",
       "style": {
-        "navigationBarTitleText": "取件单"
+        "navigationBarTitleText": "取件单",
+        "app-plus": {
+          "bounce": "none",
+          "titleNView": {
+            "buttons": [
+              {
+                "color": "#007AFF",
+                "fontSize": "22px",
+                "text": "\ue689",
+                "fontSrc": "/static/iconfont/iconfont.ttf",
+                "float": "right"
+              }
+            ]
+          }
+        }
       }
     },
     {

+ 103 - 153
src/pages/pickup/waybillPickUpOrder.vue

@@ -1,82 +1,45 @@
 <template>
-  <view class="list">
-    <!-- <uni-search-bar @confirm="search" :focus="true" v-model="searchValue" @blur="blur" @focus="focus" @input="input" @cancel="cancel" @clear="clear"></uni-search-bar> -->
-    <uni-easyinput
-      v-model="searchValue"
-      placeholder="请输入单号"
-      suffixIcon="scan"
-      @iconClick="scanInput"
-    />
-    <view class="item" v-for="(item, i) in waybillDelivery" :key="i" @click="itemClick(item)">
-      <view class="order-no">
-        <text> 取件单号: {{ item.order_no }} </text>
-        <image
-          @click="copyOrderNo(item.order_no)"
-          class="icon"
-          src="/static/copy.png"
-          mode="aspectFill"
-        />
+  <view class="viewport">
+    <!-- 输入框和筛选按钮 -->
+    <view class="inputfilter">
+      <uni-easyinput v-model="searchValue" placeholder="请输入单号" :inputBorder="false" />
+      <view class="filter">
+        <text>筛选</text>
+        <uni-icons fontFamily="iconFont" size="14" color="#999999">{{ '\ue7b6' }}</uni-icons>
       </view>
-      <view class="address-info">
-        <view class="info">
-          <view class="user">
-            <text>
-              {{ item.address.first_name + ' ' + item.address.last_name }}
-              {{ '+' + item.address.mobile_code + ' ' + item.address.mobile }}
-            </text>
-            <image
-              @click="callPhone(item.address.mobile_code + ' ' + item.address.mobile)"
-              class="icon"
-              src="/static/call.png"
-              mode="aspectFill"
-            />
+    </view>
+    <!-- 列表 -->
+    <scroll-view enable-back-to-top scroll-y class="scroll-view" @scrolltolower="onScrolltolower">
+      <view class="goods">
+        <navigator
+          hover-class="none"
+          class="navigator"
+          v-for="(item, i) in waybillDelivery"
+          :key="i"
+          :url="`/pages/goods/goods?id=${item.id}`"
+        >
+          <view class="order_no_state">
+            <view class="order_no">
+              <text>订单号</text>
+              <text>{{ item.order_no }}</text>
+            </view>
+
+            <view class="order_state">
+              <text>{{ item.order_state }}</text>
+            </view>
           </view>
-          <view>
-            <text class="address">
-              <text class="city">{{ item.address.city }}</text>
-              {{ item.address.zip_code }}
-            </text>
-            <image
-              @click="copyOrderNo(item.address.zip_code)"
-              class="icon"
-              src="/static/copy.png"
-              mode="aspectFill"
-            />
+          <view class="address"> </view>
+
+          <view class="price">
+            <text class="symbol">¥</text>
+            <text class="number">{{ item.order_no }}</text>
           </view>
-        </view>
-        <view class="info"></view>
+        </navigator>
       </view>
-      <view></view>
-      <view class="operations">
-        <button
-          v-for="(operation, i) in item.operations"
-          :key="i"
-          @click="onButtonClick(item, operation.value)"
-          type="info"
-          size="mini"
-        >
-          {{ operation.text }}
-        </button>
+      <view class="loading-text">
+        <!-- {{ item.finish ? '没有更多数据了~' : '正在加载...' }} -->
       </view>
-    </view>
-
-    <view v-if="waybillDelivery.length === 0" class="is-empty">暂无取件单</view>
-
-    <uni-popup ref="messageRef" type="message">
-      <uni-popup-message
-        :type="messageType"
-        :message="messageText"
-        :duration="2000"
-      ></uni-popup-message>
-    </uni-popup>
-    <uni-drawer ref="showRightRef" mode="right" :mask-click="true">
-      <scroll-view style="height: 100%" scroll-y="true">
-        <view class="button-group">
-          <button @click="resetForm" type="info">重置</button>
-          <button @click="confirmForm" type="primary">确认</button>
-        </view>
-      </scroll-view>
-    </uni-drawer>
+    </scroll-view>
   </view>
 </template>
 
@@ -341,100 +304,87 @@ onLoad(() => {
 })
 onNavigationBarButtonTap((event) => {
   if (event.index === 0) {
-    showRightRef.value.open()
+    scanInput()
+    // showRightRef.value.open()
   }
 })
+
+// 滚动触底
+const onScrolltolower = async () => {
+  // // 获取当前选项
+  // const currsubTypes = subTypes.value[activeIndex.value]
+  // // 分页条件
+  // if (currsubTypes.goodsItems.page < currsubTypes.goodsItems.pages) {
+  //   // 当前页码累加
+  //   currsubTypes.goodsItems.page++
+  // } else {
+  //   // 标记已结束
+  //   currsubTypes.finish = true
+  //   // 退出并轻提示
+  //   return uni.showToast({ icon: 'none', title: '没有更多数据了~' })
+  // }
+  // // 调用API传参
+  // const res = await getHotRecommendAPI(currUrlMap!.url, {
+  //   subType: currsubTypes.id,
+  //   page: currsubTypes.goodsItems.page,
+  //   pageSize: currsubTypes.goodsItems.pageSize,
+  // })
+  // // 新的列表选项
+  // const newsubTypes = res.result.subTypes[activeIndex.value]
+  // // 数组追加
+  // currsubTypes.goodsItems.items.push(...newsubTypes.goodsItems.items)
+}
 </script>
 
 <style lang="scss" scoped>
-.list {
-  margin: 0 auto;
+@font-face {
+  font-family: iconFont;
+  src: url('/static/iconfont/iconfont.ttf');
+}
+page {
+  height: 100%;
+  background-color: #f4f4f4;
+}
+.viewport {
   display: flex;
   flex-direction: column;
-  align-items: center;
-  flex: 1;
-
-  .uni-easyinput {
-    margin-top: 20rpx;
-    width: calc(100% - 40rpx);
-  }
-
-  .item {
-    margin-top: 20rpx;
-    width: 95%;
-    box-shadow: 0 5rpx 15rpx rgba(0, 0, 0, 0.2);
-    border-radius: 20rpx;
-    background-color: #fff;
-
-    .order-no {
-      padding: 14rpx;
-      //font-size: 16rpx;
-    }
-
-    .icon {
-      margin-left: 5rpx;
-      width: 24rpx;
-      height: 24rpx;
-    }
-
-    .address-info {
-      padding: 14rpx;
-      //font-size: 16rpx;
-      margin-bottom: 10rpx;
-
-      .info {
-        display: flex;
-        flex-direction: column;
-
-        .user {
-          margin-bottom: 10rpx;
-          font-weight: bold;
-        }
-
-        .address {
-          .city {
-            font-size: 30rpx;
-            font-weight: bold;
-          }
-        }
-      }
-    }
-  }
-  .is-empty {
-    margin-top: 20rpx;
-  }
+  height: 100%;
+  padding: 80rpx 0 0;
+  position: relative;
 }
-
-.operations {
+.inputfilter {
   display: flex;
   flex-direction: row;
-  justify-content: flex-end;
-  width: 100%;
-
-  button {
-    //font-size: 16rpx;
-    margin: 10rpx;
+  align-items: center;
+  width: 750rpx;
+  height: 80rpx;
+  overflow: hidden;
+  position: absolute;
+  left: 0;
+  top: 0;
+  padding: 0 20rpx;
+  background-color: white;
+  :deep(.uni-easyinput__content-input) {
+    background-color: #f3f3f3;
+    height: 60rpx;
+    border-radius: 10rpx;
   }
-}
-
-.button-group {
-  margin-top: 15px;
-  display: flex;
-  flex-direction: row;
-  justify-content: space-around;
-
-  button {
+  .filter {
     display: flex;
+    flex-direction: row;
     align-items: center;
     justify-content: center;
-    height: 35px;
-    width: 50%;
-    margin-left: 10px;
-    //font-size: 16rpx;
-  }
-
-  .uni-icons {
-    margin-right: 10px;
+    margin-left: 20rpx;
+    height: 80rpx;
+    font-size: 30rpx;
+    color: #333333;
+    line-height: 30%;
+    text {
+      margin-right: 10rpx;
+    }
   }
 }
+.scroll-view {
+  flex: 1;
+}
 </style>

+ 539 - 0
src/static/iconfont/demo.css

@@ -0,0 +1,539 @@
+/* Logo 字体 */
+@font-face {
+  font-family: "iconfont logo";
+  src: url('https://at.alicdn.com/t/font_985780_km7mi63cihi.eot?t=1545807318834');
+  src: url('https://at.alicdn.com/t/font_985780_km7mi63cihi.eot?t=1545807318834#iefix') format('embedded-opentype'),
+    url('https://at.alicdn.com/t/font_985780_km7mi63cihi.woff?t=1545807318834') format('woff'),
+    url('https://at.alicdn.com/t/font_985780_km7mi63cihi.ttf?t=1545807318834') format('truetype'),
+    url('https://at.alicdn.com/t/font_985780_km7mi63cihi.svg?t=1545807318834#iconfont') format('svg');
+}
+
+.logo {
+  font-family: "iconfont logo";
+  font-size: 160px;
+  font-style: normal;
+  -webkit-font-smoothing: antialiased;
+  -moz-osx-font-smoothing: grayscale;
+}
+
+/* tabs */
+.nav-tabs {
+  position: relative;
+}
+
+.nav-tabs .nav-more {
+  position: absolute;
+  right: 0;
+  bottom: 0;
+  height: 42px;
+  line-height: 42px;
+  color: #666;
+}
+
+#tabs {
+  border-bottom: 1px solid #eee;
+}
+
+#tabs li {
+  cursor: pointer;
+  width: 100px;
+  height: 40px;
+  line-height: 40px;
+  text-align: center;
+  font-size: 16px;
+  border-bottom: 2px solid transparent;
+  position: relative;
+  z-index: 1;
+  margin-bottom: -1px;
+  color: #666;
+}
+
+
+#tabs .active {
+  border-bottom-color: #f00;
+  color: #222;
+}
+
+.tab-container .content {
+  display: none;
+}
+
+/* 页面布局 */
+.main {
+  padding: 30px 100px;
+  width: 960px;
+  margin: 0 auto;
+}
+
+.main .logo {
+  color: #333;
+  text-align: left;
+  margin-bottom: 30px;
+  line-height: 1;
+  height: 110px;
+  margin-top: -50px;
+  overflow: hidden;
+  *zoom: 1;
+}
+
+.main .logo a {
+  font-size: 160px;
+  color: #333;
+}
+
+.helps {
+  margin-top: 40px;
+}
+
+.helps pre {
+  padding: 20px;
+  margin: 10px 0;
+  border: solid 1px #e7e1cd;
+  background-color: #fffdef;
+  overflow: auto;
+}
+
+.icon_lists {
+  width: 100% !important;
+  overflow: hidden;
+  *zoom: 1;
+}
+
+.icon_lists li {
+  width: 100px;
+  margin-bottom: 10px;
+  margin-right: 20px;
+  text-align: center;
+  list-style: none !important;
+  cursor: default;
+}
+
+.icon_lists li .code-name {
+  line-height: 1.2;
+}
+
+.icon_lists .icon {
+  display: block;
+  height: 100px;
+  line-height: 100px;
+  font-size: 42px;
+  margin: 10px auto;
+  color: #333;
+  -webkit-transition: font-size 0.25s linear, width 0.25s linear;
+  -moz-transition: font-size 0.25s linear, width 0.25s linear;
+  transition: font-size 0.25s linear, width 0.25s linear;
+}
+
+.icon_lists .icon:hover {
+  font-size: 100px;
+}
+
+.icon_lists .svg-icon {
+  /* 通过设置 font-size 来改变图标大小 */
+  width: 1em;
+  /* 图标和文字相邻时,垂直对齐 */
+  vertical-align: -0.15em;
+  /* 通过设置 color 来改变 SVG 的颜色/fill */
+  fill: currentColor;
+  /* path 和 stroke 溢出 viewBox 部分在 IE 下会显示
+      normalize.css 中也包含这行 */
+  overflow: hidden;
+}
+
+.icon_lists li .name,
+.icon_lists li .code-name {
+  color: #666;
+}
+
+/* markdown 样式 */
+.markdown {
+  color: #666;
+  font-size: 14px;
+  line-height: 1.8;
+}
+
+.highlight {
+  line-height: 1.5;
+}
+
+.markdown img {
+  vertical-align: middle;
+  max-width: 100%;
+}
+
+.markdown h1 {
+  color: #404040;
+  font-weight: 500;
+  line-height: 40px;
+  margin-bottom: 24px;
+}
+
+.markdown h2,
+.markdown h3,
+.markdown h4,
+.markdown h5,
+.markdown h6 {
+  color: #404040;
+  margin: 1.6em 0 0.6em 0;
+  font-weight: 500;
+  clear: both;
+}
+
+.markdown h1 {
+  font-size: 28px;
+}
+
+.markdown h2 {
+  font-size: 22px;
+}
+
+.markdown h3 {
+  font-size: 16px;
+}
+
+.markdown h4 {
+  font-size: 14px;
+}
+
+.markdown h5 {
+  font-size: 12px;
+}
+
+.markdown h6 {
+  font-size: 12px;
+}
+
+.markdown hr {
+  height: 1px;
+  border: 0;
+  background: #e9e9e9;
+  margin: 16px 0;
+  clear: both;
+}
+
+.markdown p {
+  margin: 1em 0;
+}
+
+.markdown>p,
+.markdown>blockquote,
+.markdown>.highlight,
+.markdown>ol,
+.markdown>ul {
+  width: 80%;
+}
+
+.markdown ul>li {
+  list-style: circle;
+}
+
+.markdown>ul li,
+.markdown blockquote ul>li {
+  margin-left: 20px;
+  padding-left: 4px;
+}
+
+.markdown>ul li p,
+.markdown>ol li p {
+  margin: 0.6em 0;
+}
+
+.markdown ol>li {
+  list-style: decimal;
+}
+
+.markdown>ol li,
+.markdown blockquote ol>li {
+  margin-left: 20px;
+  padding-left: 4px;
+}
+
+.markdown code {
+  margin: 0 3px;
+  padding: 0 5px;
+  background: #eee;
+  border-radius: 3px;
+}
+
+.markdown strong,
+.markdown b {
+  font-weight: 600;
+}
+
+.markdown>table {
+  border-collapse: collapse;
+  border-spacing: 0px;
+  empty-cells: show;
+  border: 1px solid #e9e9e9;
+  width: 95%;
+  margin-bottom: 24px;
+}
+
+.markdown>table th {
+  white-space: nowrap;
+  color: #333;
+  font-weight: 600;
+}
+
+.markdown>table th,
+.markdown>table td {
+  border: 1px solid #e9e9e9;
+  padding: 8px 16px;
+  text-align: left;
+}
+
+.markdown>table th {
+  background: #F7F7F7;
+}
+
+.markdown blockquote {
+  font-size: 90%;
+  color: #999;
+  border-left: 4px solid #e9e9e9;
+  padding-left: 0.8em;
+  margin: 1em 0;
+}
+
+.markdown blockquote p {
+  margin: 0;
+}
+
+.markdown .anchor {
+  opacity: 0;
+  transition: opacity 0.3s ease;
+  margin-left: 8px;
+}
+
+.markdown .waiting {
+  color: #ccc;
+}
+
+.markdown h1:hover .anchor,
+.markdown h2:hover .anchor,
+.markdown h3:hover .anchor,
+.markdown h4:hover .anchor,
+.markdown h5:hover .anchor,
+.markdown h6:hover .anchor {
+  opacity: 1;
+  display: inline-block;
+}
+
+.markdown>br,
+.markdown>p>br {
+  clear: both;
+}
+
+
+.hljs {
+  display: block;
+  background: white;
+  padding: 0.5em;
+  color: #333333;
+  overflow-x: auto;
+}
+
+.hljs-comment,
+.hljs-meta {
+  color: #969896;
+}
+
+.hljs-string,
+.hljs-variable,
+.hljs-template-variable,
+.hljs-strong,
+.hljs-emphasis,
+.hljs-quote {
+  color: #df5000;
+}
+
+.hljs-keyword,
+.hljs-selector-tag,
+.hljs-type {
+  color: #a71d5d;
+}
+
+.hljs-literal,
+.hljs-symbol,
+.hljs-bullet,
+.hljs-attribute {
+  color: #0086b3;
+}
+
+.hljs-section,
+.hljs-name {
+  color: #63a35c;
+}
+
+.hljs-tag {
+  color: #333333;
+}
+
+.hljs-title,
+.hljs-attr,
+.hljs-selector-id,
+.hljs-selector-class,
+.hljs-selector-attr,
+.hljs-selector-pseudo {
+  color: #795da3;
+}
+
+.hljs-addition {
+  color: #55a532;
+  background-color: #eaffea;
+}
+
+.hljs-deletion {
+  color: #bd2c00;
+  background-color: #ffecec;
+}
+
+.hljs-link {
+  text-decoration: underline;
+}
+
+/* 代码高亮 */
+/* PrismJS 1.15.0
+https://prismjs.com/download.html#themes=prism&languages=markup+css+clike+javascript */
+/**
+ * prism.js default theme for JavaScript, CSS and HTML
+ * Based on dabblet (http://dabblet.com)
+ * @author Lea Verou
+ */
+code[class*="language-"],
+pre[class*="language-"] {
+  color: black;
+  background: none;
+  text-shadow: 0 1px white;
+  font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
+  text-align: left;
+  white-space: pre;
+  word-spacing: normal;
+  word-break: normal;
+  word-wrap: normal;
+  line-height: 1.5;
+
+  -moz-tab-size: 4;
+  -o-tab-size: 4;
+  tab-size: 4;
+
+  -webkit-hyphens: none;
+  -moz-hyphens: none;
+  -ms-hyphens: none;
+  hyphens: none;
+}
+
+pre[class*="language-"]::-moz-selection,
+pre[class*="language-"] ::-moz-selection,
+code[class*="language-"]::-moz-selection,
+code[class*="language-"] ::-moz-selection {
+  text-shadow: none;
+  background: #b3d4fc;
+}
+
+pre[class*="language-"]::selection,
+pre[class*="language-"] ::selection,
+code[class*="language-"]::selection,
+code[class*="language-"] ::selection {
+  text-shadow: none;
+  background: #b3d4fc;
+}
+
+@media print {
+
+  code[class*="language-"],
+  pre[class*="language-"] {
+    text-shadow: none;
+  }
+}
+
+/* Code blocks */
+pre[class*="language-"] {
+  padding: 1em;
+  margin: .5em 0;
+  overflow: auto;
+}
+
+:not(pre)>code[class*="language-"],
+pre[class*="language-"] {
+  background: #f5f2f0;
+}
+
+/* Inline code */
+:not(pre)>code[class*="language-"] {
+  padding: .1em;
+  border-radius: .3em;
+  white-space: normal;
+}
+
+.token.comment,
+.token.prolog,
+.token.doctype,
+.token.cdata {
+  color: slategray;
+}
+
+.token.punctuation {
+  color: #999;
+}
+
+.namespace {
+  opacity: .7;
+}
+
+.token.property,
+.token.tag,
+.token.boolean,
+.token.number,
+.token.constant,
+.token.symbol,
+.token.deleted {
+  color: #905;
+}
+
+.token.selector,
+.token.attr-name,
+.token.string,
+.token.char,
+.token.builtin,
+.token.inserted {
+  color: #690;
+}
+
+.token.operator,
+.token.entity,
+.token.url,
+.language-css .token.string,
+.style .token.string {
+  color: #9a6e3a;
+  background: hsla(0, 0%, 100%, .5);
+}
+
+.token.atrule,
+.token.attr-value,
+.token.keyword {
+  color: #07a;
+}
+
+.token.function,
+.token.class-name {
+  color: #DD4A68;
+}
+
+.token.regex,
+.token.important,
+.token.variable {
+  color: #e90;
+}
+
+.token.important,
+.token.bold {
+  font-weight: bold;
+}
+
+.token.italic {
+  font-style: italic;
+}
+
+.token.entity {
+  cursor: help;
+}

+ 579 - 0
src/static/iconfont/demo_index.html

@@ -0,0 +1,579 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <title>iconfont Demo</title>
+  <link rel="shortcut icon" href="//img.alicdn.com/imgextra/i4/O1CN01Z5paLz1O0zuCC7osS_!!6000000001644-55-tps-83-82.svg" type="image/x-icon"/>
+  <link rel="icon" type="image/svg+xml" href="//img.alicdn.com/imgextra/i4/O1CN01Z5paLz1O0zuCC7osS_!!6000000001644-55-tps-83-82.svg"/>
+  <link rel="stylesheet" href="https://g.alicdn.com/thx/cube/1.3.2/cube.min.css">
+  <link rel="stylesheet" href="demo.css">
+  <link rel="stylesheet" href="iconfont.css">
+  <script src="iconfont.js"></script>
+  <!-- jQuery -->
+  <script src="https://a1.alicdn.com/oss/uploads/2018/12/26/7bfddb60-08e8-11e9-9b04-53e73bb6408b.js"></script>
+  <!-- 代码高亮 -->
+  <script src="https://a1.alicdn.com/oss/uploads/2018/12/26/a3f714d0-08e6-11e9-8a15-ebf944d7534c.js"></script>
+  <style>
+    .main .logo {
+      margin-top: 0;
+      height: auto;
+    }
+
+    .main .logo a {
+      display: flex;
+      align-items: center;
+    }
+
+    .main .logo .sub-title {
+      margin-left: 0.5em;
+      font-size: 22px;
+      color: #fff;
+      background: linear-gradient(-45deg, #3967FF, #B500FE);
+      -webkit-background-clip: text;
+      -webkit-text-fill-color: transparent;
+    }
+  </style>
+</head>
+<body>
+  <div class="main">
+    <h1 class="logo"><a href="https://www.iconfont.cn/" title="iconfont 首页" target="_blank">
+      <img width="200" src="https://img.alicdn.com/imgextra/i3/O1CN01Mn65HV1FfSEzR6DKv_!!6000000000514-55-tps-228-59.svg">
+      
+    </a></h1>
+    <div class="nav-tabs">
+      <ul id="tabs" class="dib-box">
+        <li class="dib active"><span>Unicode</span></li>
+        <li class="dib"><span>Font class</span></li>
+        <li class="dib"><span>Symbol</span></li>
+      </ul>
+      
+      <a href="https://www.iconfont.cn/manage/index?manage_type=myprojects&projectId=4410178" target="_blank" class="nav-more">查看项目</a>
+      
+    </div>
+    <div class="tab-container">
+      <div class="content unicode" style="display: block;">
+          <ul class="icon_lists dib-box">
+          
+            <li class="dib">
+              <span class="icon iconfont">&#xe7b6;</span>
+                <div class="name">filter</div>
+                <div class="code-name">&amp;#xe7b6;</div>
+              </li>
+          
+            <li class="dib">
+              <span class="icon iconfont">&#xe7b5;</span>
+                <div class="name">取件</div>
+                <div class="code-name">&amp;#xe7b5;</div>
+              </li>
+          
+            <li class="dib">
+              <span class="icon iconfont">&#xe70d;</span>
+                <div class="name">派送</div>
+                <div class="code-name">&amp;#xe70d;</div>
+              </li>
+          
+            <li class="dib">
+              <span class="icon iconfont">&#xe631;</span>
+                <div class="name">扫描3</div>
+                <div class="code-name">&amp;#xe631;</div>
+              </li>
+          
+            <li class="dib">
+              <span class="icon iconfont">&#xe615;</span>
+                <div class="name">绑定</div>
+                <div class="code-name">&amp;#xe615;</div>
+              </li>
+          
+            <li class="dib">
+              <span class="icon iconfont">&#xe644;</span>
+                <div class="name">入库管理</div>
+                <div class="code-name">&amp;#xe644;</div>
+              </li>
+          
+            <li class="dib">
+              <span class="icon iconfont">&#xe7b4;</span>
+                <div class="name">order</div>
+                <div class="code-name">&amp;#xe7b4;</div>
+              </li>
+          
+            <li class="dib">
+              <span class="icon iconfont">&#xe7b3;</span>
+                <div class="name">order</div>
+                <div class="code-name">&amp;#xe7b3;</div>
+              </li>
+          
+            <li class="dib">
+              <span class="icon iconfont">&#xe7b1;</span>
+                <div class="name">weigh</div>
+                <div class="code-name">&amp;#xe7b1;</div>
+              </li>
+          
+            <li class="dib">
+              <span class="icon iconfont">&#xe7b2;</span>
+                <div class="name">weigh</div>
+                <div class="code-name">&amp;#xe7b2;</div>
+              </li>
+          
+            <li class="dib">
+              <span class="icon iconfont">&#xe605;</span>
+                <div class="name">user</div>
+                <div class="code-name">&amp;#xe605;</div>
+              </li>
+          
+            <li class="dib">
+              <span class="icon iconfont">&#xe737;</span>
+                <div class="name">scan</div>
+                <div class="code-name">&amp;#xe737;</div>
+              </li>
+          
+            <li class="dib">
+              <span class="icon iconfont">&#xe689;</span>
+                <div class="name">scan</div>
+                <div class="code-name">&amp;#xe689;</div>
+              </li>
+          
+            <li class="dib">
+              <span class="icon iconfont">&#xe6b8;</span>
+                <div class="name">home</div>
+                <div class="code-name">&amp;#xe6b8;</div>
+              </li>
+          
+            <li class="dib">
+              <span class="icon iconfont">&#xe6bb;</span>
+                <div class="name">home_fill</div>
+                <div class="code-name">&amp;#xe6bb;</div>
+              </li>
+          
+            <li class="dib">
+              <span class="icon iconfont">&#xe735;</span>
+                <div class="name">people_fill</div>
+                <div class="code-name">&amp;#xe735;</div>
+              </li>
+          
+            <li class="dib">
+              <span class="icon iconfont">&#xe736;</span>
+                <div class="name">people</div>
+                <div class="code-name">&amp;#xe736;</div>
+              </li>
+          
+          </ul>
+          <div class="article markdown">
+          <h2 id="unicode-">Unicode 引用</h2>
+          <hr>
+
+          <p>Unicode 是字体在网页端最原始的应用方式,特点是:</p>
+          <ul>
+            <li>支持按字体的方式去动态调整图标大小,颜色等等。</li>
+            <li>默认情况下不支持多色,直接添加多色图标会自动去色。</li>
+          </ul>
+          <blockquote>
+            <p>注意:新版 iconfont 支持两种方式引用多色图标:SVG symbol 引用方式和彩色字体图标模式。(使用彩色字体图标需要在「编辑项目」中开启「彩色」选项后并重新生成。)</p>
+          </blockquote>
+          <p>Unicode 使用步骤如下:</p>
+          <h3 id="-font-face">第一步:拷贝项目下面生成的 <code>@font-face</code></h3>
+<pre><code class="language-css"
+>@font-face {
+  font-family: 'iconfont';
+  src: url('iconfont.woff2?t=1734012491787') format('woff2'),
+       url('iconfont.woff?t=1734012491787') format('woff'),
+       url('iconfont.ttf?t=1734012491787') format('truetype');
+}
+</code></pre>
+          <h3 id="-iconfont-">第二步:定义使用 iconfont 的样式</h3>
+<pre><code class="language-css"
+>.iconfont {
+  font-family: "iconfont" !important;
+  font-size: 16px;
+  font-style: normal;
+  -webkit-font-smoothing: antialiased;
+  -moz-osx-font-smoothing: grayscale;
+}
+</code></pre>
+          <h3 id="-">第三步:挑选相应图标并获取字体编码,应用于页面</h3>
+<pre>
+<code class="language-html"
+>&lt;span class="iconfont"&gt;&amp;#x33;&lt;/span&gt;
+</code></pre>
+          <blockquote>
+            <p>"iconfont" 是你项目下的 font-family。可以通过编辑项目查看,默认是 "iconfont"。</p>
+          </blockquote>
+          </div>
+      </div>
+      <div class="content font-class">
+        <ul class="icon_lists dib-box">
+          
+          <li class="dib">
+            <span class="icon iconfont icon-filter"></span>
+            <div class="name">
+              filter
+            </div>
+            <div class="code-name">.icon-filter
+            </div>
+          </li>
+          
+          <li class="dib">
+            <span class="icon iconfont icon-qujian"></span>
+            <div class="name">
+              取件
+            </div>
+            <div class="code-name">.icon-qujian
+            </div>
+          </li>
+          
+          <li class="dib">
+            <span class="icon iconfont icon-web-icon-"></span>
+            <div class="name">
+              派送
+            </div>
+            <div class="code-name">.icon-web-icon-
+            </div>
+          </li>
+          
+          <li class="dib">
+            <span class="icon iconfont icon-saomiao3"></span>
+            <div class="name">
+              扫描3
+            </div>
+            <div class="code-name">.icon-saomiao3
+            </div>
+          </li>
+          
+          <li class="dib">
+            <span class="icon iconfont icon-bangding"></span>
+            <div class="name">
+              绑定
+            </div>
+            <div class="code-name">.icon-bangding
+            </div>
+          </li>
+          
+          <li class="dib">
+            <span class="icon iconfont icon-rukuguanli"></span>
+            <div class="name">
+              入库管理
+            </div>
+            <div class="code-name">.icon-rukuguanli
+            </div>
+          </li>
+          
+          <li class="dib">
+            <span class="icon iconfont icon-order-fill"></span>
+            <div class="name">
+              order
+            </div>
+            <div class="code-name">.icon-order-fill
+            </div>
+          </li>
+          
+          <li class="dib">
+            <span class="icon iconfont icon-order"></span>
+            <div class="name">
+              order
+            </div>
+            <div class="code-name">.icon-order
+            </div>
+          </li>
+          
+          <li class="dib">
+            <span class="icon iconfont icon-weigh-fill"></span>
+            <div class="name">
+              weigh
+            </div>
+            <div class="code-name">.icon-weigh-fill
+            </div>
+          </li>
+          
+          <li class="dib">
+            <span class="icon iconfont icon-weigh"></span>
+            <div class="name">
+              weigh
+            </div>
+            <div class="code-name">.icon-weigh
+            </div>
+          </li>
+          
+          <li class="dib">
+            <span class="icon iconfont icon-user"></span>
+            <div class="name">
+              user
+            </div>
+            <div class="code-name">.icon-user
+            </div>
+          </li>
+          
+          <li class="dib">
+            <span class="icon iconfont icon-scanfill"></span>
+            <div class="name">
+              scan
+            </div>
+            <div class="code-name">.icon-scanfill
+            </div>
+          </li>
+          
+          <li class="dib">
+            <span class="icon iconfont icon-scan"></span>
+            <div class="name">
+              scan
+            </div>
+            <div class="code-name">.icon-scan
+            </div>
+          </li>
+          
+          <li class="dib">
+            <span class="icon iconfont icon-home"></span>
+            <div class="name">
+              home
+            </div>
+            <div class="code-name">.icon-home
+            </div>
+          </li>
+          
+          <li class="dib">
+            <span class="icon iconfont icon-homefill"></span>
+            <div class="name">
+              home_fill
+            </div>
+            <div class="code-name">.icon-homefill
+            </div>
+          </li>
+          
+          <li class="dib">
+            <span class="icon iconfont icon-peoplefill"></span>
+            <div class="name">
+              people_fill
+            </div>
+            <div class="code-name">.icon-peoplefill
+            </div>
+          </li>
+          
+          <li class="dib">
+            <span class="icon iconfont icon-people"></span>
+            <div class="name">
+              people
+            </div>
+            <div class="code-name">.icon-people
+            </div>
+          </li>
+          
+        </ul>
+        <div class="article markdown">
+        <h2 id="font-class-">font-class 引用</h2>
+        <hr>
+
+        <p>font-class 是 Unicode 使用方式的一种变种,主要是解决 Unicode 书写不直观,语意不明确的问题。</p>
+        <p>与 Unicode 使用方式相比,具有如下特点:</p>
+        <ul>
+          <li>相比于 Unicode 语意明确,书写更直观。可以很容易分辨这个 icon 是什么。</li>
+          <li>因为使用 class 来定义图标,所以当要替换图标时,只需要修改 class 里面的 Unicode 引用。</li>
+        </ul>
+        <p>使用步骤如下:</p>
+        <h3 id="-fontclass-">第一步:引入项目下面生成的 fontclass 代码:</h3>
+<pre><code class="language-html">&lt;link rel="stylesheet" href="./iconfont.css"&gt;
+</code></pre>
+        <h3 id="-">第二步:挑选相应图标并获取类名,应用于页面:</h3>
+<pre><code class="language-html">&lt;span class="iconfont icon-xxx"&gt;&lt;/span&gt;
+</code></pre>
+        <blockquote>
+          <p>"
+            iconfont" 是你项目下的 font-family。可以通过编辑项目查看,默认是 "iconfont"。</p>
+        </blockquote>
+      </div>
+      </div>
+      <div class="content symbol">
+          <ul class="icon_lists dib-box">
+          
+            <li class="dib">
+                <svg class="icon svg-icon" aria-hidden="true">
+                  <use xlink:href="#icon-filter"></use>
+                </svg>
+                <div class="name">filter</div>
+                <div class="code-name">#icon-filter</div>
+            </li>
+          
+            <li class="dib">
+                <svg class="icon svg-icon" aria-hidden="true">
+                  <use xlink:href="#icon-qujian"></use>
+                </svg>
+                <div class="name">取件</div>
+                <div class="code-name">#icon-qujian</div>
+            </li>
+          
+            <li class="dib">
+                <svg class="icon svg-icon" aria-hidden="true">
+                  <use xlink:href="#icon-web-icon-"></use>
+                </svg>
+                <div class="name">派送</div>
+                <div class="code-name">#icon-web-icon-</div>
+            </li>
+          
+            <li class="dib">
+                <svg class="icon svg-icon" aria-hidden="true">
+                  <use xlink:href="#icon-saomiao3"></use>
+                </svg>
+                <div class="name">扫描3</div>
+                <div class="code-name">#icon-saomiao3</div>
+            </li>
+          
+            <li class="dib">
+                <svg class="icon svg-icon" aria-hidden="true">
+                  <use xlink:href="#icon-bangding"></use>
+                </svg>
+                <div class="name">绑定</div>
+                <div class="code-name">#icon-bangding</div>
+            </li>
+          
+            <li class="dib">
+                <svg class="icon svg-icon" aria-hidden="true">
+                  <use xlink:href="#icon-rukuguanli"></use>
+                </svg>
+                <div class="name">入库管理</div>
+                <div class="code-name">#icon-rukuguanli</div>
+            </li>
+          
+            <li class="dib">
+                <svg class="icon svg-icon" aria-hidden="true">
+                  <use xlink:href="#icon-order-fill"></use>
+                </svg>
+                <div class="name">order</div>
+                <div class="code-name">#icon-order-fill</div>
+            </li>
+          
+            <li class="dib">
+                <svg class="icon svg-icon" aria-hidden="true">
+                  <use xlink:href="#icon-order"></use>
+                </svg>
+                <div class="name">order</div>
+                <div class="code-name">#icon-order</div>
+            </li>
+          
+            <li class="dib">
+                <svg class="icon svg-icon" aria-hidden="true">
+                  <use xlink:href="#icon-weigh-fill"></use>
+                </svg>
+                <div class="name">weigh</div>
+                <div class="code-name">#icon-weigh-fill</div>
+            </li>
+          
+            <li class="dib">
+                <svg class="icon svg-icon" aria-hidden="true">
+                  <use xlink:href="#icon-weigh"></use>
+                </svg>
+                <div class="name">weigh</div>
+                <div class="code-name">#icon-weigh</div>
+            </li>
+          
+            <li class="dib">
+                <svg class="icon svg-icon" aria-hidden="true">
+                  <use xlink:href="#icon-user"></use>
+                </svg>
+                <div class="name">user</div>
+                <div class="code-name">#icon-user</div>
+            </li>
+          
+            <li class="dib">
+                <svg class="icon svg-icon" aria-hidden="true">
+                  <use xlink:href="#icon-scanfill"></use>
+                </svg>
+                <div class="name">scan</div>
+                <div class="code-name">#icon-scanfill</div>
+            </li>
+          
+            <li class="dib">
+                <svg class="icon svg-icon" aria-hidden="true">
+                  <use xlink:href="#icon-scan"></use>
+                </svg>
+                <div class="name">scan</div>
+                <div class="code-name">#icon-scan</div>
+            </li>
+          
+            <li class="dib">
+                <svg class="icon svg-icon" aria-hidden="true">
+                  <use xlink:href="#icon-home"></use>
+                </svg>
+                <div class="name">home</div>
+                <div class="code-name">#icon-home</div>
+            </li>
+          
+            <li class="dib">
+                <svg class="icon svg-icon" aria-hidden="true">
+                  <use xlink:href="#icon-homefill"></use>
+                </svg>
+                <div class="name">home_fill</div>
+                <div class="code-name">#icon-homefill</div>
+            </li>
+          
+            <li class="dib">
+                <svg class="icon svg-icon" aria-hidden="true">
+                  <use xlink:href="#icon-peoplefill"></use>
+                </svg>
+                <div class="name">people_fill</div>
+                <div class="code-name">#icon-peoplefill</div>
+            </li>
+          
+            <li class="dib">
+                <svg class="icon svg-icon" aria-hidden="true">
+                  <use xlink:href="#icon-people"></use>
+                </svg>
+                <div class="name">people</div>
+                <div class="code-name">#icon-people</div>
+            </li>
+          
+          </ul>
+          <div class="article markdown">
+          <h2 id="symbol-">Symbol 引用</h2>
+          <hr>
+
+          <p>这是一种全新的使用方式,应该说这才是未来的主流,也是平台目前推荐的用法。相关介绍可以参考这篇<a href="">文章</a>
+            这种用法其实是做了一个 SVG 的集合,与另外两种相比具有如下特点:</p>
+          <ul>
+            <li>支持多色图标了,不再受单色限制。</li>
+            <li>通过一些技巧,支持像字体那样,通过 <code>font-size</code>, <code>color</code> 来调整样式。</li>
+            <li>兼容性较差,支持 IE9+,及现代浏览器。</li>
+            <li>浏览器渲染 SVG 的性能一般,还不如 png。</li>
+          </ul>
+          <p>使用步骤如下:</p>
+          <h3 id="-symbol-">第一步:引入项目下面生成的 symbol 代码:</h3>
+<pre><code class="language-html">&lt;script src="./iconfont.js"&gt;&lt;/script&gt;
+</code></pre>
+          <h3 id="-css-">第二步:加入通用 CSS 代码(引入一次就行):</h3>
+<pre><code class="language-html">&lt;style&gt;
+.icon {
+  width: 1em;
+  height: 1em;
+  vertical-align: -0.15em;
+  fill: currentColor;
+  overflow: hidden;
+}
+&lt;/style&gt;
+</code></pre>
+          <h3 id="-">第三步:挑选相应图标并获取类名,应用于页面:</h3>
+<pre><code class="language-html">&lt;svg class="icon" aria-hidden="true"&gt;
+  &lt;use xlink:href="#icon-xxx"&gt;&lt;/use&gt;
+&lt;/svg&gt;
+</code></pre>
+          </div>
+      </div>
+
+    </div>
+  </div>
+  <script>
+  $(document).ready(function () {
+      $('.tab-container .content:first').show()
+
+      $('#tabs li').click(function (e) {
+        var tabContent = $('.tab-container .content')
+        var index = $(this).index()
+
+        if ($(this).hasClass('active')) {
+          return
+        } else {
+          $('#tabs li').removeClass('active')
+          $(this).addClass('active')
+
+          tabContent.hide().eq(index).fadeIn()
+        }
+      })
+    })
+  </script>
+</body>
+</html>

+ 83 - 0
src/static/iconfont/iconfont.css

@@ -0,0 +1,83 @@
+@font-face {
+  font-family: "iconfont"; /* Project id 4410178 */
+  src: url('iconfont.woff2?t=1734012491787') format('woff2'),
+       url('iconfont.woff?t=1734012491787') format('woff'),
+       url('iconfont.ttf?t=1734012491787') format('truetype');
+}
+
+.iconfont {
+  font-family: "iconfont" !important;
+  font-size: 16px;
+  font-style: normal;
+  -webkit-font-smoothing: antialiased;
+  -moz-osx-font-smoothing: grayscale;
+}
+
+.icon-filter:before {
+  content: "\e7b6";
+}
+
+.icon-qujian:before {
+  content: "\e7b5";
+}
+
+.icon-web-icon-:before {
+  content: "\e70d";
+}
+
+.icon-saomiao3:before {
+  content: "\e631";
+}
+
+.icon-bangding:before {
+  content: "\e615";
+}
+
+.icon-rukuguanli:before {
+  content: "\e644";
+}
+
+.icon-order-fill:before {
+  content: "\e7b4";
+}
+
+.icon-order:before {
+  content: "\e7b3";
+}
+
+.icon-weigh-fill:before {
+  content: "\e7b1";
+}
+
+.icon-weigh:before {
+  content: "\e7b2";
+}
+
+.icon-user:before {
+  content: "\e605";
+}
+
+.icon-scanfill:before {
+  content: "\e737";
+}
+
+.icon-scan:before {
+  content: "\e689";
+}
+
+.icon-home:before {
+  content: "\e6b8";
+}
+
+.icon-homefill:before {
+  content: "\e6bb";
+}
+
+.icon-peoplefill:before {
+  content: "\e735";
+}
+
+.icon-people:before {
+  content: "\e736";
+}
+

File diff suppressed because it is too large
+ 0 - 0
src/static/iconfont/iconfont.js


+ 128 - 0
src/static/iconfont/iconfont.json

@@ -0,0 +1,128 @@
+{
+  "id": "4410178",
+  "name": "ytapp",
+  "font_family": "iconfont",
+  "css_prefix_text": "icon-",
+  "description": "",
+  "glyphs": [
+    {
+      "icon_id": "42794368",
+      "name": "filter",
+      "font_class": "filter",
+      "unicode": "e7b6",
+      "unicode_decimal": 59318
+    },
+    {
+      "icon_id": "42761956",
+      "name": "取件",
+      "font_class": "qujian",
+      "unicode": "e7b5",
+      "unicode_decimal": 59317
+    },
+    {
+      "icon_id": "3168941",
+      "name": "派送",
+      "font_class": "web-icon-",
+      "unicode": "e70d",
+      "unicode_decimal": 59149
+    },
+    {
+      "icon_id": "1115068",
+      "name": "扫描3",
+      "font_class": "saomiao3",
+      "unicode": "e631",
+      "unicode_decimal": 58929
+    },
+    {
+      "icon_id": "10199180",
+      "name": "绑定",
+      "font_class": "bangding",
+      "unicode": "e615",
+      "unicode_decimal": 58901
+    },
+    {
+      "icon_id": "8117615",
+      "name": "入库管理",
+      "font_class": "rukuguanli",
+      "unicode": "e644",
+      "unicode_decimal": 58948
+    },
+    {
+      "icon_id": "40475892",
+      "name": "order",
+      "font_class": "order-fill",
+      "unicode": "e7b4",
+      "unicode_decimal": 59316
+    },
+    {
+      "icon_id": "40475891",
+      "name": "order",
+      "font_class": "order",
+      "unicode": "e7b3",
+      "unicode_decimal": 59315
+    },
+    {
+      "icon_id": "40098027",
+      "name": "weigh",
+      "font_class": "weigh-fill",
+      "unicode": "e7b1",
+      "unicode_decimal": 59313
+    },
+    {
+      "icon_id": "40098029",
+      "name": "weigh",
+      "font_class": "weigh",
+      "unicode": "e7b2",
+      "unicode_decimal": 59314
+    },
+    {
+      "icon_id": "1500007",
+      "name": "user",
+      "font_class": "user",
+      "unicode": "e605",
+      "unicode_decimal": 58885
+    },
+    {
+      "icon_id": "38945102",
+      "name": "scan",
+      "font_class": "scanfill",
+      "unicode": "e737",
+      "unicode_decimal": 59191
+    },
+    {
+      "icon_id": "30479",
+      "name": "scan",
+      "font_class": "scan",
+      "unicode": "e689",
+      "unicode_decimal": 59017
+    },
+    {
+      "icon_id": "33516",
+      "name": "home",
+      "font_class": "home",
+      "unicode": "e6b8",
+      "unicode_decimal": 59064
+    },
+    {
+      "icon_id": "33519",
+      "name": "home_fill",
+      "font_class": "homefill",
+      "unicode": "e6bb",
+      "unicode_decimal": 59067
+    },
+    {
+      "icon_id": "158873",
+      "name": "people_fill",
+      "font_class": "peoplefill",
+      "unicode": "e735",
+      "unicode_decimal": 59189
+    },
+    {
+      "icon_id": "158874",
+      "name": "people",
+      "font_class": "people",
+      "unicode": "e736",
+      "unicode_decimal": 59190
+    }
+  ]
+}

BIN
src/static/iconfont/iconfont.ttf


BIN
src/static/iconfont/iconfont.woff


BIN
src/static/iconfont/iconfont.woff2


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