美化了样式3.0
This commit is contained in:
@ -1,18 +1,36 @@
|
||||
// pages/loginModule/employeeAccountNotice/employeeAccountNotice.js
|
||||
import { baseUrl } from "../../../request";
|
||||
import { decodeBase64 } from "../../../utils/decodebase64";
|
||||
|
||||
Page({
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
|
||||
applyDesc: '',
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad(options) {
|
||||
|
||||
getApplyDesc() {
|
||||
wx.request({
|
||||
url: baseUrl + '/userInfo/query/applyNotice',
|
||||
method: 'POST',
|
||||
success: res => {
|
||||
if (res.data.code === 1) {
|
||||
this.setData({ applyDesc: decodeBase64(res.data.data) })
|
||||
} else {
|
||||
wx.showToast({ title: res.data.message, icon: 'none' });
|
||||
}
|
||||
},
|
||||
fail: () => {
|
||||
wx.showToast({ title: '网络错误', icon: 'none' });
|
||||
}
|
||||
})
|
||||
},
|
||||
onLoad() {
|
||||
this.getApplyDesc()
|
||||
},
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user