Explorar el Código

M币创建群聊

ck110 hace 2 semanas
padre
commit
be63b0ad6b
Se han modificado 3 ficheros con 23 adiciones y 4 borrados
  1. 2 1
      manifest.json
  2. 20 2
      pages/chat/newGroup.vue
  3. 1 1
      pages/index/peopleHome.vue

+ 2 - 1
manifest.json

@@ -28,7 +28,8 @@
 		/* 模块配置 */
 		"modules": {
 			"Push": {},
-			"Geolocation": {}
+			"Geolocation": {},
+			"Camera": {}
 		},
 		/* 应用发布信息 */
 		"distribute": {

+ 20 - 2
pages/chat/newGroup.vue

@@ -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>

+ 1 - 1
pages/index/peopleHome.vue

@@ -39,7 +39,7 @@
 					<image class="icon" src="../../static/me/ta_article_title.png" mode="widthFix">
 					</image>
 				</view>
-				<view class="more">
+				<view class="more" v-if="false">
 					更多
 					<image class="icon" src="../../static/me/arrow_right_gray.png" mode="widthFix">
 					</image>