massage
This commit is contained in:
@@ -46,6 +46,7 @@
|
||||
<view class="title">投诉简介</view>
|
||||
<textarea placeholder-style="color:#999999" placeholder="请输入内容" />
|
||||
</view>
|
||||
<!-- 事件 -->
|
||||
<view class="btn" @click="showComplaint=true">确定</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
@@ -65,7 +66,7 @@
|
||||
</scroll-view>
|
||||
</swiper-item>
|
||||
</swiper>
|
||||
<view class="release-btn">
|
||||
<view class="release-btn" @click="publish">
|
||||
<image src="/static/home/1.png"></image>
|
||||
<view class="text" @click="release()">发布</view>
|
||||
</view>
|
||||
@@ -76,7 +77,26 @@
|
||||
<view>投诉成功</view>
|
||||
<view>请等待审核结果</view>
|
||||
</view>
|
||||
<view class="btn">确认</view>
|
||||
<view class="btn" @click="showComplaint = false">确认</view>
|
||||
</view>
|
||||
</u-popup>
|
||||
<u-popup v-model="publishstate" mode="bottom">
|
||||
<view class="publish">
|
||||
<view class="list">
|
||||
<view @click="navto('release/tosign')">
|
||||
<image></image>
|
||||
<text>直播</text>
|
||||
</view>
|
||||
<view @click="navto('release/index')">
|
||||
<image></image>
|
||||
<text>图文</text>
|
||||
</view>
|
||||
<view @click="navto('release/video')">
|
||||
<image></image>
|
||||
<text>视频</text>
|
||||
</view>
|
||||
</view>
|
||||
<image class="off"></image>
|
||||
</view>
|
||||
</u-popup>
|
||||
</view>
|
||||
@@ -136,7 +156,8 @@ export default {
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
],
|
||||
publishstate:true
|
||||
}
|
||||
},
|
||||
components: {
|
||||
@@ -146,6 +167,9 @@ export default {
|
||||
|
||||
},
|
||||
methods: {
|
||||
publish(){
|
||||
|
||||
},
|
||||
setWorker(e) {
|
||||
// console.log(e);
|
||||
this.worker = {
|
||||
@@ -155,9 +179,10 @@ export default {
|
||||
},
|
||||
// 发布页面跳转
|
||||
release(){
|
||||
uni.navigateTo({
|
||||
url: '/pages/release/tosign'
|
||||
});
|
||||
// uni.navigateTo({
|
||||
// url: '/pages/release/tosign'
|
||||
// });
|
||||
this.publishstate = true
|
||||
},
|
||||
tabsChange(index) {
|
||||
this.swiperCurrent = index;
|
||||
@@ -168,6 +193,15 @@ export default {
|
||||
this.swiperCurrent = current;
|
||||
this.current = current;
|
||||
},
|
||||
navto(url){
|
||||
this.$u.route({
|
||||
url:`/pages/${url}`
|
||||
})
|
||||
// console.log(`/pages/${url}`)
|
||||
// uni.navigateTo({
|
||||
// url: `/pages/${url}`
|
||||
// });
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -309,5 +343,41 @@ export default {
|
||||
margin: 0 auto;
|
||||
}
|
||||
}
|
||||
.publish{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 50rpx 84rpx 31rpx 78rpx;
|
||||
image{
|
||||
background-color: #0f0;
|
||||
}
|
||||
.list{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
width: 100%;
|
||||
>view{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
>image{
|
||||
width: 94rpx;
|
||||
height: 80rpx;
|
||||
}
|
||||
>text{
|
||||
margin-top: 10rpx;
|
||||
font-size: 28rpx;
|
||||
color: #333;
|
||||
font-weight: 400;
|
||||
}
|
||||
}
|
||||
}
|
||||
.off{
|
||||
margin-top: 81rpx;
|
||||
width: 37rpx;
|
||||
height: 37rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -9,15 +9,16 @@
|
||||
<view class="title">账号登录</view>
|
||||
<view class="labales">
|
||||
<image src=""></image>
|
||||
<input type="tel" placeholder="请输入账号" />
|
||||
<input v-model="zhanghao" type="tel" placeholder="请输入账号" />
|
||||
</view>
|
||||
<view class="labales">
|
||||
<image src=""></image>
|
||||
<input type="password" placeholder="请输入密码" />
|
||||
<input v-model="mima" type="password" placeholder="请输入密码" />
|
||||
</view>
|
||||
</view>
|
||||
<!-- denglu QQ weixin -->
|
||||
<u-button>{{login}}</u-button>
|
||||
<u-button @click="logins">{{login}}</u-button>
|
||||
<u-toast ref="uToast" />
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -32,6 +33,8 @@
|
||||
value: '',
|
||||
login: '登录',
|
||||
show: false,
|
||||
zhanghao:"",
|
||||
mima:""
|
||||
|
||||
};
|
||||
},
|
||||
@@ -54,6 +57,34 @@
|
||||
},
|
||||
loading(){
|
||||
|
||||
},
|
||||
logins(){
|
||||
this.$u.api.login({member_name:this.zhanghao,member_password:this.mima}).then((res)=>{
|
||||
console.log(res)
|
||||
if(res.errCode != 0){
|
||||
this.$refs.uToast.show({
|
||||
title: res.message,
|
||||
type: 'error'
|
||||
})
|
||||
}else{
|
||||
uni.setStorageSync("token",res.data.token)
|
||||
uni.setStorageSync("userinfo",res.data)
|
||||
this.$u.route({
|
||||
url:"/pages/index/index",
|
||||
type:"switchTab"
|
||||
})
|
||||
}
|
||||
|
||||
})
|
||||
}
|
||||
},
|
||||
onLoad(){
|
||||
let token = uni.getStorageSync('token');
|
||||
|
||||
if(token != undefined && token){
|
||||
this.$u.route({
|
||||
url:"/pages/index/index"
|
||||
})
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
</u-form-item>
|
||||
</u-form>
|
||||
<!-- 标签的引入 -->
|
||||
<tap_tosign></tap_tosign>
|
||||
<tap_tosign :fileListes="fileListes"></tap_tosign>
|
||||
<view class="titles">直播封面图</view>
|
||||
<u-upload :max-count="1" :show-progress="true" del-color="#ececec" upload-text="上传" del-bg-color="#fff"></u-upload>
|
||||
</view>
|
||||
@@ -56,7 +56,8 @@
|
||||
max : '优秀的标题可以卖的更好哦~',
|
||||
titleMaxLength : '20',
|
||||
show: false,
|
||||
relerest: '开始直播'
|
||||
relerest: '开始直播',
|
||||
fileListes:[]
|
||||
|
||||
};
|
||||
},
|
||||
@@ -89,6 +90,12 @@
|
||||
this.max = String(this.max).slice(0, this.titleMaxLength);
|
||||
}
|
||||
}
|
||||
},
|
||||
onLoad(){
|
||||
this.$u.api.getLiveSpec().then((res)=>{
|
||||
console.log(res)
|
||||
this.fileListes = res.data
|
||||
})
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user