index.vue 11 KB

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