no message

SPY×FAMILY
鹿和sa0ChunLuyu 4 years ago
commit 83eaa6fb85

5
.gitignore vendored

@ -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,3 @@
export default {
title: '鹿和开发套件'
}

@ -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"
}
}

@ -0,0 +1,10 @@
<script setup>
/**
* name
* usersa0ChunLuyu
* date2022-04-19 16:17:56
*/
</script>
<template>
Yo
</template>

@ -0,0 +1,10 @@
<script setup>
/**
* name
* usersa0ChunLuyu
* date2022-04-19 15:44:14
*/
</script>
<template>
<u-navbar title="示例"></u-navbar>
</template>

@ -0,0 +1,26 @@
<script setup>
/**
* name
* usersa0ChunLuyu
* date2022-04-19 15:47:14
*/
// URL
// dev
const props = defineProps({
name: {
type: String,
default: ''
}
});
</script>
<template>
<u-tr>
<u-td>路由参数</u-td>
<u-td>
<view>{"name":"{{ props.name }}"}</view>
<view class="u-tips-color"></view>
</u-td>
<u-td></u-td>
</u-tr>
</template>

@ -0,0 +1,30 @@
<script setup>
/**
* name
* usersa0ChunLuyu
* date2022-04-19 15:23:08
*/
import NavbarComponent from './Navbar/Navbar.vue' // Navbar
import RouterQueryComponent from './RouterQuery/RouterQuery.vue' //
//
// URL
const props = defineProps({
name: {
type: String,
default: ''
}
});
//
</script>
<template>
<NavbarComponent></NavbarComponent>
<u-table>
<u-tr>
<u-th>功能</u-th>
<u-th>内容</u-th>
<u-th>操作</u-th>
</u-tr>
<RouterQueryComponent :name="props.name"></RouterQueryComponent>
</u-table>
</template>

@ -0,0 +1,10 @@
<script setup>
/**
* name
* usersa0ChunLuyu
* date2022-04-19 14:58:23
*/
</script>
<template>
Tool
</template>

@ -0,0 +1,57 @@
<script setup>
/**
* name
* usersa0ChunLuyu
* date2022-04-19 14:58:23
*/
import {
ref
} from 'vue'
import config from '@/config.js'
const name = ref('')
const toDev = () => {
if (name.value) {
uni.navigateTo({
url: '/pages/dev/dev/dev?name=' + name.value
})
} else {
uni.$lu.toast("请至少输点东西")
}
}
</script>
<template>
<view class="home_wrapper u-text-center">
<view class="home_logo_wrapper">
<u-image width="200rpx" height="200rpx" src="/static/logo.png"></u-image>
</view>
<view class="home_title_wrapper">{{ config.title }}</view>
<view class="home_dev_tool_wrapper">
<u-input v-model="name" :border="true" placeholder="..." />
<view class="home_dev_tool_button_wrapper">
<u-button size="mini" @click="toDev()">YO !</u-button>
</view>
</view>
</view>
</template>
<style scoped>
.home_dev_tool_button_wrapper {
margin-top: 10rpx;
}
.home_title_wrapper {
margin: 10rpx 0;
}
.home_logo_wrapper {
width: 200rpx;
height: 200rpx;
margin: 0 auto;
}
.home_wrapper {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
</style>

@ -0,0 +1,10 @@
<script setup>
/**
* name
* usersa0ChunLuyu
* date2022-04-19 14:58:23
*/
</script>
<template>
User
</template>

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: {}
});

@ -0,0 +1,76 @@
/**
* uni-app
*
* uni-app https://ext.dcloud.net.cn使
* 使scss使 import 便App
*
*/
/**
* App使
*
* 使scss scss 使 import
*/
@import "@/uni_modules/vk-uview-ui/theme.scss";
/* 颜色变量 */
/* 行为相关颜色 */
$uni-color-primary: #007aff;
$uni-color-success: #4cd964;
$uni-color-warning: #f0ad4e;
$uni-color-error: #dd524d;
/* 文字基本颜色 */
$uni-text-color:#333;//
$uni-text-color-inverse:#fff;//
$uni-text-color-grey:#999;//
$uni-text-color-placeholder: #808080;
$uni-text-color-disable:#c0c0c0;
/* 背景颜色 */
$uni-bg-color:#ffffff;
$uni-bg-color-grey:#f8f8f8;
$uni-bg-color-hover:#f1f1f1;//
$uni-bg-color-mask:rgba(0, 0, 0, 0.4);//
/* 边框颜色 */
$uni-border-color:#c8c7cc;
/* 尺寸变量 */
/* 文字尺寸 */
$uni-font-size-sm:12px;
$uni-font-size-base:14px;
$uni-font-size-lg:16;
/* 图片尺寸 */
$uni-img-size-sm:20px;
$uni-img-size-base:26px;
$uni-img-size-lg:40px;
/* Border Radius */
$uni-border-radius-sm: 2px;
$uni-border-radius-base: 3px;
$uni-border-radius-lg: 6px;
$uni-border-radius-circle: 50%;
/* 水平间距 */
$uni-spacing-row-sm: 5px;
$uni-spacing-row-base: 10px;
$uni-spacing-row-lg: 15px;
/* 垂直间距 */
$uni-spacing-col-sm: 4px;
$uni-spacing-col-base: 8px;
$uni-spacing-col-lg: 12px;
/* 透明度 */
$uni-opacity-disabled: 0.3; //
/* 文章场景相关 */
$uni-color-title: #2C405A; //
$uni-font-size-title:20px;
$uni-color-subtitle: #555555; //
$uni-font-size-subtitle:26px;
$uni-color-paragraph: #3F536E; //
$uni-font-size-paragraph:15px;
Loading…
Cancel
Save