index.vue 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  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. <div class="zhuti">
  6. <tm-sheet class="kuang" style="padding-bottom: 10px !important;">
  7. <view style="width: 94%;margin:0 auto;">
  8. <image class="chuanda" src="/static/img/108.png" mode="widthFix"></image>
  9. <view class="shuru">
  10. <tm-form>
  11. <view class="text-size-m text-white">请输入搭配名称</view>
  12. <tm-input v-model="familyname" name="title" clear placeholder="出席重要场合" clear></tm-input>
  13. </tm-form>
  14. </view>
  15. <view>
  16. <view class="biaoti text-white mt-30 text-size-m"><view class="mr-10"></view>分类</view>
  17. <tm-tabs class="C1b1b1b qiehuan" color="white" align="left" v-model="activeIndex" :list="list" range-key="title"></tm-tabs>
  18. <!-- <view class="biaoti text-white mt-30 text-size-m"><view class="mr-10"></view>场景</view>
  19. <tm-tabs class="C1b1b1b qiehuan" color="white" align="left" v-model="activeIndex1" :list="list1" range-key="title"></tm-tabs> -->
  20. </view>
  21. <!-- <view v-if="off==1" class="text-align-center mt-20 text-white">丝缎质感纹理风衣</view> -->
  22. <!-- <view v-if="off==1" class="text-align-center mt-10 text-size-s">丝滑如肌肤</view> -->
  23. </view>
  24. </tm-sheet>
  25. </div>
  26. <!-- <view class="goumai shangpin" v-if="off==1" >
  27. <view class="pt-20"><text class="ml-20">衣物名</text><text class="fr mr-20 text-gray text-size-s">丝缎质感纹理风衣</text></view>
  28. <view class="pa-20"><tm-cartCellListFood v-on:jiaruFun="jiarufuFun" v-for="item in test1" :typeclick="typeclick1" :mdata="item" :cart-num.sync="item.buy"></tm-cartCellListFood></view>
  29. </view> -->
  30. <tm-sheet :shadow="24" class="jiaoxi xiao">
  31. <tm-tabs align="center" class="qiehuan1" v-model="activeIndex" :list="list5" range-key="title"></tm-tabs>
  32. </tm-sheet>
  33. <!-- 单品 -->
  34. <view class="zhuti shangpin">
  35. <tm-sheet :padding="[0, 0]" class="jiaoxi xiao">
  36. <tm-cartCellListFood v-on:jiaruFun="jiarufuFun" v-for="item in test" :typeclick="typeclick" :mdata="item" :cart-num.sync="item.buy"></tm-cartCellListFood>
  37. </tm-sheet>
  38. </view>
  39. <!-- <tm-button :round="24" class="sao mb-40 mt-40" block>保存</tm-button> -->
  40. <view class="anniu">
  41. <tm-button :round="24" theme="gray" size="n">删除</tm-button>
  42. <tm-button :round="24" class="fr" theme="primary" size="n">保存</tm-button>
  43. </view>
  44. <!-- 弹出层消息 -->
  45. <tm-message ref="toast"></tm-message>
  46. </view>
  47. </template>
  48. <script>
  49. import{myRequest} from '@/api/request.js'
  50. export default {
  51. data() {
  52. return {
  53. familyname:'',
  54. off:1,
  55. list:['时尚','商务'],
  56. activeIndex:0,
  57. list1:['开会','聚餐'],
  58. activeIndex:0,
  59. activeIndex1:0,
  60. list5:[ '搭配内的购物清单'],
  61. test: [{
  62. img: '../../static/img/83.png',
  63. title: '丝缎质感纹理风衣',
  64. label: '黑色 - 6518/320',
  65. price: '1299',
  66. id: 3,
  67. buy: 0,
  68. itemId: 0
  69. },{
  70. img: '../../static/img/84.png',
  71. title: '产品3(任选)',
  72. label: '这个产品是只有几个融会',
  73. price: 36.2,
  74. id: 3,
  75. buy: 0,
  76. itemId: 0
  77. },{
  78. img: '../../static/img/83.png',
  79. title: '产品3(任选)',
  80. label: '这个产品是只有几个融会',
  81. price: 36.2,
  82. id: 3,
  83. buy: 0,
  84. itemId: 0
  85. }],
  86. test1: [{
  87. img: '../../static/img/83.png',
  88. title: '丝缎质感纹理风衣',
  89. label: '黑色 - 6518/320',
  90. id: 3,
  91. buy: 0,
  92. itemId: 0
  93. }],
  94. typeclick1:6,//1加入购物车,2购物车,3前往购买,4,5
  95. typeclick:7,//1加入购物车,2购物车,3前往购买,4,5
  96. };
  97. },
  98. onLoad(e) {
  99. if(e){
  100. }
  101. },
  102. created() {
  103. this.sys = uni.getSystemInfoSync();
  104. },
  105. methods: {
  106. jiarufuFun(data){
  107. // uni.navigateTo({
  108. // url: "/pages/shopdetail/index",
  109. // })
  110. console.log(data)
  111. },
  112. },
  113. }
  114. </script>
  115. <style lang="scss">
  116. /deep/ .tm-menubars .body{
  117. background-color: #1b1b1b !important;
  118. }
  119. /deep/ .zhuti{padding: 10px 10px;}
  120. /deep/ .kuang{margin:0 !important;padding: 0px !important;}
  121. .chuanda{width: 100%;margin-top:10px;}
  122. .shuru{background: #0D0D0D;padding: 10px;margin-top: 20px;}
  123. /deep/ .shuru .grey-darken-5{
  124. background-color: #0d0d0d!important;
  125. padding: 0px !important;
  126. }
  127. .shuru{border:1px solid #303030;border-radius: 10px;}
  128. /deep/ .shuru .text-primary.bk{color:#303030 !important;}
  129. /deep/ .shuru .border-grey-darken-4-b-1{border-bottom:none !important;}
  130. /deep/ .qiehuan .tm-tabs-con-item-border{display: none;}
  131. /deep/ .qiehuan .tm-tabs-con-item-text{background: #303440;height: 26px;line-height: 26px;
  132. padding-left: 14px;padding-right: 14px;margin-top: 17%;border-radius: 20px;margin-left: 10px;}
  133. /deep/ .qiehuan .text-white{
  134. font-size: 14px;
  135. background: #0178FD;
  136. height: 26px;
  137. vertical-align: middle;
  138. line-height: 26px;
  139. border-radius: 20px;
  140. padding-left: 14px;
  141. padding-right: 14px;
  142. margin-top: 17%;
  143. }
  144. .biaoti view{width:5px;height:19px;background: #0178FD;float: left;border-radius: 10px;}
  145. /deep/ .qiehuan1 .text-primary{color: white !important;}
  146. /deep/ .jiaoxi{margin:0 !important;padding: 8px !important;}
  147. /deep/ .shangpin .white.bk{background-color:#1b1b1b!important;}
  148. /deep/ .shangpin .tm-cartCellListFood{padding: 0px 0px 5px 0px !important;
  149. margin-top: 5px !important;border-bottom: 1px solid #1B1B1B;}
  150. /deep/ .shangpin .border-t-1.bk{border-top:1px solid #1b1b1b!important;}
  151. /deep/ .shangpin .round-3{width:120px !important;height:110px !important;}
  152. /deep/ .shangpin .tm-cartCellListFood-img{width:120px !important;height:110px !important;}
  153. /deep/ .shangpin .title{color: white !important;}
  154. /deep/ .shangpin .text-red{color: white !important;}
  155. .sao{width: 88%;display: block;margin: 0 auto;padding-bottom: 60px;margin-top: 20px;}
  156. .goumai{background: #1B1B1B;margin-bottom: 10px;}
  157. .anniu{width: 70%;margin: 0 auto;margin-top: 20px;padding-bottom: 30px;}
  158. </style>