Selaa lähdekoodia

新增河流详情页

tags/v1.6.0^2
余菲 1 vuosi sitten
vanhempi
commit
fb8d0a5067
6 muutettua tiedostoa jossa 36 lisäystä ja 6 poistoa
  1. +5
    -0
      components/riverInfo/index.wxss
  2. +2
    -2
      environment.js
  3. +2
    -2
      package_A/pages/riverDetail/index.js
  4. +5
    -1
      package_A/pages/riverDetail/index.wxml
  5. +21
    -0
      package_A/pages/riverDetail/index.wxss
  6. +1
    -1
      pages/home/index.wxml

+ 5
- 0
components/riverInfo/index.wxss Näytä tiedosto

@@ -13,8 +13,13 @@
align-items: flex-start;
}
.info_name {
width: 300rpx;
font-size: 28rpx;
color: #333333;
font-size: 26rpx;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.info_area {
width: 300rpx;

+ 2
- 2
environment.js Näytä tiedosto

@@ -1,6 +1,6 @@
const __request_base_url__ = {
develop: "http://192.168.11.11:9061/api",
// develop: "https://qmhhapi.test.t-aaron.com/api",
// develop: "http://192.168.11.11:9061/api",
develop: "https://qmhhapi.test.t-aaron.com/api",
trial: "https://qmhhapi.test.t-aaron.com/api",
release: "https://qmhh.t-aaron.com/api"
}

+ 2
- 2
package_A/pages/riverDetail/index.js Näytä tiedosto

@@ -10,8 +10,8 @@ Page({
{label: '河道名称', value: 'name', unit: ''},
{label: '河道区域', value: 'cityArea', unit: ''},
{label: '河道长度', value: 'length', unit: '公里'},
{label: '起讫位置', value: 'location', unit: ''},
{label: '河道简介', value: 'note', unit: ''}
{label: '起讫位置', value: 'location', unit: ''}
// {label: '河道简介', value: 'note', unit: ''}
]
},


+ 5
- 1
package_A/pages/riverDetail/index.wxml Näytä tiedosto

@@ -4,7 +4,11 @@
<view class="river_message">
<view class="message_item" wx:for="{{messageList}}" wx:key="index">
<text class="item_label">{{item.label}}:</text>
<text class="item_value">{{dataSource[item.value] || ''}}{{item.unit}}</text>
<view class="item_value">{{dataSource[item.value] || ''}}{{item.unit}}</view>
</view>
<view class="note_box">
<text class="item_label">河道简介:</text>
<view class="note">{{dataSource.note || ''}}</view>
</view>
</view>
</view>

+ 21
- 0
package_A/pages/riverDetail/index.wxss Näytä tiedosto

@@ -26,8 +26,29 @@
}
.item_label {
width: 170rpx;
flex-shrink: 0;
font-size: 30rpx;
color: #666666;
}
.item_value {
flex: 1;
text-align: end;
word-wrap: break-word;
word-break: break-all;
font-size: 26rpx;
color: #333333;
}
.note_box {
width: 100%;
padding: 20rpx 30rpx;
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: flex-start;
}
.note {
font-size: 26rpx;
color: #333333;
margin-top: 20rpx;
text-align: start;
}

+ 1
- 1
pages/home/index.wxml Näytä tiedosto

@@ -14,7 +14,7 @@
<image class="river_img" src="{{item.image}}"></image>
<riverInfo dataSource="{{item}}"></riverInfo>
</view>
<view class="execute_btn" bindtap="uploadProblem" data-current="{{index}}" data-detail="{{item}}">上报问题</view>
<view class="execute_btn" catchtap="uploadProblem" data-current="{{index}}" data-detail="{{item}}">上报问题</view>
</view>
</view>

Loading…
Peruuta
Tallenna