This commit is contained in:
cmxdd 2020-08-10 19:06:34 +08:00
commit e223fd5ff9

View File

@ -62,7 +62,8 @@
fileListes:[], fileListes:[],
rSelect:[], rSelect:[],
image:"", image:"",
token:"" token:"",
tiaozhuan:false
}; };
}, },
methods: { methods: {
@ -80,6 +81,7 @@
tupian(){ tupian(){
uni.hideLoading() uni.hideLoading()
}, },
sccg() {},
// checkbox // checkbox
checkboxChange(e) { checkboxChange(e) {
//console.log(e); //console.log(e);
@ -106,8 +108,11 @@
this.init() this.init()
}, },
tupian(a){ tupian(a){
console.log(JSON.parse(a.data)) // console.log(JSON.parse(a.data));
this.image = JSON.parse(a.data).data.file_name let info = JSON.parse(a.data);
console.log(info.data.file_path);
// console.log(JSON.stringify(a.data))
this.image = info.data.file_path;
}, },
navto(url){ navto(url){
this.$u.route({ this.$u.route({
@ -115,6 +120,10 @@
}) })
}, },
kaibo(){ kaibo(){
if(this.tiaozhuan){
return ;
}
this.tiaozhuan = true
this.$u.api.createChatRoom({ this.$u.api.createChatRoom({
chat_name:this.max, chat_name:this.max,
live_desc:this.form.text, live_desc:this.form.text,
@ -128,6 +137,7 @@
title: res.message, title: res.message,
type: 'error' type: 'error'
}); });
this.tiaozhuan = false
} }
this.$u.route({ this.$u.route({
url:"/pages/release/zhibo", url:"/pages/release/zhibo",