Commit e3cedda6 authored by 小何程序员's avatar 小何程序员

何润辉第一次提交

parents
Pipeline #303 failed with stages
// app.js
App({
onLaunch() {
},
globalData: {
}
})
{
"pages":[
"pages/index/index"
],
"window":{
"backgroundTextStyle":"light",
"navigationBarBackgroundColor": "#1b9cf0",
"navigationBarTitleText": "提现",
"navigationBarTextStyle": "black"
},
"style": "v2",
"sitemapLocation": "sitemap.json"
}
// index.js
// 获取应用实例
const app = getApp()
Page({
data: {
},
onLoad() {
},
})
{
"usingComponents": {}
}
\ No newline at end of file
<view class="box">
<view class="main">
<text class="tip">(目前提现无需手续)</text>
<text class="article">提现金额</text>
<view class="section">
<input type="number" placeholder="请输入提现金额" />
<text>RMB</text>
</view>
<view class="button">
保存
</view>
</view>
</view>
\ No newline at end of file
.box {
width: 100vw;
height: 100vh;
background-color: #F6F6F6;
overflow: hidden;
}
.main {
position: relative;
margin: 53rpx auto;
width: 684rpx;
height: 375rpx;
background: #FFFFFF;
box-shadow: 0px 1px 5px 1px rgba(167, 167, 167, 0.29);
border-radius: 30rpx;
}
.main .tip {
position: absolute;
top: 37rpx;
left: 37rpx;
font-size: 26rpx;
font-family: PingFang SC;
font-weight: 500;
color: #999999;
line-height: 34rpx;
}
.main .article {
position: absolute;
top: 116rpx;
left: 34rpx;
width: 138rpx;
font-size: 34rpx;
font-family: PingFang SC;
font-weight: bold;
color: #333333;
line-height: 34rpx;
}
.main .section {
display: flex;
align-items: center;
position: absolute;
top: 110rpx;
left: 194rpx;
width: 436rpx;
height: 44rpx;
padding-bottom: 20rpx;
padding-left: 15rpx;
border-bottom: 1rpx solid #EEEEEE;
}
.main .section text {
width: 59rpx;
margin-left: 30rpx;
font-size: 26rpx;
font-family: PingFang SC;
font-weight: 500;
color: #333333;
}
.main .section input {
font-size: 22rpx;
font-family: PingFang SC;
font-weight: 500;
width: 160rpx;
}
.main .button {
position: absolute;
top: 247rpx;
left: 111rpx;
width: 487rpx;
height: 86rpx;
background: linear-gradient(-82deg, #2658F7 1%, #1B9CF0 100%);
border-radius: 16rpx;
text-align: center;
line-height: 86rpx;
font-size: 32rpx;
font-family: PingFang SC;
font-weight: 500;
color: #FFFFFF;
}
\ No newline at end of file
{
"description": "项目配置文件",
"packOptions": {
"ignore": []
},
"setting": {
"bundle": false,
"userConfirmedBundleSwitch": false,
"urlCheck": true,
"scopeDataCheck": false,
"coverView": true,
"es6": true,
"postcss": true,
"compileHotReLoad": false,
"preloadBackgroundData": false,
"minified": true,
"autoAudits": false,
"newFeature": false,
"uglifyFileName": false,
"uploadWithSourceMap": true,
"useIsolateContext": true,
"nodeModules": false,
"enhance": false,
"useCompilerModule": true,
"userConfirmedUseCompilerModuleSwitch": false,
"useMultiFrameRuntime": true,
"useApiHook": true,
"useApiHostProcess": false,
"showShadowRootInWxmlPanel": true,
"packNpmManually": false,
"enableEngineNative": false,
"packNpmRelationList": [],
"minifyWXSS": true
},
"compileType": "miniprogram",
"libVersion": "2.18.0",
"appid": "wx7d1aac29da3aa9bd",
"projectname": "word1_text",
"debugOptions": {
"hidedInDevtools": []
},
"scripts": {},
"staticServerOptions": {
"baseURL": "",
"servePath": ""
},
"isGameTourist": false,
"condition": {
"search": {
"list": []
},
"conversation": {
"list": []
},
"game": {
"list": []
},
"plugin": {
"list": []
},
"gamePlugin": {
"list": []
},
"miniprogram": {
"list": []
}
}
}
\ No newline at end of file
{
"desc": "关于本文件的更多信息,请参考文档 https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html",
"rules": [{
"action": "allow",
"page": "*"
}]
}
\ No newline at end of file
const formatTime = date => {
const year = date.getFullYear()
const month = date.getMonth() + 1
const day = date.getDate()
const hour = date.getHours()
const minute = date.getMinutes()
const second = date.getSeconds()
return `${[year, month, day].map(formatNumber).join('/')} ${[hour, minute, second].map(formatNumber).join(':')}`
}
const formatNumber = n => {
n = n.toString()
return n[1] ? n : `0${n}`
}
module.exports = {
formatTime
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment