123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340 |
- <template>
- <view :style="{ minHeight: sys.windowHeight + 'px' }" :class="[$tm.vx.state().tmVuetify.black ? 'black' : ' ']">
- <tm-menubars title="" :shadow="0" :showback="false"></tm-menubars>
- <view class="C1b1b1b">
- <tm-search @click="sosoFun" v-model="soso" color="white" confirm-text=""></tm-search>
- <view class="dingwei" v-if="itemuser!=0">
- <image class="touxiang" style="vertical-align: middle;" src="/static/img/41.png" mode="widthFix"></image>
- <text style="vertical-align: middle;" class="text-size-m mr-20">{{itemuser.username}}的衣橱</text>
- <image @click="qiehuanFun" style="vertical-align: middle;" src="/static/img/42.png" mode="widthFix"></image>
- <text @click="qiehuanFun" style="vertical-align: middle;" class="text-size-m">切换</text>
- </view>
- <view class="dingwei" v-if="itemuser==0">
- <text style="vertical-align: middle;" class="text-size-m mr-20">暂无家庭成员去添加</text>
- <image @click="tianjia" style="vertical-align: middle;" src="/static/img/42.png" mode="widthFix"></image>
- </view>
- </view>
- <!-- 推荐 -->
- <view class="zhuti">
- <div>
- <tm-sheet class="lunbo1 fl" @click="tiao">
- <view class="flex-between flex-center">
- <view class="tuijian">
- <text class="text-white text-size-lg">校园穿搭</text>
- </view>
- <view >
- <text class="text-size-s C929297">详情</text>
- </view>
- </view>
- <view class="flex-between flex-center mt-20 pa-8" style="border-radius: 4px;" :class="[$tm.vx.state().tmVuetify.black ? 'black' : ' ']">
- <view class="tuijiantp">
- <image style="vertical-align: middle;" src="/static/img/43.png" mode="widthFix"></image>
- </view>
- <view class="tuijiantp">
- <image class="fr" style="vertical-align: middle;" src="/static/img/44.png" mode="widthFix"></image>
- </view>
- </view>
- </tm-sheet>
- <tm-sheet class="lunbo1 fr">
- <view class="flex-between flex-center">
- <view class="tuijian">
- <text class="text-white text-size-lg">日常出勤</text>
- </view>
- <view >
- <text class="text-size-s C929297">详情</text>
- </view>
- </view>
- <view class="flex-between flex-center mt-20 pa-8" style="border-radius: 4px;" :class="[$tm.vx.state().tmVuetify.black ? 'black' : ' ']">
- <view class="tuijiantp">
- <image style="vertical-align: middle;" src="/static/img/43.png" mode="widthFix"></image>
- </view>
- <view class="tuijiantp">
- <image class="fr" style="vertical-align: middle;" src="/static/img/44.png" mode="widthFix"></image>
- </view>
- </view>
- </tm-sheet>
- <view style="clear: both;"></view>
- </div>
- <!-- 衣橱 -->
- <tm-sheet class="yichu" style="margin-bottom: 70px !important;">
- <tm-tabs class="C1b1b1b qiehuan" @change="fenleichangeFun" color="white" align="left" v-model="activeIndex" :list="list" range-key="title"></tm-tabs>
- <view class="yiguicla black pa-6 ma-4 fl" v-for="(item,index) in quanbuList" @longtap="longtap()" @click="xiangqing()">
- <image :src="item.thumb" mode="widthFix"></image>
- <view class="text-align-center text-size-m mt-8">{{item.brand}}</view>
- <view class="text-align-center text-size-m mt-6 mb-6">{{item.goods_name}}</view>
- </view>
- <view style="clear: both;" class="more ma-30 pt-40" @click="gengmore()">
- <image src="/static/img/30.png" mode="widthFix"></image>
- <text class="text-size-s">下拉加载更多~</text>
- </view>
- </tm-sheet>
- </view>
- <!-- 待取衣服 -->
-
- <css-float-ball v-model="floatBallPosition" >
- <view class="float-ball-icon" hover-class="default-icon-hover">
- <tm-translate ref="a_1" :auto="true" animation-name="fadeLeft">
- <view class="fudong" @click="show_1=true">
- <image src="/static/img/96.png" class="fudimg fl"></image>
- <view class="pt-20">待取衣物</view>
- <view>(<text style="color: #FFCC00;">3</text>件)</view>
- </view>
- </tm-translate>
- </view>
- </css-float-ball>
- <!-- 弹出 -->
- <tm-poup v-model="show_1" :position="pos" class="tcc">
- <view style="position: relative !important;">
- <view style="height: 10px;"></view>
- <tm-swiper :current="1" :indicator-dots="false" :round="6" :ani3d="190" :autoplay="false" :list="list1"></tm-swiper>
- <view class="text-white text-align-center mt-15">丝缎质感纹理风衣</view>
- <view class="text-white text-align-center mt-10 text-size-s">黑色 - 6518/320</view>
- <image class="guayi" src="/static/img/102.png" mode="widthFix"></image>
- <view class="text-white text-align-center mt-15">衣物位于 挂衣区 5号衣柜</view>
- <view class="text-white text-align-center mt-15">
- <image class="aniOn deng" src="/static/img/101.png" mode="widthFix"></image>
- <text style="vertical-align: middle;">指示灯已亮,请取出衣柜</text>
- </view>
- <view class="anniu">
- <tm-button @click="quxiao()" theme="gray" size="n">取消</tm-button>
- <tm-button @click="chuFun()" class="fr" theme="primary" size="n">确认</tm-button>
- </view>
- </view>
- </tm-poup>
- </view>
- </template>
- <script>
- import{myRequest} from '@/api/request.js'
- export default {
- data() {
- return {
- show_1:false,
- pos:'center',
- floatBallPosition:{x: 400, y: 750},
- itemuser:0,
- soso:'',
- activeIndex:0,
- list:[],
- listlx:[],
- quanbuList:[],
- list1:[
- '../../static/img/100.png',
- '../../static/img/100.png',
- '../../static/img/100.png',
- ],
- pagesize:3,
- page:1
- };
- },
- onLoad() {
- if(!uni.getStorageSync("token")){
- uni.navigateTo({
- url: "/pages/login/index",
- })
- }
- },
- created() {
- this.sys = uni.getSystemInfoSync();
- this.getfenltext()
- this.fenleichange();
- },
- methods: {
- quxiao(){
- this.show_1=false;
- },
- chuFun(){
- this.show_1=false;
- },
- longtap(){
- uni.navigateTo({
- url: "/pages/changan/index",
- })
- },
- tiao(){
- uni.navigateTo({
- url: "/pages/zidingyi/index",
- })
- },
- xiangqing(){
- uni.navigateTo({
- url: "/pages/yifu/index",
- })
- },
- fenleichangeFun(){
- var that=this;
- myRequest({
- url: "/api/Goods/classificationData",
- method:'post',
- data:{role_id:that.itemuser.id,id:that.activeIndex,page:that.page,pagesize:that.pagesize}
- }).then(res => {
- if (res.data.code == 200) {
- if(res.data.data.length != 0){
- that.quanbuList=res.data.data.data;
- }
- }else{
- that.quanbuList=[];
- }
- })
- },
- sosoFun(){
- uni.navigateTo({
- url: "/pages/shopsoso/index",
- })
- },
- fenleichange(){
- var that=this;
- myRequest({
- url: "/api/MemberInfo/getFamilyMember",
- method:'post',
- data:{family_id:uni.getStorageSync("family_id")}
- }).then(res => {
- if (res.data.code == 200) {
- if(res.data.data.length != 0){
- var wu=0;
- for(let i=0;i<res.data.data.length;i++){
- if(res.data.data[i].checked==1){
- wu=1;
- that.itemuser=res.data.data[i];
- }
- }
- if(wu==0){
- that.itemuser=res.data.data[0];
- }
- this.fenleichangeFun()
- }else{
- that.itemuser=0;
- }
- }else{
- that.itemuser=0;
- }
- })
- },
- getfenltext(){
- var that=this;
- myRequest({
- url: "/api/Category/list",
- method:'post',
- data:{}
- }).then(res => {
- if (res.data.code == 200) {
- if(res.data.data.length != 0){
- that.list=['全部'];
- for(let i=0;i<res.data.data.length;i++){
- that.list.push(res.data.data[i].category_name)
- }
- that.listlx=res.data.data;
- }
- }else{
- that.list=[];
- that.listlx=[];
- }
- })
- },
- qiehuanFun(){
- uni.navigateTo({
- url: "/pages/qiehuan/index",
- })
- },
- gengmore(){
- var that=this;
- that.page=that.page+1;
- this.fenleichangeFun();
- },
- tianjia(){
- uni.navigateTo({
- url: "/pages/chuanghome/index",
- })
- }
- },
- }
- </script>
- <style lang="scss">
- /deep/ uni-scroll-view{
- height: auto !important;
- }
- /deep/ .tm-menubars .body{
- background-color: #1b1b1b !important;
- }
- .shangright{
- padding: 10px;
- }
- //
- .xiangji image{
- width: 30px;
- height: 22px;
- }
- .suosou image{
- width: 40px;
- }
- /deep/ .icon-search{
- font-size: 23px !important;
- color: #8E8E93 !important;
- }
- /deep/ .tm-search{
- width: 94%;
- margin: 0 auto;
- background-color: #414141 !important;
- border-radius: 10px;
- }
- /deep/ .tm-search .grey-darken-5{
- background-color: #414141 !important;
- }
- .dingwei{width: 92%;margin: 0 auto;margin-top: 20px;padding-bottom: 20px;}
- .dingwei image{width: 25px;margin-right: 10px; }
- .dingwei .touxiang{width: 50px;margin-right: 3px; }
- /deep/ .lunbo1{margin:0 !important;padding: 4px !important;margin-top: 5px !important;width: 46.6% !important;}
- .tuijiantp{width: 100%;}
- .tuijiantp image{width: 97% !important;}
- .yichu{margin:0 !important;padding: 4px !important;margin-top: 10px !important;}
- /deep/ .qiehuan .text-white{
- font-size: 14px;
- background: #303440;
- height: 28px;
- vertical-align: middle;
- line-height: 28px;
- border-radius: 20px;
- padding-left: 14px;
- padding-right: 14px;
- margin-top: 17%;
- }
- /deep/ .qiehuan .tm-tabs-con-item-border{display: none;}
- .yiguicla image{width: 95%;display: block;margin: 0 auto;margin-top: 5px;height: 90px;}
- .yiguicla{width: 30%;border-radius: 10px;}
- .more{text-align: center;}
- .more image{margin-right: 10px;vertical-align: middle;width: 30px;}
- .fudong{position:fixed;right:10px;bottom:150px;background: #303030;width: 130px;height: 60px;
- border-radius: 30px 0px 0px 30px;font-size: 14px;text-align: center;}
- .fudimg{width: 60px;height:60px}
- /deep/ .tcc .tm-poup-wk{width: 90% !important;position:relative;height: 580px !important;}
- /deep/ .tcc .uni-swiper-slides{width: 100%;}
- /deep/ .tcc uni-swiper{width: 100% !important;}
- /deep/ .uni-swiper-slides{width: 160px !important;}
- /deep/ .tcc uni-image{width: 160px !important;}
- .tcc .guayi{width: 90% !important;display: block;margin:0 auto;margin-top:15px !important;}
- .tcc .deng{width:25px !important;height:25px !important;vertical-align: middle;margin-right:8px;}
- .anniu{width: 80%;margin: 0 auto;margin-top: 20px;}
- /deep/ .anniu .gray.bk{color: white !important;}
- .aniOn{
- animation:doudong 0.5s linear infinite;
- background:linear-gradient();
- background: -webkit-linear-gradient();
- }
- @keyframes doudong {
- 0%{
- transform: rotate(-2deg) translateX(2rpx) translateY(2rpx);
- }
- 25%{
- transform: rotate(0deg) translateX(-2rpx) translateY(-2rpx);
- }
- 50%{
- transform: rotate(0deg) translateX(0rpx) translateY(-2rpx);
- }
- 75%{
- transform: rotate(0deg) translateX(0rpx) translateY(2rpx);
- }
- 100%{
- transform: rotate(-2deg) translateX(2rpx) translateY(2rpx);
- }
- }
- </style>
|