forked from pluosi/app-host
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
32 changed files
with
588 additions
and
180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,98 +1,3 @@ | ||
.app.show{ | ||
.first-page{ | ||
height: 100vh; | ||
display: flex; | ||
width: 100%; | ||
/*background-color: yellow;*/ | ||
.info-container{ | ||
margin: auto; | ||
/*background-color: red; */ | ||
} | ||
.app-info{ | ||
.icon{ | ||
width: 75px; | ||
height: 75px; | ||
border-radius: 10px; | ||
margin: 0 auto; | ||
overflow: hidden; | ||
img{ | ||
width: 100%; | ||
} | ||
} | ||
.title{ | ||
text-align: center; | ||
color: #4A4A4A; | ||
font-size: 20px; | ||
margin-top: 18px; | ||
} | ||
.info{ | ||
text-align: center; | ||
color: #9B9B9B; | ||
font-size: 14px; | ||
|
||
} | ||
} | ||
.download-btn{ | ||
width: 165px; | ||
display: block; | ||
margin: 0 auto; | ||
background-color: #03A3FC; | ||
color: white; | ||
font-size: 16px; | ||
border-radius: 20px; | ||
text-align: center; | ||
line-height: 40px; | ||
margin-top: 60px; | ||
} | ||
} | ||
.qrcode{ | ||
position: relative; | ||
text-align: center; | ||
top: -30px; | ||
img{ | ||
width: 91px; | ||
margin: 0 auto; | ||
} | ||
label{ | ||
font-size: 13px; | ||
color: #9B9B9B; | ||
text-align: center; | ||
margin-top: 6px; | ||
font-weight: normal; | ||
} | ||
} | ||
.history{ | ||
box-sizing: border-box; | ||
padding: 0 12px; | ||
width: 100%; | ||
.wrap{ | ||
background-color: #F8F8F8; | ||
border-radius: 4px; | ||
padding: 1px 20px; | ||
.title{ | ||
font-size: 14px; | ||
color: #666666; | ||
} | ||
.day-block{ | ||
.title{ | ||
font-size: 14px; | ||
color: #9B9B9B; | ||
font-weight: normal; | ||
} | ||
li{ | ||
color: #9B9B9B; | ||
font-size: 13px; | ||
} | ||
} | ||
} | ||
} | ||
|
||
.footer{ | ||
text-align: center; | ||
a{ | ||
font-size: 14px; | ||
color: #DEDEDE; | ||
line-height: 44px; | ||
} | ||
} | ||
padding-top: 22px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
.app.show{ | ||
.first-page{ | ||
height: 100vh; | ||
display: flex; | ||
width: 100%; | ||
/*background-color: yellow;*/ | ||
.info-container{ | ||
margin: auto; | ||
/*background-color: red; */ | ||
} | ||
.app-info{ | ||
.icon{ | ||
width: 75px; | ||
height: 75px; | ||
border-radius: 10px; | ||
margin: 0 auto; | ||
overflow: hidden; | ||
img{ | ||
width: 100%; | ||
} | ||
} | ||
.title{ | ||
text-align: center; | ||
color: #4A4A4A; | ||
font-size: 20px; | ||
margin-top: 18px; | ||
} | ||
.info{ | ||
text-align: center; | ||
color: #9B9B9B; | ||
font-size: 14px; | ||
|
||
} | ||
} | ||
.download-btn{ | ||
width: 165px; | ||
display: block; | ||
margin: 0 auto; | ||
background-color: #03A3FC; | ||
color: white; | ||
font-size: 16px; | ||
border-radius: 20px; | ||
text-align: center; | ||
line-height: 40px; | ||
margin-top: 60px; | ||
} | ||
} | ||
.qrcode{ | ||
position: relative; | ||
text-align: center; | ||
top: -30px; | ||
img{ | ||
width: 91px; | ||
margin: 0 auto; | ||
} | ||
label{ | ||
font-size: 13px; | ||
color: #9B9B9B; | ||
text-align: center; | ||
margin-top: 6px; | ||
font-weight: normal; | ||
} | ||
} | ||
.history{ | ||
box-sizing: border-box; | ||
padding: 0 12px; | ||
width: 100%; | ||
.wrap{ | ||
background-color: #F8F8F8; | ||
border-radius: 4px; | ||
padding: 1px 20px; | ||
.title{ | ||
font-size: 14px; | ||
color: #666666; | ||
} | ||
.day-block{ | ||
.title{ | ||
font-size: 14px; | ||
color: #9B9B9B; | ||
font-weight: normal; | ||
} | ||
li{ | ||
color: #9B9B9B; | ||
font-size: 13px; | ||
} | ||
} | ||
} | ||
} | ||
|
||
.footer{ | ||
text-align: center; | ||
a{ | ||
font-size: 14px; | ||
color: #DEDEDE; | ||
line-height: 44px; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,32 @@ | ||
class AppsController < ApplicationController | ||
# before_action :set_app, only: [:show, :edit, :update, :destroy, :comments] | ||
before_action :set_app, only: [:show, :edit, :update, :destroy, :comments] | ||
|
||
def index | ||
|
||
@apps = App.all | ||
end | ||
|
||
def show | ||
redirect_to app_plats_path @app | ||
end | ||
|
||
def new | ||
@app = App.new | ||
end | ||
|
||
def create | ||
byebug | ||
app = App.create(app_params) | ||
redirect_to app | ||
end | ||
|
||
private | ||
# Use callbacks to share common setup or constraints between actions. | ||
def set_app | ||
@post = App.find(params[:id]) | ||
@app = App.find(params[:id]) | ||
end | ||
|
||
|
||
# Never trust parameters from the scary internet, only allow the white list through. | ||
def app_params | ||
params.require(:post).permit(:title,:image,:content,:contact,:copyright_origin,:copyright_wechat,:copyright_share,:copyright_anony); | ||
params.require(:app).permit(:name,:desc); | ||
end | ||
end |
Oops, something went wrong.