@ -0,0 +1,11 @@ |
|||
|
|||
node_modules/**/* |
|||
unpackage/ |
|||
unpackage/**/* |
|||
.idea |
|||
.idea/ |
|||
.expo/* |
|||
npm-debug.* |
|||
*.orig.* |
|||
web-build/ |
|||
apk/ |
@ -0,0 +1,69 @@ |
|||
<script> |
|||
export default { |
|||
// computed: { |
|||
// i18n() { |
|||
// return this.$t('index') |
|||
// }, |
|||
// }, |
|||
onLaunch: function () { |
|||
console.log('App Launch') |
|||
}, |
|||
onShow: function () { |
|||
console.log('App Show') |
|||
}, |
|||
onHide: function () { |
|||
console.log('App Hide') |
|||
} |
|||
} |
|||
</script> |
|||
|
|||
<style lang="scss"> |
|||
/*每个页面公共css */ |
|||
|
|||
/* #ifdef H5 */ |
|||
body { |
|||
max-width: 828rpx; //最大宽度自己可以调整 |
|||
margin: auto !important; |
|||
} |
|||
|
|||
/* #endif */ |
|||
@import "uview-ui/index.scss"; |
|||
|
|||
page { |
|||
margin-top: 50rpx |
|||
} |
|||
|
|||
button::after { |
|||
border: none; |
|||
} |
|||
|
|||
uni-tabbar { |
|||
.uni-tabbar { |
|||
// tab背景 |
|||
padding-top: 28rpx; |
|||
padding-bottom: 30rpx !important; |
|||
background-image: linear-gradient(to top, #FAF8F8, #FFFFFF) !important; // tab背景图片或者渐变色,背景色和背景图片最多选择一个进行设置 |
|||
|
|||
.uni-tabbar-border { |
|||
// tabBar上边框 |
|||
background-color: #F7F4F4 !important; // tabBar上边框的颜色 |
|||
} |
|||
|
|||
.uni-tabbar__bd { |
|||
|
|||
// tabBar单项 |
|||
.uni-tabbar__icon { |
|||
// 图标 |
|||
width: 48rpx !important; |
|||
height: 48rpx !important; |
|||
} |
|||
|
|||
.uni-tabbar__label { |
|||
// 文字 |
|||
font-size: 20rpx !important; |
|||
|
|||
} |
|||
} |
|||
} |
|||
} |
|||
</style> |
@ -0,0 +1,94 @@ |
|||
<template> |
|||
<view class="nav-head"> |
|||
<slot name="address"></slot> |
|||
<slot></slot> |
|||
<slot name="bread"></slot> |
|||
<slot name="logo"></slot> |
|||
<image src="../../static/tongyonh/Vector.png" mode="aspectFit" class="back" @tap="back()" v-if="showBack"></image> |
|||
</view> |
|||
</template> |
|||
|
|||
<script> |
|||
const COMPONENT_NAME = 'navigation' |
|||
export default { |
|||
name: COMPONENT_NAME, |
|||
props:{ |
|||
showBack: { |
|||
type: Boolean, |
|||
default () { |
|||
return true |
|||
} |
|||
}, |
|||
bgnum: { |
|||
type: Boolean, |
|||
default () { |
|||
return false |
|||
} |
|||
}, |
|||
}, |
|||
data() { |
|||
return { |
|||
|
|||
} |
|||
}, |
|||
computed: { |
|||
|
|||
}, |
|||
mounted() { |
|||
|
|||
}, |
|||
methods: { |
|||
back(){ |
|||
|
|||
// #ifdef H5 |
|||
history.back() |
|||
// #endif |
|||
|
|||
// #ifdef APP-PLUS |
|||
uni.navigateBack() |
|||
// #endif |
|||
} |
|||
}, |
|||
} |
|||
</script> |
|||
|
|||
<style scoped lang="scss"> |
|||
|
|||
.item{ |
|||
font-size: 28rpx; |
|||
text-align: center; |
|||
width: 234rpx; |
|||
line-height: 60rpx; |
|||
} |
|||
|
|||
.nav-head{ |
|||
height: 40rpx; |
|||
// background-color: #fafafa; |
|||
// background-color: #fff; |
|||
text-align: center; |
|||
font-weight: 700; |
|||
font-size: 36rpx; |
|||
color: #000; |
|||
padding: 40rpx 16rpx; |
|||
// margin-top: 50rpx; |
|||
display: flex; |
|||
justify-content: center; |
|||
flex-direction: row-reverse; |
|||
align-items: center; |
|||
margin-top: 80rpx; |
|||
position: relative; |
|||
top: 0rpx; |
|||
width: 100%; |
|||
z-index: 8; |
|||
|
|||
} |
|||
.back{ |
|||
width: 30rpx; |
|||
height: 30rpx; |
|||
position: absolute; |
|||
left:36rpx; |
|||
top: 50%; |
|||
transform: translateY(-50%); |
|||
} |
|||
|
|||
</style> |
@ -0,0 +1,195 @@ |
|||
<template> |
|||
<view class="index-header "> |
|||
<view class="con"> |
|||
<view class="tabbar_item" @click="goToPage(1)"> |
|||
<view class="uni-tabbar_bd"> |
|||
<view class="uni-tabbar_icon"> |
|||
<image :src="'/static/tongyonh/'+(selectActive==1?'Uniona':'Union')+'.png'" mode="aspectFit" class="img1"></image> |
|||
</view> |
|||
<view class="uni-tabbar_label" :class="['text', selectActive==1?'active':'']"> |
|||
{{i18n.Wallet}} |
|||
</view> |
|||
</view> |
|||
</view> |
|||
<view class="tabbar_item" @click="goToPage(2)" v-if="showNft"> |
|||
<view class="uni-tabbar_bd"> |
|||
<view class="uni-tabbar_icon"> |
|||
<image :src="'/static/tongyonh/'+(selectActive==2?'nft_icon2':'nft_icon')+'.png'" mode="aspectFit" class="img1"></image> |
|||
</view> |
|||
<view class="uni-tabbar_label" :class="['text', selectActive==2?'active':'']"> |
|||
{{i18n.NFT}} |
|||
</view> |
|||
</view> |
|||
</view> |
|||
<view class="tabbar_item" @click="goToPage(3)"> |
|||
<view class="uni-tabbar_bd"> |
|||
<view class="uni-tabbar_icon"> |
|||
<image :src="'/static/tongyonh/'+(selectActive==3?'market_icona':'market_icon')+'.png'" mode="aspectFit" class="img1"></image> |
|||
</view> |
|||
<view class="uni-tabbar_label" :class="['text', selectActive==3?'active':'']"> |
|||
{{i18n.Market}} |
|||
</view> |
|||
</view> |
|||
</view> |
|||
<!-- <view class="tabbar_item" @click="goToPage(4)"> |
|||
<view class="uni-tabbar_bd"> |
|||
<view class="uni-tabbar_icon"> |
|||
<image :src="'/static/tongyonh/'+(selectActive==4?'Discover_icona':'Discover_icon')+'.png'" mode="aspectFit" class="img1"></image> |
|||
</view> |
|||
<view class="uni-tabbar_label" :class="['text', selectActive==4?'active':'']"> |
|||
{{i18n.Discover}} |
|||
</view> |
|||
</view> |
|||
</view> --> |
|||
<view class="tabbar_item" @click="goToPage(5)"> |
|||
<view class="uni-tabbar_bd"> |
|||
<view class="uni-tabbar_icon"> |
|||
<image :src="'/static/tongyonh/'+(selectActive==5?'Profile_icon':'Profile_icona')+'.png'" mode="aspectFit" class="img1"></image> |
|||
</view> |
|||
<view class="uni-tabbar_label" :class="['text', selectActive==5?'active':'']"> |
|||
{{i18n.Profile}} |
|||
</view> |
|||
</view> |
|||
</view> |
|||
</view> |
|||
</view> |
|||
</template> |
|||
<script> |
|||
|
|||
const COMPONENT_NAME = 'tabBar' |
|||
export default { |
|||
name: COMPONENT_NAME, |
|||
|
|||
|
|||
|
|||
props: { |
|||
selectActive: { |
|||
type: Number, |
|||
default () { |
|||
return 1 |
|||
} |
|||
}, |
|||
}, |
|||
data() { |
|||
return { |
|||
showNft:null, |
|||
status:'', |
|||
address:'', |
|||
} |
|||
}, |
|||
computed: { |
|||
|
|||
}, |
|||
mounted() { |
|||
this.showNft=uni.getStorageSync('showNft') |
|||
console.log(this.showNft,78787878787878787878787878787878) |
|||
}, |
|||
methods: { |
|||
|
|||
goToPage(num) { |
|||
if(num == 1) { |
|||
uni.reLaunch({ |
|||
url: '/pages/menu/wallet/index' |
|||
}) |
|||
|
|||
} else if (num == 2) { |
|||
uni.reLaunch({ |
|||
url: '/pages/menu/collection/index' |
|||
}) |
|||
} else if (num == 3) { |
|||
uni.reLaunch({ |
|||
url: '/pages/menu/market/index' |
|||
}) |
|||
}else if (num == 4) { |
|||
uni.reLaunch({ |
|||
url: '/pages/menu/discover/index' |
|||
}) |
|||
}else if (num == 5) { |
|||
uni.reLaunch({ |
|||
url: '/pages/menu/profile/index' |
|||
}) |
|||
} |
|||
|
|||
} |
|||
|
|||
}, |
|||
computed: { |
|||
i18n() { |
|||
return this.$t('index') |
|||
}, |
|||
} |
|||
} |
|||
</script> |
|||
|
|||
|
|||
<style scoped lang="scss"> |
|||
.active{ |
|||
color: #5B53FF !important; |
|||
} |
|||
.uni-tabbar_label { |
|||
color: rgb(153, 153, 153); |
|||
font-size: 10px; |
|||
line-height: normal; |
|||
margin-top: 3px; |
|||
position: relative; |
|||
text-align: center; |
|||
font-size: 20rpx !important; |
|||
} |
|||
.uni-tabbar_icon{ |
|||
width: 24px !important; |
|||
height: 24px !important; |
|||
position: relative; |
|||
display: inline-block; |
|||
margin-top: 5px; |
|||
} |
|||
.uni-tabbar_icon image { |
|||
width: 100%; |
|||
height: 100%; |
|||
} |
|||
.uni-tabbar_bd{ |
|||
height: 100rpx; |
|||
position: relative; |
|||
-webkit-flex-direction: column; |
|||
flex-direction: column; |
|||
cursor: pointer; |
|||
} |
|||
.con{ |
|||
width: 100%; |
|||
background-color: rgb(247, 247, 250); |
|||
position: fixed; |
|||
bottom: 0; |
|||
left: 0; |
|||
padding-top: 28rpx; |
|||
padding-bottom: 30rpx ; |
|||
background-image: -webkit-linear-gradient(bottom, #FAF8F8, #FFFFFF) !important; |
|||
background-image: linear-gradient(to top, #FAF8F8, #FFFFFF) !important; |
|||
border-top: 2rpx solid #F7F4F4; |
|||
display: flex; |
|||
z-index: 998; |
|||
box-sizing: border-box; |
|||
} |
|||
.tabbar_item{ |
|||
display: -webkit-box; |
|||
width: 150rpx; |
|||
height: 100rpx; |
|||
display: -webkit-flex; |
|||
display: flex; |
|||
-webkit-box-pack: center; |
|||
-webkit-justify-content: center; |
|||
justify-content: center; |
|||
-webkit-box-align: center; |
|||
-webkit-align-items: center; |
|||
align-items: center; |
|||
-webkit-box-orient: vertical; |
|||
-webkit-box-direction: normal; |
|||
webkit-flex-direction: column; |
|||
flex-direction: column; |
|||
-webkit-box-flex: 1; |
|||
-webkit-flex: 1; |
|||
flex: 1; |
|||
font-size: 0; |
|||
text-align: center; |
|||
-webkit-tap-highlight-color: rgba(0,0,0,0); |
|||
} |
|||
|
|||
</style> |
@ -0,0 +1,20 @@ |
|||
<!DOCTYPE html> |
|||
<html lang="en"> |
|||
<head> |
|||
<meta charset="UTF-8" /> |
|||
<script> |
|||
var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || |
|||
CSS.supports('top: constant(a)')) |
|||
document.write( |
|||
'<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + |
|||
(coverSupport ? ', viewport-fit=cover' : '') + '" />') |
|||
</script> |
|||
<title></title> |
|||
<!--preload-links--> |
|||
<!--app-context--> |
|||
</head> |
|||
<body> |
|||
<div id="app"><!--app-html--></div> |
|||
<script type="module" src="/main.js"></script> |
|||
</body> |
|||
</html> |
@ -0,0 +1,55 @@ |
|||
import Vue from 'vue' |
|||
import App from './App' |
|||
import uView from 'uview-ui' |
|||
import VueI18n from 'vue-i18n' |
|||
import axios from './utils/axios.js' |
|||
|
|||
import store from './store' |
|||
|
|||
// 多国语言
|
|||
import EN from './utils/language/en.js' |
|||
import ZH from './utils/language/zh.js' |
|||
|
|||
|
|||
// 自定义底部导航栏
|
|||
// import tabBar from 'components/tabBar/tabBar.vue'
|
|||
// Vue.component('tab-bar', tabBar)
|
|||
|
|||
Vue.use(uView) |
|||
Vue.use(VueI18n); |
|||
|
|||
const i18n = new VueI18n({ |
|||
// locale: store.state.language, // 默认选择的语言
|
|||
locale: 'en', // 默认选择的语言
|
|||
messages: { |
|||
'en': EN, |
|||
'zh': ZH, |
|||
} |
|||
}) |
|||
|
|||
Vue.prototype.$store = store |
|||
Vue.prototype.$axios = axios |
|||
Vue.prototype.$_i18n = i18n |
|||
|
|||
// #ifndef VUE3
|
|||
Vue.config.productionTip = false |
|||
App.mpType = 'app' |
|||
const app = new Vue({ |
|||
i18n, |
|||
store, |
|||
...App |
|||
}) |
|||
|
|||
app.$mount() |
|||
// #endif
|
|||
|
|||
|
|||
// #ifdef VUE3
|
|||
import { createSSRApp } from 'vue' |
|||
export function createApp() { |
|||
const app = createSSRApp(App) |
|||
return { |
|||
app |
|||
} |
|||
} |
|||
// #endif
|
@ -0,0 +1,72 @@ |
|||
{ |
|||
"name" : "massfitnes", |
|||
"appid" : "__UNI__2B017B1", |
|||
"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" : "", |
|||
"setting" : { |
|||
"urlCheck" : false |
|||
}, |
|||
"usingComponents" : true |
|||
}, |
|||
"mp-alipay" : { |
|||
"usingComponents" : true |
|||
}, |
|||
"mp-baidu" : { |
|||
"usingComponents" : true |
|||
}, |
|||
"mp-toutiao" : { |
|||
"usingComponents" : true |
|||
}, |
|||
"uniStatistics" : { |
|||
"enable" : false |
|||
}, |
|||
"vueVersion" : "2" |
|||
} |
@ -0,0 +1,131 @@ |
|||
{ |
|||
"name": "massfitnes", |
|||
"version": "1.0.0", |
|||
"lockfileVersion": 1, |
|||
"requires": true, |
|||
"dependencies": { |
|||
"@intlify/core-base": { |
|||
"version": "9.2.2", |
|||
"resolved": "https://registry.npmmirror.com/@intlify/core-base/-/core-base-9.2.2.tgz", |
|||
"integrity": "sha512-JjUpQtNfn+joMbrXvpR4hTF8iJQ2sEFzzK3KIESOx+f+uwIjgw20igOyaIdhfsVVBCds8ZM64MoeNSx+PHQMkA==", |
|||
"requires": { |
|||
"@intlify/devtools-if": "9.2.2", |
|||
"@intlify/message-compiler": "9.2.2", |
|||
"@intlify/shared": "9.2.2", |
|||
"@intlify/vue-devtools": "9.2.2" |
|||
} |
|||
}, |
|||
"@intlify/devtools-if": { |
|||
"version": "9.2.2", |
|||
"resolved": "https://registry.npmmirror.com/@intlify/devtools-if/-/devtools-if-9.2.2.tgz", |
|||
"integrity": "sha512-4ttr/FNO29w+kBbU7HZ/U0Lzuh2cRDhP8UlWOtV9ERcjHzuyXVZmjyleESK6eVP60tGC9QtQW9yZE+JeRhDHkg==", |
|||
"requires": { |
|||
"@intlify/shared": "9.2.2" |
|||
} |
|||
}, |
|||
"@intlify/message-compiler": { |
|||
"version": "9.2.2", |
|||
"resolved": "https://registry.npmmirror.com/@intlify/message-compiler/-/message-compiler-9.2.2.tgz", |
|||
"integrity": "sha512-IUrQW7byAKN2fMBe8z6sK6riG1pue95e5jfokn8hA5Q3Bqy4MBJ5lJAofUsawQJYHeoPJ7svMDyBaVJ4d0GTtA==", |
|||
"requires": { |
|||
"@intlify/shared": "9.2.2", |
|||
"source-map": "0.6.1" |
|||
} |
|||
}, |
|||
"@intlify/shared": { |
|||
"version": "9.2.2", |
|||
"resolved": "https://registry.npmmirror.com/@intlify/shared/-/shared-9.2.2.tgz", |
|||
"integrity": "sha512-wRwTpsslgZS5HNyM7uDQYZtxnbI12aGiBZURX3BTR9RFIKKRWpllTsgzHWvj3HKm3Y2Sh5LPC1r0PDCKEhVn9Q==" |
|||
}, |
|||
"@intlify/vue-devtools": { |
|||
"version": "9.2.2", |
|||
"resolved": "https://registry.npmmirror.com/@intlify/vue-devtools/-/vue-devtools-9.2.2.tgz", |
|||
"integrity": "sha512-+dUyqyCHWHb/UcvY1MlIpO87munedm3Gn6E9WWYdWrMuYLcoIoOEVDWSS8xSwtlPU+kA+MEQTP6Q1iI/ocusJg==", |
|||
"requires": { |
|||
"@intlify/core-base": "9.2.2", |
|||
"@intlify/shared": "9.2.2" |
|||
} |
|||
}, |
|||
"@vue/devtools-api": { |
|||
"version": "6.2.1", |
|||
"resolved": "https://registry.npmmirror.com/@vue/devtools-api/-/devtools-api-6.2.1.tgz", |
|||
"integrity": "sha512-OEgAMeQXvCoJ+1x8WyQuVZzFo0wcyCmUR3baRVLmKBo1LmYZWMlRiXlux5jd0fqVJu6PfDbOrZItVqUEzLobeQ==" |
|||
}, |
|||
"asynckit": { |
|||
"version": "0.4.0", |
|||
"resolved": "https://registry.npmmirror.com/asynckit/-/asynckit-0.4.0.tgz", |
|||
"integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" |
|||
}, |
|||
"axios": { |
|||
"version": "0.27.2", |
|||
"resolved": "https://registry.npmmirror.com/axios/-/axios-0.27.2.tgz", |
|||
"integrity": "sha512-t+yRIyySRTp/wua5xEr+z1q60QmLq8ABsS5O9Me1AsE5dfKqgnCFzwiCZZ/cGNd1lq4/7akDWMxdhVlucjmnOQ==", |
|||
"requires": { |
|||
"follow-redirects": "^1.14.9", |
|||
"form-data": "^4.0.0" |
|||
} |
|||
}, |
|||
"combined-stream": { |
|||
"version": "1.0.8", |
|||
"resolved": "https://registry.npmmirror.com/combined-stream/-/combined-stream-1.0.8.tgz", |
|||
"integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", |
|||
"requires": { |
|||
"delayed-stream": "~1.0.0" |
|||
} |
|||
}, |
|||
"delayed-stream": { |
|||
"version": "1.0.0", |
|||
"resolved": "https://registry.npmmirror.com/delayed-stream/-/delayed-stream-1.0.0.tgz", |
|||
"integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==" |
|||
}, |
|||
"follow-redirects": { |
|||
"version": "1.15.1", |
|||
"resolved": "https://registry.npmmirror.com/follow-redirects/-/follow-redirects-1.15.1.tgz", |
|||
"integrity": "sha512-yLAMQs+k0b2m7cVxpS1VKJVvoz7SS9Td1zss3XRwXj+ZDH00RJgnuLx7E44wx02kQLrdM3aOOy+FpzS7+8OizA==" |
|||
}, |
|||
"form-data": { |
|||
"version": "4.0.0", |
|||
"resolved": "https://registry.npmmirror.com/form-data/-/form-data-4.0.0.tgz", |
|||
"integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", |
|||
"requires": { |
|||
"asynckit": "^0.4.0", |
|||
"combined-stream": "^1.0.8", |
|||
"mime-types": "^2.1.12" |
|||
} |
|||
}, |
|||
"mime-db": { |
|||
"version": "1.52.0", |
|||
"resolved": "https://registry.npmmirror.com/mime-db/-/mime-db-1.52.0.tgz", |
|||
"integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==" |
|||
}, |
|||
"mime-types": { |
|||
"version": "2.1.35", |
|||
"resolved": "https://registry.npmmirror.com/mime-types/-/mime-types-2.1.35.tgz", |
|||
"integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", |
|||
"requires": { |
|||
"mime-db": "1.52.0" |
|||
} |
|||
}, |
|||
"source-map": { |
|||
"version": "0.6.1", |
|||
"resolved": "https://registry.npmmirror.com/source-map/-/source-map-0.6.1.tgz", |
|||
"integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" |
|||
}, |
|||
"uview-ui": { |
|||
"version": "2.0.31", |
|||
"resolved": "https://registry.npmmirror.com/uview-ui/-/uview-ui-2.0.31.tgz", |
|||
"integrity": "sha512-I/0fGuvtiKHH/mBb864SGYk+SJ7WaF32tsBgYgeBOsxlUp+Th+Ac2tgz2cTvsQJl6eZYWsKZ3ixiSXCAcxZ8Sw==" |
|||
}, |
|||
"vue-i18n": { |
|||
"version": "9.2.2", |
|||
"resolved": "https://registry.npmmirror.com/vue-i18n/-/vue-i18n-9.2.2.tgz", |
|||
"integrity": "sha512-yswpwtj89rTBhegUAv9Mu37LNznyu3NpyLQmozF3i1hYOhwpG8RjcjIFIIfnu+2MDZJGSZPXaKWvnQA71Yv9TQ==", |
|||
"requires": { |
|||
"@intlify/core-base": "9.2.2", |
|||
"@intlify/shared": "9.2.2", |
|||
"@intlify/vue-devtools": "9.2.2", |
|||
"@vue/devtools-api": "^6.2.1" |
|||
} |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,17 @@ |
|||
{ |
|||
"name": "massfitnes", |
|||
"version": "1.0.0", |
|||
"description": "", |
|||
"main": "main.js", |
|||
"scripts": { |
|||
"test": "echo \"Error: no test specified\" && exit 1" |
|||
}, |
|||
"keywords": [], |
|||
"author": "", |
|||
"license": "ISC", |
|||
"dependencies": { |
|||
"axios": "^0.27.2", |
|||
"uview-ui": "^2.0.31", |
|||
"vue-i18n": "^9.2.2" |
|||
} |
|||
} |
@ -0,0 +1,31 @@ |
|||
{ |
|||
"easycom": { |
|||
"^u-(.*)": "@/uview-ui/components/u-$1/u-$1.vue" |
|||
}, |
|||
"pages": [ //pages数组中第一项表示应用启动页 |
|||
{ |
|||
"path": "pages/login/index", |
|||
"style": { |
|||
"navigationStyle": "custom" |
|||
} |
|||
}, |
|||
{ |
|||
"path": "pages/index/index", |
|||
"style": { |
|||
"navigationStyle": "custom" |
|||
} |
|||
} |
|||
|
|||
], |
|||
"globalStyle": { |
|||
"navigationBarTextStyle": "black", |
|||
"navigationBarBackgroundColor": "#F8F8F8", |
|||
"backgroundColor": "#F8F8F8", |
|||
"style": { |
|||
"app-plus": { |
|||
"titleNView": false |
|||
} |
|||
} |
|||
}, |
|||
"uniIdRouter": {} |
|||
} |
@ -0,0 +1,51 @@ |
|||
<template> |
|||
<view class="content"> |
|||
<view class="text-area"> |
|||
<text class="title">{{title}}</text> |
|||
</view> |
|||
</view> |
|||
</template> |
|||
|
|||
<script> |
|||
export default { |
|||
data() { |
|||
return { |
|||
title: 'Hello' |
|||
} |
|||
}, |
|||
onLoad() { |
|||
|
|||
}, |
|||
methods: { |
|||
|
|||
} |
|||
} |
|||
</script> |
|||
|
|||
<style lang="scss"> |
|||
.content { |
|||
display: flex; |
|||
flex-direction: column; |
|||
align-items: center; |
|||
justify-content: center; |
|||
} |
|||
|
|||
.logo { |
|||
height: 200rpx; |
|||
width: 200rpx; |
|||
margin-top: 200rpx; |
|||
margin-left: auto; |
|||
margin-right: auto; |
|||
margin-bottom: 50rpx; |
|||
} |
|||
|
|||
.text-area { |
|||
display: flex; |
|||
justify-content: center; |
|||
} |
|||
|
|||
.title { |
|||
font-size: 36rpx; |
|||
color: #8f8f94; |
|||
} |
|||
</style> |
@ -0,0 +1,40 @@ |
|||
<template> |
|||
<view class="main"> |
|||
111 |
|||
<view class="welcomeText">{{ i18n.welcomeText }}</view> |
|||
<view class="signInText">{{ i18n.signInText }}</view> |
|||
<u-form labelPosition="left" :model="model1" :rules="rules" ref="form1"> |
|||
<u-form-item prop="userInfo.name" borderBottom ref="item1"> |
|||
<u-input v-model="model1.userInfo.name"></u-input> |
|||
</u-form-item> |
|||
</u-form> |
|||
|
|||
</view> |
|||
</template> |
|||
|
|||
<script> |
|||
export default { |
|||
name: 'login', |
|||
data() { |
|||
return { |
|||
|
|||
} |
|||
}, |
|||
computed: { |
|||
i18n() { |
|||
return this.$t('login') |
|||
}, |
|||
}, |
|||
onLoad() { |
|||
console.log(this.i18n); |
|||
}, |
|||
onShow() { }, |
|||
methods: { |
|||
|
|||
|
|||
}, |
|||
} |
|||
</script> |
|||
|
|||
<style lang="scss"> |
|||
</style> |
After Width: | Height: | Size: 847 B |
After Width: | Height: | Size: 834 B |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 1011 B |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 567 B |
After Width: | Height: | Size: 599 B |
After Width: | Height: | Size: 3.3 KiB |
After Width: | Height: | Size: 3.5 KiB |
After Width: | Height: | Size: 4.2 KiB |
After Width: | Height: | Size: 4.1 KiB |
After Width: | Height: | Size: 82 KiB |
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 2.9 KiB |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 2.4 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 244 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 752 B |
After Width: | Height: | Size: 21 KiB |
After Width: | Height: | Size: 914 B |
After Width: | Height: | Size: 326 B |
After Width: | Height: | Size: 4.7 KiB |
After Width: | Height: | Size: 855 B |
After Width: | Height: | Size: 5.0 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 4.6 KiB |
After Width: | Height: | Size: 3.9 KiB |
After Width: | Height: | Size: 3.5 KiB |
After Width: | Height: | Size: 3.0 KiB |
After Width: | Height: | Size: 7.1 KiB |
After Width: | Height: | Size: 706 KiB |
After Width: | Height: | Size: 43 KiB |
After Width: | Height: | Size: 964 KiB |
After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 5.4 KiB |
After Width: | Height: | Size: 2.4 KiB |
After Width: | Height: | Size: 229 KiB |
After Width: | Height: | Size: 2.5 MiB |
After Width: | Height: | Size: 51 KiB |
After Width: | Height: | Size: 196 KiB |
After Width: | Height: | Size: 250 B |
After Width: | Height: | Size: 265 B |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 447 B |
After Width: | Height: | Size: 3.0 KiB |
After Width: | Height: | Size: 4.5 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 423 B |
After Width: | Height: | Size: 803 B |
After Width: | Height: | Size: 6.1 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 2.4 KiB |
After Width: | Height: | Size: 2.4 KiB |
After Width: | Height: | Size: 17 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 7.1 KiB |
After Width: | Height: | Size: 8.4 KiB |
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 20 KiB |
After Width: | Height: | Size: 3.8 KiB |
After Width: | Height: | Size: 432 B |
After Width: | Height: | Size: 4.7 KiB |
After Width: | Height: | Size: 914 B |
After Width: | Height: | Size: 2.8 KiB |
After Width: | Height: | Size: 746 B |
After Width: | Height: | Size: 638 B |
After Width: | Height: | Size: 629 B |
After Width: | Height: | Size: 849 B |
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 295 B |
After Width: | Height: | Size: 752 B |
After Width: | Height: | Size: 2.5 KiB |
After Width: | Height: | Size: 5.7 KiB |
After Width: | Height: | Size: 3.0 KiB |