index.vue 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  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" v-if="off==2">
  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 v-if="off==2" >
  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 v-if="off==2" :round="24" class="sao mb-40 mt-40" block>保存</tm-button>
  40. <view class="anniu" v-if="off==1">
  41. <tm-menu direction="top" :list="['聚餐穿','开会穿']" @change="yuyue">
  42. <tm-button :round="24" theme="gray" size="n">预约明日</tm-button>
  43. </tm-menu>
  44. <tm-button :round="24" class="fr" theme="primary" size="n">全部取出</tm-button>
  45. </view>
  46. <!-- 弹出层消息 -->
  47. <tm-message ref="toast"></tm-message>
  48. </view>
  49. </template>
  50. <script>
  51. import{myRequest} from '@/api/request.js'
  52. export default {
  53. data() {
  54. return {
  55. familyname:'',
  56. off:1,
  57. list:['时尚','商务'],
  58. activeIndex:0,
  59. list1:['开会','聚餐'],
  60. activeIndex:0,
  61. activeIndex1:0,
  62. list5:[ '搭配内的购物清单'],
  63. test: [{
  64. img: '../../static/img/83.png',
  65. title: '丝缎质感纹理风衣',
  66. label: '黑色 - 6518/320',
  67. price: '1299',
  68. id: 3,
  69. buy: 0,
  70. itemId: 0
  71. },{
  72. img: '../../static/img/84.png',
  73. title: '产品3(任选)',
  74. label: '这个产品是只有几个融会',
  75. price: 36.2,
  76. id: 3,
  77. buy: 0,
  78. itemId: 0
  79. },{
  80. img: '../../static/img/83.png',
  81. title: '产品3(任选)',
  82. label: '这个产品是只有几个融会',
  83. price: 36.2,
  84. id: 3,
  85. buy: 0,
  86. itemId: 0
  87. }],
  88. test1: [{
  89. img: '../../static/img/83.png',
  90. title: '丝缎质感纹理风衣',
  91. label: '黑色 - 6518/320',
  92. id: 3,
  93. buy: 0,
  94. itemId: 0
  95. }],
  96. typeclick1:3,//1加入购物车,2购物车,3前往购买,4,5
  97. typeclick:5,//1加入购物车,2购物车,3前往购买,4,5
  98. };
  99. },
  100. onLoad(e) {
  101. if(e){
  102. this.off=e.type?e.type:1;
  103. if(this.off==1){
  104. this.typeclick=5;
  105. }else{
  106. this.typeclick=6;
  107. }
  108. }
  109. },
  110. created() {
  111. this.sys = uni.getSystemInfoSync();
  112. },
  113. methods: {
  114. yuyue(){
  115. },
  116. jiarufuFun(data){
  117. uni.navigateTo({
  118. url: "/pages/shopdetail/index",
  119. })
  120. console.log(data)
  121. },
  122. },
  123. }
  124. </script>
  125. <style lang="scss">
  126. /deep/ .tm-menubars .body{
  127. background-color: #1b1b1b !important;
  128. }
  129. /deep/ .zhuti{padding: 10px 10px;}
  130. /deep/ .kuang{margin:0 !important;padding: 0px !important;}
  131. .chuanda{width: 100%;margin-top:10px;}
  132. .shuru{background: #0D0D0D;padding: 10px;margin-top: 20px;}
  133. /deep/ .shuru .grey-darken-5{
  134. background-color: #0d0d0d!important;
  135. padding: 0px !important;
  136. }
  137. .shuru{border:1px solid #303030;border-radius: 10px;}
  138. /deep/ .shuru .text-primary.bk{color:#303030 !important;}
  139. /deep/ .shuru .border-grey-darken-4-b-1{border-bottom:none !important;}
  140. /deep/ .qiehuan .tm-tabs-con-item-border{display: none;}
  141. /deep/ .qiehuan .tm-tabs-con-item-text{background: #303440;height: 26px;line-height: 26px;
  142. padding-left: 14px;padding-right: 14px;margin-top: 17%;border-radius: 20px;margin-left: 10px;}
  143. /deep/ .qiehuan .text-white{
  144. font-size: 14px;
  145. background: #0178FD;
  146. height: 26px;
  147. vertical-align: middle;
  148. line-height: 26px;
  149. border-radius: 20px;
  150. padding-left: 14px;
  151. padding-right: 14px;
  152. margin-top: 17%;
  153. }
  154. .biaoti view{width:5px;height:19px;background: #0178FD;float: left;border-radius: 10px;}
  155. /deep/ .qiehuan1 .text-primary{color: white !important;}
  156. /deep/ .jiaoxi{margin:0 !important;padding: 8px !important;}
  157. /deep/ .shangpin .white.bk{background-color:#1b1b1b!important;}
  158. /deep/ .shangpin .tm-cartCellListFood{padding: 0px 0px 5px 0px !important;
  159. margin-top: 5px !important;border-bottom: 1px solid #1B1B1B;}
  160. /deep/ .shangpin .border-t-1.bk{border-top:1px solid #1b1b1b!important;}
  161. /deep/ .shangpin .round-3{width:120px !important;height:110px !important;}
  162. /deep/ .shangpin .tm-cartCellListFood-img{width:120px !important;height:110px !important;}
  163. /deep/ .shangpin .title{color: white !important;}
  164. /deep/ .shangpin .text-red{color: white !important;}
  165. .sao{width: 88%;display: block;margin: 0 auto;padding-bottom: 60px;margin-top: 20px;}
  166. .goumai{background: #1B1B1B;margin-bottom: 10px;}
  167. .anniu{width: 70%;margin: 0 auto;margin-top: 20px;padding-bottom: 30px;}
  168. </style>