ycm vor 2 Jahren
Ursprung
Commit
1dc8658d37
4 geänderte Dateien mit 164 neuen und 93 gelöschten Zeilen
  1. 35 6
      pages/serah/index.js
  2. 18 4
      pages/serah/index.wxml
  3. 30 0
      pages/serah/index.wxss
  4. 81 83
      project.config.json

+ 35 - 6
pages/serah/index.js

@@ -12,7 +12,12 @@ Page({
         vtype:"订单号",
         ktype:0,
         columns: ['订单号', '物流单号', '水洗码', '封签号', '手机号','用户姓名'],
-        pageindex: 1
+        pageindex: 1,
+        order_count: 0,
+        shopsind: 0,
+        shopslist: [{
+            id:0,title:'全部'
+        }],
     },
 
     /**
@@ -30,6 +35,7 @@ Page({
         var b = new Select();
         console.log(b.getSelet());
         this.serch();
+        this.getshopslist()
     },
     onPullDownRefresh:function(){
       this.setData({pageindex: 1})
@@ -43,7 +49,26 @@ Page({
       this.setData({pageindex:this.data.pageindex+=1})
       this.serch()
     },
-
+    getshopslist(){
+      let that = this
+      wx.showLoading()
+      app.api.useApi(app.globalData.baseAppUrl + "api/admin/SearchOrder", {
+        key: '',
+        logistics_status:0,
+        network_id:"",
+        created_at:"",
+        page: 1
+      }, "post").then(function (res) {
+          wx.hideLoading()
+          if(res.code==200){
+              that.setData({
+                  shopslist:that.data.shopslist.concat(res.message.data.networker)
+              })
+          }
+        }).catch(function (err) {
+          console.log(222);
+        })
+  },
     click(){
         this.setData({
             show:!this.data.show
@@ -79,12 +104,16 @@ Page({
             inputValue: e.detail.value
           })
     },
+    shopschange(e){
+        this.setData({shopsind: e.detail.value})
+        this.serch()
+    },
     serch(){
         var that=this;
         app.api.useApi(app.globalData.baseAppUrl + "api/admin/SearchOrder", {
             key: that.data.inputValue,
             logistics_status:0,
-            network_id:"",
+            network_id:that.data.shopsind!=0?that.data.shopslist[that.data.shopsind].id:'',
             created_at:"",
             page: that.data.pageindex
           }, "post").then(function (res) {
@@ -100,15 +129,15 @@ Page({
                   
             } else {
               wx.hideLoading();
+              that.setData({order_count:res.message.data.order_count})
               if (that.data.pageindex == 1) {
                 that.setData({selectInfo: []})
               }
-              if (res.message.data.length > 0) {
-                that.setData({selectInfo: that.data.selectInfo.concat(res.message.data)})
+              if (res.message.data.list.length > 0) {
+                that.setData({selectInfo: that.data.selectInfo.concat(res.message.data.list)})
               } else {
                 that.setData({pageindex: that.data.pageindex -= 1})
               }
-              
             }
           }).catch(function (err) {
               

+ 18 - 4
pages/serah/index.wxml

@@ -17,10 +17,10 @@
         </button>
       </view>
     </view>
-    <view class="box6">
+    <!-- <view class="box6">
       <view class="bd1">
         <view class="mod1">
-          <text lines="1" class="word2">未取({{selectInfo.order_count}})</text>
+          <text lines="1" class="word2">未取({{order_count}})</text>
           <image src="https://636c-cloud1-7g2wlwzh596f43b6-1306306616.tcb.qcloud.la/ic_xiajiantou%402x.png?sign=f2ea45a48221502bb335335b4bb6486d&t=1645170754" class="label3"></image>
         </view>
       </view>
@@ -38,8 +38,22 @@
           <image src="https://636c-cloud1-7g2wlwzh596f43b6-1306306616.tcb.qcloud.la/ic_xiajiantou%402x.png?sign=f2ea45a48221502bb335335b4bb6486d&t=1645170754" class="icon2"></image>
         </view>
       </view>
+    </view> -->
+    
+    <view class="display-between header_bottom">
+      <view bindtap="changestate">未取({{order_count}})</view>
+      <view>
+        <picker bindchange="shopschange" value="{{shopsind}}" range="{{shopslist}}" range-key="title">
+          <view class="itemdisplay">
+            <view class="font_maxw">{{shopsind==0?'网点':shopslist[shopsind].title}}</view>
+            <image src="https://636c-cloud1-7g2wlwzh596f43b6-1306306616.tcb.qcloud.la/ic_xiajiantou%402x.png?sign=f2ea45a48221502bb335335b4bb6486d&t=1645170754" class="label3"></image>
+          </view>
+        </picker>
+      </view>
+      <view>时间<image src="https://636c-cloud1-7g2wlwzh596f43b6-1306306616.tcb.qcloud.la/ic_xiajiantou%402x.png?sign=f2ea45a48221502bb335335b4bb6486d&t=1645170754" class="label3"></image></view>
     </view>
-    <view class="box7"  wx:for="{{selectInfo.list}}" wx:key="index">
+
+    <view class="box7"  wx:for="{{selectInfo}}" wx:key="index">
       <view class="outer2">
         <view class="group3">
           <text lines="1" class="word4">物流单号:{{item.logistics_no}}</text>
@@ -80,4 +94,4 @@
 
 <van-popup show="{{ show }}" position="bottom" custom-style="height: 30%;" bind:close="onClose">
   <van-picker show="{{ show }}" columns="{{ columns }}" bind:change="onChange" default-index="{{ 0 }}" />
-</van-popup>
+</van-popup>

+ 30 - 0
pages/serah/index.wxss

@@ -6,6 +6,36 @@
   display: flex;
   flex-direction: column;
 }
+.font_maxw{
+  max-width: 180rpx;
+  display: -webkit-box;
+  -webkit-box-orient: vertical;
+  -webkit-line-clamp: 1;
+  overflow: hidden;
+}
+.itemdisplay{
+  display: flex;
+  align-items: center;
+}
+.header_bottom{
+  display: flex;
+  align-items: center;
+  justify-content: space-between;
+  background: #fff;
+  font-size: 28rpx;
+  color: #333;
+  height: 88rpx;
+}
+.header_bottom>view{
+  flex: 1;
+  display: flex;
+  justify-content: center;
+  align-items: center;
+  border-right: 1rpx solid #ededed;
+}
+.header_bottom>view:nth-last-child(1){
+  border-right: 0 solid #ededed;
+}
 .block1 {
   width: 750rpx;
 

+ 81 - 83
project.config.json

@@ -1,96 +1,94 @@
 {
-  "description": "项目配置文件",
-  "packOptions": {
-    "ignore": [
-      {
-        "type": "file",
-        "value": ".eslintrc.js"
-      }
-    ]
-  },
-  "setting": {
-    "urlCheck": true,
-    "es6": true,
-    "enhance": true,
-    "postcss": true,
-    "preloadBackgroundData": false,
-    "minified": true,
-    "newFeature": false,
-    "coverView": true,
-    "nodeModules": true,
-    "autoAudits": false,
-    "showShadowRootInWxmlPanel": true,
-    "scopeDataCheck": false,
-    "uglifyFileName": false,
-    "checkInvalidKey": true,
-    "checkSiteMap": true,
-    "uploadWithSourceMap": true,
-    "compileHotReLoad": false,
-    "lazyloadPlaceholderEnable": false,
-    "useMultiFrameRuntime": true,
-    "useApiHook": true,
-    "useApiHostProcess": true,
-    "babelSetting": {
-      "ignore": [],
-      "disablePlugins": [],
-      "outputPath": ""
+    "description": "项目配置文件",
+    "packOptions": {
+        "ignore": [
+            {
+                "type": "file",
+                "value": ".eslintrc.js"
+            }
+        ]
     },
-    "useIsolateContext": false,
-    "userConfirmedBundleSwitch": false,
-    "packNpmManually": false,
-    "packNpmRelationList": [
-      {
-        "packageJsonPath": "./package.json",
-        "miniprogramNpmDistDir": "./"
-      }
-    ],
-    "minifyWXSS": true,
-    "disableUseStrict": false,
-    "minifyWXML": true,
-    "showES6CompileOption": false,
-    "useCompilerPlugins": false,
-    "ignoreUploadUnusedFiles": true
-  },
-  "compileType": "miniprogram",
-  "libVersion": "2.22.0",
-  "appid": "wx96efd334b6da6e38",
-  "projectname": "%E6%B5%B7%E6%98%9F%E5%88%86%E6%8B%A3%E7%AB%AF",
-  "debugOptions": {
-    "hidedInDevtools": []
-  },
-  "scripts": {},
-  "staticServerOptions": {
-    "baseURL": "",
-    "servePath": ""
-  },
-  "isGameTourist": false,
-  "condition": {
-    "search": {
-      "list": []
+    "setting": {
+        "urlCheck": false,
+        "es6": true,
+        "enhance": true,
+        "postcss": true,
+        "preloadBackgroundData": false,
+        "minified": true,
+        "newFeature": false,
+        "coverView": true,
+        "nodeModules": true,
+        "autoAudits": false,
+        "showShadowRootInWxmlPanel": true,
+        "scopeDataCheck": false,
+        "uglifyFileName": false,
+        "checkInvalidKey": true,
+        "checkSiteMap": true,
+        "uploadWithSourceMap": true,
+        "compileHotReLoad": false,
+        "lazyloadPlaceholderEnable": false,
+        "useMultiFrameRuntime": true,
+        "useApiHook": true,
+        "useApiHostProcess": true,
+        "babelSetting": {
+            "ignore": [],
+            "disablePlugins": [],
+            "outputPath": ""
+        },
+        "useIsolateContext": false,
+        "userConfirmedBundleSwitch": false,
+        "packNpmManually": false,
+        "packNpmRelationList": [
+            {
+                "packageJsonPath": "./package.json",
+                "miniprogramNpmDistDir": "./"
+            }
+        ],
+        "minifyWXSS": true,
+        "disableUseStrict": false,
+        "minifyWXML": true,
+        "showES6CompileOption": false,
+        "useCompilerPlugins": false,
+        "ignoreUploadUnusedFiles": true
     },
-<<<<<<< HEAD
     "compileType": "miniprogram",
     "libVersion": "2.22.0",
     "appid": "wx3474318f187cd0f2",
     "projectname": "%E6%B5%B7%E6%98%9F%E5%88%86%E6%8B%A3%E7%AB%AF",
     "debugOptions": {
         "hidedInDevtools": []
-=======
-    "conversation": {
-      "list": []
->>>>>>> bd27695b9b7182c49e8ceb2f33c88a17ac68d21b
     },
-    "game": {
-      "list": []
+    "scripts": {},
+    "staticServerOptions": {
+        "baseURL": "",
+        "servePath": ""
     },
-    "plugin": {
-      "list": []
-    },
-    "gamePlugin": {
-      "list": []
-    },
-    "miniprogram": {
-      "list": []
+    "isGameTourist": false,
+    "condition": {
+        "search": {
+            "list": []
+        },
+        "compileType": "miniprogram",
+        "libVersion": "2.22.0",
+        "appid": "wx3474318f187cd0f2",
+        "projectname": "%E6%B5%B7%E6%98%9F%E5%88%86%E6%8B%A3%E7%AB%AF",
+        "debugOptions": {
+            "hidedInDevtools": [],
+            "conversation": {
+                "list": []
+            },
+            "game": {
+                "list": []
+            },
+            "plugin": {
+                "list": []
+            },
+            "gamePlugin": {
+                "list": []
+            },
+            "miniprogram": {
+                "list": []
+            }
+        }
     }
-  }
 }