shish 6 лет назад
Родитель
Сommit
ca696248bc
1 измененных файлов с 4 добавлено и 5 удалено
  1. 4 5
      saas/src/saas/shop/list.vue

+ 4 - 5
saas/src/saas/shop/list.vue

@@ -345,11 +345,10 @@ export default {
 			this.wxPayDialog = false;
 		},
 		getH5MallQrCode(id) {
-			MerchantService.getH5MallQrCode(1).then(res=>{
-				console.log(res)
-			})
-			this.$alert('<strong>这是 <i>HTML</i> 片段</strong>', 'H5商城', {
-				dangerouslyUseHTMLString: true
+			MerchantService.getH5MallQrCode(id).then(res => {
+				this.$alert("<img src='"+res.imgUrl+"' style='width:200px;margin:0 auto;' />", 'H5商城', {
+					dangerouslyUseHTMLString: true
+				});
 			});
 		}
 	}