Merge pull request 'gdpao' (#89) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/89
This commit was merged in pull request #89.
This commit is contained in:
@@ -137,7 +137,8 @@ export default {
|
||||
selectarr: [], //选中标签
|
||||
tagcontent: '',
|
||||
is_edit: false, // 编辑
|
||||
userinfo:{}
|
||||
userinfo:{},
|
||||
device: null, // 手机信息
|
||||
};
|
||||
},
|
||||
onLoad() {
|
||||
@@ -146,6 +147,9 @@ export default {
|
||||
|
||||
this.tosign();
|
||||
this.getLiveSpec();
|
||||
|
||||
this.device = uni.getSystemInfoSync(); // 获取信息
|
||||
console.log(this.device);
|
||||
},
|
||||
methods: {
|
||||
publish() {
|
||||
@@ -277,7 +281,18 @@ export default {
|
||||
},
|
||||
// 上传封面
|
||||
uploadcover(data) {
|
||||
console.log(data);
|
||||
// console.log(data.data);
|
||||
// #ifdef APP-PLUS
|
||||
plus.io.getImageInfo({
|
||||
src: data.data.file_path,
|
||||
success: (res) => {
|
||||
console.log(res);
|
||||
},
|
||||
fail: (err) => {
|
||||
console.log(err);
|
||||
}
|
||||
})
|
||||
// #endif
|
||||
if (data.errCode != 0) {
|
||||
this.$refs.uToast.show({
|
||||
title: '上传失败',
|
||||
|
||||
Reference in New Issue
Block a user