index.vue 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <template>
  2. <view :style="{ minHeight: sys.windowHeight + 'px' }"
  3. :class="[$tm.vx.state().tmVuetify.black ? 'black' : ' ']">
  4. <tm-menubars title="我的订单" :shadow="0" :showback="true"></tm-menubars>
  5. <tm-tabs align="center" class="qiehuan1" v-model="activeIndex" :list="list2" range-key="title"></tm-tabs>
  6. <div class="zhuti shangpin">
  7. <tm-sheet class="jiaoxi" style="" v-for="item in test">
  8. <tm-cartCellListFood class="shuliang" :typeclick="typeclick" :mdata="item" :cart-num.sync="item.buy"></tm-cartCellListFood>
  9. </tm-sheet>
  10. </div>
  11. <!-- 弹出层消息 -->
  12. <tm-message ref="toast"></tm-message>
  13. </view>
  14. </template>
  15. <script>
  16. import{myRequest} from '@/api/request.js'
  17. export default {
  18. data() {
  19. return {
  20. list2:[ '全部','待付款','待收货','已完成','售后'],
  21. activeIndex:0,
  22. test: [{
  23. img: '../../static/img/83.png',
  24. title: '丝缎质感纹理风衣',
  25. label: '黑色 - 6518/320',
  26. size:'S',
  27. price: '1299',
  28. id: 3,
  29. buy: 0,
  30. itemId: 0,
  31. checked:false,
  32. },{
  33. img: '../../static/img/84.png',
  34. title: '产品3(任选)',
  35. size:'S',
  36. label: '这个产品是只有几个融会',
  37. price: 36.2,
  38. id: 3,
  39. buy: 0,
  40. itemId: 0,
  41. checked:false
  42. }],
  43. typeclick:4,//1加入购物车,2购物车
  44. };
  45. },
  46. onLoad() {
  47. },
  48. created() {
  49. this.sys = uni.getSystemInfoSync();
  50. },
  51. methods: {
  52. },
  53. }
  54. </script>
  55. <style lang="scss">
  56. /deep/ .tm-menubars .body{
  57. background-color: #1b1b1b !important;
  58. }
  59. /deep/ .qiehuan1 .text-primary{color: white !important;}
  60. /deep/ .qiehuan1 .tm-tabs-wk{border-top: 1px solid #262628;}
  61. /deep/ .shuliang .text-size-n{color: white !important;}
  62. /deep/ .shangpin .white.bk{background-color:#1b1b1b!important;}
  63. /deep/ .shangpin .tm-cartCellListFood{padding: 0px 0px 15px 0px !important;
  64. margin-top: 5px !important;margin-bottom: 20px !important;
  65. border-bottom: 1px solid #1B1B1B;}
  66. /deep/ .shangpin .border-t-1.bk{border-top:1px solid #1b1b1b!important;}
  67. /deep/ .shangpin .title{color: white !important;}
  68. /deep/ .shangpin .text-red{color: white !important;}
  69. /deep/ .shangpin .round-3{width:90px !important;height:90px !important;}
  70. /deep/ .shangpin .tm-cartCellListFood-img{width:90px !important;height:90px !important;}
  71. /deep/ .shuliang .text-size-n{color: white !important;}
  72. /deep/ .jiaoxi{margin:0 !important;padding: 8px !important;margin-top: 10px !important;}
  73. </style>