jquery-3.5.1.min.js 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694
  1. ! function(e, n) {
  2. "object" == typeof exports && "object" == typeof module ? module.exports = n(e) : "function" == typeof define && (
  3. define.amd || define.cmd) ? define(function() {
  4. return n(e)
  5. }) : n(e, !0)
  6. }(window, function(o, e) {
  7. function c(n, e, i) {
  8. o.WeixinJSBridge ? WeixinJSBridge.invoke(n, r(e), function(e) {
  9. a(n, e, i)
  10. }) : d(n, i)
  11. }
  12. function i(n, i, t) {
  13. o.WeixinJSBridge ? WeixinJSBridge.on(n, function(e) {
  14. t && t.trigger && t.trigger(e), a(n, e, i)
  15. }) : d(n, t || i)
  16. }
  17. function r(e) {
  18. return (e = e || {}).appId = M.appId, e.verifyAppId = M.appId, e.verifySignType = "sha1", e.verifyTimestamp = M.timestamp +
  19. "", e.verifyNonceStr = M.nonceStr, e.verifySignature = M.signature, e
  20. }
  21. function n(e) {
  22. return {
  23. timeStamp: e.timestamp + "",
  24. nonceStr: e.nonceStr,
  25. package: e.package,
  26. paySign: e.paySign,
  27. signType: e.signType || "SHA1"
  28. }
  29. }
  30. function a(e, n, i) {
  31. "openEnterpriseChat" == e && (n.errCode = n.err_code), delete n.err_code, delete n.err_desc, delete n.err_detail;
  32. var t = n.errMsg;
  33. t || (t = n.err_msg, delete n.err_msg, t = function(e, n) {
  34. var i = e,
  35. t = f[i];
  36. t && (i = t);
  37. var o = "ok";
  38. if (n) {
  39. var r = n.indexOf(":");
  40. "confirm" == (o = n.substring(r + 1)) && (o = "ok"), "failed" == o && (o = "fail"), -1 != o.indexOf("failed_") &&
  41. (o = o.substring(7)), -1 != o.indexOf("fail_") && (o = o.substring(5)), "access denied" != (o = (o = o.replace(
  42. /_/g, " ")).toLowerCase()) && "no permission to execute" != o || (o = "permission denied"), "config" == i &&
  43. "function not exist" == o && (o = "ok"), "" == o && (o = "fail")
  44. }
  45. return n = i + ":" + o
  46. }(e, t), n.errMsg = t), (i = i || {})._complete && (i._complete(n), delete i._complete), t = n.errMsg || "", M.debug &&
  47. !i.isInnerInvoke && alert(JSON.stringify(n));
  48. var o = t.indexOf(":");
  49. switch (t.substring(o + 1)) {
  50. case "ok":
  51. i.success && i.success(n);
  52. break;
  53. case "cancel":
  54. i.cancel && i.cancel(n);
  55. break;
  56. default:
  57. i.fail && i.fail(n)
  58. }
  59. i.complete && i.complete(n)
  60. }
  61. function s(e) {
  62. if (e) {
  63. for (var n = 0, i = e.length; n < i; ++n) {
  64. var t = e[n],
  65. o = p[t];
  66. o && (e[n] = o)
  67. }
  68. return e
  69. }
  70. }
  71. function d(e, n) {
  72. if (!(!M.debug || n && n.isInnerInvoke)) {
  73. var i = f[e];
  74. i && (e = i), n && n._complete && delete n._complete, console.log('"' + e + '",', n || "")
  75. }
  76. }
  77. function l() {
  78. return (new Date).getTime()
  79. }
  80. function u(e) {
  81. I && (o.WeixinJSBridge ? e() : t.addEventListener && t.addEventListener("WeixinJSBridgeReady", e, !1))
  82. }
  83. if (!o.jWeixin) {
  84. var p = {
  85. config: "preVerifyJSAPI",
  86. onMenuShareTimeline: "menu:share:timeline",
  87. onMenuShareAppMessage: "menu:share:appmessage",
  88. onMenuShareQQ: "menu:share:qq",
  89. onMenuShareWeibo: "menu:share:weiboApp",
  90. onMenuShareQZone: "menu:share:QZone",
  91. previewImage: "imagePreview",
  92. getLocation: "geoLocation",
  93. openProductSpecificView: "openProductViewWithPid",
  94. addCard: "batchAddCard",
  95. openCard: "batchViewCard",
  96. chooseWXPay: "getBrandWCPayRequest",
  97. openEnterpriseRedPacket: "getRecevieBizHongBaoRequest",
  98. startSearchBeacons: "startMonitoringBeacons",
  99. stopSearchBeacons: "stopMonitoringBeacons",
  100. onSearchBeacons: "onBeaconsInRange",
  101. consumeAndShareCard: "consumedShareCard",
  102. openAddress: "editAddress"
  103. },
  104. f = function() {
  105. var e = {};
  106. for (var n in p) e[p[n]] = n;
  107. return e
  108. }(),
  109. t = o.document,
  110. m = t.title,
  111. g = navigator.userAgent.toLowerCase(),
  112. h = navigator.platform.toLowerCase(),
  113. v = !(!h.match("mac") && !h.match("win")),
  114. S = -1 != g.indexOf("wxdebugger"),
  115. I = -1 != g.indexOf("micromessenger"),
  116. y = -1 != g.indexOf("android"),
  117. _ = -1 != g.indexOf("iphone") || -1 != g.indexOf("ipad"),
  118. w = (O = g.match(/micromessenger\/(\d+\.\d+\.\d+)/) || g.match(/micromessenger\/(\d+\.\d+)/)) ? O[1] : "",
  119. k = {
  120. initStartTime: l(),
  121. initEndTime: 0,
  122. preVerifyStartTime: 0,
  123. preVerifyEndTime: 0
  124. },
  125. T = {
  126. version: 1,
  127. appId: "",
  128. initTime: 0,
  129. preVerifyTime: 0,
  130. networkType: "",
  131. isPreVerifyOk: 1,
  132. systemType: _ ? 1 : y ? 2 : -1,
  133. clientVersion: w,
  134. url: encodeURIComponent(location.href)
  135. },
  136. M = {},
  137. P = {
  138. _completes: []
  139. },
  140. x = {
  141. state: 0,
  142. data: {}
  143. };
  144. u(function() {
  145. k.initEndTime = l()
  146. });
  147. var A = !1,
  148. V = [],
  149. C = {
  150. config: function(e) {
  151. d("config", M = e);
  152. var t = !1 !== M.check;
  153. u(function() {
  154. if (t) c(p.config, {
  155. verifyJsApiList: s(M.jsApiList)
  156. }, function() {
  157. P._complete = function(e) {
  158. k.preVerifyEndTime = l(), x.state = 1, x.data = e
  159. }, P.success = function(e) {
  160. T.isPreVerifyOk = 0
  161. }, P.fail = function(e) {
  162. P._fail ? P._fail(e) : x.state = -1
  163. };
  164. var t = P._completes;
  165. return t.push(function() {
  166. ! function(e) {
  167. if (!(v || S || M.debug || w < "6.0.2" || T.systemType < 0)) {
  168. var i = new Image;
  169. T.appId = M.appId, T.initTime = k.initEndTime - k.initStartTime, T.preVerifyTime = k.preVerifyEndTime -
  170. k.preVerifyStartTime, C.getNetworkType({
  171. isInnerInvoke: !0,
  172. success: function(e) {
  173. T.networkType = e.networkType;
  174. var n = "https://open.weixin.qq.com/sdk/report?v=" + T.version + "&o=" + T.isPreVerifyOk + "&s=" +
  175. T.systemType + "&c=" + T.clientVersion + "&a=" + T.appId + "&n=" + T.networkType + "&i=" + T.initTime +
  176. "&p=" + T.preVerifyTime + "&u=" + T.url;
  177. i.src = n
  178. }
  179. })
  180. }
  181. }()
  182. }), P.complete = function(e) {
  183. for (var n = 0, i = t.length; n < i; ++n) t[n]();
  184. P._completes = []
  185. }, P
  186. }()), k.preVerifyStartTime = l();
  187. else {
  188. x.state = 1;
  189. for (var e = P._completes, n = 0, i = e.length; n < i; ++n) e[n]();
  190. P._completes = []
  191. }
  192. }), C.invoke || (C.invoke = function(e, n, i) {
  193. o.WeixinJSBridge && WeixinJSBridge.invoke(e, r(n), i)
  194. }, C.on = function(e, n) {
  195. o.WeixinJSBridge && WeixinJSBridge.on(e, n)
  196. })
  197. },
  198. ready: function(e) {
  199. 0 != x.state ? e() : (P._completes.push(e), !I && M.debug && e())
  200. },
  201. error: function(e) {
  202. w < "6.0.2" || (-1 == x.state ? e(x.data) : P._fail = e)
  203. },
  204. checkJsApi: function(e) {
  205. c("checkJsApi", {
  206. jsApiList: s(e.jsApiList)
  207. }, (e._complete = function(e) {
  208. if (y) {
  209. var n = e.checkResult;
  210. n && (e.checkResult = JSON.parse(n))
  211. }
  212. e = function(e) {
  213. var n = e.checkResult;
  214. for (var i in n) {
  215. var t = f[i];
  216. t && (n[t] = n[i], delete n[i])
  217. }
  218. return e
  219. }(e)
  220. }, e))
  221. },
  222. onMenuShareTimeline: function(e) {
  223. i(p.onMenuShareTimeline, {
  224. complete: function() {
  225. c("shareTimeline", {
  226. title: e.title || m,
  227. desc: e.title || m,
  228. img_url: e.imgUrl || "",
  229. link: e.link || location.href,
  230. type: e.type || "link",
  231. data_url: e.dataUrl || ""
  232. }, e)
  233. }
  234. }, e)
  235. },
  236. onMenuShareAppMessage: function(n) {
  237. i(p.onMenuShareAppMessage, {
  238. complete: function(e) {
  239. "favorite" === e.scene ? c("sendAppMessage", {
  240. title: n.title || m,
  241. desc: n.desc || "",
  242. link: n.link || location.href,
  243. img_url: n.imgUrl || "",
  244. type: n.type || "link",
  245. data_url: n.dataUrl || ""
  246. }) : c("sendAppMessage", {
  247. title: n.title || m,
  248. desc: n.desc || "",
  249. link: n.link || location.href,
  250. img_url: n.imgUrl || "",
  251. type: n.type || "link",
  252. data_url: n.dataUrl || ""
  253. }, n)
  254. }
  255. }, n)
  256. },
  257. onMenuShareQQ: function(e) {
  258. i(p.onMenuShareQQ, {
  259. complete: function() {
  260. c("shareQQ", {
  261. title: e.title || m,
  262. desc: e.desc || "",
  263. img_url: e.imgUrl || "",
  264. link: e.link || location.href
  265. }, e)
  266. }
  267. }, e)
  268. },
  269. onMenuShareWeibo: function(e) {
  270. i(p.onMenuShareWeibo, {
  271. complete: function() {
  272. c("shareWeiboApp", {
  273. title: e.title || m,
  274. desc: e.desc || "",
  275. img_url: e.imgUrl || "",
  276. link: e.link || location.href
  277. }, e)
  278. }
  279. }, e)
  280. },
  281. onMenuShareQZone: function(e) {
  282. i(p.onMenuShareQZone, {
  283. complete: function() {
  284. c("shareQZone", {
  285. title: e.title || m,
  286. desc: e.desc || "",
  287. img_url: e.imgUrl || "",
  288. link: e.link || location.href
  289. }, e)
  290. }
  291. }, e)
  292. },
  293. updateTimelineShareData: function(e) {
  294. c("updateTimelineShareData", {
  295. title: e.title,
  296. link: e.link,
  297. imgUrl: e.imgUrl
  298. }, e)
  299. },
  300. updateAppMessageShareData: function(e) {
  301. c("updateAppMessageShareData", {
  302. title: e.title,
  303. desc: e.desc,
  304. link: e.link,
  305. imgUrl: e.imgUrl
  306. }, e)
  307. },
  308. startRecord: function(e) {
  309. c("startRecord", {}, e)
  310. },
  311. stopRecord: function(e) {
  312. c("stopRecord", {}, e)
  313. },
  314. onVoiceRecordEnd: function(e) {
  315. i("onVoiceRecordEnd", e)
  316. },
  317. playVoice: function(e) {
  318. c("playVoice", {
  319. localId: e.localId
  320. }, e)
  321. },
  322. pauseVoice: function(e) {
  323. c("pauseVoice", {
  324. localId: e.localId
  325. }, e)
  326. },
  327. stopVoice: function(e) {
  328. c("stopVoice", {
  329. localId: e.localId
  330. }, e)
  331. },
  332. onVoicePlayEnd: function(e) {
  333. i("onVoicePlayEnd", e)
  334. },
  335. uploadVoice: function(e) {
  336. c("uploadVoice", {
  337. localId: e.localId,
  338. isShowProgressTips: 0 == e.isShowProgressTips ? 0 : 1
  339. }, e)
  340. },
  341. downloadVoice: function(e) {
  342. c("downloadVoice", {
  343. serverId: e.serverId,
  344. isShowProgressTips: 0 == e.isShowProgressTips ? 0 : 1
  345. }, e)
  346. },
  347. translateVoice: function(e) {
  348. c("translateVoice", {
  349. localId: e.localId,
  350. isShowProgressTips: 0 == e.isShowProgressTips ? 0 : 1
  351. }, e)
  352. },
  353. chooseImage: function(e) {
  354. c("chooseImage", {
  355. scene: "1|2",
  356. count: e.count || 9,
  357. sizeType: e.sizeType || ["original", "compressed"],
  358. sourceType: e.sourceType || ["album", "camera"]
  359. }, (e._complete = function(e) {
  360. if (y) {
  361. var n = e.localIds;
  362. try {
  363. n && (e.localIds = JSON.parse(n))
  364. } catch (e) {}
  365. }
  366. }, e))
  367. },
  368. getLocation: function(e) {},
  369. previewImage: function(e) {
  370. c(p.previewImage, {
  371. current: e.current,
  372. urls: e.urls
  373. }, e)
  374. },
  375. uploadImage: function(e) {
  376. c("uploadImage", {
  377. localId: e.localId,
  378. isShowProgressTips: 0 == e.isShowProgressTips ? 0 : 1
  379. }, e)
  380. },
  381. downloadImage: function(e) {
  382. c("downloadImage", {
  383. serverId: e.serverId,
  384. isShowProgressTips: 0 == e.isShowProgressTips ? 0 : 1
  385. }, e)
  386. },
  387. getLocalImgData: function(e) {
  388. !1 === A ? (A = !0, c("getLocalImgData", {
  389. localId: e.localId
  390. }, (e._complete = function(e) {
  391. if (A = !1, 0 < V.length) {
  392. var n = V.shift();
  393. wx.getLocalImgData(n)
  394. }
  395. }, e))) : V.push(e)
  396. },
  397. getNetworkType: function(e) {
  398. c("getNetworkType", {}, (e._complete = function(e) {
  399. e = function(e) {
  400. var n = e.errMsg;
  401. e.errMsg = "getNetworkType:ok";
  402. var i = e.subtype;
  403. if (delete e.subtype, i) e.networkType = i;
  404. else {
  405. var t = n.indexOf(":"),
  406. o = n.substring(t + 1);
  407. switch (o) {
  408. case "wifi":
  409. case "edge":
  410. case "wwan":
  411. e.networkType = o;
  412. break;
  413. default:
  414. e.errMsg = "getNetworkType:fail"
  415. }
  416. }
  417. return e
  418. }(e)
  419. }, e))
  420. },
  421. openLocation: function(e) {
  422. c("openLocation", {
  423. latitude: e.latitude,
  424. longitude: e.longitude,
  425. name: e.name || "",
  426. address: e.address || "",
  427. scale: e.scale || 28,
  428. infoUrl: e.infoUrl || ""
  429. }, e)
  430. },
  431. getLocation: function(e) {
  432. c(p.getLocation, {
  433. type: (e = e || {}).type || "wgs84"
  434. }, (e._complete = function(e) {
  435. delete e.type
  436. }, e))
  437. },
  438. hideOptionMenu: function(e) {
  439. c("hideOptionMenu", {}, e)
  440. },
  441. showOptionMenu: function(e) {
  442. c("showOptionMenu", {}, e)
  443. },
  444. closeWindow: function(e) {
  445. c("closeWindow", {}, e = e || {})
  446. },
  447. hideMenuItems: function(e) {
  448. c("hideMenuItems", {
  449. menuList: e.menuList
  450. }, e)
  451. },
  452. showMenuItems: function(e) {
  453. c("showMenuItems", {
  454. menuList: e.menuList
  455. }, e)
  456. },
  457. hideAllNonBaseMenuItem: function(e) {
  458. c("hideAllNonBaseMenuItem", {}, e)
  459. },
  460. showAllNonBaseMenuItem: function(e) {
  461. c("showAllNonBaseMenuItem", {}, e)
  462. },
  463. scanQRCode: function(e) {
  464. c("scanQRCode", {
  465. needResult: (e = e || {}).needResult || 0,
  466. scanType: e.scanType || ["qrCode", "barCode"]
  467. }, (e._complete = function(e) {
  468. if (_) {
  469. var n = e.resultStr;
  470. if (n) {
  471. var i = JSON.parse(n);
  472. e.resultStr = i && i.scan_code && i.scan_code.scan_result
  473. }
  474. }
  475. }, e))
  476. },
  477. openAddress: function(e) {
  478. c(p.openAddress, {}, (e._complete = function(e) {
  479. var n;
  480. (n = e).postalCode = n.addressPostalCode, delete n.addressPostalCode, n.provinceName = n.proviceFirstStageName,
  481. delete n.proviceFirstStageName, n.cityName = n.addressCitySecondStageName, delete n.addressCitySecondStageName,
  482. n.countryName = n.addressCountiesThirdStageName, delete n.addressCountiesThirdStageName, n.detailInfo = n.addressDetailInfo,
  483. delete n.addressDetailInfo, e = n
  484. }, e))
  485. },
  486. openProductSpecificView: function(e) {
  487. c(p.openProductSpecificView, {
  488. pid: e.productId,
  489. view_type: e.viewType || 0,
  490. ext_info: e.extInfo
  491. }, e)
  492. },
  493. addCard: function(e) {
  494. for (var n = e.cardList, i = [], t = 0, o = n.length; t < o; ++t) {
  495. var r = n[t],
  496. a = {
  497. card_id: r.cardId,
  498. card_ext: r.cardExt
  499. };
  500. i.push(a)
  501. }
  502. c(p.addCard, {
  503. card_list: i
  504. }, (e._complete = function(e) {
  505. var n = e.card_list;
  506. if (n) {
  507. for (var i = 0, t = (n = JSON.parse(n)).length; i < t; ++i) {
  508. var o = n[i];
  509. o.cardId = o.card_id, o.cardExt = o.card_ext, o.isSuccess = !!o.is_succ, delete o.card_id, delete o.card_ext,
  510. delete o.is_succ
  511. }
  512. e.cardList = n, delete e.card_list
  513. }
  514. }, e))
  515. },
  516. chooseCard: function(e) {
  517. c("chooseCard", {
  518. app_id: M.appId,
  519. location_id: e.shopId || "",
  520. sign_type: e.signType || "SHA1",
  521. card_id: e.cardId || "",
  522. card_type: e.cardType || "",
  523. card_sign: e.cardSign,
  524. time_stamp: e.timestamp + "",
  525. nonce_str: e.nonceStr
  526. }, (e._complete = function(e) {
  527. e.cardList = e.choose_card_info, delete e.choose_card_info
  528. }, e))
  529. },
  530. openCard: function(e) {
  531. for (var n = e.cardList, i = [], t = 0, o = n.length; t < o; ++t) {
  532. var r = n[t],
  533. a = {
  534. card_id: r.cardId,
  535. code: r.code
  536. };
  537. i.push(a)
  538. }
  539. c(p.openCard, {
  540. card_list: i
  541. }, e)
  542. },
  543. consumeAndShareCard: function(e) {
  544. c(p.consumeAndShareCard, {
  545. consumedCardId: e.cardId,
  546. consumedCode: e.code
  547. }, e)
  548. },
  549. chooseWXPay: function(e) {
  550. c(p.chooseWXPay, n(e), e)
  551. },
  552. openEnterpriseRedPacket: function(e) {
  553. c(p.openEnterpriseRedPacket, n(e), e)
  554. },
  555. startSearchBeacons: function(e) {
  556. c(p.startSearchBeacons, {
  557. ticket: e.ticket
  558. }, e)
  559. },
  560. stopSearchBeacons: function(e) {
  561. c(p.stopSearchBeacons, {}, e)
  562. },
  563. onSearchBeacons: function(e) {
  564. i(p.onSearchBeacons, e)
  565. },
  566. openEnterpriseChat: function(e) {
  567. c("openEnterpriseChat", {
  568. useridlist: e.userIds,
  569. chatname: e.groupName
  570. }, e)
  571. },
  572. launchMiniProgram: function(e) {
  573. c("launchMiniProgram", {
  574. targetAppId: e.targetAppId,
  575. path: function(e) {
  576. if ("string" == typeof e && 0 < e.length) {
  577. var n = e.split("?")[0],
  578. i = e.split("?")[1];
  579. return n += ".html", void 0 !== i ? n + "?" + i : n
  580. }
  581. }(e.path),
  582. envVersion: e.envVersion
  583. }, e)
  584. },
  585. miniProgram: {
  586. navigateBack: function(e) {
  587. e = e || {}, u(function() {
  588. c("invokeMiniProgramAPI", {
  589. name: "navigateBack",
  590. arg: {
  591. delta: e.delta || 1
  592. }
  593. }, e)
  594. })
  595. },
  596. navigateTo: function(e) {
  597. u(function() {
  598. c("invokeMiniProgramAPI", {
  599. name: "navigateTo",
  600. arg: {
  601. url: e.url
  602. }
  603. }, e)
  604. })
  605. },
  606. redirectTo: function(e) {
  607. u(function() {
  608. c("invokeMiniProgramAPI", {
  609. name: "redirectTo",
  610. arg: {
  611. url: e.url
  612. }
  613. }, e)
  614. })
  615. },
  616. switchTab: function(e) {
  617. u(function() {
  618. c("invokeMiniProgramAPI", {
  619. name: "switchTab",
  620. arg: {
  621. url: e.url
  622. }
  623. }, e)
  624. })
  625. },
  626. reLaunch: function(e) {
  627. u(function() {
  628. c("invokeMiniProgramAPI", {
  629. name: "reLaunch",
  630. arg: {
  631. url: e.url
  632. }
  633. }, e)
  634. })
  635. },
  636. postMessage: function(e) {
  637. u(function() {
  638. c("invokeMiniProgramAPI", {
  639. name: "postMessage",
  640. arg: e.data || {}
  641. }, e)
  642. })
  643. },
  644. getEnv: function(e) {
  645. u(function() {
  646. e({
  647. miniprogram: "miniprogram" === o.__wxjs_environment
  648. })
  649. })
  650. }
  651. }
  652. },
  653. L = 1,
  654. B = {};
  655. return t.addEventListener("error", function(e) {
  656. if (!y) {
  657. var n = e.target,
  658. i = n.tagName,
  659. t = n.src;
  660. if (("IMG" == i || "VIDEO" == i || "AUDIO" == i || "SOURCE" == i) && -1 != t.indexOf("wxlocalresource://")) {
  661. e.preventDefault(), e.stopPropagation();
  662. var o = n["wx-id"];
  663. if (o || (o = L++, n["wx-id"] = o), B[o]) return;
  664. B[o] = !0, wx.ready(function() {
  665. wx.getLocalImgData({
  666. localId: t,
  667. success: function(e) {
  668. n.src = e.localData
  669. }
  670. })
  671. })
  672. }
  673. }
  674. }, !0), t.addEventListener("load", function(e) {
  675. if (!y) {
  676. var n = e.target,
  677. i = n.tagName;
  678. if (n.src, "IMG" == i || "VIDEO" == i || "AUDIO" == i || "SOURCE" == i) {
  679. var t = n["wx-id"];
  680. t && (B[t] = !1)
  681. }
  682. }
  683. }, !0), e && (o.wx = o.jWeixin = C), C
  684. }
  685. var O
  686. });