|
@@ -74,7 +74,7 @@
|
|
|
</tm-sheet>
|
|
|
</view>
|
|
|
<!-- 待取衣服 -->
|
|
|
- <tm-flotbutton class="qiu" show-actions position="bottomLeft" actions-pos="top" label="" :show-text="true"
|
|
|
+ <tm-flotbutton class="qiu" @change="anniu" show-actions position="bottomRight" actions-pos="top" label="" :show-text="true"
|
|
|
:actions="listqiu"></tm-flotbutton>
|
|
|
<!-- <css-float-ball v-model="floatBallPosition" >
|
|
|
<view class="float-ball-icon" hover-class="default-icon-hover">
|
|
@@ -89,23 +89,25 @@
|
|
|
</css-float-ball> -->
|
|
|
<!-- 弹出 -->
|
|
|
<tm-poup v-model="show_1" :position="pos" class="tcc">
|
|
|
- <view style="position: relative !important;">
|
|
|
+ <view style="position: relative !important;" v-if="chukudata.length !=0">
|
|
|
<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>
|
|
|
+ <tm-swiper @change="qiehuanLb" :current="current" :indicator-dots="false" :round="6" :ani3d="190" :autoplay="false" :list="list1"></tm-swiper>
|
|
|
+ <view class="text-white text-align-center mt-15">{{chukudata[current].brand}}{{chukudata[current].color}}{{chukudata[current].goods_name}}</view>
|
|
|
+ <view class="text-white text-align-center mt-10 text-size-s">{{chukudata[current].description}}</view>
|
|
|
+ <image class="guayi" :src="chukudata[current].ygimage" mode="widthFix"></image>
|
|
|
+ <view class="text-white text-align-center mt-15">衣物位于 {{chukudata[current].ygposition}} {{chukudata[current].is_have}}号衣柜</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>
|
|
|
+ <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>
|
|
|
+ <!-- 弹出层消息 -->
|
|
|
+ <tm-message ref="toast"></tm-message>
|
|
|
</view>
|
|
|
</template>
|
|
|
<script>
|
|
@@ -113,12 +115,8 @@ import{myRequest} from '@/api/request.js'
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
- listqiu:[
|
|
|
- {icon: '/static/img/96.png'},
|
|
|
- {icon: '/static/img/96.png'},
|
|
|
- {icon: '/static/img/96.png'}
|
|
|
- ],
|
|
|
- offset: [16, 50],
|
|
|
+ listqiu:[],
|
|
|
+ offset: [0, 0],
|
|
|
show_1:false,
|
|
|
pos:'center',
|
|
|
floatBallPosition:{x: 400, y: 750},
|
|
@@ -128,17 +126,15 @@ export default {
|
|
|
list:[],
|
|
|
listlx:[],
|
|
|
quanbuList:[],
|
|
|
- list1:[
|
|
|
- '../../static/img/100.png',
|
|
|
- '../../static/img/100.png',
|
|
|
- '../../static/img/100.png',
|
|
|
- ],
|
|
|
+ list1:[],
|
|
|
pagesize:6,
|
|
|
page:1,
|
|
|
total:0,
|
|
|
count:0,
|
|
|
have:0,
|
|
|
- offset: [16, 50]
|
|
|
+ chukudata:[],
|
|
|
+ current:0,
|
|
|
+ qiuid:''
|
|
|
};
|
|
|
},
|
|
|
onLoad() {
|
|
@@ -153,10 +149,57 @@ export default {
|
|
|
this.sys = uni.getSystemInfoSync();
|
|
|
this.getfenltext()
|
|
|
this.fenleichange();
|
|
|
+ this.getQiu()
|
|
|
},
|
|
|
methods: {
|
|
|
qingkong(){
|
|
|
- this.quanbuList=[];
|
|
|
+ this.fenleichange();
|
|
|
+ this.getfenltext();
|
|
|
+ },
|
|
|
+ qiehuanLb(e){
|
|
|
+ var that=this;
|
|
|
+ this.current=e;
|
|
|
+ },
|
|
|
+ anniu(e){
|
|
|
+ var that=this;
|
|
|
+ console.log(this.chukudata)
|
|
|
+ that.qiuid=that.listqiu[e].id;
|
|
|
+ myRequest({
|
|
|
+ url: "/api/Goods/getBallClothing",
|
|
|
+ method:'post',
|
|
|
+ data:{id:that.qiuid}
|
|
|
+ }).then(res => {
|
|
|
+ if (res.data.code == 200) {
|
|
|
+ that.current=0;
|
|
|
+ that.show_1=true;
|
|
|
+ that.chukudata=res.data.data;
|
|
|
+ that.list1=[];
|
|
|
+ for(let i=0;i<res.data.data.length;i++){
|
|
|
+ that.list1.push(res.data.data[i].image)
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ getQiu(){
|
|
|
+ var that=this;
|
|
|
+ myRequest({
|
|
|
+ url: "/api/Goods/getBall",
|
|
|
+ method:'post',
|
|
|
+ data:{}
|
|
|
+ }).then(res => {
|
|
|
+ if (res.data.code == 200) {
|
|
|
+ if(res.data.data.length != 0){
|
|
|
+ that.listqiu=res.data.data;
|
|
|
+ for(let i=0;i<that.listqiu.length;i++){
|
|
|
+ that.listqiu[i]["icon"]='/static/img/96.png'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ that.listqiu=[];
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
getList(){
|
|
|
var that=this;
|
|
@@ -181,7 +224,22 @@ export default {
|
|
|
this.show_1=false;
|
|
|
},
|
|
|
chuFun(){
|
|
|
- this.show_1=false;
|
|
|
+ var that=this;
|
|
|
+ myRequest({
|
|
|
+ url: "/api/Goods/cancelDelivery",
|
|
|
+ method:'post',
|
|
|
+ data:{qiu_id:that.qiuid,id:that.chukudata[that.current].id}
|
|
|
+ }).then(res => {
|
|
|
+ console.log(res.data)
|
|
|
+ if (res.data.code == 200) {
|
|
|
+ that.show_1=false;
|
|
|
+ that.getQiu()
|
|
|
+ that.$refs.toast.show({model:'success',label:res.data.msg})
|
|
|
+ }else{
|
|
|
+ that.$refs.toast.show({model:'error',label:res.data.msg})
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
},
|
|
|
chuangjian(){
|
|
|
uni.navigateTo({
|
|
@@ -210,7 +268,7 @@ export default {
|
|
|
},
|
|
|
sosoFun(){
|
|
|
uni.navigateTo({
|
|
|
- url: "/pages/shopsoso/index",
|
|
|
+ url: "/pages/sousuo/index",
|
|
|
})
|
|
|
},
|
|
|
fenleichange(){
|
|
@@ -342,7 +400,7 @@ export default {
|
|
|
/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 .guayi{width: 70% !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;}
|
|
@@ -371,4 +429,5 @@ export default {
|
|
|
/deep/ .qiu .flex-center{width: 45px !important;height:45px !important;background: none !important;}
|
|
|
/deep/ .qiu .flex-center uni-image{width: 45px !important;height:45px !important;}
|
|
|
/deep/ .showValue{display: none !important;}
|
|
|
+ /deep/ .menulistAction{height: 350px;overflow: auto;}
|
|
|
</style>
|