|
@@ -29,7 +29,7 @@
|
|
|
}
|
|
|
},
|
|
|
onLoad(parms) {
|
|
|
- this.type = parms.type || "joinGroup"
|
|
|
+ this.type = parms.type || "newGroup"
|
|
|
},
|
|
|
onShow() {},
|
|
|
methods: {
|
|
@@ -42,6 +42,24 @@
|
|
|
});
|
|
|
return;
|
|
|
}
|
|
|
+ let that = this;
|
|
|
+ if (this.type == 'newGroup') {
|
|
|
+ this.$refs['DialogBox'].confirm({
|
|
|
+ title: '提示',
|
|
|
+ content: '是否确定消耗100M币创建群聊',
|
|
|
+ DialogType: 'inquiry',
|
|
|
+ btn1: '否',
|
|
|
+ btn2: '是',
|
|
|
+ animation: 0
|
|
|
+ }).then((res) => {
|
|
|
+ that.submitData2();
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ that.submitData2();
|
|
|
+ }
|
|
|
+ },
|
|
|
+ submitData2() {
|
|
|
+
|
|
|
uni.request({
|
|
|
url: this.$apiHost2 + '/Chat/groupAction', //仅为示例,并非真实接口地址。
|
|
|
data: {
|
|
@@ -65,7 +83,7 @@
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
- },
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</script>
|