u-nodata.vue 836 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <template>
  2. <view class="nodata">
  3. <!-- <image src="../../static/images/order.png" class="orderIcon"></image> -->
  4. <text class="notice">{{notice}}</text>
  5. </view>
  6. </template>
  7. <script>
  8. export default{
  9. name:'custom-nodata',
  10. props:{
  11. notice:{
  12. type:String,
  13. default:'暂无数据'
  14. }
  15. },
  16. data(){
  17. return {
  18. ntxt:''
  19. }
  20. },
  21. watch:{
  22. notice(n,o){
  23. this.ntxt = n;
  24. }
  25. }
  26. }
  27. </script>
  28. <style scoped>
  29. .nodata{
  30. width:560rpx;
  31. margin:0 auto;
  32. padding:200rpx 0;
  33. text-align:center;
  34. }
  35. .nodata .orderIcon{
  36. width:374rpx;
  37. height:288rpx;
  38. margin:20rpx 0 0rpx 0;
  39. }
  40. .nodata text{
  41. display:block;
  42. }
  43. .nodata .notice{
  44. margin-bottom:15rpx;
  45. font-size:36rpx;
  46. font-weight:400;
  47. color:rgba(51,51,51,1);
  48. }
  49. .nodata .cp{
  50. font-size:26rpx;
  51. font-weight:400;
  52. color:rgba(153,153,153,1);
  53. }
  54. </style>