添加网站文件
108
public/static/common/css/login.css
Normal file
@@ -0,0 +1,108 @@
|
||||
body {
|
||||
|
||||
}
|
||||
|
||||
|
||||
.login {
|
||||
min-width: 1180px;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
background:url(https://supply.chain.wo-shop.net/static/admin/img/bg-admin2.jpg) no-repeat center fixed;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
}
|
||||
.gray-bg{
|
||||
background:url("/static/admin/img/bg-admin.jpg") no-repeat center fixed;
|
||||
background-size: 100% 100%;
|
||||
height: auto;
|
||||
}
|
||||
.login-form-box {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.logo {
|
||||
position: fixed;
|
||||
top: 10px;
|
||||
left: 40px;
|
||||
}
|
||||
|
||||
.login-left .login-left-img{
|
||||
width: 500px;
|
||||
height: 590px;
|
||||
}
|
||||
|
||||
.login-left .login-left-img img{
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.login-right {
|
||||
width: 500px;
|
||||
height: 450px;
|
||||
background-color: white;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.login-title {
|
||||
font-size: 24px;
|
||||
font-weight: 500;
|
||||
margin-top: 40px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.login-form {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
margin-left: 15%;
|
||||
}
|
||||
|
||||
.form-box-item {
|
||||
width: 346px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 40px;
|
||||
border:1px solid rgba(229,229,229,1);
|
||||
margin-top: 16px;
|
||||
}
|
||||
|
||||
.form-box-checked {
|
||||
width: 346px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-top: 16px;
|
||||
height: 40px;
|
||||
}
|
||||
|
||||
.submit-btn {
|
||||
width:346px;
|
||||
height:44px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
color: white;
|
||||
background-color: #2ad3b6;
|
||||
border: none;
|
||||
margin-top: 40px;
|
||||
}
|
||||
|
||||
.icon {
|
||||
width: 45px;
|
||||
height: 40px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border:1px solid rgba(229,229,229,1);
|
||||
}
|
||||
|
||||
footer {
|
||||
position: fixed;
|
||||
bottom: 20px;
|
||||
left: 40%;
|
||||
font-size:12px;
|
||||
color:rgba(112,112,112,1);
|
||||
font-weight:400;
|
||||
}
|
||||
BIN
public/static/common/ico/default.ico
Normal file
|
After Width: | Height: | Size: 4.2 KiB |
BIN
public/static/common/image/default/add_file.png
Normal file
|
After Width: | Height: | Size: 423 B |
BIN
public/static/common/image/default/backstage_logo.png
Normal file
|
After Width: | Height: | Size: 25 KiB |
BIN
public/static/common/image/default/category_layout1.png
Normal file
|
After Width: | Height: | Size: 372 KiB |
BIN
public/static/common/image/default/category_layout2.png
Normal file
|
After Width: | Height: | Size: 508 KiB |
BIN
public/static/common/image/default/category_layout3.png
Normal file
|
After Width: | Height: | Size: 354 KiB |
BIN
public/static/common/image/default/category_layout4.png
Normal file
|
After Width: | Height: | Size: 279 KiB |
BIN
public/static/common/image/default/earning_notice.png
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
public/static/common/image/default/icon_tab_home.png
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
public/static/common/image/default/icon_tab_home_s.png
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
public/static/common/image/default/icon_tab_my.png
Normal file
|
After Width: | Height: | Size: 3.2 KiB |
BIN
public/static/common/image/default/icon_tab_my_s.png
Normal file
|
After Width: | Height: | Size: 3.3 KiB |
BIN
public/static/common/image/default/icon_tab_shopcart.png
Normal file
|
After Width: | Height: | Size: 2.3 KiB |
BIN
public/static/common/image/default/icon_tab_shoppingCar.png
Normal file
|
After Width: | Height: | Size: 2.3 KiB |
BIN
public/static/common/image/default/icon_tab_sort.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
public/static/common/image/default/icon_tab_sort_s.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
public/static/common/image/default/like_shop.png
Normal file
|
After Width: | Height: | Size: 25 KiB |
BIN
public/static/common/image/default/like_shop1.png
Normal file
|
After Width: | Height: | Size: 2.5 KiB |
BIN
public/static/common/image/default/login_form_img.png
Normal file
|
After Width: | Height: | Size: 57 KiB |
BIN
public/static/common/image/default/login_logo_admin.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
public/static/common/image/default/login_logo_big.png
Normal file
|
After Width: | Height: | Size: 4.3 KiB |
BIN
public/static/common/image/default/login_logo_mall.png
Normal file
|
After Width: | Height: | Size: 4.4 KiB |
BIN
public/static/common/image/default/main.png
Normal file
|
After Width: | Height: | Size: 8.4 KiB |
BIN
public/static/common/image/default/mall_logo.png
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
public/static/common/image/default/mall_logo@3x.png
Normal file
|
After Width: | Height: | Size: 6.0 KiB |
BIN
public/static/common/image/default/shop_logo.png
Normal file
|
After Width: | Height: | Size: 25 KiB |
BIN
public/static/common/image/default/shop_logo1.png
Normal file
|
After Width: | Height: | Size: 9.1 KiB |
BIN
public/static/common/image/default/slogan.png
Normal file
|
After Width: | Height: | Size: 4.3 KiB |
BIN
public/static/common/image/default/slogan_big.png
Normal file
|
After Width: | Height: | Size: 9.0 KiB |
BIN
public/static/common/image/default/system_notice.png
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
public/static/common/image/default/upload.png
Normal file
|
After Width: | Height: | Size: 755 B |
BIN
public/static/common/image/default/user.png
Normal file
|
After Width: | Height: | Size: 8.4 KiB |
BIN
public/static/common/image/finance/able_earnings.png
Normal file
|
After Width: | Height: | Size: 764 B |
BIN
public/static/common/image/finance/distribution_earnings.png
Normal file
|
After Width: | Height: | Size: 782 B |
|
After Width: | Height: | Size: 1016 B |
BIN
public/static/common/image/finance/have_withdraw_earnings.png
Normal file
|
After Width: | Height: | Size: 751 B |
BIN
public/static/common/image/finance/month_earnings.png
Normal file
|
After Width: | Height: | Size: 731 B |
BIN
public/static/common/image/finance/month_order_amount.png
Normal file
|
After Width: | Height: | Size: 705 B |
BIN
public/static/common/image/finance/order_num.png
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
public/static/common/image/finance/refund_amount.png
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
public/static/common/image/finance/refund_num.png
Normal file
|
After Width: | Height: | Size: 682 B |
BIN
public/static/common/image/finance/total_order_amount.png
Normal file
|
After Width: | Height: | Size: 723 B |
BIN
public/static/common/image/finance/total_user_integral.png
Normal file
|
After Width: | Height: | Size: 851 B |
BIN
public/static/common/image/finance/total_user_money.png
Normal file
|
After Width: | Height: | Size: 723 B |
BIN
public/static/common/image/finance/wait_earnings.png
Normal file
|
After Width: | Height: | Size: 974 B |
BIN
public/static/common/image/login/login_code.png
Normal file
|
After Width: | Height: | Size: 489 B |
BIN
public/static/common/image/login/login_form_img.png
Normal file
|
After Width: | Height: | Size: 106 KiB |
BIN
public/static/common/image/login/login_icon_go.png
Normal file
|
After Width: | Height: | Size: 632 B |
BIN
public/static/common/image/login/login_number.png
Normal file
|
After Width: | Height: | Size: 221 B |
BIN
public/static/common/image/login/login_password.png
Normal file
|
After Width: | Height: | Size: 386 B |
BIN
public/static/common/image/login/logo.png
Normal file
|
After Width: | Height: | Size: 2.7 KiB |
BIN
public/static/common/image/login/verfiy_code.png
Normal file
|
After Width: | Height: | Size: 6.2 KiB |
BIN
public/static/common/image/pay/icon_alipay.png
Normal file
|
After Width: | Height: | Size: 932 B |
BIN
public/static/common/image/pay/icon_balance.png
Normal file
|
After Width: | Height: | Size: 849 B |
BIN
public/static/common/image/pay/icon_file.png
Normal file
|
After Width: | Height: | Size: 204 B |
BIN
public/static/common/image/pay/icon_hand.png
Normal file
|
After Width: | Height: | Size: 849 B |
BIN
public/static/common/image/pay/icon_weChatPublic.png
Normal file
|
After Width: | Height: | Size: 976 B |
BIN
public/static/common/image/pay/icon_wechatApplet.png
Normal file
|
After Width: | Height: | Size: 909 B |
BIN
public/static/common/image/plug/goods-lists-add-image.png
Normal file
|
After Width: | Height: | Size: 423 B |
BIN
public/static/common/image/plug/picture.png
Normal file
|
After Width: | Height: | Size: 655 B |
BIN
public/static/common/image/workbench/content.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
public/static/common/image/workbench/coupon.png
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
public/static/common/image/workbench/distribution.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
public/static/common/image/workbench/finance.png
Normal file
|
After Width: | Height: | Size: 2.2 KiB |
BIN
public/static/common/image/workbench/goods.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
public/static/common/image/workbench/order.png
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
public/static/common/image/workbench/seckill.png
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
public/static/common/image/workbench/user.png
Normal file
|
After Width: | Height: | Size: 2.4 KiB |
108
public/static/common/js/Time.js
Normal file
@@ -0,0 +1,108 @@
|
||||
var Times = {
|
||||
// 获取几天前日期
|
||||
getDay: function(day){
|
||||
var today = new Date();
|
||||
var targetday_milliseconds=today.getTime() + 1000*60*60*24*day;
|
||||
|
||||
today.setTime(targetday_milliseconds);
|
||||
|
||||
var tYear = today.getFullYear();
|
||||
var tMonth = today.getMonth();
|
||||
var tDate = today.getDate();
|
||||
|
||||
tMonth = Times.doHandleMonth(tMonth + 1);
|
||||
tDate = Times.doHandleMonth(tDate);
|
||||
|
||||
return tYear+"-"+tMonth+"-"+tDate;
|
||||
}
|
||||
// 处理月份
|
||||
,doHandleMonth: function(month){
|
||||
var m = month;
|
||||
if(month.toString().length === 1){
|
||||
m = "0" + month;
|
||||
}
|
||||
return m;
|
||||
},
|
||||
/**
|
||||
* Notes: 日期时间格式 转 时间戳
|
||||
* date: 日期时间 如: 2020-12-1 13:23:11
|
||||
*/
|
||||
tostrtime: function(date) {
|
||||
return Date.parse(new Date(date)) / 1000;
|
||||
},
|
||||
timestampToTime: function(timestamp) {
|
||||
var date = new Date(timestamp * 1000);
|
||||
var Y = date.getFullYear() + '-';
|
||||
var M = (date.getMonth()+1 < 10 ? '0'+(date.getMonth()+1) : date.getMonth()+1) + '-';
|
||||
var D = date.getDate() + ' ';
|
||||
var h = date.getHours() < 10 ? '0'+date.getHours() + ':' : date.getHours() + ':';
|
||||
var m = date.getMinutes() < 10 ? '0'+date.getMinutes() + ':' : date.getMinutes() + ':';
|
||||
var s = date.getSeconds() < 10 ? '0'+date.getSeconds() : date.getSeconds();
|
||||
|
||||
return Y + M + D + h + m + s;
|
||||
},
|
||||
/**
|
||||
* Notes: 今天的开始时间和结束时间
|
||||
* isStamp: 是否转成时间戳
|
||||
*/
|
||||
today: function(isStamp) {
|
||||
isStamp = isStamp === undefined ? true : isStamp;
|
||||
|
||||
var start = Times.getDay(0) + " 00:00:00"
|
||||
var end = Times.getDay(0) + " 23:59:59"
|
||||
if (isStamp) {
|
||||
start = Times.tostrtime(start);
|
||||
end = Times.tostrtime(end);
|
||||
}
|
||||
return [start, end];
|
||||
},
|
||||
/**
|
||||
* Notes: 本月开始和结束
|
||||
* isStamp: 是否转成时间戳
|
||||
*/
|
||||
month: function(isStamp) {
|
||||
isStamp = isStamp === undefined ? true : isStamp;
|
||||
var date=new Date();
|
||||
// 开始时间
|
||||
var Year = date.getFullYear();
|
||||
var Month = (date.getMonth() +1) < 10 ? '0'+(date.getMonth()+1) : date.getMonth()+1;
|
||||
var start = Year + '-' + Month + '-01 00:00:00'
|
||||
// 结束时间
|
||||
var currentMonth=date.getMonth();
|
||||
var nextMonth=++currentMonth;
|
||||
var nextMonthFirstDay=new Date(date.getFullYear(),nextMonth,1);
|
||||
var oneDay=1000*60*60*24;
|
||||
var lastDate = new Date(nextMonthFirstDay-oneDay);
|
||||
var endDate = lastDate.getFullYear()+"-"+((lastDate.getMonth()+1)<10?"0":"")+(lastDate.getMonth()+1)+"-"+(lastDate.getDate()<10?"0":"")+lastDate.getDate();
|
||||
var end = endDate + ' 23:59:59';
|
||||
|
||||
if (isStamp) {
|
||||
start = Times.tostrtime(start);
|
||||
end = Times.tostrtime(end);
|
||||
}
|
||||
return [start, end];
|
||||
|
||||
},
|
||||
/**
|
||||
* 获取几天前零点到现在/昨日结束的时间
|
||||
* Notes: 本月开始和结束
|
||||
* isStamp: 是否转成时间戳
|
||||
*/
|
||||
dayToNow: function(day, isStamp){
|
||||
day = day === undefined ? -1 : day;
|
||||
isStamp = isStamp === undefined ? true : isStamp;
|
||||
var start = Times.getDay(day) + " 00:00:00";
|
||||
var end = Times.getDay(day) + " 23:59:59";
|
||||
if (isStamp) {
|
||||
start = Times.tostrtime(start);
|
||||
end = Times.tostrtime(end);
|
||||
}
|
||||
return [start, end];
|
||||
},
|
||||
/**
|
||||
* 获取当前时间戳
|
||||
*/
|
||||
curTimestamp : function() {
|
||||
return Date.parse(new Date()) / 1000
|
||||
}
|
||||
};
|
||||
2
public/static/common/js/area.js
Normal file
118
public/static/common/js/function.js
Normal file
@@ -0,0 +1,118 @@
|
||||
function getImageWidth(url, callback) {
|
||||
var img = new Image();
|
||||
img.src = url;
|
||||
if (img.complete) {
|
||||
callback(img.width, img.height);
|
||||
} else {
|
||||
img.onload = function () {
|
||||
callback(img.width, img.height);
|
||||
}
|
||||
}
|
||||
}
|
||||
function in_array(search,array){
|
||||
for(var i in array){
|
||||
if(array[i]==search){
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
function uniq(array){
|
||||
var temp = [];
|
||||
for(var i = 0; i < array.length; i++){
|
||||
if(temp.indexOf(array[i]) == -1){
|
||||
temp.push(array[i]);
|
||||
}
|
||||
}
|
||||
return temp;
|
||||
}
|
||||
//判断字符串是否为空格
|
||||
function isEmptyString(str) {
|
||||
str = str.replace(/(^\s*)|(\s*$)/g, "");
|
||||
if (str.length == 0) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
//数组去重
|
||||
function unique(arr){
|
||||
var hash=[];
|
||||
for (var i = 0; i < arr.length; i++) {
|
||||
if(hash.indexOf(arr[i])==-1){
|
||||
hash.push(arr[i]);
|
||||
}
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
|
||||
//元素交换
|
||||
function swop(first, second) {
|
||||
html = first.html();
|
||||
first.html(second.html());
|
||||
second.html(html);
|
||||
}
|
||||
//笛卡尔积生成
|
||||
function cartesianProduct(arr) {
|
||||
if (arr.length < 2) return arr[0] || [];
|
||||
return [].reduce.call(arr, function (col, set) {
|
||||
let res = [];
|
||||
col.forEach(c => {
|
||||
set.forEach(s => {
|
||||
let t = [].concat(Array.isArray(c) ? c : [c]);
|
||||
t.push(s);
|
||||
res.push(t);
|
||||
})
|
||||
});
|
||||
return res;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
//元素交换
|
||||
function swop(first, second) {
|
||||
html = first.html();
|
||||
first.html(second.html());
|
||||
second.html(html);
|
||||
}
|
||||
//数组去重
|
||||
function unique(arr){
|
||||
var hash=[];
|
||||
for (var i = 0; i < arr.length; i++) {
|
||||
if(hash.indexOf(arr[i])==-1){
|
||||
hash.push(arr[i]);
|
||||
}
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
|
||||
|
||||
//转换数组格式
|
||||
function array_column(data,key) {
|
||||
var result = [];
|
||||
for(var i in data){
|
||||
result[data[i][key]] = data[i];
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
function array_unique(arr){
|
||||
for(var i=0; i<arr.length; i++){
|
||||
for(var j=i+1; j<arr.length; j++){
|
||||
if(arr[i]==arr[j]){
|
||||
arr.splice(j,1);
|
||||
j--;
|
||||
}
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
}
|
||||
|
||||
/**
|
||||
* 判断是否为整数
|
||||
* @param obj
|
||||
* @returns {boolean}
|
||||
*/
|
||||
function isInteger(obj) {
|
||||
return obj % 1 === 0
|
||||
}
|
||||
|
||||