ZZ 1 hete
szülő
commit
6fac0351d0

+ 4 - 2
mer_uniapp/components/discoverDetails/index.vue

@@ -571,6 +571,7 @@
 				this.$refs.codeRef.open('bottom')
 			},
 			onScan() {
+				let that = this;
 				// 只允许通过相机扫码
 				uni.scanCode({
 					onlyFromCamera: false,
@@ -578,16 +579,17 @@
 					success: function(res) {
 						console.log('条码类型:' + res.scanType);
 						console.log('条码内容:' + res.result);
-						let that = this;
 						setTimeout(function() {
 							uni.navigateTo({
-								url: res.result
+								url: `/pages/game_dazi/code_content/index?link=${res.result}`
 							});
 						}, 1000);
 						myGameJoinIdApi(that.noteDetails.id).then(res => {
 							that.$util.Tips({
 								title: '加入成功'
 							});
+							that.$refs.joinDialog.close();
+							that.$refs.codeRef.close();
 						}).catch(err => {
 							uni.showToast({
 								title: err,

+ 7 - 0
mer_uniapp/pages.json

@@ -572,6 +572,13 @@
 					"navigationStyle": "custom",
 					"enablePullDownRefresh": false
 				}
+			}, {
+				"path": "code_content/index",
+				"style": {
+					"navigationBarTitleText": "详情",
+					"navigationStyle": "custom",
+					"enablePullDownRefresh": false
+				}
 			}]
 		},
 		{

+ 28 - 0
mer_uniapp/pages/game_dazi/code_content/index.vue

@@ -0,0 +1,28 @@
+<template>
+	<web-view :src="src"></web-view>
+</template>
+
+<script>
+	// +----------------------------------------------------------------------
+	// | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
+	// +----------------------------------------------------------------------
+	// | Copyright (c) 2016~2025 https://www.crmeb.com All rights reserved.
+	// +----------------------------------------------------------------------
+	// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
+	// +----------------------------------------------------------------------
+	// | Author: CRMEB Team <admin@crmeb.com>
+	// +----------------------------------------------------------------------
+	export default {
+		data() {
+			return {
+				src: '',
+			};
+		},
+		onLoad(option) {
+			this.src = option.link || '';
+		},
+	}
+</script>
+
+<style lang="scss">
+</style>