no message
commit
83eaa6fb85
@ -0,0 +1,5 @@
|
||||
|
||||
.hbuilderx
|
||||
node_modules
|
||||
uni_modules
|
||||
unpackage
|
||||
@ -0,0 +1,30 @@
|
||||
<script>
|
||||
export default {
|
||||
onLaunch: function() {
|
||||
console.log('App Launch')
|
||||
},
|
||||
onShow: function() {
|
||||
console.log('App Show')
|
||||
},
|
||||
onHide: function() {
|
||||
console.log('App Hide')
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style lang="scss">
|
||||
@import "./uni_modules/vk-uview-ui/index.scss";
|
||||
</style>
|
||||
<style>
|
||||
/*每个页面公共css */
|
||||
page {
|
||||
background-color: #f7f7f7;
|
||||
}
|
||||
|
||||
.blank-wrapper {
|
||||
height: calc(20rpx + var(--safe-area-inset-bottom));
|
||||
}
|
||||
|
||||
.navbar-wrapper {
|
||||
height: calc(100rpx + var(--safe-area-inset-top));
|
||||
}
|
||||
</style>
|
||||
@ -0,0 +1,11 @@
|
||||
export function yo(then) {
|
||||
lto.post({url: `${API_URL}/api/yo`, data: {}}).then((response) => {
|
||||
$store.api_loading--
|
||||
if (response.data.code === API_CODE) then(response.data)
|
||||
}).catch(() => {
|
||||
$store.api_loading--
|
||||
layer.msg(ERROR_MESSAGE)
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@ -0,0 +1,14 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport"
|
||||
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" />
|
||||
<title></title>
|
||||
<link rel="icon" href="./static/logo.png" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
<script type="module" src="/main.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@ -0,0 +1,4 @@
|
||||
import toast from './toast.js';
|
||||
export default {
|
||||
toast,
|
||||
};
|
||||
@ -0,0 +1,33 @@
|
||||
import m from '../tool/member.js';
|
||||
const post = (e) => {
|
||||
if (typeof e.url === 'undefined') return console.error({
|
||||
'data': {
|
||||
'message': 'URL没有定义'
|
||||
},
|
||||
'state': 201
|
||||
});
|
||||
let url = e.url;
|
||||
let data = typeof e.data === 'undefined' ? {} : e.data;
|
||||
let done = typeof e.done === 'undefined' ? response => console.log(response) : e.done;
|
||||
let then = typeof e.then === 'undefined' ? response => console.log(response) : e.then;
|
||||
let error = typeof e.error === 'undefined' ? err => console.log(err) : e.error;
|
||||
let token = m.getToken() ? m.getToken() : '';
|
||||
data.SYSTEM_TYPE = 'WMP';
|
||||
let header = typeof e.header === 'undefined' ? {
|
||||
'content-type': 'application/json',
|
||||
'Authorization': `Bearer ${token}`
|
||||
} : {
|
||||
'content-type': 'application/json',
|
||||
...e.data
|
||||
};
|
||||
uni.request({
|
||||
url: url,
|
||||
method: 'POST',
|
||||
data: data,
|
||||
header: header,
|
||||
success: (res) => then(res.data),
|
||||
fail: (e) => error(e)
|
||||
});
|
||||
}
|
||||
|
||||
export default post;
|
||||
@ -0,0 +1,9 @@
|
||||
const toast = (title, duration = 1500) => {
|
||||
uni.showToast({
|
||||
title: title,
|
||||
icon: 'none',
|
||||
duration: duration
|
||||
})
|
||||
}
|
||||
|
||||
export default toast
|
||||
@ -0,0 +1,20 @@
|
||||
import App from './App'
|
||||
|
||||
import uView from './uni_modules/vk-uview-ui';
|
||||
import Store from './store'
|
||||
import $lu from './lu'
|
||||
|
||||
import {
|
||||
createSSRApp
|
||||
} from 'vue'
|
||||
uni.$lu = $lu
|
||||
export function createApp() {
|
||||
const app = createSSRApp(App)
|
||||
|
||||
app.use(uView)
|
||||
app.use(Store)
|
||||
|
||||
return {
|
||||
app
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,72 @@
|
||||
{
|
||||
"name" : "uniapp_default",
|
||||
"appid" : "__UNI__4C3CB5F",
|
||||
"description" : "",
|
||||
"versionName" : "1.0.0",
|
||||
"versionCode" : "100",
|
||||
"transformPx" : false,
|
||||
/* 5+App特有相关 */
|
||||
"app-plus" : {
|
||||
"usingComponents" : true,
|
||||
"nvueStyleCompiler" : "uni-app",
|
||||
"compilerVersion" : 3,
|
||||
"splashscreen" : {
|
||||
"alwaysShowBeforeRender" : true,
|
||||
"waiting" : true,
|
||||
"autoclose" : true,
|
||||
"delay" : 0
|
||||
},
|
||||
/* 模块配置 */
|
||||
"modules" : {},
|
||||
/* 应用发布信息 */
|
||||
"distribute" : {
|
||||
/* android打包配置 */
|
||||
"android" : {
|
||||
"permissions" : [
|
||||
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
|
||||
"<uses-permission android:name=\"android.permission.VIBRATE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
|
||||
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
|
||||
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
|
||||
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.CAMERA\"/>",
|
||||
"<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
|
||||
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
|
||||
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
|
||||
"<uses-feature android:name=\"android.hardware.camera\"/>",
|
||||
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
|
||||
]
|
||||
},
|
||||
/* ios打包配置 */
|
||||
"ios" : {},
|
||||
/* SDK配置 */
|
||||
"sdkConfigs" : {}
|
||||
}
|
||||
},
|
||||
/* 快应用特有相关 */
|
||||
"quickapp" : {},
|
||||
/* 小程序特有相关 */
|
||||
"mp-weixin" : {
|
||||
"appid" : "wxc90b858cee392865",
|
||||
"setting" : {
|
||||
"urlCheck" : false
|
||||
},
|
||||
"usingComponents" : true
|
||||
},
|
||||
"mp-alipay" : {
|
||||
"usingComponents" : true
|
||||
},
|
||||
"mp-baidu" : {
|
||||
"usingComponents" : true
|
||||
},
|
||||
"mp-toutiao" : {
|
||||
"usingComponents" : true
|
||||
},
|
||||
"uniStatistics" : {
|
||||
"enable" : false
|
||||
},
|
||||
"vueVersion" : "3"
|
||||
}
|
||||
@ -0,0 +1,56 @@
|
||||
{
|
||||
"pages": [{
|
||||
"path": "pages/main/home/home",
|
||||
"style": {
|
||||
"navigationBarTitleText": "鹿和开发套件",
|
||||
"enablePullDownRefresh": false
|
||||
}
|
||||
}, {
|
||||
"path": "pages/main/user/user",
|
||||
"style": {
|
||||
"navigationBarTitleText": "我的",
|
||||
"enablePullDownRefresh": false
|
||||
}
|
||||
}],
|
||||
"subPackages": [{
|
||||
"root": "pages/dev",
|
||||
"pages": [{
|
||||
"path": "tool/tool",
|
||||
"style": {
|
||||
"navigationBarTitleText": "开发工具",
|
||||
"enablePullDownRefresh": false
|
||||
}
|
||||
}, {
|
||||
"path": "dev/dev",
|
||||
"style": {
|
||||
"navigationBarTitleText": "示例",
|
||||
"enablePullDownRefresh": false,
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
|
||||
}]
|
||||
}],
|
||||
"tabBar": {
|
||||
"color": "#7A7E83",
|
||||
"selectedColor": "#333333",
|
||||
"borderStyle": "white",
|
||||
"backgroundColor": "#ffffff",
|
||||
"list": [{
|
||||
"pagePath": "pages/main/home/home",
|
||||
"iconPath": "static/tabbar/hof.png",
|
||||
"selectedIconPath": "static/tabbar/hon.png",
|
||||
"text": "YO"
|
||||
}, {
|
||||
"pagePath": "pages/main/user/user",
|
||||
"iconPath": "static/tabbar/hof.png",
|
||||
"selectedIconPath": "static/tabbar/hon.png",
|
||||
"text": "HA"
|
||||
}]
|
||||
},
|
||||
"globalStyle": {
|
||||
"navigationBarTextStyle": "black",
|
||||
"navigationBarTitleText": "uni-app",
|
||||
"navigationBarBackgroundColor": "#F8F8F8",
|
||||
"backgroundColor": "#F8F8F8"
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 8.9 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 6.1 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 9.6 KiB |
@ -0,0 +1,13 @@
|
||||
import {
|
||||
createStore
|
||||
} from "vuex";
|
||||
|
||||
export default createStore({
|
||||
state: {
|
||||
count: 1,
|
||||
},
|
||||
mutations: {},
|
||||
actions: {},
|
||||
getters: {},
|
||||
modules: {}
|
||||
});
|
||||
Loading…
Reference in New Issue