This commit is contained in:
Gdpao 2020-08-15 19:09:29 +08:00
commit d1aaa525ed
4 changed files with 43 additions and 31 deletions

View File

@ -34,6 +34,9 @@ export default {
toDetailsPage() {
let type =0
let info = this.info
if(info.is_delete == 1){
return ;
}
if(info.goods_try_order_status==0){
type=1
}else if(info.goods_try_order_status==20){

View File

@ -4,17 +4,24 @@
<view class="tab-swiper">
<u-tabs :list="list" font-size="26" gutter="10" item-width="130" bar-width="120" active-color="#FF780F" :current="current" @change="tabsChange"></u-tabs>
</view>
<view class="order-list" v-if="current == 0">
<view v-for="(item, index) in allorder" :key="index"><OrderItem :info="item"></OrderItem></view>
<u-empty margin-top="20" v-if="!allorder.length" mode="order"></u-empty>
</view>
<view v-else-if="current == 1">
<view v-for="(item, index) in testlist" :key="index"><testList :info="item"></testList></view>
<u-empty margin-top="20" v-if="!testlist.length" mode="order"></u-empty>
</view>
<view v-else-if="current == 2">
<view v-for="(item, index) in worklist" :key="index"><OrderItem :info="item"></OrderItem></view>
<u-empty margin-top="20" v-if="!worklist.length" mode="order"></u-empty>
</view>
<view v-else-if="current == 3">
<view v-for="(item, index) in translist" :key="index"><OrderItem :info="item"></OrderItem></view>
<u-empty margin-top="20" v-if="!translist.length" mode="order"></u-empty>
</view>
<view v-else-if="current == 4">
<view class="complaint">
@ -41,11 +48,13 @@
<view v-for="(item, index) in finshlist" :key="index">
<OrderItem :info="item"></OrderItem>
</view>
<u-empty margin-top="20" v-if="!finshlist.length" mode="order"></u-empty>
</view>
<view v-else-if="current == 6">
<view v-for="(item, index) in badlist" :key="index">
<OrderItem :info="item"></OrderItem>
</view>
<u-empty margin-top="20" v-if="!badlist.length" mode="order"></u-empty>
</view>
<view class="release-btn" @click="publish">
<image src="../../static/image/index/publish.png"></image>
@ -147,7 +156,7 @@ export default {
this.getallorder(0);
const user = uni.getStorageSync('userinfo');
console.log(user)
this.imService.login(user.userId,user.member_avatar,"")
this.imService.login(user.userId,user.member_nickname,user.member_avatar)
this.imService.connectIM()
// 0: 1 2 3 4退/退 5退/退 6退/退
},
@ -285,7 +294,7 @@ export default {
getshiftlist() {
let that = this;
this.$u.api.getshiftlist({}).then(res => {
console.log(res);
console.log(JSON.stringify(res));
if (res.errCode != 0) {
this.$refs.uToast.show({
title: res.message,

View File

@ -75,7 +75,8 @@
},
shangchuan(){
uni.showLoading({
title: '上传中'
title: '上传中',
mask:true
});
},
tupian(){

View File

@ -19,9 +19,9 @@
<text>内容管理</text>
<image src="/static/image/user/1.png"></image>
</view>
<view class="release-btn" @click="publish">
<image src="../../static/image/index/publish.png"></image>
<view class="text">发布</view>
<view class="release-btn" @click="publish">
<image src="../../static/image/index/publish.png"></image>
<view class="text">发布</view>
</view>
<u-popup v-model="publishstate" mode="bottom">
<view class="publish">
@ -89,33 +89,33 @@ export default {
},
//
navto(url) {
//
if(url=="release/tosign"){
this.$u.api.canlive({}).then(res => {
console.log(res);
if (res.errCode != 0) {
this.$refs.uToast.show({
title: res.message,
type: 'error'
});
} else {
if(res.data.live_stataes==0){
this.$u.route({
url: `/pages/${url}`
});
}else{
this.$refs.uToast.show({
title: "当前用户没有直播权限",
type: 'error'
});
}
}
});
}else{
// //
// if(url=="release/tosign"){
// this.$u.api.canlive({}).then(res => {
// console.log(JSON.stringify(res));
// if (res.errCode != 0) {
// this.$refs.uToast.show({
// title: res.message,
// type: 'error'
// });
// } else {
// if(res.data.live_stataes==0){
// this.$u.route({
// url: `/pages/${url}`
// });
// }else{
// this.$refs.uToast.show({
// title: "",
// type: 'error'
// });
// }
// }
// });
// }else{
this.$u.route({
url: `/pages/${url}`
});
}
// }
}
@ -201,7 +201,6 @@ export default {
width: 110rpx;
height: 110rpx;
border-radius: 50%;
background-color: #0f0;
}
.name{
font-size: 24rpx;