unit.vue 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <template>
  2. <view class='my-unit'>
  3. <view class="unit-head">
  4. <text>求购编号:12346579812</text><text class="fr color-999">正在报价</text>
  5. </view>
  6. <view class="unit-body">
  7. <text v-for="(item,index) in unitModel1" :key="index" >{{item.label}}:<text v-if="item.isMoney" :class="item.class">¥ </text><text :class="item.class">暂无</text><text v-if="item.isMoney" :class="item.class"> 元</text></text>
  8. </view>
  9. <view class="unit-foot">
  10. <text class="color-999">20190212</text>
  11. <button class="fr btn" type="warn" @click="doDel">删除求购</button>
  12. </view>
  13. </view>
  14. </template>
  15. <script>
  16. export default{
  17. data() {
  18. return {
  19. unitModel1:[
  20. {prop:"",label:"匹配商铺数"},
  21. {prop:"",label:"已报价商铺数"},
  22. {prop:"",label:"最新报价",class:"color-red",isMoney:true},
  23. {prop:"",label:"商品报价",class:"color-999",isMoney:true},
  24. {prop:"",label:"税点",class:"color-999"},
  25. {prop:"",label:"税费",class:"color-999",isMoney:true},
  26. {prop:"",label:"运费",class:"color-999",isMoney:true},
  27. ]
  28. }
  29. },
  30. methods:{
  31. doDel(){
  32. this.$store.commit("switch_loading")
  33. }
  34. },
  35. computed:{
  36. },
  37. created() {
  38. },
  39. }
  40. </script>
  41. <style lang='scss'>
  42. .my-unit{
  43. margin: 20upx 0;
  44. background-color: #ffffff;
  45. font-size: 28upx;
  46. transform: all 1s;
  47. .unit-head{
  48. padding: 20upx;
  49. height: 80upx;
  50. box-sizing: border-box;
  51. border-bottom: 2upx solid #f5f5f5;
  52. }
  53. .unit-body{
  54. padding: 20upx;
  55. display: flex;
  56. flex-wrap: wrap;
  57. text{
  58. width: 50%;
  59. font-size: 28upx;
  60. line-height: 55upx;
  61. }
  62. }
  63. .unit-foot{
  64. height: 88upx;
  65. padding: 0 20upx;
  66. border-top: 2upx solid #f5f5f5;
  67. border-bottom: none;
  68. line-height: 88upx;
  69. .btn{
  70. height: 60upx;
  71. font-size: 28upx;
  72. line-height: 60upx;
  73. margin: 14upx 0;
  74. }
  75. }
  76. }
  77. </style>