shequ.vue 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <template>
  2. <view>
  3. <view>
  4. <view style="text-align: center;color: #fff;font-size: 45rpx;font-weight: bold;padding: 50rpx 0;border-bottom: #d3d9dc solid 1rpx;">
  5. <text style="padding: 0 20rpx;">{{huizong.jibie}}社区粉丝{{huizong.count}}</text>
  6. <view style="padding:20rpx;text-align: center;"><text style="padding: 0 20rpx;">销售额{{huizong.price}}</text> <text style="padding: 0 20rpx;">拍拍宝{{huizong.ppb}}</text></view>
  7. </view>
  8. <view style="box-shadow: 0px 1px 24px -1px rgba(0,0,0,0.2);padding: 20rpx 0rpx;display: table;width:100%;margin-top: 10rpx;" v-for="(item, index) in goodlist" :key="index">
  9. <image src="../../static/tx1.png" style="width: 80rpx;float: left;margin-left: 20rpx;" mode="widthFix">
  10. <view style="font-size: 28rpx;display: block;float: left;margin-left: 10rpx;">
  11. <view style="color: #fff;">{{item.xm}}</view>
  12. <view style="color: #d3d9dc;">{{item.time}}</view>
  13. </view>
  14. <view style="float: right;line-height: 200%;color: #bb3647;margin-right: 20rpx;font-weight: bold;font-size: 36rpx;">
  15. {{item.num}}
  16. </view>
  17. </view>
  18. </view>
  19. </view>
  20. </template>
  21. <script>
  22. export default {
  23. data() {
  24. return {
  25. list:[],
  26. userinfo:[],
  27. goodlist:[],
  28. huizong:[]
  29. }
  30. },
  31. methods: {
  32. sklist(){
  33. var data = new Object();
  34. data.uid = this.userinfo.id;
  35. this.$api
  36. .MhGetModel(data, 'user/shequ')
  37. .then(res => {
  38. this.goodlist = res.data.data;
  39. this.huizong = res.data.huizong;
  40. })
  41. .catch(err => {
  42. // console.log('request fail', JSON.stringify(err));
  43. });
  44. }
  45. },
  46. onLoad() {
  47. var user = this.$api.getUserinfo();
  48. this.userinfo = user;
  49. this.sklist()
  50. }
  51. }
  52. </script>
  53. <style>
  54. page{padding: 15rpx;background: #98a737;background-attachment: fixed !important;
  55. background-repeat: no-repeat !important;}
  56. .b1 {
  57. overflow: hidden;
  58. padding: 10rpx 15rpx;
  59. color: #f1a325;
  60. background: #fff0d5;
  61. border: 1rpx solid #ffdcbc;
  62. }
  63. </style>