瀏覽代碼

游戏搭子加入

ZZ 2 天之前
父節點
當前提交
909675007c
共有 2 個文件被更改,包括 16 次插入2 次删除
  1. 15 1
      mer_uniapp/components/discoverDetails/index.vue
  2. 1 1
      mer_uniapp/pages/game_dazi/index.vue

+ 15 - 1
mer_uniapp/components/discoverDetails/index.vue

@@ -609,7 +609,21 @@ export default {
 			}
 		},
 		onJoin() {
-			this.$refs.joinDialog.open();
+			let that = this;
+			// this.$refs.joinDialog.open();
+			myGameJoinIdApi(that.noteDetails.id)
+			.then((res) => {
+				that.$util.Tips({
+					title: "加入成功",
+				});
+				that.noteDetails.userIsJoin = !that.noteDetails.userIsJoin;
+			})
+			.catch((err) => {
+				uni.showToast({
+					title: err,
+					icon: "none",
+				});
+			});
 		},
 		onJoinColse() {
 			let that = this;

+ 1 - 1
mer_uniapp/pages/game_dazi/index.vue

@@ -311,7 +311,7 @@
 		},
 		onShow() {
 			this.getHandInfo();
-			// this.reFresh()
+			this.reFresh();
 			this.showCateDrawer = false;
 			this.getTokenIsExist();
 			//分销绑定