shish 6 anni fa
parent
commit
ca696248bc
1 ha cambiato i file con 4 aggiunte e 5 eliminazioni
  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
+				});
 			});
 		}
 	}