index.vue 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  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 v-if="activeIndex==0" class="touxiang" src="/static/img/63.png" mode="widthFix"></image>
  10. </view>
  11. <div class="zhuti" style="padding-bottom:60px !important;" v-if="activeIndex==0">
  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. <div class="zhuti" v-if="activeIndex==1">
  60. <tm-sheet class="kuang" style="padding-bottom: 10px !important;">
  61. <view style="width: 94%;margin:0 auto;">
  62. <image class="chuanda" src="/static/img/108.png" mode="widthFix"></image>
  63. <view class="text-align-center mt-20 text-white">丝缎质感纹理风衣</view>
  64. <view class="text-align-center mt-10 text-size-s">丝滑如肌肤</view>
  65. </view>
  66. </tm-sheet>
  67. </div>
  68. <view class="goumai shangpin" v-if="activeIndex==1">
  69. <view class="pt-20"><text class="ml-20">衣物名</text><text class="fr mr-20 text-gray text-size-s">丝缎质感纹理风衣</text></view>
  70. <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>
  71. </view>
  72. <tm-sheet :shadow="24" class="jiaoxi xiao" v-if="activeIndex==1">
  73. <tm-tabs align="center" class="qiehuan1" v-model="activeIndex" :list="list5" range-key="title"></tm-tabs>
  74. </tm-sheet>
  75. <!-- 单品 -->
  76. <view class="zhuti shangpin" v-if="activeIndex==1">
  77. <tm-sheet :padding="[0, 0]" class="jiaoxi xiao">
  78. <tm-cartCellListFood v-on:jiaruFun="jiarufuFun" v-for="item in test" :typeclick="typeclick" :mdata="item" :cart-num.sync="item.buy"></tm-cartCellListFood>
  79. </tm-sheet>
  80. </view>
  81. <view class="anniu" v-if="activeIndex==1">
  82. <tm-button :round="24" theme="gray" size="n">预约明日</tm-button>
  83. <tm-button :round="24" class="fr" theme="primary" size="n">全部取出</tm-button>
  84. </view>
  85. <tm-poup v-model="show_1" :position="pos" class="tcc">
  86. <view style="position: relative !important;">
  87. <view style="height: 10px;"></view>
  88. <tm-swiper :current="1" :indicator-dots="false" :round="6" :ani3d="190" :autoplay="false" :list="list1"></tm-swiper>
  89. <view class="text-white text-align-center mt-15">丝缎质感纹理风衣</view>
  90. <view class="text-white text-align-center mt-10 text-size-s">黑色 - 6518/320</view>
  91. <image class="guayi" src="/static/img/102.png" mode="widthFix"></image>
  92. <view class="text-white text-align-center mt-15">衣物位于 挂衣区 5号衣柜</view>
  93. <view class="text-white text-align-center mt-15">
  94. <image class="aniOn deng" src="/static/img/101.png" mode="widthFix"></image>
  95. <text style="vertical-align: middle;">指示灯已亮,请取出衣柜</text>
  96. </view>
  97. <view class="anniu">
  98. <tm-button @click="quxiao()" theme="gray" size="n">取消</tm-button>
  99. <tm-button @click="chuFun()" class="fr" theme="primary" size="n">确认</tm-button>
  100. </view>
  101. </view>
  102. </tm-poup>
  103. <!-- 弹出层消息 -->
  104. <tm-message ref="toast"></tm-message>
  105. </view>
  106. </template>
  107. <script>
  108. import{myRequest} from '@/api/request.js'
  109. export default {
  110. data() {
  111. return {
  112. show_1:false,
  113. pos:'center',
  114. xianshi:true,
  115. list1:[
  116. '../../static/img/100.png',
  117. '../../static/img/100.png',
  118. '../../static/img/100.png',
  119. ],
  120. list:[ '商品介绍','搭配方案'],
  121. activeIndex:0,
  122. reqData:{
  123. username:'1',
  124. height:'1',
  125. weight:'1',
  126. },
  127. quanbuList:[{
  128. src:'/static/img/45.png',
  129. text:'NEO CITY 涂鸦',
  130. type:'手提包'
  131. },{
  132. src:'/static/img/46.png',
  133. text:'满印迷你标识',
  134. type:'围巾'
  135. },{
  136. src:'/static/img/47.png',
  137. text:'大号版型夹克',
  138. type:'新品'
  139. }],
  140. test1: [{
  141. img: '../../static/img/83.png',
  142. title: '丝缎质感纹理风衣',
  143. label: '黑色 - 6518/320',
  144. id: 3,
  145. buy: 0,
  146. itemId: 0
  147. }],
  148. typeclick1:3,//1加入购物车,2购物车,3前往购买,4,5
  149. typeclick:5,//1加入购物车,2购物车,3前往购买,4,5
  150. list5:[ '搭配内的购物清单'],
  151. test: [{
  152. img: '../../static/img/83.png',
  153. title: '丝缎质感纹理风衣',
  154. label: '黑色 - 6518/320',
  155. price: '1299',
  156. id: 3,
  157. buy: 0,
  158. itemId: 0
  159. },{
  160. img: '../../static/img/84.png',
  161. title: '产品3(任选)',
  162. label: '这个产品是只有几个融会',
  163. price: 36.2,
  164. id: 3,
  165. buy: 0,
  166. itemId: 0
  167. },{
  168. img: '../../static/img/83.png',
  169. title: '产品3(任选)',
  170. label: '这个产品是只有几个融会',
  171. price: 36.2,
  172. id: 3,
  173. buy: 0,
  174. itemId: 0
  175. }],
  176. };
  177. },
  178. onLoad() {
  179. },
  180. created() {
  181. this.sys = uni.getSystemInfoSync();
  182. },
  183. methods: {
  184. xiugaiFun(){
  185. this.xianshi=false;
  186. },
  187. quxiao(){
  188. this.show_1=false;
  189. },
  190. chuFun(){
  191. uni.navigateTo({
  192. url: "/pages/index/index?index=1",
  193. })
  194. }
  195. },
  196. }
  197. </script>
  198. <style lang="scss">
  199. /deep/ .tm-menubars .body{
  200. background-color: #1b1b1b !important;
  201. }
  202. /deep/ .zhuti{padding: 10px 10px;}
  203. /deep/ .kuang{margin:0 !important;padding: 0px !important;}
  204. /deep/ .qiehuan1 .text-primary{color: white !important;}
  205. .touxiang{width: 100%;display: block;margin-top: 10px;}
  206. .xiugai image{width: 18px;vertical-align: middle;margin-right:5px;}
  207. .xiugai text{vertical-align: middle;}
  208. .xiugai{position: absolute;right:5px;top:10px;}
  209. .you{border-radius: 10px;padding:10px;width: 88%;margin:0 auto;margin-top:20px;}
  210. /deep/ .you .grey-darken-5{
  211. background-color: #0d0d0d!important;
  212. padding: 0px !important;
  213. }
  214. /deep/ .you .text-red{color: white;}
  215. /deep/ .tan .active{background-color: #AAAAAA !important;}
  216. /deep/ .tan .tm-poups .grey-darken-5{background-color: gray !important;}
  217. /deep/ .tan uni-input{text-align: right;}
  218. /deep/ .you .border-grey-darken-4-b-1 {
  219. border-bottom: solid 1px #313131 !important;
  220. }
  221. .yiguicla image{width: 95%;display: block;margin: 0 auto;margin-top: 5px;}
  222. .yiguicla{width: 30%;border-radius: 10px;}
  223. .sao{width: 88%;margin:0 auto;margin-top:40px;}
  224. /deep/ .mx-32{margin:0px !important;margin-top:15px !important;}
  225. /deep/ .tcc .tm-poup-wk{width: 90% !important;position:relative;height: 580px !important;}
  226. /deep/ .tcc .uni-swiper-slides{width: 100%;}
  227. /deep/ .tcc uni-swiper{width: 100% !important;}
  228. /deep/ .uni-swiper-slides{width: 160px !important;}
  229. /deep/ .tcc uni-image{width: 160px !important;}
  230. .tcc .guayi{width: 90% !important;display: block;margin:0 auto;margin-top:15px !important;}
  231. .tcc .deng{width:25px !important;height:25px !important;vertical-align: middle;margin-right:8px;}
  232. .aniOn{
  233. animation:doudong 0.5s linear infinite;
  234. background:linear-gradient();
  235. background: -webkit-linear-gradient();
  236. }
  237. @keyframes doudong {
  238. 0%{
  239. transform: rotate(-2deg) translateX(2rpx) translateY(2rpx);
  240. }
  241. 25%{
  242. transform: rotate(0deg) translateX(-2rpx) translateY(-2rpx);
  243. }
  244. 50%{
  245. transform: rotate(0deg) translateX(0rpx) translateY(-2rpx);
  246. }
  247. 75%{
  248. transform: rotate(0deg) translateX(0rpx) translateY(2rpx);
  249. }
  250. 100%{
  251. transform: rotate(-2deg) translateX(2rpx) translateY(2rpx);
  252. }
  253. }
  254. .anniu{width: 80%;margin: 0 auto;margin-top: 20px;}
  255. /deep/ .anniu .gray.bk{color: white !important;}
  256. .biaoti view{width:5px;height:19px;background: #0178FD;float: left;border-radius: 10px;}
  257. /deep/ .qiehuan1 .text-primary{color: white !important;}
  258. /deep/ .jiaoxi{margin:0 !important;padding: 8px !important;}
  259. /deep/ .shangpin .white.bk{background-color:#1b1b1b!important;}
  260. /deep/ .shangpin .tm-cartCellListFood{padding: 0px 0px 5px 0px !important;
  261. margin-top: 5px !important;border-bottom: 1px solid #1B1B1B;}
  262. /deep/ .shangpin .border-t-1.bk{border-top:1px solid #1b1b1b!important;}
  263. /deep/ .shangpin .round-3{width:120px !important;height:110px !important;}
  264. /deep/ .shangpin .tm-cartCellListFood-img{width:120px !important;height:110px !important;}
  265. /deep/ .shangpin .title{color: white !important;}
  266. /deep/ .shangpin .text-red{color: white !important;}
  267. .sao{width: 88%;display: block;margin: 0 auto;padding-bottom: 60px;margin-top: 20px;}
  268. .goumai{background: #1B1B1B;margin-bottom: 10px;}
  269. .anniu{width: 70%;margin: 0 auto;margin-top: 20px;padding-bottom: 30px;}
  270. </style>