删除验证 #57
@ -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){
 | 
			
		||||
 | 
			
		||||
@ -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;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user