discern-result.vue 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <template>
  2. <!-- 病虫害识别结果 -->
  3. <view class="page-panel">
  4. <image class="discern-img" :src="result.img_urls" mode="aspectFill"></image>
  5. <view class="discern-title">识别结果</view>
  6. <view class="pest-title">{{result.name}}</view>
  7. <view class="pest-paragraph">{{result.prevention}}</view>
  8. <view class="discern-result">
  9. <view class="row-between discern-item">
  10. <view>害虫名称:<text>{{result.name}}</text></view>
  11. <view>害虫数量:<text>1只</text></view>
  12. </view>
  13. </view>
  14. <button class="btn discern-btn">重新识别</button>
  15. </view>
  16. </template>
  17. <script>
  18. export default {
  19. data() {
  20. return {
  21. //识别结果
  22. result:{}
  23. };
  24. }
  25. }
  26. </script>
  27. <style lang="scss">
  28. .discern-img {
  29. display: block;
  30. height: 510rpx;
  31. margin-bottom: 48rpx;
  32. border-radius: 5rpx;
  33. }
  34. .discern-title {
  35. font-size: $font-size-title;
  36. color: $color-title;
  37. line-height: $line-height-title;
  38. }
  39. .discern-result {
  40. padding: 0 40rpx;
  41. }
  42. .discern-item{
  43. margin-top: 14rpx;
  44. &>view {
  45. font-size: 24rpx;
  46. color: $color-title;
  47. line-height: 34rpx;
  48. text{
  49. color: $color-error;
  50. }
  51. }
  52. }
  53. .discern-btn{
  54. margin: 80rpx auto;
  55. }
  56. </style>