|
|
@@ -155,9 +155,9 @@ export default {
|
|
|
sendId:null,
|
|
|
myid:"",
|
|
|
pushObj:null,
|
|
|
- wsAuth:"http://192.168.2.183:9881/plugin/webman/push/auth",
|
|
|
+ wsAuth:"http://192.168.3.16:9881/plugin/webman/push/auth",
|
|
|
// wsAuth:"https://panel.huiyinduo.cn/plugin/webman/push/auth",
|
|
|
- wsUrl: 'ws://192.168.2.183:3131',
|
|
|
+ wsUrl: 'ws://192.168.3.16:3131',
|
|
|
page:2,
|
|
|
size:10
|
|
|
}
|
|
|
@@ -417,7 +417,8 @@ export default {
|
|
|
this.pushList(message);
|
|
|
},
|
|
|
// 更多操作相关===============
|
|
|
- onMore(item) {
|
|
|
+ onMore(item) {
|
|
|
+ // console.log(item)
|
|
|
switch (item.type) {
|
|
|
case 'img':
|
|
|
this.sendImageMessage();
|
|
|
@@ -434,14 +435,19 @@ export default {
|
|
|
|
|
|
},
|
|
|
// 创建发送照片内容
|
|
|
- sendImageMessage() {
|
|
|
+ sendImageMessage() {
|
|
|
+ console.log('upload')
|
|
|
uni.chooseImage({
|
|
|
- count: 9,
|
|
|
+ count: 1,
|
|
|
+ sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
|
|
|
success: async (res) => {
|
|
|
res.tempFiles.forEach((file) => {
|
|
|
console.log(file);
|
|
|
this.createImageMessage(file);
|
|
|
});
|
|
|
+ },
|
|
|
+ fail(e) {
|
|
|
+ console.log("选择失败",e)
|
|
|
}
|
|
|
});
|
|
|
},
|