Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
phpdts
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nemo Ma
phpdts
Commits
9a705980
Commit
9a705980
authored
Jul 16, 2023
by
winddramon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shopitem display fix
parent
23ecfacc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
7 deletions
+29
-7
gamedata/cache/style_20190718.css
gamedata/cache/style_20190718.css
+16
-1
templates/default/shop.htm
templates/default/shop.htm
+13
-6
No files found.
gamedata/cache/style_20190718.css
View file @
9a705980
...
...
@@ -415,7 +415,7 @@ background-image: url("../../img/footer_line.gif");
.clearfix
:after
{
content
:
"."
;
display
:
block
;
height
:
0
;
clear
:
both
;
visibility
:
hidden
;
}
.clearfix
{
display
:
inline-table
;}
/* Hides from IE-mac \*/
*
html
.clearfix
{
height
:
1%
;}
.clearfix
{
display
:
block
;}
/* End hide from IE-mac */
#gamecmd
input
.cmdbutton
{
input
.cmdbutton
{
width
:
80px
;
height
:
25px
;
margin
:
2
;
}
...
...
@@ -592,7 +592,22 @@ input.range{
border-radius
:
50px
;
box-shadow
:
0
0
5px
1px
rgba
(
0
,
0
,
0
,
0.5
);
}
/* 商店道具 */
.shoprow
{
width
:
100%
;
display
:
flex
;
height
:
40px
;
}
.shoprow
.leftbox
{
width
:
50px
;
float
:
left
;
margin-right
:
5px
;
}
.shoprow
.leftbox
input
{
width
:
50px
;}
.shoprow
.rightbox
{
width
:
60px
;
float
:
right
;
}
.shoprow
.rightbox
input
{
width
:
60px
;}
.shoprow
.rightbox
.inputunit
{
position
:
absolute
;
top
:
5%
;
right
:
25%
;
color
:
#aaaaaa
;
}
/* EmojiIcon */
.eicon
{
filter
:
grayscale
(
100%
)
brightness
(
133%
)
blur
(
0px
);
...
...
templates/default/shop.htm
View file @
9a705980
...
...
@@ -10,11 +10,18 @@
<!--{loop $itemdata $idata}-->
<!--{if $idata['sid']}-->
<!--{eval $idsid = $idata['sid'];$buynumflag = $shop==1||$shop==2||$shop==6||$shop==7||$shop==8||$shop==10||$shop==11||$shop==12 ? 1 : 0;}-->
<input
type=
"button"
class=
"cmdbutton"
value=
"购买"
style=
"width:40px"
onclick=
"$('command').value='$idsid';<!--{if $buynumflag}-->$('buynum').value=$('buynum{$idsid}').value;<!--{/if}-->postCmd('gamecmd','command.php');this.disabled=true;"
>
$idata['item_words']/$idata['itmk_words']/$idata['itme']/$idata['itms']
<!--{if $idata['itmsk_words']}-->
/$idata['itmsk_words']
<!--{/if}-->
/价:$idata['price']/数:$idata['num']
<!--{if $buynumflag}-->
<input
type=
"number"
id=
"buynum{$idsid}"
style=
"width:35px"
value=
"1"
min=
"1"
max=
"1000"
>
个
<!--{/if}-->
<br>
<div
class=
"shoprow"
>
<div
class=
"leftbox"
>
<input
type=
"button"
class=
"cmdbutton"
value=
"购买"
onclick=
"$('command').value='$idsid';<!--{if $buynumflag}-->$('buynum').value=$('buynum{$idsid}').value;<!--{/if}-->postCmd('gamecmd','command.php');this.disabled=true;"
>
</div>
<div
<!
--
{
if
$
buynumflag
}
--
>
style="width:185px;"
<!--{/if}-->
>
$idata['item_words']/$idata['itmk_words']/$idata['itme']/$idata['itms']
<!--{if $idata['itmsk_words']}-->
/$idata['itmsk_words']
<!--{/if}-->
/价:$idata['price']/数:$idata['num']
</div>
<div
class=
"rightbox"
>
<!--{if $buynumflag}-->
<input
type=
"number"
id=
"buynum{$idsid}"
style=
"width:60px"
value=
"1"
min=
"1"
max=
"1000"
><span
class=
"inputunit"
>
个
</span>
<!--{/if}-->
</div>
</div>
<!--{/if}-->
<!--{/loop}-->
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment