index.vue 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  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. <view class="C1b1b1b">
  6. <view style="width: 90%;margin:0 auto;">
  7. <tm-tabs align="left" class="qiehuan1" v-model="activeIndex" :list="list" range-key="title"></tm-tabs>
  8. </view>
  9. <image class="touxiang" src="/static/img/63.png" mode="widthFix"></image>
  10. </view>
  11. <div class="zhuti" style="padding-bottom:60px !important;">
  12. <view class="text-align-center text-size-lg">新款冬季羽绒服</view>
  13. <view class="text-align-center text-size-s mt-10 text-gray">蓬松、轻盈、温暖</view>
  14. <tm-sheet class="kuang" style="padding-bottom: 30px !important;">
  15. <view style="width: 98%;margin:0 auto;margin-top:20px !important;position: relative;">
  16. <view class="text-white text-align-center pt-20">衣物参数</view>
  17. <view class="fr mr-20 xiugai" @click="xiugaiFun()">
  18. <image src="/static/img/64.png" mode="widthFix"></image>
  19. <text>修改</text>
  20. </view>
  21. <view class="you black mt-30">
  22. <tm-input :disabled="xianshi" title="衣长" v-model="reqData.username" align="right"></tm-input>
  23. <tm-input :disabled="xianshi" title="上市年份" v-model="reqData.height" align="right"></tm-input>
  24. <tm-input :disabled="xianshi" title="颜色" v-model="reqData.weight" align="right"></tm-input>
  25. <tm-input :disabled="xianshi" title="尺码" v-model="reqData.username" align="right"></tm-input>
  26. <tm-input :disabled="xianshi" title="品牌" v-model="reqData.height" align="right"></tm-input>
  27. <tm-input :disabled="xianshi" title="主材含量" v-model="reqData.weight" align="right"></tm-input>
  28. <tm-input :disabled="xianshi" title="适用对象" v-model="reqData.weight" align="right"></tm-input>
  29. </view>
  30. </view>
  31. </tm-sheet>
  32. <tm-sheet class="kuang">
  33. <view style="width: 98%;margin:0 auto;margin-top:20px !important;">
  34. <view class="text-white text-align-center pt-20">类似衣物</view>
  35. <view class="yiguicla black pa-6 ma-4 fl mb-20" v-for="item in quanbuList" @click="yifu()">
  36. <image :src="item.src" mode="widthFix"></image>
  37. <view class="text-align-center text-size-m mt-8">{{item.text}}</view>
  38. <view class="text-align-center text-size-m mt-6 mb-6">{{item.type}}</view>
  39. </view>
  40. <view style="clear: both;"></view>
  41. </view>
  42. </tm-sheet>
  43. <tm-sheet class="kuang">
  44. <view style="width: 98%;margin:0 auto;margin-top:20px !important;">
  45. <view class="text-white text-align-center pt-20">品牌信息</view>
  46. <tm-listitem
  47. class="pb-20"
  48. :left-icon-size="100"
  49. value="100件商品"
  50. title="巴黎世家"
  51. label="只此一瞬,狂爱一生"
  52. left-icon="../../static/img/65.png"
  53. show-left-icon
  54. ></tm-listitem>
  55. </view>
  56. </tm-sheet>
  57. <tm-button :round="24" class="sao mb-40" block>出库</tm-button>
  58. </div>
  59. <!-- 弹出层消息 -->
  60. <tm-message ref="toast"></tm-message>
  61. </view>
  62. </template>
  63. <script>
  64. import{myRequest} from '@/api/request.js'
  65. export default {
  66. data() {
  67. return {
  68. xianshi:true,
  69. list:[ '商品介绍','搭配方案'],
  70. activeIndex:0,
  71. reqData:{
  72. username:'1',
  73. height:'1',
  74. weight:'1',
  75. },
  76. quanbuList:[{
  77. src:'/static/img/45.png',
  78. text:'NEO CITY 涂鸦',
  79. type:'手提包'
  80. },{
  81. src:'/static/img/46.png',
  82. text:'满印迷你标识',
  83. type:'围巾'
  84. },{
  85. src:'/static/img/47.png',
  86. text:'大号版型夹克',
  87. type:'新品'
  88. }]
  89. };
  90. },
  91. onLoad() {
  92. },
  93. created() {
  94. this.sys = uni.getSystemInfoSync();
  95. },
  96. methods: {
  97. xiugaiFun(){
  98. this.xianshi=false;
  99. }
  100. },
  101. }
  102. </script>
  103. <style lang="scss">
  104. /deep/ .tm-menubars .body{
  105. background-color: #1b1b1b !important;
  106. }
  107. /deep/ .zhuti{padding: 10px 10px;}
  108. /deep/ .kuang{margin:0 !important;padding: 0px !important;}
  109. /deep/ .qiehuan1 .text-primary{color: white !important;}
  110. .touxiang{width: 100%;display: block;margin-top: 10px;}
  111. .xiugai image{width: 18px;vertical-align: middle;margin-right:5px;}
  112. .xiugai text{vertical-align: middle;}
  113. .xiugai{position: absolute;right:5px;top:10px;}
  114. .you{border-radius: 10px;padding:10px;width: 88%;margin:0 auto;margin-top:20px;}
  115. /deep/ .you .grey-darken-5{
  116. background-color: #0d0d0d!important;
  117. padding: 0px !important;
  118. }
  119. /deep/ .you .text-red{color: white;}
  120. /deep/ .tan .active{background-color: #AAAAAA !important;}
  121. /deep/ .tan .tm-poups .grey-darken-5{background-color: gray !important;}
  122. /deep/ .tan uni-input{text-align: right;}
  123. /deep/ .you .border-grey-darken-4-b-1 {
  124. border-bottom: solid 1px #313131 !important;
  125. }
  126. .yiguicla image{width: 95%;display: block;margin: 0 auto;margin-top: 5px;}
  127. .yiguicla{width: 30%;border-radius: 10px;}
  128. .sao{width: 88%;margin:0 auto;margin-top:40px;}
  129. /deep/ .mx-32{margin:0px !important;margin-top:15px !important;}
  130. </style>