<commit_before>var wxpay = require('../../utils/pay.js')
var app = getApp()
Page({
  data:{
    statusType:["全部","待付款","待发货","待收货","已完成"],
    currentTpye:0,
    tabClass: ["", "", "", "", ""],
    orderList:[
      {
        goodsImg:"/images/goods02.png",
        des:"爱马仕（HERMES）大地男士香水大地男士香水大地如果有两行就这样显示超出部分用省…超出部分用省…",
        pics:['/images/goods02.png','/images/goods02.png','/images/goods02.png','/images/goods02.png','/images/goods02.png','/images/goods02.png','/images/goods02.png','/images/goods02.png'],
        price:"300.00",
        orderDate:"2017.03.04 10:33:33",
        orderStatus:"已关闭"
      },
      {
        goodsImg:"/images/goods02.png",
        des:"爱马仕（HERMES）大地男士香水大地男士香水大地如果有两行就这样显示超出部分用省…超出部分用省…",
        pics:['/images/goods02.png','/images/goods02.png','/images/goods02.png','/images/goods02.png'],
        price:"400.00",
        orderDate:"2017.03.05 10:33:33",
        orderStatus:"待付款"
      },
    ]
  },
  statusTap:function(e){
     var curType =  e.currentTarget.dataset.index;
     this.data.currentTpye = curType
     this.setData({
      currentTpye:curType
     });
     this.onShow();
  },
  orderDetail : function (e) {
    var orderId = e.currentTarget.dataset.id;
    wx.navigateTo({
      url: "/pages/order-details/index?id=" + orderId
    })
  },
  cancelOrderTap:function(e){
    var that = this;
    var orderId = e.currentTarget.dataset.id;
     wx.showModal({
      title: '确定要取消该订单吗？',
      content: '',
      success: function(res) {
        if (res.confirm) {
          wx.showLoading();
          wx.request({
            url: 'https://api.it120.cc/' + app.globalData.subDomain + '/order/close',
            data: {
              token: app.globalData.token,
              orderId: orderId<commit_msg>delete order list default data<commit_after>var wxpay = require('../../utils/pay.js')
var app = getApp()
Page({
  data:{
    statusType:["全部","待付款","待发货","待收货","已完成"],
    currentTpye:0,
    tabClass: ["", "", "", "", ""]
  },
  statusTap:function(e){
     var curType =  e.currentTarget.dataset.index;
     this.data.currentTpye = curType
     this.setData({
      currentTpye:curType
     });
     this.onShow();
  },
  orderDetail : function (e) {
    var orderId = e.currentTarget.dataset.id;
    wx.navigateTo({
      url: "/pages/order-details/index?id=" + orderId
    })
  },
  cancelOrderTap:function(e){
    var that = this;
    var orderId = e.currentTarget.dataset.id;
     wx.showModal({
      title: '确定要取消该订单吗？',
      content: '',
      success: function(res) {
        if (res.confirm) {
          wx.showLoading();
          wx.request({
            url: 'https://api.it120.cc/' + app.globalData.subDomain + '/order/close',
            data: {
              token: app.globalData.token,
              orderId: orderId
{'fraction_non_alphanumeric': 0.17954220314735336, 'fraction_numerical': 0.026466380543633764, 'mean_word_length': 2.415140415140415, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4408060', 'n_tokens_mistral': 1092, 'n_tokens_neox': 1106, 'n_words': 130}