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, getIndexStatistics: getIndexStatistics,
logout, logout,
checkUpdateAvatar, checkUpdateAvatar,
updateAvatar updateAvatar,
getCustomId
} }
function getToken(wxCode) { function getToken(wxCode) {
@ -55,4 +56,10 @@ function updateAvatar(avatar) {
return fly.get('work/user/updateAvatar',{ return fly.get('work/user/updateAvatar',{
avatar: avatar avatar: avatar
}) })
}
/**
* 工作日志-获取CustomId 2021.02.25
*/
function getCustomId () {
return fly.get("plugins/workLog/getCustomId")
} }

2
app.json

@ -105,7 +105,7 @@
}, },
"plugins": { "plugins": {
"work-plugin": { "work-plugin": {
"version": "1.0.2", "version": "1.1.0",
"provider": "wx0301bf7f534d97d1" "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') var api = require('../../api/common.js')
import regeneratorRuntime from '../../utils/runtime.js'
const config = require('../../utils/config') const config = require('../../utils/config')
import { import {
checkUpdateAvatar, checkUpdateAvatar,
@ -214,6 +213,15 @@ Page({
}) })
} }
break 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: default:
let c_childNav = []; let c_childNav = [];
for (let i = 0; i < this.data.panel.length; i++) { for (let i = 0; i < this.data.panel.length; i++) {
@ -458,7 +466,7 @@ Page({
if (res.code == 0 && res.msg == 'success') { if (res.code == 0 && res.msg == 'success') {
wx.navigateTo({ wx.navigateTo({
url: `plugin://work-plugin/main?token=${token}&customerId=${res.data}`, url: `plugin://work-plugin/main?token=${token}&customerId=${res.data}`,
}); })
} }
}).catch(err => { }).catch(err => {
console.log(err) console.log(err)

4
pages/login/login.wxml

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

Loading…
Cancel
Save