lbj 2 роки тому
батько
коміт
67c903ca53

+ 5 - 8
pages/order_search/order_search.js

@@ -1,10 +1,7 @@
 // index.js
 // index.js
 // 获取应用实例
 // 获取应用实例
 const app = getApp()
 const app = getApp()
-
 Page({
 Page({
-
-
     /**
     /**
      * 页面的初始数据
      * 页面的初始数据
      */
      */
@@ -48,8 +45,8 @@ Page({
         console.log(1);
         console.log(1);
     // 获取后拼接/phone
     // 获取后拼接/phone
       wx.request({
       wx.request({
-        url: `http://8.130.90.145:4849/user/select/`  + this.data.phone,
-        method: 'GET',
+        url: `http://8.130.90.145:8089/user/`  + this.data.phone,
+        method: 'POST',
         header: {
         header: {
             'content-type': 'application/json' // 默认值
             'content-type': 'application/json' // 默认值
         },
         },
@@ -57,7 +54,7 @@ Page({
           // 遍历数组 查他的手机相等不等你输入的手机号
           // 遍历数组 查他的手机相等不等你输入的手机号
             console.log(res);
             console.log(res);
             this.setData({
             this.setData({
-              totalList : res.data.data
+              totalList : res.data
             })
             })
             this.setData({
             this.setData({
               showList : this.data.totalList
               showList : this.data.totalList
@@ -72,7 +69,7 @@ Page({
         wx.setNavigationBarTitle({ title: '搜索' })
         wx.setNavigationBarTitle({ title: '搜索' })
 
 
         wx.request({
         wx.request({
-          url: `http://8.130.90.145:4849/user/list` ,
+          url: `http://8.130.90.145:8089/user/list` ,
           method: 'GET',
           method: 'GET',
           header: {
           header: {
               'content-type': 'application/json' // 默认值
               'content-type': 'application/json' // 默认值
@@ -81,7 +78,7 @@ Page({
             // 遍历数组 查他的手机相等不等你输入的手机号
             // 遍历数组 查他的手机相等不等你输入的手机号
               console.log(res);
               console.log(res);
               this.setData({
               this.setData({
-                totalList : res.data.data
+                totalList : res.data
               })
               })
               this.setData({
               this.setData({
                 showList : this.data.totalList
                 showList : this.data.totalList

+ 5 - 6
pages/order_search/order_search.wxml

@@ -6,11 +6,10 @@
     <button class="search-btn" bindtap="Search">搜索</button>
     <button class="search-btn" bindtap="Search">搜索</button>
   </view>
   </view>
 </view>
 </view>
-
 <view style="margin: 4%;" wx:for="{{showList}}">
 <view style="margin: 4%;" wx:for="{{showList}}">
   <view class="item-box">
   <view class="item-box">
     <view style="color: #747474;font-size: 29rpx;">
     <view style="color: #747474;font-size: 29rpx;">
-      订单编号 : {{item.oid}}
+      订单编号 : {{item.Oid}}
       <view style="float: right;" bindtap="onClickdetail">
       <view style="float: right;" bindtap="onClickdetail">
         {{detail}}
         {{detail}}
       </view>
       </view>
@@ -19,17 +18,17 @@
     </view>
     </view>
     <view>
     <view>
       <view class="card1">
       <view class="card1">
-        <text style="font-size:26rpx;margin-bottom: 10rpx;color: #747474;">姓名:{{item.userName}}</text>
+        <text style="font-size:26rpx;margin-bottom: 10rpx;color: #747474;">姓名:{{item.UserName}}</text>
         <text style="font-size:26rpx; color: #FF6347;">待送达</text>
         <text style="font-size:26rpx; color: #FF6347;">待送达</text>
       </view>
       </view>
       <view class="card1">
       <view class="card1">
-        <text style="font-size:26rpx;margin-bottom: 10rpx;color: #747474;">手机号:{{item.phone}}</text>
+        <text style="font-size:26rpx;margin-bottom: 10rpx;color: #747474;">手机号:{{item.Phone}}</text>
       </view>
       </view>
       <view class="card1">
       <view class="card1">
-        <text style="font-size:26rpx;margin-bottom: 10rpx;color: #747474;">地址:{{item.province}}</text>
+        <text style="font-size:26rpx;margin-bottom: 10rpx;color: #747474;">地址:{{item.Area}}</text>
       </view>
       </view>
       <view class="card1">
       <view class="card1">
-        <text style="font-size:26rpx;color: #747474;">下单时间:{{item.createTime}}</text>
+        <text style="font-size:26rpx;color: #747474;">下单时间:{{item.CreateTime}}</text>
         <van-button color="#FF8C00" custom-style="border-radius:8px;font-size:20rpx" class="btn1" round type="info" size="mini">重新打印</van-button>
         <van-button color="#FF8C00" custom-style="border-radius:8px;font-size:20rpx" class="btn1" round type="info" size="mini">重新打印</van-button>
       </view>
       </view>
     </view>
     </view>