1、.js
onload(){
this.getOrderList();
},
// 获取时间差
queryTime: function (pintime) {
var start_date = new Date();
var end_date = new Date(pintime.replace(/-/g, "/"));
var days = start_date.getTime() - end_date.getTime();
return ((30 * 60000) - days);
},
// 获取商品列表
getOrderList() {
let that = this;
util.request(api.接口, {
type: that.data.type