对接签名提交,工资详情查询
This commit is contained in:
@@ -2,14 +2,19 @@ import App from './App'
|
||||
import Inputli from './components/form/input-li.vue';
|
||||
import Selectli from './components/form/select-li.vue';
|
||||
import Dateli from './components/form/date-li.vue';
|
||||
import { getToken,getUser } from './api/create.js'
|
||||
import { formatDate, calculator } from './com/index.js'
|
||||
|
||||
import {
|
||||
getToken,
|
||||
getUser
|
||||
} from './api/create.js'
|
||||
import {
|
||||
formatDate,
|
||||
calculator
|
||||
} from './com/index.js'
|
||||
// #ifndef VUE3
|
||||
import Vue from 'vue'
|
||||
Vue.config.productionTip = false
|
||||
Vue.prototype.a = '1234456'
|
||||
const msg = (title,icon = 'none', duration = 1500, mask = false, ) => {
|
||||
const msg = (title, icon = 'none', duration = 1500, mask = false, ) => {
|
||||
//统一提示方便全局修改
|
||||
if (Boolean(title) === false) {
|
||||
return;
|
||||
@@ -22,13 +27,13 @@ const msg = (title,icon = 'none', duration = 1500, mask = false, ) => {
|
||||
});
|
||||
}
|
||||
|
||||
const setNavigationBar = ( title = '教育平台', backgroundColor = '#ffffff') =>{
|
||||
const setNavigationBar = (title = '教育平台', backgroundColor = '#ffffff') => {
|
||||
my.setNavigationBar({
|
||||
title,
|
||||
backgroundColor
|
||||
title,
|
||||
backgroundColor
|
||||
});
|
||||
}
|
||||
const navTo = (url, skip = 'navigateTo') =>{
|
||||
const navTo = (url, skip = 'navigateTo') => {
|
||||
uni[skip]({
|
||||
url
|
||||
});
|
||||
@@ -46,7 +51,7 @@ const login = () => {
|
||||
uni.setStorageSync('token', res.result.token)
|
||||
getUser().then(data => {
|
||||
console.log(data)
|
||||
uni.setStorageSync('user',data)
|
||||
uni.setStorageSync('user', data)
|
||||
uni.hideLoading()
|
||||
// uni.showToast({
|
||||
// title: '登录成功',
|
||||
@@ -67,22 +72,22 @@ const login = () => {
|
||||
|
||||
}
|
||||
// 提示框 点击确定进入resolve 取消进入reject
|
||||
const showModel = (content) =>{
|
||||
return new Promise((resolve, reject)=>{
|
||||
const showModel = (content) => {
|
||||
return new Promise((resolve, reject) => {
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: content,
|
||||
title: '提示',
|
||||
content: content,
|
||||
cancelText: '取消',
|
||||
confirmText: '确定',
|
||||
success: function (res) {
|
||||
if (res.confirm) {
|
||||
console.log('用户点击确定');
|
||||
success: function(res) {
|
||||
if (res.confirm) {
|
||||
console.log('用户点击确定');
|
||||
resolve('affirm')
|
||||
} else if (res.cancel) {
|
||||
console.log('用户点击取消');
|
||||
} else if (res.cancel) {
|
||||
console.log('用户点击取消');
|
||||
reject('cancal')
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
})
|
||||
}
|
||||
@@ -96,14 +101,14 @@ Vue.prototype.$formatDate = formatDate // 日期格式修改
|
||||
Vue.prototype.$showModel = showModel // 提示框
|
||||
|
||||
|
||||
|
||||
Vue.component("Inputli",Inputli)
|
||||
Vue.component("Selectli",Selectli)
|
||||
Vue.component("Dateli",Dateli)
|
||||
|
||||
Vue.component("Inputli", Inputli)
|
||||
Vue.component("Selectli", Selectli)
|
||||
Vue.component("Dateli", Dateli)
|
||||
|
||||
App.mpType = 'app'
|
||||
const app = new Vue({
|
||||
...App
|
||||
...App
|
||||
})
|
||||
app.$mount()
|
||||
// #endif
|
||||
@@ -112,11 +117,13 @@ app.$mount()
|
||||
|
||||
|
||||
// #ifdef VUE3
|
||||
import { createSSRApp } from 'vue'
|
||||
import {
|
||||
createSSRApp
|
||||
} from 'vue'
|
||||
export function createApp() {
|
||||
const app = createSSRApp(App)
|
||||
return {
|
||||
app
|
||||
}
|
||||
const app = createSSRApp(App)
|
||||
return {
|
||||
app
|
||||
}
|
||||
}
|
||||
// #endif
|
||||
Reference in New Issue
Block a user