ld-goods-black.vue 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <template>
  2. <view class="goodsItem u-border u-flex-center">
  3. <image :src="value.goods_cover" v-if="value.goods_cover" class="u-goods200 u-ml15" mode=""></image>
  4. <image :src="value.goods_img" v-if="value.goods_img" class="u-goods200 u-ml15" mode=""></image>
  5. <view class="u-flex1 u-flex-column-start rightText u-ml30">
  6. <view class="u-text2 u-1A1A1A u-font28 textWidth">{{value.goods_title}}</view>
  7. <view class="bottext u-flex-column-start u-flex1">
  8. <text class="u-font22 u-999" v-if="value.sku_set_name">规格: {{value.sku_set_name}}</text>
  9. </view>
  10. </view>
  11. </view>
  12. </template>
  13. <script>
  14. export default {
  15. props:{
  16. value:{
  17. type:Object,
  18. default:{}
  19. },
  20. position:{
  21. type:Number,
  22. default:0
  23. },
  24. keys:{
  25. type:Number,
  26. default:0
  27. }
  28. },
  29. data(){
  30. return{
  31. price:66.2
  32. }
  33. },
  34. methods:{
  35. evaluation(id){
  36. let data={
  37. id:id,
  38. keys:this.keys
  39. }
  40. this.$emit('parentevaluation',data)
  41. }
  42. }
  43. }
  44. </script>
  45. <style>
  46. .goodsItem {
  47. padding: 40rpx 0 ;
  48. position: relative;
  49. }
  50. .textWidth{
  51. width: 420rpx;
  52. }
  53. .btnComment_status{
  54. position: absolute;
  55. right: 0;
  56. bottom: 60rpx;
  57. background-color: #00321E;
  58. width: 180rpx;
  59. height: 65rpx;
  60. text-align: center;
  61. line-height: 65rpx;
  62. color: #fff;
  63. font-size: 28rpx;
  64. border-radius: 40rpx;
  65. }
  66. </style>