Skip to content

Commit

Permalink
updata
Browse files Browse the repository at this point in the history
  • Loading branch information
Lanyukai committed Apr 18, 2024
1 parent 6799037 commit d7f090c
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 35 deletions.
16 changes: 8 additions & 8 deletions miniprogram-1/pages/search/lostrecords.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -6,49 +6,49 @@
<view class="form-field">
<label for="">失物:</label>
<view class="field">
<input type="text" placeholder="请输入失物名称" lostnane= "lostname"/>
<input class="input" type="text" placeholder="请输入失物名称" lostnane= "lostname"/>
</view>
</view>

<view class="form-field">
<label for="">名称:</label>
<view class="field">
<input style="width: 516rpx; height: 52rpx; display: block; box-sizing: border-box" type="text" placeholder="请输入失主名称,若无请输入0" nane= "name"/>
<input class="input" type="text" placeholder="请输入失主名称,若无请输入0" nane= "name"/>
</view>
</view>

<view class="form-field">
<label for="">发现地点:</label>
<view class="field">
<input style="width: 490rpx; height: 52rpx; display: block; box-sizing: border-box" type="text" placeholder="请输入发现该失物的时间地点" lastplace= "lastplace"/>
<input class="input" type="text" placeholder="请输入发现该失物的时间地点" lastplace= "lastplace"/>
</view>
</view>

<view class="form-field">
<label for="">现在地点:</label>
<view class="field">
<input style="width: 500rpx; height: 52rpx; display: block; box-sizing: border-box" type="text" placeholder="请输入该失物现在放置于何处" nowplace= "nowplace"/>
<input class="input" type="text" placeholder="请输入该失物现在放置于何处" nowplace= "nowplace"/>
</view>
</view>

<view class="form-field">
<label for="">联系方式:</label>
<view class="field">
<input style="width: 508rpx; height: 52rpx; display: block; box-sizing: border-box" type="text" placeholder="请输入联系方式,若无请输入0" tel= "tel"/>
<input class="input" type="text" placeholder="请输入联系方式,若无请输入0" tel= "tel"/>
</view>
</view>

<view class="img-wrap">
<view class="txt" style="position: relative; left: 30rpx; top: 1rpx">上传图片</view>
<view class="txt">上传图片</view>
<view class="imglist" >
<view class="item" wx:for="{{imgs}}" wx:key="item">
<image src="{{item}}" alt=""></image>
<view class='delete' bindtap='deleteImg' data-index="{{index}}">
<image src="../../../images/icon.png"></image>
</view>
</view>
<view class="last-item" wx:if="{{imgs.length >= 3 ? false : true}}" bindtap="bindUpload" style="width: 741rpx; height: 272rpx; display: block; box-sizing: border-box">
<text class="sign" style="font-size: 80px; position: relative; left: 64rpx; top: -26rpx">+</text>
<view class="last-item" wx:if="{{imgs.length >= 3 ? false : true}}" bindtap="bindUpload">
<text class="sign">+</text>
</view>
</view>
</view>
Expand Down
21 changes: 19 additions & 2 deletions miniprogram-1/pages/search/lostrecords.wxss
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* pages/search/lostrecords.wxss */
.form-topic{
position:relative;
left:92px;
font-size:23px;
left:170rpx;
font-size:60rpx;
font-weight: bolder;
}
.form-field{
Expand All @@ -13,9 +13,26 @@
.field{
margin: 00rpx 00rpx;
}
.input{
width:508rpx;
}
.txt{
margin:50rpx 30rpx;
}
.submit{
width: 500rpx !important;
}
.last-item{
width: 741rpx;
height: 260rpx;
display: block;
box-sizing: border-box;
}
.sign{
font-size: 170rpx;
position: relative;
left: 64rpx;
}
.wrap {

width: 100%;
Expand Down
7 changes: 3 additions & 4 deletions miniprogram-1/pages/search/search.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,13 @@
</view>
</view>

<!--失物列表显示模块-->
<view class="lostlist">
<!--上传失物数据模块-->
<view class="setlost">
<button class="setlost-btn" bindtap="lostrecord" style="width: 100rpx;">
<button class="setlost-btn" bindtap="lostrecord" style="width: 100rpx">
<text class="setlost-tx">+</text></button>
</view>

<!--失物列表显示模块-->
<view class="lostlist">
<navigator class="lost.1" wx:for="{{Lists}}" wx:key="lostname" url="/pages/search/search?lostname={{Item.lostname}}&image={{Item.imageSrc}}&title={{Item.lostname}}&nowplace={{Item.nowplace}}">
<view class="images">
<image src="{{item.imgs}}"></image>
Expand Down
37 changes: 16 additions & 21 deletions miniprogram-1/pages/search/search.wxss
Original file line number Diff line number Diff line change
Expand Up @@ -26,44 +26,39 @@ page{
color: white;
position: relative;
background-color: green;
border-radius:5px;
padding-top:5px;
padding-bottom:5px;
border-radius:15rpx;
padding-top:15rpx;
padding-bottom:15rpx;
font-weight:bold;
}
.setlost{
width: 750rpx;
height: 985rpx;
width: 110rpx;
height: 110rpx;
display: block;
box-sizing: border-box;
position: relative;
left: 0rpx;
top: 19rpx;
position: absolute;
left: 600rpx;
top: 850rpx;
}
.setlost-btn{
height: 104rpx;
display: block;
box-sizing: border-box;
left: 610rpx;
top: 947rpx;
position: sticky;
border-radius: 30px;
background-color: rgb(213, 247, 235);
height: 110rpx;
border-radius: 400rpx;
background-color: rgb(232, 252, 244);
}
.setlost-tx{
font-size: 40px;
font-size: 80rpx;
position: relative;
left: -38rpx;
top: -38rpx;
top: -40rpx;
font-size: 100rpx;
color:green;
}
.lostlist{
width: 750rpx;
height: 896rpx;
width: 780rpx;
height: 950rpx;
display: block;
box-sizing: border-box;
position: relative;
left: 0rpx;
top: -54rpx;
top: 20rpx;
}

0 comments on commit d7f090c

Please sign in to comment.