| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- <template>
- <!-- 病虫害识别结果 -->
- <view class="page-panel">
- <image class="discern-img" :src="result.img_urls" mode="aspectFill"></image>
- <view class="discern-title">识别结果</view>
- <view class="pest-title">{{result.name}}</view>
- <view class="pest-paragraph">{{result.course}}</view>
- <view class="pest-paragraph">{{result.prevention}}</view>
- <view class="discern-result">
- <!-- <view class="row-between discern-item">
- <view>害虫名称:<text>{{result.name}}</text></view>
- <view>害虫数量:<text>1只</text></view>
- </view> -->
- </view>
- <button class="btn discern-btn" @click="uni.navigateBack()">重新识别</button>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- //识别结果
- result:{}
- };
- },
- onLoad(options) {
- this.result=JSON.parse(options.params);
- }
- }
- </script>
- <style lang="scss">
- .discern-img {
- display: block;
- height: 510rpx;
- margin-bottom: 48rpx;
- border-radius: 5rpx;
- }
- .discern-title {
- font-size: $font-size-title;
- color: $color-title;
- line-height: $line-height-title;
- }
- .discern-result {
- padding: 0 40rpx;
- }
- .discern-item{
- margin-top: 14rpx;
- &>view {
- font-size: 24rpx;
- color: $color-title;
- line-height: 34rpx;
- text{
- color: $color-error;
- }
- }
- }
- .discern-btn{
- margin: 80rpx auto;
- }
- </style>
|