Browse Source

no message

feature/v1.0
xpz2018 5 years ago
parent
commit
e6225a980f
15 changed files with 20 additions and 15 deletions
  1. 0
      api/axios.js
  2. 4
      api/request.js
  3. 0
      api/saas.js
  4. 4
      api/user.js
  5. 5
      pages/formate.wxs
  6. 2
      pages/home/authory/index.js
  7. 2
      pages/home/employee/index.js
  8. 2
      pages/home/index/index.js
  9. 2
      pages/home/index/index.wxml
  10. 2
      pages/home/mobile/index.js
  11. 4
      pages/login/index.js
  12. 2
      pages/process/index/index.js
  13. 2
      pages/process/order-check/index.js
  14. 2
      pages/process/order-info/index.js
  15. 2
      pages/process/order-list/index.js

pages/api/axios.js → api/axios.js

pages/api/request.js → api/request.js

@ -3,8 +3,8 @@
*/
import axios from "./axios"
const event = require('../../utils/event')
const storage = require('../../utils/storage')
const event = require('../utils/event')
const storage = require('../utils/storage')
const app = getApp()
/**
* axios defaults 配置

pages/api/saas.js → api/saas.js

pages/api/user.js → api/user.js

@ -3,8 +3,8 @@
*/
import { mGet, mPost } from "./request"
import { sconfig } from "./saas"
const util = require('../../utils/util')
const storage = require('../../utils/storage')
const util = require('../utils/util')
const storage = require('../utils/storage')
const app = getApp()
const config = {

5
pages/formate.wxs

@ -52,7 +52,12 @@ function formateDate(datetime) {
return datetime + week
}
function formateAmount(amount) {
return Number(amount).toFixed(2)
}
module.exports = {
formateAmount: formateAmount,
formatTime: formatTime,
formateDate: formateDate
}

2
pages/home/authory/index.js

@ -1,5 +1,5 @@
// pages/home/authory/index.js
import { getAuthSession, certificateImage, certificateIdentity} from "../../api/user"
import { getAuthSession, certificateImage, certificateIdentity} from "../../../api/user"
import Dialog from '../../../components/dialog/dialog'
const util = require('../../../utils/util')
const event = require('../../../utils/event')

2
pages/home/employee/index.js

@ -1,5 +1,5 @@
// pages/home/employee/index.js
import { getCheckList, getEmployeList, auditEmploye, adminEmploye, deleteEmploye, qrcodeEmploye } from "../../api/user"
import { getCheckList, getEmployeList, auditEmploye, adminEmploye, deleteEmploye, qrcodeEmploye } from "../../../api/user"
const util = require('../../../utils/util')
const app = getApp()

2
pages/home/index/index.js

@ -1,6 +1,6 @@
// pages/stock/index.js
import Dialog from '../../../components/dialog/dialog'
import { finalizeToken } from "../../api/user"
import { finalizeToken } from "../../../api/user"
const util = require('../../../utils/util')
const event = require('../../../utils/event')
const storage = require('../../../utils/storage')

2
pages/home/index/index.wxml

@ -1,4 +1,4 @@
<wxs module="formate" src="../../mall/index.wxs"></wxs>
<wxs module="formate" src="../../formate.wxs"></wxs>
<cu-custom bgColor="bg-white" isBack="{{false}}">
<view slot="content" style="color:black;font-size:18px">我的</view>
</cu-custom>

2
pages/home/mobile/index.js

@ -1,5 +1,5 @@
// pages/home/mobile/index.js
const util = require('../../../utils/util');
const util = require('../../../utils/util')
const app = getApp()
Page({

4
pages/login/index.js

@ -1,7 +1,7 @@
//获取应用实例
import Dialog from '../../components/dialog/dialog'
import { config, wechatApplet, loginWechat, postCaptcha, loginCaptcha, loginPwd, verifyCode } from "../api/user"
import { sconfig, loginToken, getBaseInfo } from "../api/saas"
import { config, wechatApplet, loginWechat, postCaptcha, loginCaptcha, loginPwd, verifyCode } from "../../api/user"
import { sconfig, loginToken, getBaseInfo } from "../../api/saas"
const util = require('../../utils/util')
const storage = require('../../utils/storage')
const app = getApp()

2
pages/process/index/index.js

@ -1,5 +1,5 @@
// pages/index/index.js
import { getUserInfo } from "../../api/user"
import { getUserInfo } from "../../../api/user"
const event = require('../../../utils/event')
const app = getApp()

2
pages/process/order-check/index.js

@ -1,6 +1,6 @@
// pages/process/order-check/index.js
import Dialog from '../../../components/dialog/dialog'
import { pricingOrder, cancelOrder, getFactoryOrderInfo, getPaperPrice} from "../../api/saas"
import { pricingOrder, cancelOrder, getFactoryOrderInfo, getPaperPrice} from "../../../api/saas"
const event = require('../../../utils/event')
const util = require('../../../utils/util')
const app = getApp()

2
pages/process/order-info/index.js

@ -1,6 +1,6 @@
// pages/process/order-check/index.js
import Dialog from '../../../components/dialog/dialog'
import { cancelOrder, getFactoryOrderInfo, checkingOrder} from "../../api/saas"
import { cancelOrder, getFactoryOrderInfo, checkingOrder} from "../../../api/saas"
const event = require('../../../utils/event')
const util = require('../../../utils/util')
const app = getApp()

2
pages/process/order-list/index.js

@ -1,6 +1,6 @@
// pages/process/order-list/index.js
import Dialog from '../../../components/dialog/dialog'
import { getFactoryOrderList, cancelOrder } from "../../api/saas"
import { getFactoryOrderList, cancelOrder } from "../../../api/saas"
const event = require('../../../utils/event')
const util = require('../../../utils/util')
const app = getApp()

Loading…
Cancel
Save