Commit 7cd3f1cf by 施宇

1

parent 2ba8413a
{"ignoreds":["node_modules/**/*","**/node_modules/**","**/.git/**",".git/**/*","**/.svn/**",".svn/**/*",".DS_Store","**/.DS_Store"],"folderInfo":{"./":{"mtimeMs":1587538189371.3574,"children":["app.js","app.json","app.wxss","project.config.json","sitemap.json"]},"pages/":{"mtimeMs":1587538770960.128,"children":[]},"res/":{"mtimeMs":1587468629426.3813,"children":[]},"res/css/":{"mtimeMs":1587468648224.7944,"children":["res/css/base.wxss"]},"res/img/":{"mtimeMs":1587546176141.8352,"children":["res/img/login-img.png","res/img/login-text.png","res/img/nav-arrow-down.png","res/img/search-icon.png"]},"utils/":{"mtimeMs":1587468231280.8867,"children":["utils/util.js"]},".git/":{"mtimeMs":1587547211653.8845,"children":[]},".wechatide/":{"mtimeMs":1587519550088.0625,"children":[".wechatide/fileCache.cfg"]},"pages/home/":{"mtimeMs":1587536014892.4702,"children":["pages/home/home.js","pages/home/home.json","pages/home/home.wxml","pages/home/home.wxss"]},"pages/login/":{"mtimeMs":1587535974795.0686,"children":["pages/login/login.js","pages/login/login.json","pages/login/login.wxml","pages/login/login.wxss"]},"components/":{"mtimeMs":1587538211879.0247,"children":[]},"components/navC/":{"mtimeMs":1587538221287.4016,"children":["components/navC/navC.js","components/navC/navC.json","components/navC/navC.wxml","components/navC/navC.wxss"]},"pages/receivinggoods/":{"mtimeMs":1587538742321.587,"children":["pages/receivinggoods/receivinggoods.js","pages/receivinggoods/receivinggoods.json","pages/receivinggoods/receivinggoods.wxml","pages/receivinggoods/receivinggoods.wxss"]}},"cacheVersion":1}
\ No newline at end of file
{
"pages":[
"pages/index/index",
"pages/logs/logs"
"pages": [
"pages/receivinggoods/receivinggoods",
"pages/home/home",
"pages/login/login"
],
"window":{
"backgroundTextStyle":"light",
"window": {
"backgroundTextStyle": "light",
"navigationBarBackgroundColor": "#fff",
"navigationBarTitleText": "WeChat",
"navigationBarTextStyle":"black"
"navigationBarTitleText": "",
"navigationBarTextStyle": "black"
},
"style": "v2",
"sitemapLocation": "sitemap.json"
}
}
\ No newline at end of file
/**app.wxss**/
.container {
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
padding: 200rpx 0;
box-sizing: border-box;
}
// components/navC/navC.js
Component({
/**
* 组件的属性列表
*/
properties: {
},
/**
* 组件的初始数据
*/
data: {
},
/**
* 组件的方法列表
*/
methods: {
}
})
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file
<!--components/navC/navC.wxml-->
<view class="nav-top Bflex aic">
<view class="nav-left Bflex">
<view class="user-name Bflex aic">
<text class="ellipsis">lqj@ichunt.com</text>
<image class="arrow-down" src="../../res/img/nav-arrow-down.png"></image>
</view>
<view class="zq Bflex aic">
<text>专区</text>
<image class="arrow-down" src="../../res/img/nav-arrow-down.png"></image>
</view>
</view>
<view class="html-title ellipsis">供应链仓储管理系统</view>
<view class="nav-right">当前仓库:A仓</view>
</view>
/* components/navC/navC.wxss */
@import '/res/css/base.wxss';
.nav-top {
height: 33px;
background: #fff;
box-shadow: -1px 1px 9px -7px rgba(44, 44, 44, 0.81);
position: fixed;
top: 0;
left: 0;
right: 0;
justify-content: space-between;
padding: 0 13px;
font-size: 12px;
z-index: 999;
}
.user-name text {
max-width: 120px;
}
.zq {
margin-left: 38px;
}
.html-title {
width: 40%;
text-align: center;
color: #999999;
}
.arrow-down {
width: 11px;
height: 9px;
margin-left:8px;
}
\ No newline at end of file
// pages/home/home.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})
\ No newline at end of file
{
"usingComponents": { "nav-c": "/components/navC/navC"},
"pageOrientation":"landscape",
"navigationBarBackgroundColor":"#094B8D"
}
\ No newline at end of file
<view class="home-view width-854px nav-view borderBox">
<nav-c></nav-c>
<view class="items clr borderBox">
<view class="item fl noMarginLeft borderBox FFD2AC Bflex jcc aic">
<text class="h3">收货管理</text>
<text class="p">Receiving goods</text>
</view>
<view class="item fl borderBox D3F3A0 Bflex jcc aic">
<text class="h3">上架</text>
<text class="p">Upper shelf</text>
</view>
<view class="item fl borderBox D2F0FB Bflex jcc aic">
<text class="h3">出库管理</text>
<text class="p">Out of stock</text>
</view>
<view class="item fl noMarginLeft borderBox D3F0E6 Bflex jcc aic">
<text class="h3">库存查询</text>
<text class="p">Stock inquiry</text>
</view>
<view class="item fl borderBox DADDF5 Bflex jcc aic">
<text class="h3">系统设定</text>
<text class="p">Set up</text>
</view>
<view class="item fl borderBox F8F8F8 Bflex jcc aic">
<text class="h3">A仓</text>
<text class="p">当前仓库</text>
</view>
</view>
</view>
\ No newline at end of file
/* pages/home/home.wxss */
@import '/res/css/base.wxss';
page {
background-color: #F8F8F8;
}
.items {
margin: 53px 43px 0;
}
.item {
width: calc(calc(100% - 44px) / 3);
height: 90px;
border: 7px solid #fff;
border-radius: 3px;
margin: 49px 0 0 22px;
color: #333333;
flex-direction: column;
font-size: 12px;
}
.item.noMarginLeft {
margin-left: 0;
}
.item.FFD2AC {
background-color: #ffd2ac;
}
.item.D3F3A0 {
background-color: #d3f3a0;
}
.item.D2F0FB {
background-color: #d2f0fb;
}
.item.D3F0E6 {
background-color: #d3f0e6;
}
.item.DADDF5 {
background-color: #daddf5;
}
.item.F8F8F8 {
background-color: #f8f8f8;
}
\ No newline at end of file
//index.js
//获取应用实例
const app = getApp()
Page({
data: {
motto: 'Hello World',
userInfo: {},
hasUserInfo: false,
canIUse: wx.canIUse('button.open-type.getUserInfo')
},
//事件处理函数
bindViewTap: function() {
wx.navigateTo({
url: '../logs/logs'
})
},
onLoad: function () {
if (app.globalData.userInfo) {
this.setData({
userInfo: app.globalData.userInfo,
hasUserInfo: true
})
} else if (this.data.canIUse){
// 由于 getUserInfo 是网络请求,可能会在 Page.onLoad 之后才返回
// 所以此处加入 callback 以防止这种情况
app.userInfoReadyCallback = res => {
this.setData({
userInfo: res.userInfo,
hasUserInfo: true
})
}
} else {
// 在没有 open-type=getUserInfo 版本的兼容处理
wx.getUserInfo({
success: res => {
app.globalData.userInfo = res.userInfo
this.setData({
userInfo: res.userInfo,
hasUserInfo: true
})
}
})
}
},
getUserInfo: function(e) {
console.log(e)
app.globalData.userInfo = e.detail.userInfo
this.setData({
userInfo: e.detail.userInfo,
hasUserInfo: true
})
}
})
<!--index.wxml-->
<view class="container">
<view class="userinfo">
<button wx:if="{{!hasUserInfo && canIUse}}" open-type="getUserInfo" bindgetuserinfo="getUserInfo"> 获取头像昵称 </button>
<block wx:else>
<image bindtap="bindViewTap" class="userinfo-avatar" src="{{userInfo.avatarUrl}}" mode="cover"></image>
<text class="userinfo-nickname">{{userInfo.nickName}}</text>
</block>
</view>
<view class="usermotto">
<text class="user-motto">{{motto}}</text>
</view>
</view>
/**index.wxss**/
.userinfo {
display: flex;
flex-direction: column;
align-items: center;
}
.userinfo-avatar {
width: 128rpx;
height: 128rpx;
margin: 20rpx;
border-radius: 50%;
}
.userinfo-nickname {
color: #aaa;
}
.usermotto {
margin-top: 200px;
}
\ No newline at end of file
//logs.js
const util = require('../../utils/util.js')
//index.js
//获取应用实例
const app = getApp()
Page({
data: {
logs: []
},
onLoad: function () {
this.setData({
logs: (wx.getStorageSync('logs') || []).map(log => {
return util.formatTime(new Date(log))
})
wx.getSystemInfo({
success (res) {
console.log(res)
}
})
}
},
})
{
"usingComponents": {},
"pageOrientation":"landscape",
"navigationBarBackgroundColor":"#094B8D"
}
\ No newline at end of file
<!--index.wxml-->
<view class="login-view width-854px jcc aic Bflex">
<image class="login-img" src="../../res/img/login-img.png"></image>
<view class="login-right borderBox">
<image class="login-text" src="../../res/img/login-text.png"></image>
<view class="login-form">
<view class="lable">用户名</view>
<view><input class="input" placeholder-class="ph" placeholder="请输入用户名"></input></view>
<view class="lable password-lable">密码</view>
<view><input class="input" placeholder-class="ph" placeholder="请输入密码"></input></view>
<view class="error-text">* 登录密码错误</view>
</view>
<view class="btn blue-btn login-btn">登录</view>
</view>
</view>
/**index.wxss**/
@import '/res/css/base.wxss';
page{
background-color: #094B8D;
}
.login-img {
width: 314px;
height: 344px;
}
.login-right {
width: 292px;
height: 365px;
background: #fff;
box-shadow: 0px 1px 13px -3px rgba(3, 58, 113, 1);
border-radius: 3px;
position: relative;
}
.login-text {
width: 30px;
height: 26px;
position: absolute;
top: 22px;
right: 22px;
}
.login-form {
margin: 80px 28px 0;
font-size: 12px;
color: #333
}
.lable {
margin-bottom: 8px;
}
.password-lable {
margin-top: 38px;
}
.input {
padding: 7px 0;
border-bottom: 1px solid #D1D1D1;
}
.ph {
font-size: 12px;
color: #999
}
.login-btn {
width: 111px;
height: 33px;
line-height: 33px;
margin: 40px auto 0;
}
.error-text{
color:#FA0000;
margin-top:9px;
}
\ No newline at end of file
{
"navigationBarTitleText": "查看启动日志",
"usingComponents": {}
}
\ No newline at end of file
<!--logs.wxml-->
<view class="container log-list">
<block wx:for="{{logs}}" wx:for-item="log">
<text class="log-item">{{index + 1}}. {{log}}</text>
</block>
</view>
.log-list {
display: flex;
flex-direction: column;
padding: 40rpx;
}
.log-item {
margin: 10rpx;
}
// pages/receivinggoods/receivinggoods.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})
\ No newline at end of file
{
"usingComponents": { "nav-c": "/components/navC/navC"},
"pageOrientation":"landscape",
"navigationBarBackgroundColor":"#094B8D"
}
\ No newline at end of file
/* pages/receivinggoods/receivinggoods.wxss */
@import '/res/css/base.wxss';
page {
background-color: #F8F8F8;
}
.receiving-goods-view {
padding-left: 10px;
padding-right: 10px;
}
.view-top {
color: #666666;
padding: 14px 0;
font-size: 12px;
}
.view-top .desc {
font-size: 14px;
padding-left: 26px;
}
.input-border {
border: 1px solid #D1D1D1;
box-sizing: border-box;
background-color: #fff;
color: #333333
}
.input {
width: 168px;
height: 26px;
margin-left: 10px;
line-height: 26px;
padding: 0 7px;
}
.view-top .number {
margin: 0 26px;
}
.view-top text {
color: #333333;
}
.table-view {
background: #fff;
box-shadow: 0px 0px 8px -7px rgba(44, 44, 44, 0.81);
border-radius: 3px;
font-size: 12px;
padding: 16px 0 16px 28px;
}
.data-table {
border: 1px solid #D1D1D1;
width: 650px;
}
.data-table .head {
color: #666;
border-bottom: 1px solid #D1D1D1;
background-color: #F8F8F8;
}
.data-table .td {
padding: 6px 0;
word-break: break-all;
width: 90px;
}
.data-table .td.td-94 {
width: 110px;
}
.data-table .td-2,
.data-table .td-3 {
border-left: 1px solid #D1D1D1;
}
.data-table .body {
color: #333;
}
.data-table .body .body-data {
border-bottom: 1px solid #D1D1D1;
}
.data-table .body .body-data:last-child {
border: none
}
.view-form {
background: #fff;
box-shadow: 0px 0px 8px -7px rgba(44, 44, 44, 0.81);
border-radius: 3px;
margin-top: 13px;
padding: 10px 28px;
}
.checkBox-view {
font-size: 12px;
color: #666;
}
.box-icon {
width: 10px;
height: 10px;
border-radius: 1px;
border: 1px solid #979797;
margin-right: 5px;
}
.box-icon.checked {
background-color: #1969F9;
border: 1px solid #1969F9
}
.checkBox-view .checkBox:last-child {
margin-left: 21px;
}
.form-bottom {
font-size: 12px;
padding-bottom: 19px;
border-bottom: 1px dashed #D1D1D1;
color: #666;
}
.form-bottom .input {
height: 26px;
line-height: 26px;
padding: 0 7px;
margin-left: 10px;
width: 280px;
color: #333333
}
.form-bottom .label {
width: 26px;
text-align: right;
}
.form-bottom-left-view,
.form-bottom-center-view {
margin-top: 13px;
}
.form-bottom .input.num-input {
width: 131px;
}
.form-bottom .input.disc-input {
width: 90px;
margin: 0
}
.symbol-text {
margin: 0 4px;
}
.disc-text {
margin-left: 3px;
}
.form-bottom-center-view {
margin-left: 17px;
}
.form-bottom-center-view .clear-btn {
width: 79px;
height: 26px;
background: #F8F8F8;
border-radius: 3px;
border: 1px solid #D1D1D1;
text-align: center;
line-height: 26px;
color: #666666;
margin-left: 36px;
}
.form-bottom-center-view .input {
width: 140px;
}
.form-bottom-center-view .input.address-input {
width: 114px;
}
.search-icon {
height: 16px;
width: 16px;
margin-left: 9px;
}
.form-bottom-right {
color: #333;
font-size: 12px;
margin-left: 40px;
}
.version-reslut {
width: 177px;
border: 1px solid #D1D1D1;
margin-left: 10px;
}
.version {
padding: 10px 18px;
font-size: 14px;
border-bottom: 1px solid #D1D1D1;
}
.reslut {
padding: 10px 18px;
}
.form-bottom-right-bottom {
margin: 7px 0 0 36px;
}
.ewm {
width: 51px;
height: 51px;
margin-right: 9px
}
.receiving-btn {
width: 111px;
height: 33px;
font-size: 14px;
line-height: 33px;
margin: 9px auto;
}
.bottom-form {
background: #FFFFFF;
box-shadow: 0px 0px 8px -7px rgba(44, 44, 44, 0.81);
border-radius: 3px;
font-size: 12px;
color: #666666;
padding: 8px 11px 17px;
margin-top: 12px 0 30px;
}
.bottom-form-top .input {
width: 170px;
}
.xx-c {
margin: 0 18px;
}
.bottom-table-view {
margin-top: 11px;
}
.bottom-table-data.left-table {
border: 1px solid #D1D1D1;
width: 367px;
}
.bottom-table-data.right-table {
border: 1px solid #D1D1D1;
width: 385px;
}
.bottom-table-data .head {
color: #666;
border-bottom: 1px solid #D1D1D1;
background-color: #F8F8F8;
}
.bottom-table-data .td {
padding: 6px 0;
word-break: break-all;
}
.bottom-table-data .td-2,
.bottom-table-data .td-3,
.bottom-table-data .td-4,
.bottom-table-data .td-5 {
border-left: 1px solid #D1D1D1;
}
.bottom-table-data .td-1 {
width: 49px;
}
.left-table .td-2 {
width: 94px;
}
.right-table .td-2 {
width: 112px;
}
.bottom-table-data .td-3 {
width: 73px;
}
.bottom-table-data .td-4 {
width: 71px;
}
.bottom-table-data .td-5 {
width: 80px;
}
.bottom-table-data.body {
color: #333;
}
.bottom-table-data .body .body-data {
border-bottom: 1px solid #D1D1D1;
}
.bottom-table-data .body .body-data:last-child {
border: none
}
.bottom-table-data .box-icon {
margin: 0;
}
.left-right-icon {
flex-direction: column;
margin: 0 12px;
}
.left-right-icon image {
height: 28px;
width: 28px;
}
.arrow-right {
margin-top: 10px;
}
.all_check {
margin-top: 6px;
}
.all_check-items {
padding: 10px 0;
border-bottom: 1px dashed #D1D1D1;
}
.all-check-item:last-child {
margin-left: 380px;
}
.btn-group {
margin-top: 11px
}
.btn-sigle {
flex: 0 0 140px;
height: 33px;
border-radius: 3px;
border: 1px solid #1969F9;
line-height: 33px;
font-size: 14px;
color: #1969F9;
text-align: center;
}
.zx-btn {
margin-left: 38px;
}
.mask-wrapper {
width: 534px;
position: fixed;
top: 60px;
left: 50%;
margin-left: -267px;
padding-top: 23px;
}
.close-icon {
height: 16px;
width: 16px;
position: absolute;
top: 0;
right: 0
}
.mask {
position: fixed;
top: 33px;
left: 0;
bottom: 0;
right: 0;
background: rgba(65, 65, 65, 0.77);
z-index: 998;
}
/**选择城市的ui弹窗**/
.mask{
display: none;
}
.city-content {
font-size: 14px;
color: #333333;
padding: 0 28px;
max-height: 327px;
overflow-y: auto;
background-color: #fff;
}
.city-content .title {
padding: 7px 0;
border-bottom: 1px solid #D9D9D9;
}
.often-address{
font-size: 12px;
padding-bottom: 8px;
border-bottom: 1px solid #D9D9D9;
}
.often-title {
color: #666;
padding-top:5px;
}
.often-title .line {
width: 3px;
height: 12px;
background: #1969F9;
margin-right:5px;
}
.often-items{
transform: translateX(-13px);
}
.often-items text{
padding:5px 8px;
background-color: #F8F8F8;
margin:8px 0 0 13px;
}
.address-items{
padding:5px 0 10px;
}
.letter{
font-size: 16px;
margin-top:10px
}
.sigle-address{
margin:10px 0 0 20px;
}
/* 采购单ui弹窗 */
.puchase-content{
padding:0 25px 26px;
font-size: 12px;
color:#333;
max-height: 327px;
overflow-y: auto;
background-color: #fff;
}
.puchase-title{
padding:8px 0 ;
font-size: 14px;
border-bottom: 1px solid #D9D9D9;
}
.puchase-table{
border: 1px solid #D1D1D1;
width: 484px;
margin-top:9px;
}
.puchase-table .head {
color: #666;
border-bottom: 1px solid #D1D1D1;
background-color: #F8F8F8;
}
.puchase-table .td {
padding: 6px 0;
word-break: break-all;
}
.puchase-table .td-2,
.puchase-table .td-3,
.puchase-table .td-4,
.puchase-table .td-5 {
border-left: 1px solid #D1D1D1;
}
.puchase-table .td-1 {
width: 50px;
}
.puchase-table .td-2 {
width: 149px;
}
.puchase-table .td-3 {
width: 148px;
}
.puchase-table .td-4 {
width: 68px;
}
.puchase-table .td-5 {
width: 68px;
}
.puchase-table .body {
color: #333;
}
.puchase-table .body .body-data {
border-bottom: 1px solid #D1D1D1;
}
.puchase-table .body .body-data:last-child {
border: none
}
.puchase-table .box-icon {
margin: 0;
}
\ No newline at end of file
page{
height:100%;
}
.clr::after {
content: '';
display: block;
clear: both;
opacity: 0;
}
.fl {
float: left;
}
.fr {
float: right;
}
.borderBox {
box-sizing: border-box;
}
.Bflex {
display: flex;
}
.Iflex {
display: inline-flex;
}
.jcc {
justify-content: center
}
.aic {
align-items: center;
}
.asc {
align-self: center;
}
.btn {
border-radius:3px;
text-align: center;
}
.blue-btn {
color: #fff;
background-color: #1969F9;
}
.ellipsis {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.nav-view {
padding-top:33px;
}
.width-854px{
width:854px;
margin:0 auto;
height: 100%;
}
\ No newline at end of file
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 sign in to comment