Commit b52067b0dcf6d20971d44e5c1d4a3fc39491912e
1 parent
115c28f7
条码库太阳码参数预览
Showing
1 changed file
with
6 additions
and
1 deletions
packageE/pages/barCodeBank/barCodeBank.js
@@ -124,13 +124,18 @@ Page({ | @@ -124,13 +124,18 @@ Page({ | ||
124 | if (!g[i].goods_content) g[i].goods_content = " "; | 124 | if (!g[i].goods_content) g[i].goods_content = " "; |
125 | a.wxParse("content", "html", ut.format_content(g[i].goods_content), ee, 6); | 125 | a.wxParse("content", "html", ut.format_content(g[i].goods_content), ee, 6); |
126 | e.wxParseAddFullImageUrl(ee, "content"); | 126 | e.wxParseAddFullImageUrl(ee, "content"); |
127 | + if(g[0].listvideo.length>0){ | ||
128 | + var mapurl =g[0].listvideo[0].video_url | ||
129 | + }else{ | ||
130 | + var mapurl="" | ||
131 | + } | ||
127 | 132 | ||
128 | ee.setData({ | 133 | ee.setData({ |
129 | gallery: gallery, | 134 | gallery: gallery, |
130 | is_collect: is_collect, | 135 | is_collect: is_collect, |
131 | supportPageScroll: !0, | 136 | supportPageScroll: !0, |
132 | mapurl_f_img: g[0].spec_img, | 137 | mapurl_f_img: g[0].spec_img, |
133 | - mapurl: g[0].listvideo[0].video_url, | 138 | + mapurl: mapurl, |
134 | data:g[0] | 139 | data:g[0] |
135 | }); | 140 | }); |
136 | } | 141 | } |