|
|
|
@ -33,16 +33,36 @@ class _WebContent extends State<WebContent> {
|
|
|
|
|
@override |
|
|
|
|
Widget build(BuildContext context) { |
|
|
|
|
return Html( |
|
|
|
|
data: widget.activity != null |
|
|
|
|
? widget.activity.content |
|
|
|
|
: widget.article != null |
|
|
|
|
? widget.article.content |
|
|
|
|
: "", |
|
|
|
|
data: (widget.activity?.content??widget.article?.content??"")+"<a storeName=\"前进麦味烘焙*海峡姐妹茶(哈乐城店)\" storeId=\"1432164681279078400\" tenantCode=\"1175\" href=\"/\">立即购买</a><img storeName=\"前进麦味烘焙*海峡姐妹茶(哈乐城店)\" storeId=\"1432164681279078400\" tenantCode=\"1175\" src=\"https://pos.upload.gznl.top/MDAwMA==/2021/12/6edfe416-aaf9-4f0e-b2a4-4dc85db03489.jpg\" />", |
|
|
|
|
style: { |
|
|
|
|
"html": Style( |
|
|
|
|
backgroundColor: Colors.white |
|
|
|
|
) |
|
|
|
|
}, |
|
|
|
|
onLinkTap: (url, ct, attributes, element) { |
|
|
|
|
if(attributes.containsKey("storeid")){ |
|
|
|
|
Navigator.of(context).pushNamed( |
|
|
|
|
'/router/store_order', |
|
|
|
|
arguments: { |
|
|
|
|
"id": attributes["storeid"], |
|
|
|
|
"tenant": attributes["tenantcode"], |
|
|
|
|
"storeName": attributes["storename"] |
|
|
|
|
}, |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
onImageTap: (url,ct,attributes, element) { |
|
|
|
|
if(attributes.containsKey("storeid")){ |
|
|
|
|
Navigator.of(context).pushNamed( |
|
|
|
|
'/router/store_order', |
|
|
|
|
arguments: { |
|
|
|
|
"id": attributes["storeid"], |
|
|
|
|
"tenant": attributes["tenantcode"], |
|
|
|
|
"storeName": attributes["storename"] |
|
|
|
|
}, |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
customImageRenders: { |
|
|
|
|
assetUriMatcher(): assetImageRender(), |
|
|
|
|
networkSourceMatcher(extension: "svg"): |
|
|
|
|