Commit 141c7d0d by 施宇

111

parent 6442d5ed
{"tinyType":"dingtalk","tinyCnName":"钉钉","tinyProjectType":"dingtalk-biz","dingtalk:dingtalk-biz-isv:tinyIcon":"https://gw.alipayobjects.com/zos/rmsportal/mAzWuEDGpTlpugsPXgzf.svg","dingtalk:dingtalk-biz-isv:compilePreviewTime":"","dingtalk:dingtalk-biz-isv:compilePreviewWholePackSize":"","dingtalk:dingtalk-biz-isv:compilePreviewSubpackSizes":"","dingtalk:dingtalk-biz-isv:_appIdList":[],"dingtalk:dingtalk-biz-isv:preAuditLimit":10,"dingtalk:dingtalk-biz-isv:preAuditUsed":0,"dingtalk:dingtalk-biz-isv:uploadTime":"","dingtalk:dingtalk-biz-isv:packageSize":"","dingtalk:dingtalk-biz-isv:auditLink":null,"dingtalk:dingtalk-biz-isv:whiteListLink":null,"dingtalk:dingtalk-biz-isv:_enableAutoPush":true,"dingtalk:dingtalk-biz-isv:lastDeviceName":"Nexus 6","SimulatorMode":"WINDOW","isSimulatorOpen":true,"isNotFirstToggleSimulator":true,"isSimulatorDefaultSticky":false,"dingtalk:dingtalk-biz:tinyIcon":"https://gw.alipayobjects.com/zos/rmsportal/mAzWuEDGpTlpugsPXgzf.svg","dingtalk:dingtalk-biz:compilePreviewTime":"2020-04-07 18:12:05","dingtalk:dingtalk-biz:compilePreviewWholePackSize":"50.9 KB","dingtalk:dingtalk-biz:compilePreviewSubpackSizes":"","dingtalk:dingtalk-biz:_appIdList":[{"orgName":"深圳市猎芯科技有限公司","corpId":"dinga60eaa15e871b53535c2f4657eb6378f","orgLogo":"@lALOiBEIWs0BOM0CgA","orgId":12488944,"apps":[{"miniAppName":"猎芯云仓","bizType":2,"miniAppId":"2021001152657489","icon":"https://static.dingtalk.com/media/lALPDfJ6OzgcKq5NTQ_77_77.png"}]},{"orgName":"创宇天下科技有限公司","corpId":"ding93fe2dfb8cef1afd","orgId":9213150,"apps":[{"miniAppName":"DEMO","bizType":2,"miniAppId":"2018102261820458","icon":"https://static.dingtalk.com/media/lADPBY0V4-e-L6TNAZDNAbU_437_400.jpg"}]}],"dingtalk:dingtalk-biz:preAuditLimit":10,"dingtalk:dingtalk-biz:preAuditUsed":0,"dingtalk:dingtalk-biz:uploadTime":"","dingtalk:dingtalk-biz:packageSize":"","dingtalk:dingtalk-biz:auditLink":null,"dingtalk:dingtalk-biz:whiteListLink":null,"dingtalk:dingtalk-biz:_enableAutoPush":false,"dingtalk:dingtalk-biz:_appId":"2018102261820458","dingtalk:dingtalk-biz:_appName":"DEMO","dingtalk:dingtalk-biz:_orgId":9213150,"dingtalk:dingtalk-biz:_corpId":"ding93fe2dfb8cef1afd","dingtalk:dingtalk-biz:remoteVersion":"0.0.1","dingtalk:dingtalk-biz:currentVersion":"0.0.2","dingtalk:dingtalk-biz:whiteList":["dd.yemxing.com"],"dingtalk:dingtalk-biz:h5WhiteList":[],"taobao:taobao-mini:tinyIcon":"https://gw.alicdn.com/tfs/TB1as1idqSs3KVjSZPiXXcsiVXa-21-21.svg","dingtalk:dingtalk-biz:lastDeviceName":"iPhone 6","storageVersion":"1.5.10"}
\ No newline at end of file
{"tinyType":"dingtalk","tinyCnName":"钉钉","tinyProjectType":"dingtalk-biz","dingtalk:dingtalk-biz-isv:tinyIcon":"https://gw.alipayobjects.com/zos/rmsportal/mAzWuEDGpTlpugsPXgzf.svg","dingtalk:dingtalk-biz-isv:compilePreviewTime":"","dingtalk:dingtalk-biz-isv:compilePreviewWholePackSize":"","dingtalk:dingtalk-biz-isv:compilePreviewSubpackSizes":"","dingtalk:dingtalk-biz-isv:_appIdList":[],"dingtalk:dingtalk-biz-isv:preAuditLimit":10,"dingtalk:dingtalk-biz-isv:preAuditUsed":0,"dingtalk:dingtalk-biz-isv:uploadTime":"","dingtalk:dingtalk-biz-isv:packageSize":"","dingtalk:dingtalk-biz-isv:auditLink":null,"dingtalk:dingtalk-biz-isv:whiteListLink":null,"dingtalk:dingtalk-biz-isv:_enableAutoPush":true,"dingtalk:dingtalk-biz-isv:lastDeviceName":"Nexus 6","SimulatorMode":"WINDOW","isSimulatorOpen":true,"isNotFirstToggleSimulator":true,"isSimulatorDefaultSticky":false,"dingtalk:dingtalk-biz:tinyIcon":"https://gw.alipayobjects.com/zos/rmsportal/mAzWuEDGpTlpugsPXgzf.svg","dingtalk:dingtalk-biz:compilePreviewTime":"2020-04-07 18:12:05","dingtalk:dingtalk-biz:compilePreviewWholePackSize":"50.9 KB","dingtalk:dingtalk-biz:compilePreviewSubpackSizes":"","dingtalk:dingtalk-biz:_appIdList":[{"orgName":"创宇天下科技有限公司","corpId":"ding93fe2dfb8cef1afd","orgId":9213150,"apps":[{"miniAppName":"DEMO","bizType":2,"miniAppId":"2018102261820458","icon":"https://static.dingtalk.com/media/lADPBY0V4-e-L6TNAZDNAbU_437_400.jpg"}]},{"orgName":"深圳市猎芯科技有限公司","corpId":"dinga60eaa15e871b53535c2f4657eb6378f","orgLogo":"@lALOiBEIWs0BOM0CgA","orgId":12488944,"apps":[{"miniAppName":"猎芯云仓","bizType":2,"miniAppId":"2021001152657489","icon":"https://static.dingtalk.com/media/lALPDfJ6OzgcKq5NTQ_77_77.png"}]}],"dingtalk:dingtalk-biz:preAuditLimit":10,"dingtalk:dingtalk-biz:preAuditUsed":0,"dingtalk:dingtalk-biz:uploadTime":"","dingtalk:dingtalk-biz:packageSize":"","dingtalk:dingtalk-biz:auditLink":null,"dingtalk:dingtalk-biz:whiteListLink":null,"dingtalk:dingtalk-biz:_enableAutoPush":false,"dingtalk:dingtalk-biz:_appId":"2018102261820458","dingtalk:dingtalk-biz:_appName":"DEMO","dingtalk:dingtalk-biz:_orgId":9213150,"dingtalk:dingtalk-biz:_corpId":"ding93fe2dfb8cef1afd","dingtalk:dingtalk-biz:remoteVersion":"0.0.1","dingtalk:dingtalk-biz:currentVersion":"0.0.2","dingtalk:dingtalk-biz:whiteList":["dd.yemxing.com","user.liexin.net","user.liexin.com"],"dingtalk:dingtalk-biz:h5WhiteList":[],"taobao:taobao-mini:tinyIcon":"https://gw.alicdn.com/tfs/TB1as1idqSs3KVjSZPiXXcsiVXa-21-21.svg","dingtalk:dingtalk-biz:lastDeviceName":"Nexus 6","dingtalk:dingtalk-biz:MockStore":{"token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC91c2VyLmxpZXhpbi5jb21cL2Rpbmd0YWxrXC9sb2dpbiIsImlhdCI6MTU4NjM0NTExOSwiZXhwIjoxNTg2MzQ4NzE5LCJuYmYiOjE1ODYzNDUxMTksImp0aSI6IkhxREVVb1lNRE93YnF4OUEiLCJzdWIiOjE1NzgsInBydiI6Ijg3ZTBhZjFlZjlmZDE1ODEyZmRlYzk3MTUzYTE0ZTBiMDQ3NTQ2YWEifQ.pFe29pdtg0P7agolE-QU93RMD-ciE5UMT1r_gtIgp3I"},"storageVersion":"1.5.10"}
\ No newline at end of file
......@@ -2,6 +2,6 @@
const g = typeof global !== 'undefined' ? global : self;
g.appXAppJson = {
"app": {
"$homepage": "pages/nav/nav"
"$homepage": "pages/tabs/alreadyApproval/alreadyApproval"
}
};
require('@alipay/appx-compiler/lib/sjsEnvInit');
require('./config$');
require('../../pages/tabs/alreadyApproval/alreadyApproval?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68');
require('../../pages/nav/nav?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68');
require('../../pages/tabs/waitApproval/waitApproval?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68');
require('../../pages/search/search?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68');
require('../../pages/screen/screen?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68');
require('../../pages/detail/accountLimit/accountLimit?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68');
require('../../pages/tabs/waitApproval/waitApproval?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68');
require('../../pages/detail/reimbursement/reimbursement?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68');
require('../../pages/detail/other/other?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68');
require('../../pages/detail/payment/payment?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68');
require('../../pages/tabs/launchApproval/launchApproval?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68');
require('../../pages/login/login?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68');
require('../../pages/tabs/alreadyApproval/alreadyApproval?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68');
......@@ -29,17 +29,17 @@ if(AFAppX.registerApp) {
function success() {
require('../../app');
require('../../pages/tabs/alreadyApproval/alreadyApproval?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68');
require('../../pages/nav/nav?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68');
require('../../pages/tabs/waitApproval/waitApproval?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68');
require('../../pages/search/search?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68');
require('../../pages/screen/screen?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68');
require('../../pages/detail/accountLimit/accountLimit?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68');
require('../../pages/tabs/waitApproval/waitApproval?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68');
require('../../pages/detail/reimbursement/reimbursement?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68');
require('../../pages/detail/other/other?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68');
require('../../pages/detail/payment/payment?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68');
require('../../pages/tabs/launchApproval/launchApproval?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68');
require('../../pages/login/login?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68');
require('../../pages/tabs/alreadyApproval/alreadyApproval?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68');
}
self.bootstrapApp ? self.bootstrapApp({ success }) : success();
}
\ No newline at end of file
{"layout":{"left":{"currentId":"explorer","size":310},"right":{"currentId":""},"bottom":{"currentId":"devtools","size":280}},"storageVersion":"1.5.10"}
\ No newline at end of file
{"layout":{"left":{"currentId":"explorer","size":310},"right":{"currentId":""},"bottom":{"currentId":"devtools","size":329}},"storageVersion":"1.5.10"}
\ No newline at end of file
{"OPENED_FILE":["file:///e%3A/DingProgram/blank/res/js/apis.js","file:///e%3A/DingProgram/blank/res/js/aixos.js","file:///e%3A/DingProgram/blank/app.acss","file:///e%3A/DingProgram/blank/pages/nav/nav.axml","file:///e%3A/DingProgram/blank/app.json","file:///e%3A/DingProgram/blank/pages/search/search.axml","file:///e%3A/DingProgram/blank/pages/search/search.js","file:///e%3A/DingProgram/blank/res/css/tab.acss","file:///e%3A/DingProgram/blank/debug.log","file:///e%3A/DingProgram/blank/snapshot.png","file:///e%3A/DingProgram/blank/pages/search/search.acss","file:///e%3A/DingProgram/blank/pages/tabs/waitApproval/waitApproval.axml","file:///e%3A/DingProgram/blank/pages/tabs/launchApproval/launchApproval.axml","file:///e%3A/DingProgram/blank/pages/screen/screen.acss","file:///e%3A/DingProgram/blank/pages/screen/screen.axml","file:///e%3A/DingProgram/blank/pages/search/search.json","file:///e%3A/DingProgram/blank/pages/screen/screen.json","file:///e%3A/DingProgram/blank/res/css/detail.acss","file:///e%3A/DingProgram/blank/pages/detail/payment/payment.axml","file:///e%3A/DingProgram/blank/pages/login/login.js","file:///e%3A/DingProgram/blank/pages/detail/payment/payment.acss","file:///e%3A/DingProgram/blank/pages/login/login.json","file:///e%3A/DingProgram/blank/pages/detail/accountLimit/accountLimit.axml","file:///e%3A/DingProgram/blank/pages/screen/screen.js","file:///e%3A/DingProgram/blank/pages/detail/accountLimit/accountLimit.js","file:///e%3A/DingProgram/blank/pages/detail/accountLimit/accountLimit.json","file:///e%3A/DingProgram/blank/pages/detail/accountLimit/accountLimit.acss","file:///e%3A/DingProgram/blank/pages/detail/reimbursement/reimbursement.axml","file:///e%3A/DingProgram/blank/pages/detail/payment/payment.json","file:///e%3A/DingProgram/blank/pages/detail/reimbursement/reimbursement.acss","file:///e%3A/DingProgram/blank/pages/detail/other/other.json","file:///e%3A/DingProgram/blank/pages/detail/reimbursement/reimbursement.json","file:///e%3A/DingProgram/blank/pages/detail/other/other.axml","file:///e%3A/DingProgram/blank/pages/detail/other/other.acss","file:///e%3A/DingProgram/blank/pages/tabs/alreadyApproval/alreadyApproval.acss","file:///e%3A/DingProgram/blank/pages/nav/nav.json","file:///e%3A/DingProgram/blank/pages/detail/payment/payment.js","file:///e%3A/DingProgram/blank/pages/detail/other/other.js","file:///e%3A/DingProgram/blank/pages/detail/reimbursement/reimbursement.js","file:///e%3A/DingProgram/blank/pages/tabs/alreadyApproval/alreadyApproval.json","file:///e%3A/DingProgram/blank/pages/tabs/launchApproval/launchApproval.json","file:///e%3A/DingProgram/blank/pages/tabs/waitApproval/waitApproval.json","file:///e%3A/DingProgram/blank/pages/tabs/alreadyApproval/alreadyApproval.axml","file:///e%3A/DingProgram/blank/pages/tabs/launchApproval/launchApproval.acss","file:///e%3A/DingProgram/blank/pages/tabs/waitApproval/waitApproval.acss","file:///e%3A/DingProgram/blank/pages/tabs/waitApproval/waitApproval.js","file:///e%3A/DingProgram/blank/app.js","file:///e%3A/DingProgram/blank/pages/tabs/launchApproval/launchApproval.js","file:///e%3A/DingProgram/blank/pages/tabs/alreadyApproval/alreadyApproval.js","file:///e%3A/DingProgram/blank/pages/nav/nav.acss"],"storageVersion":"1.5.10"}
\ No newline at end of file
{"OPENED_FILE":["file:///e%3A/DingProgram/blank/pages/search/search.js","file:///e%3A/DingProgram/blank/pages/tabs/launchApproval/launchApproval.js","file:///e%3A/DingProgram/blank/pages/tabs/alreadyApproval/alreadyApproval.js","file:///e%3A/DingProgram/blank/pages/tabs/waitApproval/waitApproval.js","file:///e%3A/DingProgram/blank/pages/tabs/alreadyApproval/alreadyApproval.axml","file:///e%3A/DingProgram/blank/pages/tabs/waitApproval/waitApproval.axml","file:///e%3A/DingProgram/blank/pages/tabs/launchApproval/launchApproval.axml","file:///e%3A/DingProgram/blank/app.json","file:///e%3A/DingProgram/blank/res/css/tab.acss","file:///e%3A/DingProgram/blank/pages/tabs/waitApproval/waitApproval.json","file:///e%3A/DingProgram/blank/pages/tabs/launchApproval/launchApproval.json","file:///e%3A/DingProgram/blank/res/js/axios.js","file:///e%3A/DingProgram/blank/res/css/detail.acss","file:///e%3A/DingProgram/blank/res/js/apis.js","file:///e%3A/DingProgram/blank/pages/nav/nav.js","file:///e%3A/DingProgram/blank/app.js","file:///e%3A/DingProgram/blank/pages/nav/nav.axml","file:///e%3A/DingProgram/blank/app.acss","file:///e%3A/DingProgram/blank/res/js/aixos.js","file:///e%3A/DingProgram/blank/pages/search/search.axml","file:///e%3A/DingProgram/blank/debug.log","file:///e%3A/DingProgram/blank/snapshot.png","file:///e%3A/DingProgram/blank/pages/search/search.acss","file:///e%3A/DingProgram/blank/pages/screen/screen.acss","file:///e%3A/DingProgram/blank/pages/screen/screen.axml","file:///e%3A/DingProgram/blank/pages/search/search.json","file:///e%3A/DingProgram/blank/pages/screen/screen.json","file:///e%3A/DingProgram/blank/pages/detail/payment/payment.axml","file:///e%3A/DingProgram/blank/pages/login/login.js","file:///e%3A/DingProgram/blank/pages/detail/payment/payment.acss","file:///e%3A/DingProgram/blank/pages/login/login.json","file:///e%3A/DingProgram/blank/pages/detail/accountLimit/accountLimit.axml","file:///e%3A/DingProgram/blank/pages/screen/screen.js","file:///e%3A/DingProgram/blank/pages/detail/accountLimit/accountLimit.js","file:///e%3A/DingProgram/blank/pages/detail/accountLimit/accountLimit.json","file:///e%3A/DingProgram/blank/pages/detail/accountLimit/accountLimit.acss","file:///e%3A/DingProgram/blank/pages/detail/reimbursement/reimbursement.axml","file:///e%3A/DingProgram/blank/pages/detail/payment/payment.json","file:///e%3A/DingProgram/blank/pages/detail/reimbursement/reimbursement.acss","file:///e%3A/DingProgram/blank/pages/detail/other/other.json","file:///e%3A/DingProgram/blank/pages/detail/reimbursement/reimbursement.json","file:///e%3A/DingProgram/blank/pages/detail/other/other.axml","file:///e%3A/DingProgram/blank/pages/detail/other/other.acss","file:///e%3A/DingProgram/blank/pages/tabs/alreadyApproval/alreadyApproval.acss","file:///e%3A/DingProgram/blank/pages/nav/nav.json","file:///e%3A/DingProgram/blank/pages/detail/payment/payment.js","file:///e%3A/DingProgram/blank/pages/detail/other/other.js","file:///e%3A/DingProgram/blank/pages/detail/reimbursement/reimbursement.js","file:///e%3A/DingProgram/blank/pages/tabs/alreadyApproval/alreadyApproval.json","file:///e%3A/DingProgram/blank/pages/tabs/launchApproval/launchApproval.acss"],"storageVersion":"1.5.10"}
\ No newline at end of file
{"grid":{"editorGroup":{"uris":["file:///e%3A/DingProgram/blank/pages/nav/nav.axml","file:///e%3A/DingProgram/blank/app.json","file:///e%3A/DingProgram/blank/app.acss","file:///e%3A/DingProgram/blank/res/js/aixos.js","file:///e%3A/DingProgram/blank/res/js/apis.js"],"current":"file:///e%3A/DingProgram/blank/res/js/apis.js","previewIndex":-1}},"storageVersion":"1.5.10"}
\ No newline at end of file
{"grid":{"editorGroup":{"uris":["file:///e%3A/DingProgram/blank/pages/tabs/launchApproval/launchApproval.axml","file:///e%3A/DingProgram/blank/pages/tabs/launchApproval/launchApproval.js","file:///e%3A/DingProgram/blank/pages/tabs/waitApproval/waitApproval.axml","file:///e%3A/DingProgram/blank/app.json","file:///e%3A/DingProgram/blank/pages/tabs/alreadyApproval/alreadyApproval.axml","file:///e%3A/DingProgram/blank/pages/search/search.js","file:///e%3A/DingProgram/blank/pages/tabs/waitApproval/waitApproval.js","file:///e%3A/DingProgram/blank/pages/tabs/alreadyApproval/alreadyApproval.js"],"current":"file:///e%3A/DingProgram/blank/pages/search/search.js","previewIndex":-1}},"storageVersion":"1.5.10"}
\ No newline at end of file
......@@ -3,6 +3,8 @@ App({
// 第一次打开
// options.query == {number:1}
console.info('App onLaunch');
},
onShow(options) {
// 从后台被 scheme 重新打开
......
{
"pages": [
"pages/tabs/alreadyApproval/alreadyApproval",
"pages/nav/nav",
"pages/tabs/waitApproval/waitApproval",
"pages/search/search",
"pages/screen/screen",
"pages/detail/accountLimit/accountLimit",
"pages/tabs/waitApproval/waitApproval",
"pages/detail/reimbursement/reimbursement",
"pages/detail/other/other",
"pages/detail/payment/payment",
"pages/tabs/launchApproval/launchApproval",
"pages/login/login",
"pages/tabs/alreadyApproval/alreadyApproval"
"pages/login/login"
],
"tabBar": {
......
This diff could not be displayed because it is too large.
import axios from '/res/js/axios';
Page({
data: {},
onLoad() {},
onLoad() {
axios.checkToken({isCallBack:false})
},
});
import apis from '/res/js/apis';
import axios from '/res/js/axios'
Page({
data: {},
onLoad() {
data: {
type: 0
},
onLoad(query) {
this.setData({
type: query.type
})
},
getData() {
let url = '';
let type = this.data.type;
if (type == 1) {
url = apis.examineList
} else if (type == 2) {
url = apis.examinedList
} else if (type == 3) {
url = apis.applyList
}
}
});
<view class="approval-view">
<view class="search-classify clr">
<navigator class="search fl sx" url="">
<view class="approval-view {{isFixed?'fixedClass':''}}">
<view class="search-classify clr {{isFixed?'fixedClass':''}}">
<navigator class="search fl sx" url="/pages/search/search?type=2">
<image mode="scaleToFill" src="/res/img/search-icon.png"/>
</navigator>
<navigator class="classify fl sx" url="">
......@@ -8,24 +8,24 @@
</navigator>
</view>
<view class="data-view">
<view class="wait-approval">
<view class="wait-approval" a:for="{{listData}}">
<view class="wait-approval-top clr">
<view class="wait-approval-top-left fl">
<text class="lineBlock name">蒋小斯 发起的
<text class="f-yellow">付款申请</text>
<text class="lineBlock name">{{item.apply_admin_name||'--'}} 发起的
<text class="f-yellow">{{item.apply_type_name}}</text>
</text>
</view>
<text class="fr">2020-03-10 16:58</text>
<text class="fr">{{item.apply_add_time}}</text>
</view>
<view class="wait-approval-bottom clr">
<view class="wait-approval-bottom-left fl">
<text class="lineBlock"></text>
审批中...
{{item.status_name}}
</view>
</view>
</view>
</view>
<!-- <view class="loading-text">加载中...</view> -->
<view class="loading-text">———— 到底啦 ————</view>
<view class="loading-text" a:if="{{isMoreText}}">加载中...</view>
<view class="loading-text" a:if="{{isEndText}}">———— 到底啦 ————</view>
</view>
\ No newline at end of file
import apis from '/res/js/apis';
import axios from '/res/js/axios'
Page({
data: {},
onLoad() {},
data: {
page: 1,
limit: 10,
listData: [],
pages: 1,
isMoreText: false,
isEndText: false,
isFixed: false
},
onLoad() {
this.getData()
},
getData(isPull) {//isPull是否是下拉刷新
let me = this;
axios.checkToken({ url: apis.examinedList, data: { page: me.data.page, limit: me.data.limit } }).then(res => {
if (res.data.errcode == 0) {
let data = res.data;
let listData = [];
let pages = Math.ceil(data.total / me.data.limit);
if (isPull) {
listData = data.data;
dd.stopPullDownRefresh()
} else {
listData = data.data.concat(me.data.listData)
}
me.setData({
pages: pages,
listData: listData,
isMoreText: false,
isEndText: false,
});
if (me.data.page == this.data.pages) {
me.setData({
isEndText: true,
});
}
}
}
)
},
onReachBottom() {
let page = this.data.page
if (page < this.data.pages) {
this.setData({
isMoreText: true,
page: ++page
})
this.getData()
}
},
onPullDownRefresh() {
this.setData({
page: 1
})
this.getData(true)
},
onPageScroll(height) {
if (height.scrollTop > 70) {
this.setData({
isFixed: true
})
} else {
this.setData({
isFixed: false
})
}
}
});
<view class="approval-view">
<view class="search-classify clr">
<navigator class="search fl sx" url="">
<view class="approval-view {{isFixed?'fixedClass':''}}">
<view class="search-classify clr {{isFixed?'fixedClass':''}}">
<navigator class="search fl sx" url="/pages/search/search?type=3">
<image mode="scaleToFill" src="/res/img/search-icon.png"/>
</navigator>
<navigator class="classify fl sx" url="">
......@@ -8,26 +8,26 @@
</navigator>
</view>
<view class="data-view">
<view class="wait-approval">
<view class="wait-approval" a:for="{{listData}}">
<view class="wait-approval-top clr">
<view class="wait-approval-top-left fl">
<text class="lineBlock name">蒋小斯 发起的
<text class="f-yellow">付款申请</text>
<text class="lineBlock name">{{item.admin_name||'--'}} 发起的
<text class="f-yellow">{{item.apply_type_name}}</text>
</text>
</view>
<text class="fr">2020-03-10 16:58</text>
<text class="fr">{{item.add_time}}</text>
</view>
<view class="wait-approval-bottom clr">
<view class="wait-approval-bottom-left fl">
<text class="lineBlock"></text>
审批中...
{{item.status_name}}
</view>
<view class="wait-approval-bottom-right fr">
<text class="lineBlock">待下一步【总经办CEO-梁耀】审批</text>
<text class="lineBlock">待下一步 {{item.next_examine_people}}审批</text>
</view>
</view>
</view>
</view>
<!--<view class="loading-text">加载中...</view> -->
<view class="loading-text">———— 到底啦 ————</view>
<view class="loading-text" a:if="{{isMoreText}}">加载中...</view>
<view class="loading-text" a:if="{{isEndText}}">———— 到底啦 ————</view>
</view>
\ No newline at end of file
import apis from '/res/js/apis';
import axios from '/res/js/axios'
Page({
data: {},
onLoad() {},
data: {
page: 1,
limit: 10,
listData: [],
pages: 1,
isMoreText: false,
isEndText: false,
isFixed: false
},
onLoad() {
this.getData()
},
getData(isPull) {//isPull是否是下拉刷新
let me = this;
axios.checkToken({ url: apis.applyList, data: { page: me.data.page, limit: me.data.limit } }).then(res => {
if (res.data.errcode == 0) {
let data = res.data;
let listData = [];
let pages = Math.ceil(data.total / me.data.limit);
if (isPull) {
listData = data.data;
dd.stopPullDownRefresh()
} else {
listData = data.data.concat(me.data.listData)
}
me.setData({
pages: pages,
listData: listData,
isMoreText: false,
isEndText: false,
});
if (me.data.page == this.data.pages) {
me.setData({
isEndText: true,
});
}
}
}
)
},
onReachBottom() {
let page = this.data.page
if (page < this.data.pages) {
this.setData({
isMoreText: true,
page: ++page
})
this.getData()
}
},
onPullDownRefresh() {
this.setData({
page: 1
})
this.getData(true)
},
onPageScroll(height) {
if (height.scrollTop > 70) {
this.setData({
isFixed: true
})
} else {
this.setData({
isFixed: false
})
}
}
});
<view class="approval-view">
<view class="search-classify clr">
<navigator class="search fl sx" url="">
<view class="approval-view {{isFixed?'fixedClass':''}} ">
<view class="search-classify clr {{isFixed?'fixedClass':''}} ">
<navigator class="search fl sx" url="/pages/search/search?type=1">
<image mode="scaleToFill" src="/res/img/search-icon.png"/>
</navigator>
<navigator class="classify fl sx" url="">
......@@ -8,24 +8,24 @@
</navigator>
</view>
<view class="data-view">
<view class="wait-approval">
<view class="wait-approval" a:for="{{listData}}">
<view class="wait-approval-top clr">
<view class="wait-approval-top-left fl">
<text class="lineBlock name">蒋小斯 发起的
<text class="f-yellow">付款申请</text>
<text class="lineBlock name">{{item.apply_admin_name||'--'}} 发起的
<text class="f-yellow">{{item.apply_type_name}}</text>
</text>
</view>
<text class="fr">2020-03-10 16:58</text>
<text class="fr">{{item.apply_add_time}}</text>
</view>
<view class="wait-approval-bottom clr">
<view class="wait-approval-bottom-left fl">
<text class="lineBlock"></text>
<text class="lineBlock dsp-icon"></text>
审批中...
</view>
</view>
</view>
</view>
<!-- <view class="loading-text">加载中...</view> -->
<view class="loading-text">———— 到底啦 ————</view>
<view class="loading-text" a:if="{{isMoreText}}">加载中...</view>
<view class="loading-text" a:if="{{isEndText}}">———— 到底啦 ————</view>
</view>
\ No newline at end of file
import apis from '/res/js/apis';
import axios from '/res/js/axios'
Page({
data: {},
onLoad() {},
onReachBottom(){
console.log(1111)
data: {
page: 1,
limit: 10,
listData: [],
pages: 1,
isMoreText: false,
isEndText: false,
isFixed: false
},
onLoad() {
this.getData()
},
getData(isPull) {//isPull是否是下拉刷新
let me = this;
axios.checkToken({ url: apis.examineList, data: { page: me.data.page, limit: me.data.limit } }).then(res => {
if (res.data.errcode == 0) {
let data = res.data;
let listData = [];
let pages = Math.ceil(data.total / me.data.limit);
if (isPull) {
listData = data.data;
dd.stopPullDownRefresh()
} else {
listData = data.data.concat(me.data.listData)
}
me.setData({
pages: pages,
listData: listData,
isMoreText: false,
isEndText: false,
});
if (me.data.page == this.data.pages) {
me.setData({
isEndText: true,
});
}
}
}
)
},
onReachBottom() {
let page = this.data.page
if (page < this.data.pages) {
this.setData({
isMoreText: true,
page: ++page
})
this.getData()
}
},
onPullDownRefresh() {
this.setData({
page: 1
})
this.getData(true)
},
onPageScroll(height) {
if (height.scrollTop > 70) {
this.setData({
isFixed: true
})
} else {
this.setData({
isFixed: false
})
}
}
});
@import "/app.acss";
.approval-view{
}
.approval-view.fixedClass{
padding-top:70px;
}
.search-classify{
margin:0 25rpx;
padding:0 25rpx;
height:70px;
background-color: #F8F8F8;
}
.search-classify.fixedClass{
position: fixed;
top:0;
left:0;
right:0;
z-index: 2
}
.search-classify .sx{
width:50%;
text-align: center;
height:140rpx;
height:70px;
}
.search-classify image{
width:64rpx;
height:64rpx;
width:32px;
height:32px;
position: relative;
top:34rpx;
top:17px;
}
.search-classify .classify-icon{
width:54rpx;
height:54rpx;
top:39rpx;
width:27px;
height:27px;
top:20px;
}
.data-view{
padding-bottom:42rpx;
......@@ -40,8 +53,8 @@
padding:27rpx 0 34rpx;
}
.wait-approval-top-left{
width:calc(100% - 110px);
overflow: hidden;
width:calc(100% - 128px);
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
......@@ -55,11 +68,15 @@
height:21px;
width:21px;
box-sizing: border-box;
border:1px solid;
/* border:1px solid; */
margin-right:8px;
vertical-align: sub;
}
.wait-approval-bottom-left text.dsp-icon{
background: url('../../../res/img/dsp-icon.png') no-repeat;
background-size: 100% 100%;
}
.loading-text{
font-size: 12px;
color:#646F78;
......
const host = 'approval.liexin.net';//开发环境
// const host = '';//生产环境
const axios = ({ method = 'GET', url, data = {}, isLoading = true }) => {
isLoading &&
dd.showLoading({
content: '加载中...',
});
return new Promise((resolve, reject) => {
dd.httpRequest({
url: url,
method: method,
data: data,
success: function (res) {
isLoading && dd.hideLoading();
resolve(res)
},
fail: function () {
isLoading && dd.hideLoading();
dd.showToast({
type: 'fail',
content: '服务器异常'
});
reject('服务器异常')
}
});
})
}
export default axios
export default apis = {
"examineList":"/apply/api/examineList" ,//待我审批列表
"examinedList":"/apply/api/examinedList" ,//我已审批列表
"applyList":"/apply/api/applyList" ,//我的申请列表
"paymentApplyDetail":"/payment/api/paymentApplyDetail" ,//付款申请详情
"reimburseApplyDetail":"/reimburse/api/reimburseApplyDetail" ,//报销申请详情
"termApplyDetail":"/term/api/termApplyDetail" ,//账期申请详情
"otherApplyDetail":"/other/api/otherApplyDetail" ,//其它申请详情
"api_auth_apply":"/process/api/api_auth_apply" ,//审批申请
export default {
"examineList": "/apply/api/examineList",//待我审批列表
"examinedList": "/apply/api/examinedList",//我已审批列表
"applyList": "/apply/api/applyList",//我的申请列表
"paymentApplyDetail": "/payment/api/paymentApplyDetail",//付款申请详情
"reimburseApplyDetail": "/reimburse/api/reimburseApplyDetail",//报销申请详情
"termApplyDetail": "/term/api/termApplyDetail",//账期申请详情
"otherApplyDetail": "/other/api/otherApplyDetail",//其它申请详情
"api_auth_apply": "/process/api/api_auth_apply",//审批申请
"login": "/dingtalk/login",//获取token
"me": "/dingtalk/me",//校验token是否失效
}
\ No newline at end of file
import apis from './apis';
const host1 = 'http://approval.liexin.net';//开发环境
// const host1 = '';//生产环境
const host2 = 'http://user.liexin.com';//开发环境
// const host2 = '';//生产环境
const axios = ({ method = 'GET', url1, url2, data = {}, isLoading = true }) => {
let url = url1 ? (host1 + url1) : (host2 + url2);
isLoading &&
dd.showLoading({
content: '加载中...',
});
return new Promise((resolve, reject) => {
dd.httpRequest({
url: url,
method: method,
data: data,
success: function (res) {
isLoading && dd.hideLoading();
resolve(res)
},
fail: function (err) {
isLoading && dd.hideLoading();
dd.showToast({
type: 'fail',
content: '服务器异常'
});
reject('服务器异常')
}
});
})
}
// 获取token
const getToken = () => {
return new Promise((resolve, reject) => {
dd.getAuthCode({
success: function (res) {
axios({ url2: apis.login, data: { authCode: res.authCode }, isLoading: false }).then((res) => {
if (res.data.errcode == 0) {
dd.setStorageSync({
key: 'token',
data: res.data.access_token
});
resolve()
}
})
},
fail: function (err) {
}
});
})
}
//校验token是否失效
const checkToken = ({ url, data, isLoading = true, isCallBack = true, method = 'GET' } = {}) => {
let token = dd.getStorageSync({ key: 'token' });
if (token.data) {
//如果token存在
return new Promise((resolve, reject) => {
axios({ url2: apis.me, data: { token: token.data }, isLoading: false }).then((res) => {
if (res.data.errcode == 0) {
//token未失效
if (isCallBack) {
axios({ url1: url, data: { ...data, token: token.data }, isLoading: isLoading, method: method }).then(res => { resolve(res) }).catch(err => { reject(err) })
}
} else if (res.data.errcode == 501) {
//token失效
dd.removeStorageSync({
key: 'token',
})
if (isCallBack) {
getToken().then(() => {
let token = dd.getStorageSync({ key: 'token' });
axios({ url1: url, data: { ...data, token: token.data }, isLoading: isLoading, method: method }).then(res => {
resolve(res)
}).catch(err => { reject(err) })
})
} else {
getToken()
}
} else {
dd.showToast({
type: 'fail',
content: '服务器异常'
});
}
})
})
} else {
//如果token不存在
getToken()
}
}
export default {
checkToken
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment