Browse Source

工作日志插件升级;

release
ZhaoTongYao 4 years ago
parent
commit
c3a10f4827
  1. 9
      api/common.js
  2. 2
      app.json
  3. BIN
      images/login-bg.png
  4. BIN
      images/office_yushan_logo.png
  5. 12
      pages/index/index.js
  6. 4
      pages/login/login.wxml

9
api/common.js

@ -9,7 +9,8 @@ module.exports = {
getIndexStatistics: getIndexStatistics,
logout,
checkUpdateAvatar,
updateAvatar
updateAvatar,
getCustomId
}
function getToken(wxCode) {
@ -56,3 +57,9 @@ function updateAvatar(avatar) {
avatar: avatar
})
}
/**
* 工作日志-获取CustomId 2021.02.25
*/
function getCustomId () {
return fly.get("plugins/workLog/getCustomId")
}

2
app.json

@ -105,7 +105,7 @@
},
"plugins": {
"work-plugin": {
"version": "1.0.2",
"version": "1.1.0",
"provider": "wx0301bf7f534d97d1"
}
},

BIN
images/login-bg.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 178 KiB

BIN
images/office_yushan_logo.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 58 KiB

12
pages/index/index.js

@ -1,5 +1,4 @@
var api = require('../../api/common.js')
import regeneratorRuntime from '../../utils/runtime.js'
const config = require('../../utils/config')
import {
checkUpdateAvatar,
@ -214,6 +213,15 @@ Page({
})
}
break
case 'tmp-7':
// let f_childNav = [];
// for (let i = 0; i < this.data.panel.length; i++){
// if (this.data.panel[i].templateInfo.templateCode == 'tmp-7') {///
// f_childNav = this.data.panel[i].childNav
// }
// }
this.toPlugin()
break
default:
let c_childNav = [];
for (let i = 0; i < this.data.panel.length; i++) {
@ -458,7 +466,7 @@ Page({
if (res.code == 0 && res.msg == 'success') {
wx.navigateTo({
url: `plugin://work-plugin/main?token=${token}&customerId=${res.data}`,
});
})
}
}).catch(err => {
console.log(err)

4
pages/login/login.wxml

@ -1,8 +1,8 @@
<view class="login">
<image class="login-bg" src="../../images/login-bg.png" />
<image class="login-bg" src="https://epdc-yushan.elinkservice.cn/files-pro/20210225/f3078274944147aabd0a053937bc2de5.png" />
<view class="content">
<view class="logo">
<image src="../../images/office_yushan_logo.png" />
<image src="https://epdc-yushan.elinkservice.cn/files-pro/20210225/220c703dbfcc40d4bf23da25531c5a95.png" />
</view>
<view class="title">微笑榆山工作端</view>
<view class="logo-form">

Loading…
Cancel
Save