diff --git a/app.js b/app.js
index b571a2b..1999865 100644
--- a/app.js
+++ b/app.js
@@ -8,7 +8,9 @@ App({
OpenId: "",
AppName: "WeChat",
AppId: "wx0b897783b2588147",
+ // 自己的服务器
BaseUrl: "https://miniprogram.food988.com/Rest.aspx",
+ // 转发到客户服务器
TranferBaseUrl:"https://miniprogram.food988.com/RequestTransfer.aspx",
CustomerId:"",
// 原测试路径
diff --git a/app.json b/app.json
index dfe4946..f7e9ba8 100644
--- a/app.json
+++ b/app.json
@@ -14,7 +14,10 @@
"pages/my/my",
"pages/fenxiang/fenxiang",
"pages/saleOutStore/saleOutStore",
- "pages/saleOutStore/outStoreDetail/outStoreDetail"
+ "pages/saleOutStore/outStoreDetail/outStoreDetail",
+ "pages/debitNoteList/debitNoteList",
+ "pages/debitNoteList/debitNoteDetail/debitNoteDetail",
+ "pages/debitNoteList/debitNoteQuery/debitNoteQuery"
],
"window": {
"backgroundTextStyle": "light",
diff --git a/pages/debitNoteList/debitNoteDetail/debitNoteDetail.js b/pages/debitNoteList/debitNoteDetail/debitNoteDetail.js
new file mode 100644
index 0000000..e001e36
--- /dev/null
+++ b/pages/debitNoteList/debitNoteDetail/debitNoteDetail.js
@@ -0,0 +1,64 @@
+// pages/debitNoteList/debitNoteDetail/debitNoteDetail.js
+
+const app = getApp();
+var network = require("../../../utils/net.js");
+var timechage = require("../../../utils/dateTimeUtil.js");
+var getDebitNoteDetail = '/MainSystem/B3MiniProgramRpc/XuRpcs/Customer/DebitNoteRpc/GetDebitNoteDetail'
+var confirmDebitNote = "/MainSystem/B3MiniProgramRpc/XuRpcs/Customer/DebitNoteRpc/ConfirmDebitNote"
+
+Page({
+ data: {
+ // ConfirmTime:'',
+ // Customer_Name: '',
+ // Remark: '',
+ // ID: '',
+ // AccountingUnit_Name: '',
+ // Date: '',
+ // Employee_Name: '',
+ // Money: '',
+ item:{},
+ ConfirmTime: '',
+ Date: '',
+ orderState:false,
+ },
+
+ onLoad: function(options) {
+ var that =this;
+ let orderID = Number(options.ID);
+ if (options.State == "未审核"){
+ that.setData({
+ orderState:true,
+ });
+ };
+
+ let method = getDebitNoteDetail;
+ let params = ["1"];
+ network.requestLoading(method, params, function (res) {
+ var backDate = timechage.formatTimeTwo(res.result.Date.substring(6, 19), 'Y/M/D');
+ var backConfirmTime = timechage.formatTimeTwo(res.result.ConfirmTime.substring(6, 19), 'Y/M/D');
+ that.setData({
+ item: res.result,
+ Date: backDate,
+ ConfirmTime: backConfirmTime,
+ })
+ })
+ },
+
+ // 新增按钮点击
+ confirmDebitNoteBtnClicked: function(event) {
+ var orderID = event.currentTarget.dataset.orderid;
+ let method = confirmDebitNote;
+ let params = [orderID];
+ network.requestLoading(method, params, function (res) {
+ wx.showToast({
+ title: '操作成功',
+ success: function (res){
+ wx:wx.navigateBack({
+ delta: 1,
+ });
+ }
+ });
+ });
+},
+
+})
\ No newline at end of file
diff --git a/pages/debitNoteList/debitNoteDetail/debitNoteDetail.json b/pages/debitNoteList/debitNoteDetail/debitNoteDetail.json
new file mode 100644
index 0000000..98d8b4a
--- /dev/null
+++ b/pages/debitNoteList/debitNoteDetail/debitNoteDetail.json
@@ -0,0 +1,3 @@
+{
+ "navigationBarTitleText": "欠款单详情"
+}
\ No newline at end of file
diff --git a/pages/debitNoteList/debitNoteDetail/debitNoteDetail.wxml b/pages/debitNoteList/debitNoteDetail/debitNoteDetail.wxml
new file mode 100644
index 0000000..6e5feb0
--- /dev/null
+++ b/pages/debitNoteList/debitNoteDetail/debitNoteDetail.wxml
@@ -0,0 +1,65 @@
+
+
+
+ 单号
+ {{item.ID}}
+
+
+
+
+
+ 客户
+ {{item.Customer_Name}}
+
+
+
+
+
+ 会计单位
+ {{item.AccountingUnit_Name}}
+
+
+
+
+
+ 确认日期
+ {{ConfirmTime}}
+
+
+
+
+
+ 日期
+ {{Date}}
+
+
+
+
+
+ 业务员
+ {{item.Employee_Name}}
+
+
+
+
+
+ 金额
+ {{item.Money}}
+
+
+
+
+
+ 摘要
+ {{item.Remark}}
+
+
+
+
+
+
+
+
+ 确定
+
+
\ No newline at end of file
diff --git a/pages/debitNoteList/debitNoteDetail/debitNoteDetail.wxss b/pages/debitNoteList/debitNoteDetail/debitNoteDetail.wxss
new file mode 100644
index 0000000..3b055f6
--- /dev/null
+++ b/pages/debitNoteList/debitNoteDetail/debitNoteDetail.wxss
@@ -0,0 +1,83 @@
+/* pages/debitNoteList/debitNoteDetail/debitNoteDetail.wxss */
+
+page {
+ background: #eaf1f8;
+}
+
+.container {
+ height: 100%;
+ background: #fff;
+ margin-top: 10rpx;
+}
+
+.baseitem {
+ height: 100rpx;
+ line-height: 100rpx;
+ display: flex;
+ flex-direction: row;
+ align-items: center;
+ padding-left: 20rpx;
+ padding-right: 20rpx;
+ font-size: 30rpx;
+ background: #fff;
+}
+
+.baseitem_key {
+ color: #666;
+ width: 40%;
+}
+
+.baseitem_value {
+ color: rgb(48, 48, 48);
+ margin-left: 20rpx;
+ width: 60%;
+ text-align: right;
+}
+
+.lineView {
+ height: 1rpx;
+ background-color: #dbdbdb;
+ margin-left: 20rpx;
+}
+
+/* .imageView {
+ height: 100%;
+ width: 50%;
+ position: relative;
+ align-items: center;
+ justify-content: center;
+ box-sizing: content-box;
+} */
+
+.imageView {
+ width: 100%;
+ height: 40px;
+ position: fixed;
+ bottom: 0rpx;
+ line-height: 40px;
+ text-align: center;
+ background-color: #f98b29;
+}
+
+.currentImage {
+ width: 100%;
+ height: 100%;
+}
+
+.btnTextView {
+ position: absolute;
+ width: 100%;
+ top: 0;
+ line-height: 65px;
+ text-align: center;
+}
+
+.btnText {
+ color: white;
+ font-size: 34rpx;
+}
+
+.whiteText {
+ color: black;
+ font-size: 34rpx;
+}
diff --git a/pages/debitNoteList/debitNoteList.js b/pages/debitNoteList/debitNoteList.js
new file mode 100644
index 0000000..0c342ce
--- /dev/null
+++ b/pages/debitNoteList/debitNoteList.js
@@ -0,0 +1,176 @@
+const app = getApp();
+var network = require("../../utils/net.js");
+var timechage = require("../../utils/dateTimeUtil.js");
+var UnCheckPageIndex = 0
+var UnCheckPageSize = 10
+var CheckedPageIndex = 0
+var CheckedPageSize = 10
+var getList = '/MainSystem/B3MiniProgramRpc/XuRpcs/Customer/DebitNoteRpc/GetDebitNoteList'
+
+// 未审核订单列表
+function getUnCheckOrderList(that, UnCheckPageIndex, UnCheckPageSize, successaction) {
+ let getArr = [];
+ let method = getList;
+ let params = [{
+ // Confirmed bool false
+ // StartDate datetime null
+ // EndDate datetime null
+ // PageIndex int 0
+ // PageSize int 0
+ "Confirmed": false,
+ "StartDate": that.data.startDate,
+ "EndDate": that.data.endDate,
+ "PageIndex": UnCheckPageIndex,
+ "PageSize": UnCheckPageSize,
+ }];
+
+ network.requestLoading(method, params, function (res) {
+ successaction();
+ var array = res.result;
+ if (array.length <= 0) {
+ wx.showToast({
+ title: '无数据更新',
+ })
+ UnCheckPageIndex = UnCheckPageIndex - 1;
+ return;
+ }
+ for (var i = 0; i < array.length; i++) {
+ var dmo = {
+
+ orderState: "未审核",
+ ID: array[i].ID,
+ Money: array[i].Money,
+ Date: timechage.formatTimeTwo(array[i].Date.substring(6, 19), 'Y/M/D'),
+ Employee_Name: array[i].Employee_Name,
+ }
+ getArr.push(dmo);
+ }
+ let arrLast = that.data.unCheckDataArr.concat(getArr);
+ that.setData({
+ unCheckDataArr: arrLast,
+ })
+ })
+}
+
+// 已审核订单列表
+function getCheckedOrderList(that, CheckedPageIndex, CheckedPageSize) {
+ let getArr = [];
+ let method = getList;
+ let params = [{
+ "Confirmed": true,
+ "StartDate": that.data.startDate,
+ "EndDate": that.data.endDate,
+ "PageIndex": UnCheckPageIndex,
+ "PageSize": UnCheckPageSize,
+ }];
+ // let params = [true, CheckedPageIndex, CheckedPageSize];
+ network.requestLoading(method, params, function (res) {
+ var array = res.result;
+ if (array.length <= 0) {
+ wx.showToast({
+ title: '无数据更新',
+ })
+ CheckedPageIndex = CheckedPageIndex - 1;
+ return;
+ }
+ for (var i = 0; i < array.length; i++) {
+ var dmo = {
+ //添加单据状态的传递,在详情页面判断此值,进行是否允许提交的操作
+ orderState: "已审核",
+ ID: array[i].ID,
+ Money: array[i].Money,
+ Date: timechage.formatTimeTwo(array[i].Date.substring(6, 19), 'Y/M/D'),
+ Employee_Name: array[i].Employee_Name,
+
+ }
+ getArr.push(dmo);
+ }
+ let arrLast = that.data.checkedDataArr.concat(getArr);
+ that.setData({
+ checkedDataArr: arrLast,
+ })
+ })
+}
+
+Page({
+ data: {
+ checkedDataArr: [],
+ unCheckDataArr: [],
+ currentTab: 0,
+ winHeight: app.globalData.winHeight,
+ startDate: null,
+ endDate:null,
+ },
+
+ /**
+ * 滑动切换tab
+ */
+ bindChange: function (e) {
+ var that = this;
+ that.setData({
+ currentTab: e.detail.current
+ });
+
+ },
+ /**
+ * 点击tab切换
+ */
+ swichNav: function (e) {
+ var that = this;
+ if (this.data.currentTab === e.target.dataset.current) {
+ return false;
+ } else {
+ that.setData({
+ currentTab: e.target.dataset.current
+ })
+ }
+ },
+ //点击进入详情页面
+ transToOrderDetail: function (event) {
+ var ID = event.currentTarget.dataset.detailitemid;
+ var State = event.currentTarget.dataset.detailitemstate;
+ wx.navigateTo({
+ url: 'debitNoteDetail/debitNoteDetail?ID=' + ID + '&State=' + State,
+ })
+ },
+
+ //点击进入筛选页面
+ chose: function (e) {
+ wx.navigateTo({
+ url: 'debitNoteQuery/debitNoteQuery',
+ })
+ },
+
+ onShow: function (options) {
+ this.setData({
+ checkedDataArr: [],
+ unCheckDataArr: [],
+ })
+ var that = this;
+ UnCheckPageIndex = 0;
+ CheckedPageIndex = 0;
+ getUnCheckOrderList(that, UnCheckPageIndex, UnCheckPageSize, function (res) {
+ getCheckedOrderList(that, CheckedPageIndex, CheckedPageSize);
+
+ });
+ },
+
+
+ //未审核订单滑动到底部加载
+ unCheckedScrollLower: function (event) {
+ var that = this;
+ UnCheckPageIndex = UnCheckPageIndex + 1;
+ getUnCheckOrderList(that, UnCheckPageIndex, UnCheckPageSize, function (res) {
+
+ });
+ },
+
+ //已审核订单滑动到底部加载
+ CheckedScrollLower: function (event) {
+ var that = this;
+ CheckedPageIndex = CheckedPageIndex + 1;
+ getCheckedOrderList(that, CheckedPageIndex, CheckedPageSize);
+ },
+
+})
+
\ No newline at end of file
diff --git a/pages/debitNoteList/debitNoteList.json b/pages/debitNoteList/debitNoteList.json
new file mode 100644
index 0000000..ddc8dea
--- /dev/null
+++ b/pages/debitNoteList/debitNoteList.json
@@ -0,0 +1,5 @@
+{
+ "navigationBarBackgroundColor": "white",
+ "navigationBarTextStyle": "black",
+ "navigationBarTitleText": "欠款单列表"
+}
\ No newline at end of file
diff --git a/pages/debitNoteList/debitNoteList.wxml b/pages/debitNoteList/debitNoteList.wxml
new file mode 100644
index 0000000..28d4ca0
--- /dev/null
+++ b/pages/debitNoteList/debitNoteList.wxml
@@ -0,0 +1,55 @@
+
+
+ 未审核
+ 已审核
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ NO.{{item.ID}}
+
+
+ 金额:{{item.Money}}
+
+
+
+
+ 业务员:{{item.Employee_Name}}
+
+
+ 日期:{{item.Date}}
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/debitNoteList/debitNoteList.wxss b/pages/debitNoteList/debitNoteList.wxss
new file mode 100644
index 0000000..ba4dd17
--- /dev/null
+++ b/pages/debitNoteList/debitNoteList.wxss
@@ -0,0 +1,107 @@
+/* pages/debitNoteList/debitNoteList.wxss */
+
+page {
+ background:#EAF1F8;
+ height: calc(100%-10px);
+}
+
+.swiper-tab {
+ /* height: 30px; */
+ margin: 10px 20px;
+ text-align: center;
+ line-height: 30px;
+ background: white;
+ display: flex;
+ flex-direction: row;
+ border-radius: 5px;
+ border: 1px solid#2E8CF5;
+ overflow: hidden;
+}
+
+.swiper-tab-list {
+ height: 100%;
+ width: 50%;
+ font-size: 30rpx;
+ color: #777;
+}
+
+.on {
+ background-color:#2E8CF5 ;
+ color: white;
+}
+
+.swiper-box {
+ width: 100%;
+ display: block;
+ overflow: hidden;
+}
+
+.scroll-views {
+ height: 100%;
+ width: 100%;
+ display: flex;
+ flex-direction: column;
+}
+
+.backGroundContainer{
+ background: #fff;
+
+}
+
+.listItem{
+ height: 100rpx;
+ display: flex;
+ flex-direction: column;
+ padding: 20rpx 20rpx;
+ /* border-bottom: 1rpx solid #ddd; */
+}
+
+.horizontallineView {
+ height: 1rpx;
+ background-color: #dbdbdb;
+ margin-left: 20rpx;
+ margin-right: 0rpx;
+}
+
+.orderID{
+ height: 50%;
+ width: 100%;
+
+}
+.bottomView{
+ height: 50%;
+ width: 100%;
+ display: flex;
+ flex-direction: row;
+}
+.goodsNum{
+ height: 100%;
+ width: 50%;
+}
+.goodsMoney{
+ height: 100%;
+ width: 50%;
+ text-align: right;
+}
+
+.goodsIDText{
+ font-size: 16px;
+}
+
+.goodsNumText{
+ font-size: 14px;
+ color: #666;
+}
+
+.goodsMoneyText{
+
+ font-size: 14px;
+ color: #666;
+}
+
+.chose{
+ width: 100%;
+ height: 40px;
+ position: fixed;
+ bottom: 0rpx;
+}
\ No newline at end of file
diff --git a/pages/debitNoteList/debitNoteQuery/debitNoteQuery.js b/pages/debitNoteList/debitNoteQuery/debitNoteQuery.js
new file mode 100644
index 0000000..f270596
--- /dev/null
+++ b/pages/debitNoteList/debitNoteQuery/debitNoteQuery.js
@@ -0,0 +1,41 @@
+// pages/debitNoteList/debitNoteQuery/debitNoteQuery.js
+
+const app = getApp();
+var network = require("../../../utils/net.js");
+var timechage = require("../../../utils/dateTimeUtil.js");
+
+Page({
+ data: {
+ Sdate: timechage.formatTimeTwo(Date.parse(new Date()), 'Y-M-D'),
+ Edate: timechage.formatTimeTwo(Date.parse(new Date()), 'Y-M-D'),
+ },
+
+ submitForm: function (e) {
+ let sDate = timechage.formatymdERTDate(this.data.Sdate);
+ let eDate = timechage.formatymdERTDate(this.data.Edate);
+
+ var pages = getCurrentPages();
+ var currPage = pages[pages.length - 1]; //当前页面
+ var prevPage = pages[pages.length - 2]; //上一个页面
+ //直接调用上一个页面对象的setData()方法,把数据存到上一个页面中去
+ prevPage.setData({
+ startDate: sDate,
+ endDate: eDate,
+ });
+ wx.navigateBack({
+ delta: 1
+ })
+ },
+
+ bindSDateChange: function (e) {
+ this.setData({
+ Sdate: e.detail.value,
+ })
+ },
+ bindEDateChange: function (e) {
+ this.setData({
+ Edate: e.detail.value,
+ })
+ },
+
+})
\ No newline at end of file
diff --git a/pages/debitNoteList/debitNoteQuery/debitNoteQuery.json b/pages/debitNoteList/debitNoteQuery/debitNoteQuery.json
new file mode 100644
index 0000000..fbec297
--- /dev/null
+++ b/pages/debitNoteList/debitNoteQuery/debitNoteQuery.json
@@ -0,0 +1,3 @@
+{
+ "navigationBarTitleText": "筛选"
+}
\ No newline at end of file
diff --git a/pages/debitNoteList/debitNoteQuery/debitNoteQuery.wxml b/pages/debitNoteList/debitNoteQuery/debitNoteQuery.wxml
new file mode 100644
index 0000000..d51f850
--- /dev/null
+++ b/pages/debitNoteList/debitNoteQuery/debitNoteQuery.wxml
@@ -0,0 +1,31 @@
+
+
+ 开始日期
+
+
+ {{Sdate}}
+
+
+
+
+
+
+
+
+
+ 结束日期
+
+
+ {{Edate}}
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/debitNoteList/debitNoteQuery/debitNoteQuery.wxss b/pages/debitNoteList/debitNoteQuery/debitNoteQuery.wxss
new file mode 100644
index 0000000..aa84f5a
--- /dev/null
+++ b/pages/debitNoteList/debitNoteQuery/debitNoteQuery.wxss
@@ -0,0 +1,121 @@
+/* pages/debitNoteList/debitNoteQuery/debitNoteQuery.wxss */
+
+page {
+ background: rgb(240, 239, 245);
+}
+
+.twoitem{
+ display: flex;
+ flex-direction: row;
+ justify-content: space-between;
+ padding-right: 4%;
+ padding-left: 4%;
+ background: #fff;
+ /* border-bottom: 1rpx solid #dbdbdb; */
+ padding-top: 20rpx;
+ padding-bottom: 20rpx;
+}
+
+.item_value{
+ width: 70%;
+ text-align: right;
+ font-size: 11pt;
+}
+
+.chose{
+ width: 100%;
+ height: 40px;
+ position: fixed;
+ bottom: 0rpx;
+}
+
+.submit {
+ height : 160rpx;
+ width: 100%;
+ display: flex;
+ margin-top: 550rpx;
+ margin-bottom: 30rpx;
+}
+
+.imageClass{
+ width: 100%;
+ height: 100%;
+}
+
+.drawer_screen {
+ width: 100%;
+ height: 100%;
+ position: fixed;
+ top: 0;
+ left: 0;
+ z-index: 1000;
+ background: #000;
+ opacity: 0.5;
+ overflow: hidden;
+}
+
+.drawer_box {
+ width: 650rpx;
+ overflow: hidden;
+ position: fixed;
+ top: 50%;
+ left: 0;
+ z-index: 1001;
+ background: #fafafa;
+ margin: -150px 50rpx 0 50rpx;
+ border-radius: 3px;
+}
+
+
+.top {
+ height: 20%;
+ justify-content: center;
+ align-items: center;
+}
+
+.sousuo {
+ /* margin-right: 10%;
+ margin-left: 10%; */
+ text-align: center;
+ background: #d6d8da;
+ height: 40px;
+ font-size: 28rpx;
+}
+
+.drawer_content {
+ height: 500rpx;
+ overflow-y: scroll; /*超出父盒子高度可滚动*/
+}
+
+
+.btn_ok {
+ padding: 10px;
+ font: 20px "microsoft yahei";
+ text-align: center;
+ border-top: 1px solid #e8e8ea;
+ color: #2E8CF5;
+}
+
+
+.grid1 {
+ width: 100%;
+ /* border-bottom: 1px solid #c3c3c3; */
+ padding-top: 16rpx;
+ padding-bottom: 16rpx;
+ text-align: center;
+}
+
+.text3 {
+ font-size: 18px;
+ color: rgb(48, 48, 48);
+}
+
+.view_line_main{
+ background: white
+}
+.view_line{
+ width: 96%;
+ height: 0.5rpx;
+ margin-left: 4%;
+ background: rgb(219, 219, 219);
+}
\ No newline at end of file
diff --git a/pages/homePage/homePage.js b/pages/homePage/homePage.js
index 94fb74d..d29e712 100644
--- a/pages/homePage/homePage.js
+++ b/pages/homePage/homePage.js
@@ -61,7 +61,7 @@ Page({
transferURL = '/pages/statementOfAccount/statementOfAccount';
break;
case "7":
- transferURL = '/pages/homePage/homePage';
+ transferURL = '/pages/debitNoteList/debitNoteList';
break;
}
diff --git a/pages/login/login.js b/pages/login/login.js
index 6e0b1a6..57bc675 100644
--- a/pages/login/login.js
+++ b/pages/login/login.js
@@ -90,11 +90,12 @@ Page({
},
// 获取所有客户列表
- choiceCustomer: function() {
+ choiceCustomer: function(succession) {
var that = this;
var method = '/MainSystem/B3WeChatMiniProgram/Rpcs/CustomerRpc/GetList';
var params = [];
network.previousRequestLoading(method, params, function(res) {
+ succession();
if (res.result.length > 0) {
var lastArr = that.data.array.concat(res.result)
that.setData({
@@ -203,19 +204,21 @@ Page({
// 页面初始化 静默登录相关判断
onShow: function() {
var that = this;
- that.choiceCustomer();
- getOpenId(function(res) {
- openid = res;
- IsBind(openid, function(res) {
- app.globalData.Phone = res;
- if (res == "") {
-
- } else {
- //跳转到指定页面
- IsBindWeixinMP(app.globalData.Phone)
- }
+ this.choiceCustomer(function (res){
+ getOpenId(function (res) {
+ openid = res;
+ IsBind(openid, function (res) {
+ app.globalData.Phone = res;
+ if (res == "") {
+
+ } else {
+ //跳转到指定页面
+ IsBindWeixinMP(app.globalData.Phone)
+ }
+ })
})
- })
+ });
+
},
/**
diff --git a/utils/dateTimeUtil.js b/utils/dateTimeUtil.js
index 6a2fada..915b535 100644
--- a/utils/dateTimeUtil.js
+++ b/utils/dateTimeUtil.js
@@ -1,10 +1,16 @@
+function formatymdERTDate(str) {
+ return "/Date(" + Date.parse(new Date(str.replace(/\-/g, "/") + " 00:00:00")) + "+0800)/"
+}
+
+function getERTDate() {
+ return "/Date(" + Date.parse(new Date()) + "+0800)/"
+}
+
function formatNumber(n) {
n = n.toString()
return n[1] ? n : '0' + n
}
-
-
/**
* 时间戳转化为年 月 日 时 分 秒
* number: 传入时间戳
@@ -15,7 +21,7 @@ function formatTimeTwo(number, format) {
var formateArr = ['Y', 'M', 'D', 'h', 'm', 's'];
var returnArr = [];
- var date = new Date(number*1);
+ var date = new Date(number * 1);
returnArr.push(date.getFullYear());
returnArr.push(formatNumber(date.getMonth() + 1));
returnArr.push(formatNumber(date.getDate()));
@@ -31,5 +37,7 @@ function formatTimeTwo(number, format) {
}
module.exports = {
- formatTimeTwo: formatTimeTwo
+ formatTimeTwo: formatTimeTwo,
+ formatymdERTDate: formatymdERTDate,
+ getERTDate: getERTDate
}
\ No newline at end of file
diff --git a/utils/net.js b/utils/net.js
index 849cc96..4a03b3e 100644
--- a/utils/net.js
+++ b/utils/net.js
@@ -5,7 +5,7 @@ function request(url, params, success, fail) {
this.requestLoading(url, params, "", success, fail)
}
-//原来的请求方式 。现在首页五个接口沿用,直接在中转服务器获取数据
+// 请求自己的服务器
function previousRequestLoading(method, params, successaction) {
wx.showLoading({
title: "加载中",
@@ -47,7 +47,7 @@ function previousRequestLoading(method, params, successaction) {
})
}
-// 新请求方式,添加中转服务器
+// 中转,请求客户服务器
function requestLoading(method, params, successaction) {
wx.showLoading({
title: "加载中",