Просмотр исходного кода

fix:订单页面待评价列表读取接口问题

sunshine1130 лет назад: 4
Родитель
Сommit
80b9e89b7a

+ 5 - 0
api/order.js

@@ -7,6 +7,11 @@ class order extends request {
 
         return res.data
     }
+    static async getDiscussOffOrderList(page = 1, pageSize = 10, orderStatus, writeOffStatus) {
+        const res = await this.getRequest(`${this.BASE_URL}Order/index?page=${page}&pageSize=${pageSize}&orderStatus=${orderStatus}&writeOffStatus=${writeOffStatus}&discussStatus=1`)
+        return res.data
+    }
+
     static async getAllOrderList(page = 1, pageSize = 10) {
         const res = await this.getRequest(`${this.BASE_URL}Order/index?page=${page}&pageSize=${pageSize}`)
 

+ 1 - 1
pages/personorder/personorder.js

@@ -103,7 +103,7 @@ Page({
     let tabs = this.data.tabs;
     let pageSum = this.data.pageSum;
     // 获取代消费订单
-    var orderList = await orderApi.getOrderList(pageNo[2], 4, 2, 2);
+    var orderList = await orderApi.getDiscussOffOrderList(pageNo[2], 4, 2, 2);
     var list = orderList.list;
     if (!tabs[2].list) {
       tabs[2].list = []

+ 0 - 2
pages/personorder/personorder.wxml

@@ -37,8 +37,6 @@
                                         <!-- <view class="distance f13 ">{{item.distance}}</view> -->
                                     </view>
 
-
-
                                 </view>
                             </view>
                             <view class="operate-btn">

+ 0 - 70
pages/shoplist/shoplist.js

@@ -1,70 +0,0 @@
-// pages/shoplist/shoplist.js
-import { default as storeApi} from "../../api/store"
-Page({
-
-  /**
-   * 页面的初始数据
-   */
-  data: {
-shopList:[]
-  },
-
-  /**
-   * 生命周期函数--监听页面加载
-   */
-  onLoad: function (options) {
-   var shopList =  storeApi.getStoreList(1,5);
-   this.setData({
-    shopList
-   })
-  },
-
-  /**
-   * 生命周期函数--监听页面初次渲染完成
-   */
-  onReady: function () {
-
-  },
-
-  /**
-   * 生命周期函数--监听页面显示
-   */
-  onShow: function () {
-
-  },
-
-  /**
-   * 生命周期函数--监听页面隐藏
-   */
-  onHide: function () {
-
-  },
-
-  /**
-   * 生命周期函数--监听页面卸载
-   */
-  onUnload: function () {
-
-  },
-
-  /**
-   * 页面相关事件处理函数--监听用户下拉动作
-   */
-  onPullDownRefresh: function () {
-
-  },
-
-  /**
-   * 页面上拉触底事件的处理函数
-   */
-  onReachBottom: function () {
-
-  },
-
-  /**
-   * 用户点击右上角分享
-   */
-  onShareAppMessage: function () {
-
-  }
-})

+ 0 - 10
pages/shoplist/shoplist.json

@@ -1,10 +0,0 @@
-{
-  "usingComponents": {
-    "shop":"/componets/shop/index"
-  },
-  "navigationBarBackgroundColor": "#343434",
-  "navigationBarTextStyle": "white",
-  "navigationBarTitleText": "门店",
-  "backgroundColor": "#fff",
-  "backgroundTextStyle": "light"
-}

+ 0 - 2
pages/shoplist/shoplist.wxml

@@ -1,2 +0,0 @@
-<!--pages/shoplist/shoplist.wxml-->
-<shop shopList="{{shopList}}"></shop>

+ 0 - 1
pages/shoplist/shoplist.wxss

@@ -1 +0,0 @@
-/* pages/shoplist/shoplist.wxss */