index.vue 11 KB

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