| | |
| | | <view class="but"> |
| | | <u-button class="custom-style" type="primary" @click="inits"> 我发布</u-button> |
| | | </view> |
| | | <u-toast ref="uToast" /> |
| | | <u-tabbar :list="tabs" :mid-button="true"></u-tabbar> |
| | | </view> |
| | | </template> |
| | |
| | | inits() { |
| | | var datas = this.form; |
| | | var that = this; |
| | | |
| | | if(this.$store.state.UserData.stype != "1"){ |
| | | this.$refs.uToast.show({ |
| | | title: '功能暂未开放', |
| | | type: 'warning', |
| | | }); |
| | | return; |
| | | } |
| | | |
| | | var content = ""; |
| | | var videoUrl = ""; |
| | | if(datas.c == "文字类"){ |
| | | datas.c = "kxw" |
| | | datas.c = "hyq004" |
| | | content = datas.g; |
| | | }else{ |
| | | datas.c = "ksp" |
| | | datas.c = "hyq004" |
| | | videoUrl = that.videos |
| | | } |
| | | |
| | |
| | | publish: 0, |
| | | url:that.fileList[0].url, |
| | | videoUrl:videoUrl, |
| | | sourceName:"群众", |
| | | content:content |
| | | sourceName:uni.getStorageSync("name"), |
| | | sourceId:uni.getStorageSync("ids"), |
| | | content:content, |
| | | type:"1" |
| | | }, |
| | | success: (res) => { |
| | | if (res.data.code == 200) { |