index.vue 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  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 @click="show_1=true">出库</tm-button>
  58. </div>
  59. <tm-poup v-model="show_1" :position="pos" class="tcc">
  60. <view style="position: relative !important;">
  61. <view style="height: 10px;"></view>
  62. <tm-swiper :current="1" :indicator-dots="false" :round="6" :ani3d="190" :autoplay="false" :list="list1"></tm-swiper>
  63. <view class="text-white text-align-center mt-15">丝缎质感纹理风衣</view>
  64. <view class="text-white text-align-center mt-10 text-size-s">黑色 - 6518/320</view>
  65. <image class="guayi" src="/static/img/102.png" mode="widthFix"></image>
  66. <view class="text-white text-align-center mt-15">衣物位于 挂衣区 5号衣柜</view>
  67. <view class="text-white text-align-center mt-15">
  68. <image class="aniOn deng" src="/static/img/101.png" mode="widthFix"></image>
  69. <text style="vertical-align: middle;">指示灯已亮,请取出衣柜</text>
  70. </view>
  71. <view class="anniu">
  72. <tm-button @click="quxiao()" theme="gray" size="n">取消</tm-button>
  73. <tm-button @click="chuFun()" class="fr" theme="primary" size="n">确认</tm-button>
  74. </view>
  75. </view>
  76. </tm-poup>
  77. <!-- 弹出层消息 -->
  78. <tm-message ref="toast"></tm-message>
  79. </view>
  80. </template>
  81. <script>
  82. import{myRequest} from '@/api/request.js'
  83. export default {
  84. data() {
  85. return {
  86. show_1:false,
  87. pos:'center',
  88. xianshi:true,
  89. list1:[
  90. '../../static/img/100.png',
  91. '../../static/img/100.png',
  92. '../../static/img/100.png',
  93. ],
  94. list:[ '商品介绍','搭配方案'],
  95. activeIndex:0,
  96. reqData:{
  97. username:'1',
  98. height:'1',
  99. weight:'1',
  100. },
  101. quanbuList:[{
  102. src:'/static/img/45.png',
  103. text:'NEO CITY 涂鸦',
  104. type:'手提包'
  105. },{
  106. src:'/static/img/46.png',
  107. text:'满印迷你标识',
  108. type:'围巾'
  109. },{
  110. src:'/static/img/47.png',
  111. text:'大号版型夹克',
  112. type:'新品'
  113. }]
  114. };
  115. },
  116. onLoad() {
  117. },
  118. created() {
  119. this.sys = uni.getSystemInfoSync();
  120. },
  121. methods: {
  122. xiugaiFun(){
  123. this.xianshi=false;
  124. },
  125. quxiao(){
  126. this.show_1=false;
  127. },
  128. chuFun(){
  129. uni.navigateTo({
  130. url: "/pages/index/index?index=1",
  131. })
  132. }
  133. },
  134. }
  135. </script>
  136. <style lang="scss">
  137. /deep/ .tm-menubars .body{
  138. background-color: #1b1b1b !important;
  139. }
  140. /deep/ .zhuti{padding: 10px 10px;}
  141. /deep/ .kuang{margin:0 !important;padding: 0px !important;}
  142. /deep/ .qiehuan1 .text-primary{color: white !important;}
  143. .touxiang{width: 100%;display: block;margin-top: 10px;}
  144. .xiugai image{width: 18px;vertical-align: middle;margin-right:5px;}
  145. .xiugai text{vertical-align: middle;}
  146. .xiugai{position: absolute;right:5px;top:10px;}
  147. .you{border-radius: 10px;padding:10px;width: 88%;margin:0 auto;margin-top:20px;}
  148. /deep/ .you .grey-darken-5{
  149. background-color: #0d0d0d!important;
  150. padding: 0px !important;
  151. }
  152. /deep/ .you .text-red{color: white;}
  153. /deep/ .tan .active{background-color: #AAAAAA !important;}
  154. /deep/ .tan .tm-poups .grey-darken-5{background-color: gray !important;}
  155. /deep/ .tan uni-input{text-align: right;}
  156. /deep/ .you .border-grey-darken-4-b-1 {
  157. border-bottom: solid 1px #313131 !important;
  158. }
  159. .yiguicla image{width: 95%;display: block;margin: 0 auto;margin-top: 5px;}
  160. .yiguicla{width: 30%;border-radius: 10px;}
  161. .sao{width: 88%;margin:0 auto;margin-top:40px;}
  162. /deep/ .mx-32{margin:0px !important;margin-top:15px !important;}
  163. /deep/ .tcc .tm-poup-wk{width: 90% !important;position:relative;height: 580px !important;}
  164. /deep/ .tcc .uni-swiper-slides{width: 100%;}
  165. /deep/ .tcc uni-swiper{width: 100% !important;}
  166. /deep/ .uni-swiper-slides{width: 160px !important;}
  167. /deep/ .tcc uni-image{width: 160px !important;}
  168. .tcc .guayi{width: 90% !important;display: block;margin:0 auto;margin-top:15px !important;}
  169. .tcc .deng{width:25px !important;height:25px !important;vertical-align: middle;margin-right:8px;}
  170. .aniOn{
  171. animation:doudong 0.5s linear infinite;
  172. background:linear-gradient();
  173. background: -webkit-linear-gradient();
  174. }
  175. @keyframes doudong {
  176. 0%{
  177. transform: rotate(-2deg) translateX(2rpx) translateY(2rpx);
  178. }
  179. 25%{
  180. transform: rotate(0deg) translateX(-2rpx) translateY(-2rpx);
  181. }
  182. 50%{
  183. transform: rotate(0deg) translateX(0rpx) translateY(-2rpx);
  184. }
  185. 75%{
  186. transform: rotate(0deg) translateX(0rpx) translateY(2rpx);
  187. }
  188. 100%{
  189. transform: rotate(-2deg) translateX(2rpx) translateY(2rpx);
  190. }
  191. }
  192. .anniu{width: 80%;margin: 0 auto;margin-top: 20px;}
  193. /deep/ .anniu .gray.bk{color: white !important;}
  194. </style>