|  | @ -9,7 +9,7 @@ | 
														
													
														
															
																|  |  |  |  |  |  | 
														
													
														
															
																|  |  | <image |  |  | <image | 
														
													
														
															
																|  |  | class="image" |  |  | class="image" | 
														
													
														
															
																|  |  | :src="imagePath" mode="aspectFill"></image> |  |  |  | 
														
													
														
															
																|  |  |  |  |  | :src="promotionUrl" mode="aspectFill"></image> | 
														
													
														
															
																|  |  |  |  |  |  | 
														
													
														
															
																|  |  | <canvas id="myCanvas" type="2d" canvas-id="firstCanvas1"></canvas> |  |  | <canvas id="myCanvas" type="2d" canvas-id="firstCanvas1"></canvas> | 
														
													
														
															
																|  |  |  |  |  |  | 
														
													
												
													
														
															
																|  | @ -36,7 +36,8 @@ import index from '../../uni_modules/uv-ui-tools' | 
														
													
														
															
																|  |  | title: '', |  |  | title: '', | 
														
													
														
															
																|  |  | baseUrl: 'https://image.hhlm1688.com/', |  |  | baseUrl: 'https://image.hhlm1688.com/', | 
														
													
														
															
																|  |  | canvas: {}, |  |  | canvas: {}, | 
														
													
														
															
																|  |  | imagePath: 'https://image.hhlm1688.com/2025-03-06/32fbb8e2-160b-4cbf-9a49-a72de231de20.png', |  |  |  | 
														
													
														
															
																|  |  |  |  |  | imagePath : '', | 
														
													
														
															
																|  |  |  |  |  | // imagePath: 'https://image.hhlm1688.com/2025-03-06/32fbb8e2-160b-4cbf-9a49-a72de231de20.png', | 
														
													
														
															
																|  |  | // imagePath: 'https://image.hhlm1688.com/2025-02-27/2fe7e417-54ad-4911-b9ba-84ac7d48e66d.png', |  |  | // imagePath: 'https://image.hhlm1688.com/2025-02-27/2fe7e417-54ad-4911-b9ba-84ac7d48e66d.png', | 
														
													
														
															
																|  |  | // imagePath: 'https://image.hhlm1688.com/2025-02-26/6539d2fa-558d-47db-9681-ecffec5b6c5d.png', |  |  | // imagePath: 'https://image.hhlm1688.com/2025-02-26/6539d2fa-558d-47db-9681-ecffec5b6c5d.png', | 
														
													
														
															
																|  |  | index : 0, |  |  | index : 0, | 
														
													
												
													
														
															
																|  | @ -45,30 +46,47 @@ import index from '../../uni_modules/uv-ui-tools' | 
														
													
														
															
																|  |  | onShow() { |  |  | onShow() { | 
														
													
														
															
																|  |  | let that = this; |  |  | let that = this; | 
														
													
														
															
																|  |  | // that.draw() |  |  | // that.draw() | 
														
													
														
															
																|  |  | // if(!that.promotionUrl){ |  |  |  | 
														
													
														
															
																|  |  |  |  |  | if(!that.promotionUrl){ | 
														
													
														
															
																|  |  | // that.getQrCode() |  |  | // that.getQrCode() | 
														
													
														
															
																|  |  | // 	uni.showLoading({ |  |  |  | 
														
													
														
															
																|  |  | // 		title: "拼命绘画中..." |  |  |  | 
														
													
														
															
																|  |  | // 	}) |  |  |  | 
														
													
														
															
																|  |  | // } |  |  |  | 
														
													
														
															
																|  |  |  |  |  | this.getImageInfo() | 
														
													
														
															
																|  |  |  |  |  | } | 
														
													
														
															
																|  |  | // that.$store.commit('getUserInfo') |  |  | // that.$store.commit('getUserInfo') | 
														
													
														
															
																|  |  | }, |  |  | }, | 
														
													
														
															
																|  |  | methods: { |  |  | methods: { | 
														
													
														
															
																|  |  |  |  |  | getImageInfo(){ | 
														
													
														
															
																|  |  |  |  |  | let that = this; | 
														
													
														
															
																|  |  |  |  |  | uni.showLoading({ | 
														
													
														
															
																|  |  |  |  |  | title: "拼命绘画中..." | 
														
													
														
															
																|  |  |  |  |  | }) | 
														
													
														
															
																|  |  |  |  |  | uni.getImageInfo({ | 
														
													
														
															
																|  |  |  |  |  | src: `${this.$config.baseUrl}/info_common/getInviteCode?token=${uni.getStorageSync('token')}`, | 
														
													
														
															
																|  |  |  |  |  | success : res => { | 
														
													
														
															
																|  |  |  |  |  | uni.hideLoading() | 
														
													
														
															
																|  |  |  |  |  | that.$store.commit('setPromotionUrl', res.path) | 
														
													
														
															
																|  |  |  |  |  | }, | 
														
													
														
															
																|  |  |  |  |  | fail : err => { | 
														
													
														
															
																|  |  |  |  |  | uni.showToast({ | 
														
													
														
															
																|  |  |  |  |  | icon: 'none', | 
														
													
														
															
																|  |  |  |  |  | title: '绘画失败', | 
														
													
														
															
																|  |  |  |  |  | }) | 
														
													
														
															
																|  |  |  |  |  | } | 
														
													
														
															
																|  |  |  |  |  | }) | 
														
													
														
															
																|  |  |  |  |  | }, | 
														
													
														
															
																|  |  | getQrCode() { |  |  | getQrCode() { | 
														
													
														
															
																|  |  | // uni.showLoading({ |  |  |  | 
														
													
														
															
																|  |  | // 	title: "拼命绘画中..." |  |  |  | 
														
													
														
															
																|  |  | // }) |  |  |  | 
														
													
														
															
																|  |  |  |  |  | uni.showLoading({ | 
														
													
														
															
																|  |  |  |  |  | title: "拼命绘画中..." | 
														
													
														
															
																|  |  |  |  |  | }) | 
														
													
														
															
																|  |  | let that = this; |  |  | let that = this; | 
														
													
														
															
																|  |  | that.$api('getInviteCode', res => { |  |  | that.$api('getInviteCode', res => { | 
														
													
														
															
																|  |  | if (res.code == 200) { |  |  | if (res.code == 200) { | 
														
													
														
															
																|  |  | that.url = res.result.url |  |  | that.url = res.result.url | 
														
													
														
															
																|  |  | that.title = res.result.name |  |  | that.title = res.result.name | 
														
													
														
															
																|  |  |  |  |  |  | 
														
													
														
															
																|  |  | // that.imagePath = that.$config.aliOss.url + res.result.url |  |  |  | 
														
													
														
															
																|  |  |  |  |  | that.imagePath = that.$config.aliOss.url + res.result.url | 
														
													
														
															
																|  |  |  |  |  |  | 
														
													
														
															
																|  |  | // that.$store.commit('setPromotionUrl', that.imagePath) |  |  |  | 
														
													
														
															
																|  |  |  |  |  | that.$store.commit('setPromotionUrl', that.imagePath) | 
														
													
														
															
																|  |  |  |  |  |  | 
														
													
														
															
																|  |  | that.draw() |  |  |  | 
														
													
														
															
																|  |  |  |  |  | // that.draw() | 
														
													
														
															
																|  |  | uni.hideLoading() |  |  | uni.hideLoading() | 
														
													
														
															
																|  |  | } |  |  | } | 
														
													
														
															
																|  |  | }) |  |  | }) | 
														
													
												
													
														
															
																|  | 
 |