【智狐】淘宝、天猫、京东、唯品会隐藏优惠券查询,自动显示历史价格和比价,拒绝虚假价格,让您购买到最优惠的商品,网购省钱小助手

无强制跳转,自动显示淘宝、天猫、京东、唯品会隐藏优惠券,展示商品历史价格,包括双十一和618的价格,让你快速了解商品低价,同款商品各大平台快速自动比价,同时显示比价列表,直接点击即可跳转其他平台,历史价格与比价功能正在开发中...

目前为 2023-07-04 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name 【智狐】淘宝、天猫、京东、唯品会隐藏优惠券查询,自动显示历史价格和比价,拒绝虚假价格,让您购买到最优惠的商品,网购省钱小助手
  3. // @name:zh 【智狐】淘宝、天猫、京东、唯品会隐藏优惠券查询,自动显示历史价格和比价,拒绝虚假价格,让您购买到最优惠的商品,网购省钱小助手
  4. // @name:zh-TW 【智狐】淘寶、天貓、京東、唯品會隱藏優惠券查詢,自動顯示歷史價格和比價,拒絕虛假價格,讓您購買到最優惠的商品,網購省錢小助手
  5. // @namespace zhCoupon
  6. // @version 1.7.8
  7. // @namespace zhCoupon
  8. // @description 无强制跳转,自动显示淘宝、天猫、京东、唯品会隐藏优惠券,展示商品历史价格,包括双十一和618的价格,让你快速了解商品低价,同款商品各大平台快速自动比价,同时显示比价列表,直接点击即可跳转其他平台,历史价格与比价功能正在开发中...
  9. // @description:zh 无强制跳转,自动显示淘宝、天猫、京东、唯品会隐藏优惠券,展示商品历史价格,包括双十一和618的价格,让你快速了解商品低价,同款商品各大平台快速自动比价,同时显示比价列表,直接点击即可跳转其他平台,历史价格与比价功能正在开发中...
  10. // @description:zh-TW 無強製跳轉,自動顯示淘寶、天貓、京東、唯品會隱藏優惠券,展示商品歷史價格,包括雙十一和618的價格,讓你快速了解商品低價,同款商品各大平臺快速自動比價,同時顯示比價列表,直接點擊即可跳轉其他平臺,歷史價格與比價功能正在開發中...
  11. // @author zhihu
  12. // @run-at document-end
  13. // @grant GM_getValue
  14. // @grant GM_setValue
  15. // @grant GM_setClipboard
  16. // @grant GM_info
  17. // @grant GM_xmlhttpRequest
  18. // @grant GM_openInTab
  19. // @grant GM_addValueChangeListener
  20. // @grant GM_removeValueChangeListener
  21. // @grant GM.getValue
  22. // @grant GM.setValue
  23. // @grant GM.setClipboard
  24. // @grant GM_info
  25. // @grant GM.xmlHttpRequest
  26. // @grant GM.openInTab
  27. // @grant GM.addValueChangeListener
  28. // @grant GM.removeValueChangeListener
  29. // @require https://unpkg.com/vue@3/dist/vue.global.js
  30. // @require https://cdn.bootcdn.net/ajax/libs/axios/0.21.0/axios.min.js
  31. // @require https://cdn.jsdelivr.net/npm/js-md5@0.7.3/build/md5.min.js
  32. // @require https://cdn.jsdelivr.net/npm/echarts@5.4.2/dist/echarts.min.js
  33. // @match *://item.taobao.com/*
  34. // @match *://detail.tmall.com/*
  35. // @match *://detail.tmall.hk/*
  36. // @match *://chaoshi.detail.tmall.com/*
  37. // @match *://item.jd.com/*
  38. // @match *://npcitem.jd.hk/*
  39. // @match *://item.yiyaojd.com/*
  40. // @match *://detail.vip.com/*
  41. // @match *://www.vipglobal.hk/detail*
  42. // @match *://www.gwdang.com/v2/trend/*
  43. // @match *://www.wezhicms.com/index/Tools/index*
  44. // @connect www.gwdang.com
  45. // @connect tool.wezhicms.com
  46. // @license GNU GPLv3
  47. // @antifeature referral-link 【应GreasyFork代码规范要求:含有优惠券查询功能的脚本必须添加此提示!在此感谢大家的理解...】
  48. // ==/UserScript==
  49. !(function (e) {
  50. var t = {};
  51. function o(n) {
  52. if (t[n]) return t[n].exports;
  53. var i = (t[n] = { i: n, l: !1, exports: {} });
  54. return e[n].call(i.exports, i, i.exports, o), (i.l = !0), i.exports;
  55. }
  56. (o.m = e),
  57. (o.c = t),
  58. (o.d = function (e, t, n) {
  59. o.o(e, t) || Object.defineProperty(e, t, { enumerable: !0, get: n });
  60. }),
  61. (o.r = function (e) {
  62. "undefined" != typeof Symbol &&
  63. Symbol.toStringTag &&
  64. Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }),
  65. Object.defineProperty(e, "__esModule", { value: !0 });
  66. }),
  67. (o.t = function (e, t) {
  68. if ((1 & t && (e = o(e)), 8 & t)) return e;
  69. if (4 & t && "object" == typeof e && e && e.__esModule) return e;
  70. var n = Object.create(null);
  71. if (
  72. (o.r(n),
  73. Object.defineProperty(n, "default", { enumerable: !0, value: e }),
  74. 2 & t && "string" != typeof e)
  75. )
  76. for (var i in e)
  77. o.d(
  78. n,
  79. i,
  80. function (t) {
  81. return e[t];
  82. }.bind(null, i)
  83. );
  84. return n;
  85. }),
  86. (o.n = function (e) {
  87. var t =
  88. e && e.__esModule
  89. ? function () {
  90. return e.default;
  91. }
  92. : function () {
  93. return e;
  94. };
  95. return o.d(t, "a", t), t;
  96. }),
  97. (o.o = function (e, t) {
  98. return Object.prototype.hasOwnProperty.call(e, t);
  99. }),
  100. (o.p = ""),
  101. o((o.s = 10));
  102. })([
  103. function (e, t) {
  104. e.exports = Vue;
  105. },
  106. function (e, t, o) {
  107. "use strict";
  108. o.d(t, "e", function () {
  109. return i;
  110. }),
  111. o.d(t, "g", function () {
  112. return r;
  113. }),
  114. o.d(t, "i", function () {
  115. return c;
  116. }),
  117. o.d(t, "j", function () {
  118. return a;
  119. }),
  120. o.d(t, "k", function () {
  121. return s;
  122. }),
  123. o.d(t, "b", function () {
  124. return l;
  125. }),
  126. o.d(t, "a", function () {
  127. return d;
  128. }),
  129. o.d(t, "c", function () {
  130. return p;
  131. }),
  132. o.d(t, "d", function () {
  133. return u;
  134. }),
  135. o.d(t, "h", function () {
  136. return g;
  137. }),
  138. o.d(t, "f", function () {
  139. return m;
  140. });
  141. var n = o(2);
  142. const i = (e = "default") => `${e}_${Date.now()}`,
  143. r = function (e) {
  144. var t = new RegExp("(^|&)" + e + "=([^&]*)(&|$)"),
  145. o = window.location.search.substr(1).match(t);
  146. return null != o ? o[2] : "";
  147. },
  148. c = function (e) {
  149. -1 != e.indexOf("?") && (e = e.split("?")[0]),
  150. -1 != e.indexOf("#") && (e = e.split("#")[0]);
  151. var t = e.split("/");
  152. return t[t.length - 1].replace(".html", "");
  153. },
  154. a = function (e) {
  155. var t,
  156. o = "";
  157. return new Promise(function (n, i) {
  158. t = setInterval(function () {
  159. if (e instanceof Array)
  160. e.forEach((e) => {
  161. const o = document.querySelector(e);
  162. null !== o && (n(o), clearInterval(t));
  163. });
  164. else {
  165. const o = document.querySelector(e);
  166. null !== o && (n(o), clearInterval(t));
  167. }
  168. 100 == o && clearInterval(t), o++;
  169. }, 200);
  170. });
  171. },
  172. s = function (e, t = !1) {
  173. let o = new Date(e),
  174. n = o.getFullYear() + "-",
  175. i =
  176. (o.getMonth() + 1 < 10
  177. ? "0" + (o.getMonth() + 1)
  178. : o.getMonth() + 1) + "-",
  179. r = o.getDate() < 10 ? "0" + o.getDate() : o.getDate();
  180. return t
  181. ? n +
  182. i +
  183. r +
  184. (" " + o.getHours() + ":") +
  185. (o.getMinutes() + ":") +
  186. o.getSeconds()
  187. : n + i + r;
  188. },
  189. l = function (e, t) {
  190. "function" == typeof GM_openInTab
  191. ? GM_openInTab(e, t)
  192. : GM.openInTab(e, t);
  193. },
  194. d = function (e, t) {
  195. "function" == typeof GM_addValueChangeListener
  196. ? GM_addValueChangeListener(e, t)
  197. : GM.addValueChangeListener(e, t);
  198. },
  199. p = function (e) {
  200. "function" == typeof GM_removeValueChangeListener
  201. ? GM_removeValueChangeListener(e)
  202. : GM.removeValueChangeListener(e);
  203. },
  204. u = function (e, t) {
  205. "function" == typeof GM_setValue
  206. ? GM_setValue(e, t)
  207. : GM.setValue(e, t);
  208. };
  209. function g(e) {
  210. return new Promise((t, o) => {
  211. setTimeout(() => {
  212. t("cookie" === e ? document.cookie : n.a.getter("goodsInfo"));
  213. }, 300);
  214. });
  215. }
  216. function m(e) {
  217. console.log(document.cookie);
  218. var t = document.cookie.split("; ");
  219. console.log(t);
  220. for (let o = 0; o < t.length; o++) {
  221. let n = t[o].split("=");
  222. if ((console.log(n), n[0] == e)) return decodeURIComponent(n[1]);
  223. }
  224. return null;
  225. }
  226. },
  227. function (e, t, o) {
  228. "use strict";
  229. const n = function () {
  230. console.log(this);
  231. };
  232. (n.prototype.getter = function (e) {
  233. return this.name;
  234. }),
  235. (n.prototype.set = function (e, t) {
  236. this.name = t;
  237. });
  238. const i = new ((function () {
  239. let e = null;
  240. return function () {
  241. return e || (e = new n()), e;
  242. };
  243. })())();
  244. t.a = i;
  245. },
  246. function (e, t, o) {
  247. "use strict";
  248. (function (e) {
  249. var n = o(0),
  250. i = o(1),
  251. r = o(2);
  252. const c = {
  253. key: 0,
  254. style: {
  255. "background-image":
  256. "url(https://gw.alicdn.com/tfs/TB16d.1ykPoK1RjSZKbXXX1IXXa-665-115.png)",
  257. position: "relative",
  258. "font-family": "HelveticaNeue-Bold,Helvetica Neue",
  259. width: "426px",
  260. height: "75px",
  261. "background-size": "100%,100%",
  262. "background-repeat": "no-repeat",
  263. margin: "10px 0 10px 10px",
  264. display: "flex",
  265. "align-items": "center"
  266. }
  267. },
  268. a = {
  269. key: 0,
  270. style: {
  271. "font-size": "28px",
  272. "line-height": "28px",
  273. "font-weight": "900",
  274. "white-space": "nowrap"
  275. }
  276. },
  277. s = Object(n.createElementVNode)(
  278. "text",
  279. { style: { "font-size": "20px" } },
  280. "优惠券:",
  281. -1
  282. ),
  283. l = Object(n.createElementVNode)(
  284. "text",
  285. { style: { "font-size": "18px", "margin-right": "2px" } },
  286. "¥",
  287. -1
  288. ),
  289. d = {
  290. key: 1,
  291. style: {
  292. "font-size": "22px",
  293. "font-weight": "900",
  294. "white-space": "nowrap"
  295. }
  296. },
  297. p = { key: 2, style: { "margin-top": "5px" } },
  298. u = { key: 3, style: { "margin-top": "5px" } },
  299. g = {
  300. style: {
  301. "text-align": "center",
  302. width: "calc(100% - 279px)",
  303. "font-size": "20px",
  304. color: "#fff",
  305. "font-weight": "bold",
  306. "letter-spacing": "1px",
  307. cursor: "pointer"
  308. }
  309. },
  310. m = ["href"],
  311. h = {
  312. style: {
  313. position: "absolute",
  314. display: "none",
  315. right: "426px",
  316. "padding-right": "5px",
  317. top: "-10px",
  318. width: "124px",
  319. "z-index": "999999"
  320. }
  321. },
  322. b = {
  323. style: {
  324. "text-align": "center",
  325. padding: "12px 5px 8px",
  326. background: "#fff",
  327. "background-color": "#fff",
  328. border: "1px solid rgba(0, 0, 0, 0.08)",
  329. "-webkit-box-shadow": "0 12px 24px 0 rgb(0 0 0%)",
  330. "-moz-box-shadow": "0 12px 24px 0 rgb(0 0 0%)",
  331. "box-shadow": "0 12px 24px 0 rgb(0 0 0%)",
  332. "border-radius": "12px"
  333. }
  334. },
  335. f = { style: { margin: "0 auto", width: "100px" } },
  336. x = ["src"],
  337. j = { style: { "margin-top": "4px" } },
  338. y = {
  339. key: 1,
  340. style: {
  341. "background-image":
  342. "url(https://gw.alicdn.com/tfs/TB16d.1ykPoK1RjSZKbXXX1IXXa-665-115.png)",
  343. position: "relative",
  344. "font-family": "HelveticaNeue-Bold,Helvetica Neue",
  345. width: "426px",
  346. height: "75px",
  347. "background-size": "100%,100%",
  348. "background-repeat": "no-repeat",
  349. margin: "10px 0 10px 10px",
  350. display: "flex",
  351. "align-items": "center"
  352. }
  353. },
  354. w = {
  355. style: {
  356. width: "279px",
  357. color: "#fff",
  358. "padding-left": "20px",
  359. "box-sizing": "border-box"
  360. }
  361. },
  362. v = Object(n.createElementVNode)(
  363. "div",
  364. {
  365. style: {
  366. "font-size": "22px",
  367. "font-weight": "900",
  368. "white-space": "nowrap"
  369. }
  370. },
  371. "暂无优惠券",
  372. -1
  373. ),
  374. O = { style: { "margin-top": "5px" } };
  375. t.a = {
  376. __name: "coupon",
  377. setup(t) {
  378. const o = Object(n.reactive)({
  379. isLoad: !1,
  380. hasCoupon: !1,
  381. isQrCodeShow: !1,
  382. shortUrl: "",
  383. couponMoney: 0,
  384. couponUseTime: "",
  385. goodsId: "",
  386. platform: "手机",
  387. searchUrl: ""
  388. }),
  389. { page: k, initData: C } = Object(n.inject)("global");
  390. function I(e, t) {
  391. return new Promise((o, n) => {
  392. axios
  393. .get(
  394. `https://tool.wezhicms.com/coupon/newCoupon.php?m=${e}&goods_info=${t}`
  395. )
  396. .then((e) => {
  397. const t = e.data;
  398. 0 === t.code ? (console.log(t.data), o(t.data)) : n();
  399. })
  400. .catch((e) => {
  401. n();
  402. });
  403. });
  404. }
  405. async function D() {
  406. try {
  407. let e, t, n, c, a, s;
  408. (o.goodsId = Object(i.g)("id")),
  409. (s = o.goodsId + "-83"),
  410. "taobao" === k
  411. ? ((e = document.querySelector("#J_ImgBooth").src),
  412. (t = document.querySelector("#J_SellCounter").textContent),
  413. (n =
  414. document.querySelector(C[k].titleClass).dataset.title ||
  415. "淘宝商品"),
  416. (c =
  417. document.querySelector(".tb-main-title").dataset.title),
  418. (a =
  419. document.querySelector(C[k].priceClass).textContent || 0))
  420. : "tianmao" === k
  421. ? (console.log(
  422. document.querySelector(".PicGallery--mainPic--1eAqOie")
  423. ),
  424. (n =
  425. document.querySelector(C[k].titleClass).textContent ||
  426. "天猫商品"),
  427. (c = document.querySelector(
  428. ".ShopHeader--title--2qsBE1A"
  429. ).title),
  430. (a =
  431. document.querySelector(C[k].priceClass).textContent || 0))
  432. : "chaoshi" === k &&
  433. ((n =
  434. document.querySelector(C[k].titleClass).textContent ||
  435. "天猫超市商品"),
  436. (c = "天猫超市"),
  437. (a =
  438. Number(
  439. document.querySelector(C[k].priceClass).textContent
  440. ) || 0)),
  441. r.a.set("goodsInfo", {
  442. goodsId: o.goodsId,
  443. title: n,
  444. price: a
  445. });
  446. const l = await (function (e, t, o, n, i, r) {
  447. return new Promise((c, a) => {
  448. axios
  449. .get(
  450. `https://u.gwdang.com/helper/qrcode?event=appQrcode&tag=9_default&rebate=&union=&dp_id=${r}&img=${e}&title=${o}&price=${i}&sellAmount=${t}&shopName=${n}`
  451. )
  452. .then((e) => {
  453. const t = e.data;
  454. 1 === t.code &&
  455. -1 != t.data.t.indexOf("s.click.taobao.com")
  456. ? c(t.data.t)
  457. : a(t);
  458. })
  459. .catch((e) => {
  460. a(e);
  461. });
  462. });
  463. })(e, t, n, c, a, s),
  464. d = await I("taobao", l);
  465. console.log(l, d),
  466. "" !== d.couponTotalCount
  467. ? ((o.couponMoney = (d.originalPrice - d.actualPrice).toFixed(
  468. 0
  469. )),
  470. (o.couponUseTime =
  471. d.couponStartTime + "-" + d.couponEndTime),
  472. (o.shortUrl = d.shortUrl),
  473. (o.hasCoupon = !0),
  474. B())
  475. : ((o.hasCoupon = !1), (o.shortUrl = d.shortUrl)),
  476. (o.isLoad = !0);
  477. } catch (e) {
  478. console.log(e);
  479. }
  480. }
  481. function B() {
  482. const e = `\n <a class="top_coupon_btn" title="点击领取" target="_blank" href="${
  483. C.scanUrl
  484. }?link=${o.shortUrl}&platform=${encodeURIComponent(
  485. o.platform
  486. )}">\n <span class="top-coupon-tle">当前商品领券立减</span>\n <span class="price-num"><span class="price-sm">¥</span><span data-spm-anchor-id="pc_detail.27183998.0.i0.7ff37dd602iKdG">${
  487. o.couponMoney
  488. }</span></span>\n <em class="link_hand"></em>\n </a>\n `;
  489. Object(i.j)("#menu-coupon").then((t) => {
  490. t.innerHTML = e;
  491. });
  492. }
  493. function A() {
  494. Object(i.b)(o.searchUrl, { active: !0 });
  495. }
  496. return (
  497. console.log(e),
  498. Object(n.onBeforeMount)(() => {
  499. switch ((console.log(window.location.href), k)) {
  500. case "taobao":
  501. case "tianmao":
  502. case "chaoshi":
  503. (o.platform = "手机淘宝"), D();
  504. break;
  505. case "jd":
  506. (o.platform = "手机京东或微信"),
  507. (async function () {
  508. try {
  509. o.goodsId = Object(i.i)(window.location.href);
  510. let e = document.querySelector(C[k].titleClass)
  511. ? document.querySelector(C[k].titleClass)
  512. .textContent
  513. : "京东商品",
  514. t = document.querySelector(C[k].priceClass)
  515. ? document.querySelector(C[k].priceClass)
  516. .textContent
  517. : 0;
  518. r.a.set("goodsInfo", {
  519. goodsId: o.goodsId,
  520. title: e,
  521. price: t
  522. });
  523. let n = await I("jd", o.goodsId),
  524. c = await I(
  525. "jdConvert",
  526. "https://item.jd.com/" + o.goodsId + ".html"
  527. );
  528. if (!(n instanceof Array && n.length > 0))
  529. throw new Error("优惠券数据获取失败");
  530. (n = n[0]),
  531. n.couponAmount > 0
  532. ? ((o.couponMoney = n.couponAmount),
  533. (o.couponUseTime =
  534. n.couponStartTime + "-" + n.couponEndTime),
  535. (o.shortUrl = c.shortUrl),
  536. (o.hasCoupon = !0),
  537. B())
  538. : ((o.shortUrl = c.shortUrl), (o.hasCoupon = !1)),
  539. (o.isLoad = !0);
  540. } catch (e) {
  541. console.log(e);
  542. }
  543. })();
  544. break;
  545. case "vip":
  546. (o.platform = "手机唯品会或微信"),
  547. (async function () {
  548. try {
  549. const e = window.location.href.match(/-(\d*).html/);
  550. if (e.length < 2) throw new Error("id获取失败");
  551. o.goodsId = e[1];
  552. let t = document.querySelector(C[k].titleClass)
  553. ? document.querySelector(C[k].titleClass).title
  554. : "唯品会商品",
  555. n = document.querySelector(C[k].priceClass)
  556. ? document.querySelector(C[k].priceClass).title
  557. : 0;
  558. r.a.set("goodsInfo", {
  559. goodsId: o.goodsId,
  560. title: t,
  561. price: n
  562. });
  563. let c = await I("vip", o.goodsId);
  564. if (!(c instanceof Array && c.length > 0))
  565. throw new Error("优惠券数据获取失败");
  566. {
  567. c = c[0];
  568. let e = await I("vipConvert", c.destUrlPc);
  569. 0 !== c.couponPriceType
  570. ? ((o.couponMoney = c.couponInfo.buy),
  571. (o.couponUseTime =
  572. Object(i.k)(c.couponInfo.useBeginTime) +
  573. "-" +
  574. Object(i.k)(c.couponInfo.useEndTime)),
  575. (o.shortUrl = e.urlInfoList[0].url),
  576. (o.hasCoupon = !0),
  577. B())
  578. : ((o.shortUrl = e.urlInfoList[0].url),
  579. (o.hasCoupon = !1)),
  580. (o.isLoad = !0);
  581. }
  582. } catch (e) {
  583. console.log(e);
  584. }
  585. })();
  586. }
  587. (o.searchUrl = C.cmsUrl + "?r=/l&origin_id=&sort=0"),
  588. Object(i.j)(C[k].titleClass).then((e) => {
  589. const t = e.textContent;
  590. o.searchUrl = `${C.cmsUrl}?r=/l&kw=${encodeURIComponent(
  591. t
  592. )}&origin_id=&sort=0`;
  593. });
  594. }),
  595. (e, t) =>
  596. o.isLoad
  597. ? (Object(n.openBlock)(),
  598. Object(n.createElementBlock)("div", c, [
  599. Object(n.createElementVNode)(
  600. "div",
  601. {
  602. style: {
  603. width: "279px",
  604. color: "#fff",
  605. "padding-left": "20px",
  606. "box-sizing": "border-box"
  607. },
  608. onMouseover:
  609. t[0] || (t[0] = (e) => (o.isQrCodeShow = !0)),
  610. onMouseout:
  611. t[1] || (t[1] = (e) => (o.isQrCodeShow = !1))
  612. },
  613. [
  614. o.hasCoupon
  615. ? (Object(n.openBlock)(),
  616. Object(n.createElementBlock)("div", a, [
  617. s,
  618. l,
  619. Object(n.createTextVNode)(
  620. Object(n.toDisplayString)(o.couponMoney),
  621. 1
  622. )
  623. ]))
  624. : (Object(n.openBlock)(),
  625. Object(n.createElementBlock)(
  626. "div",
  627. d,
  628. "暂无优惠券"
  629. )),
  630. o.hasCoupon
  631. ? (Object(n.openBlock)(),
  632. Object(n.createElementBlock)(
  633. "div",
  634. p,
  635. Object(n.toDisplayString)(o.couponUseTime),
  636. 1
  637. ))
  638. : (Object(n.openBlock)(),
  639. Object(n.createElementBlock)(
  640. "div",
  641. u,
  642. Object(n.toDisplayString)(
  643. Object(n.unref)(C).qqGroupText +
  644. Object(n.unref)(C).qqGroup
  645. ),
  646. 1
  647. ))
  648. ],
  649. 32
  650. ),
  651. Object(n.createElementVNode)("div", g, [
  652. Object(n.createElementVNode)(
  653. "a",
  654. {
  655. target: "_blank",
  656. href:
  657. Object(n.unref)(C).scanUrl +
  658. "?link=" +
  659. o.shortUrl +
  660. "&platform=" +
  661. encodeURIComponent(o.platform),
  662. style: { "text-decoration": "none", color: "#fff" }
  663. },
  664. "领券购买",
  665. 8,
  666. m
  667. )
  668. ]),
  669. Object(n.withDirectives)(
  670. Object(n.createElementVNode)(
  671. "div",
  672. h,
  673. [
  674. Object(n.createElementVNode)("div", b, [
  675. Object(n.createElementVNode)("div", f, [
  676. Object(n.createElementVNode)(
  677. "img",
  678. {
  679. style: { width: "100px" },
  680. src:
  681. "http://v.zhihupe.com/enQrcode?url=" +
  682. o.shortUrl
  683. },
  684. null,
  685. 8,
  686. x
  687. )
  688. ]),
  689. Object(n.createElementVNode)(
  690. "div",
  691. j,
  692. "手机" +
  693. Object(n.toDisplayString)(
  694. Object(n.unref)(C)[Object(n.unref)(k)].text
  695. ) +
  696. "扫一扫,享优惠",
  697. 1
  698. )
  699. ])
  700. ],
  701. 512
  702. ),
  703. [[n.vShow, o.isQrCodeShow && o.shortUrl]]
  704. )
  705. ]))
  706. : (Object(n.openBlock)(),
  707. Object(n.createElementBlock)("div", y, [
  708. Object(n.createElementVNode)("div", w, [
  709. v,
  710. Object(n.createElementVNode)(
  711. "div",
  712. O,
  713. Object(n.toDisplayString)(
  714. Object(n.unref)(C).qqGroupText +
  715. Object(n.unref)(C).qqGroup
  716. ),
  717. 1
  718. )
  719. ]),
  720. Object(n.createElementVNode)(
  721. "div",
  722. {
  723. style: {
  724. "text-align": "center",
  725. width: "calc(100% - 279px)",
  726. "font-size": "20px",
  727. color: "#fff",
  728. "font-weight": "bold",
  729. "letter-spacing": "1px",
  730. cursor: "pointer"
  731. }
  732. },
  733. [
  734. Object(n.createElementVNode)(
  735. "span",
  736. {
  737. onClick: A,
  738. style: { "text-decoration": "none", color: "#fff" }
  739. },
  740. "搜同款优惠"
  741. )
  742. ]
  743. )
  744. ]))
  745. );
  746. }
  747. };
  748. }).call(this, o(9));
  749. },
  750. function (e, t, o) {
  751. "use strict";
  752. var n,
  753. i = function () {
  754. return (
  755. void 0 === n &&
  756. (n = Boolean(window && document && document.all && !window.atob)),
  757. n
  758. );
  759. },
  760. r = (function () {
  761. var e = {};
  762. return function (t) {
  763. if (void 0 === e[t]) {
  764. var o = document.querySelector(t);
  765. if (
  766. window.HTMLIFrameElement &&
  767. o instanceof window.HTMLIFrameElement
  768. )
  769. try {
  770. o = o.contentDocument.head;
  771. } catch (e) {
  772. o = null;
  773. }
  774. e[t] = o;
  775. }
  776. return e[t];
  777. };
  778. })(),
  779. c = [];
  780. function a(e) {
  781. for (var t = -1, o = 0; o < c.length; o++)
  782. if (c[o].identifier === e) {
  783. t = o;
  784. break;
  785. }
  786. return t;
  787. }
  788. function s(e, t) {
  789. for (var o = {}, n = [], i = 0; i < e.length; i++) {
  790. var r = e[i],
  791. s = t.base ? r[0] + t.base : r[0],
  792. l = o[s] || 0,
  793. d = "".concat(s, " ").concat(l);
  794. o[s] = l + 1;
  795. var p = a(d),
  796. u = { css: r[1], media: r[2], sourceMap: r[3] };
  797. -1 !== p
  798. ? (c[p].references++, c[p].updater(u))
  799. : c.push({ identifier: d, updater: b(u, t), references: 1 }),
  800. n.push(d);
  801. }
  802. return n;
  803. }
  804. function l(e) {
  805. var t = document.createElement("style"),
  806. n = e.attributes || {};
  807. if (void 0 === n.nonce) {
  808. var i = o.nc;
  809. i && (n.nonce = i);
  810. }
  811. if (
  812. (Object.keys(n).forEach(function (e) {
  813. t.setAttribute(e, n[e]);
  814. }),
  815. "function" == typeof e.insert)
  816. )
  817. e.insert(t);
  818. else {
  819. var c = r(e.insert || "head");
  820. if (!c)
  821. throw new Error(
  822. "Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid."
  823. );
  824. c.appendChild(t);
  825. }
  826. return t;
  827. }
  828. var d,
  829. p =
  830. ((d = []),
  831. function (e, t) {
  832. return (d[e] = t), d.filter(Boolean).join("\n");
  833. });
  834. function u(e, t, o, n) {
  835. var i = o
  836. ? ""
  837. : n.media
  838. ? "@media ".concat(n.media, " {").concat(n.css, "}")
  839. : n.css;
  840. if (e.styleSheet) e.styleSheet.cssText = p(t, i);
  841. else {
  842. var r = document.createTextNode(i),
  843. c = e.childNodes;
  844. c[t] && e.removeChild(c[t]),
  845. c.length ? e.insertBefore(r, c[t]) : e.appendChild(r);
  846. }
  847. }
  848. function g(e, t, o) {
  849. var n = o.css,
  850. i = o.media,
  851. r = o.sourceMap;
  852. if (
  853. (i ? e.setAttribute("media", i) : e.removeAttribute("media"),
  854. r &&
  855. "undefined" != typeof btoa &&
  856. (n += "\n/*# sourceMappingURL=data:application/json;base64,".concat(
  857. btoa(unescape(encodeURIComponent(JSON.stringify(r)))),
  858. " */"
  859. )),
  860. e.styleSheet)
  861. )
  862. e.styleSheet.cssText = n;
  863. else {
  864. for (; e.firstChild; ) e.removeChild(e.firstChild);
  865. e.appendChild(document.createTextNode(n));
  866. }
  867. }
  868. var m = null,
  869. h = 0;
  870. function b(e, t) {
  871. var o, n, i;
  872. if (t.singleton) {
  873. var r = h++;
  874. (o = m || (m = l(t))),
  875. (n = u.bind(null, o, r, !1)),
  876. (i = u.bind(null, o, r, !0));
  877. } else
  878. (o = l(t)),
  879. (n = g.bind(null, o, t)),
  880. (i = function () {
  881. !(function (e) {
  882. if (null === e.parentNode) return !1;
  883. e.parentNode.removeChild(e);
  884. })(o);
  885. });
  886. return (
  887. n(e),
  888. function (t) {
  889. if (t) {
  890. if (
  891. t.css === e.css &&
  892. t.media === e.media &&
  893. t.sourceMap === e.sourceMap
  894. )
  895. return;
  896. n((e = t));
  897. } else i();
  898. }
  899. );
  900. }
  901. e.exports = function (e, t) {
  902. (t = t || {}).singleton ||
  903. "boolean" == typeof t.singleton ||
  904. (t.singleton = i());
  905. var o = s((e = e || []), t);
  906. return function (e) {
  907. if (
  908. ((e = e || []),
  909. "[object Array]" === Object.prototype.toString.call(e))
  910. ) {
  911. for (var n = 0; n < o.length; n++) {
  912. var i = a(o[n]);
  913. c[i].references--;
  914. }
  915. for (var r = s(e, t), l = 0; l < o.length; l++) {
  916. var d = a(o[l]);
  917. 0 === c[d].references && (c[d].updater(), c.splice(d, 1));
  918. }
  919. o = r;
  920. }
  921. };
  922. };
  923. },
  924. function (e, t, o) {
  925. "use strict";
  926. e.exports = function (e) {
  927. var t = [];
  928. return (
  929. (t.toString = function () {
  930. return this.map(function (t) {
  931. var o = e(t);
  932. return t[2] ? "@media ".concat(t[2], " {").concat(o, "}") : o;
  933. }).join("");
  934. }),
  935. (t.i = function (e, o, n) {
  936. "string" == typeof e && (e = [[null, e, ""]]);
  937. var i = {};
  938. if (n)
  939. for (var r = 0; r < this.length; r++) {
  940. var c = this[r][0];
  941. null != c && (i[c] = !0);
  942. }
  943. for (var a = 0; a < e.length; a++) {
  944. var s = [].concat(e[a]);
  945. (n && i[s[0]]) ||
  946. (o &&
  947. (s[2]
  948. ? (s[2] = "".concat(o, " and ").concat(s[2]))
  949. : (s[2] = o)),
  950. t.push(s));
  951. }
  952. }),
  953. t
  954. );
  955. };
  956. },
  957. function (e, t, o) {
  958. "use strict";
  959. var n = o(5),
  960. i = o.n(n)()(function (e) {
  961. return e[1];
  962. });
  963. i.push([
  964. e.i,
  965. "\n#history_chart[data-v-1c244362]{\r\n width: 100%;\r\n height: calc(100% - 50px);\n}\r\n",
  966. ""
  967. ]),
  968. (t.a = i);
  969. },
  970. function (e, t, o) {
  971. "use strict";
  972. var n = o(5),
  973. i = o.n(n)()(function (e) {
  974. return e[1];
  975. });
  976. i.push([
  977. e.i,
  978. "\n.zh-bg{\r\n background: url(https://cdn.gwdang.com/images/extensions/xbt/newbar-top3.png) no-repeat;\n}\n.logo{\r\n width: 60px;\r\n height: 50px;\r\n line-height: 50px;\r\n text-align: center;\r\n border-right: 1px solid #f7f8f9;\n}\n.logo img{\r\n width: 30px;\r\n height: 30px;\n}\n.bijia_list{\r\n display: flex;\r\n align-items: center;\n}\n.bijia_list .bijia_item{\r\n padding: 0 20px;\r\n border-right: 1px solid rgba(0,0,0,.06);\r\n height: 100%;\r\n line-height: 50px;\r\n font-size: 14px;\r\n font-weight: bold;\r\n cursor: pointer;\n}\n.bijia_list .bijia_item:hover .bijia-goods-list{\r\n display: block;\n}\n.bijia_list .bijia_item text{\r\n margin-left: 10px;\r\n color: #E4393C;\n}\n.price_status{\r\n padding: 0 20px;\r\n height: 100%;\r\n display: flex;\r\n align-items: center;\r\n border-right: 1px solid rgba(0,0,0,.06);\r\n font-size: 14px;\r\n color: #333333;\r\n cursor:pointer;\n}\n.price_status .price_status_icon{\r\n width: 22px;\r\n height: 20px;\r\n display: inline-block;\r\n line-height: 20px;\r\n margin-right: 10px;\n}\n.price_status .history_price{\r\n /* opacity: 0; */\r\n position: absolute;\r\n bottom: 50px;\r\n left: -1px;\r\n right: -1px;\r\n background: #fff;\r\n box-shadow: 0 -5px 10px 0 rgba(22,24,26,.15);\r\n width: auto;\r\n height: 350px;\n}\n.history_price .history-tips{\r\n display: flex;\r\n align-items: center;\r\n height: 50px;\r\n font-size: 12px;\r\n margin: 0 30px;\n}\n.history-tips .max-price{\r\n color: #e4393c;\r\n font-weight: 700;\r\n margin-right: 8px;\n}\n.history-tips .min-price{\r\n color: #35bd68;\r\n font-weight: 700;\r\n margin-right: 8px;\n}\n.history-tips .tips{\r\n background: #f7f7f7;\r\n border-radius: 4px;\r\n color: #666;\r\n font-size: 12px;\r\n height: 28px;\r\n line-height: 28px;\r\n margin-left: 41px;\r\n padding-left: 15px;\r\n padding-right: 15px;\n}\n.top_coupon_btn {\r\n background: url(https://cdn.gwdang.com/images/extensions/coupon@3x.png) 0 0 no-repeat;\r\n display: inline-flex;\r\n height: 28px;\r\n width: 189px;\r\n white-space: nowrap;\r\n position: relative;\r\n z-index: 999999999999;\r\n padding: 0 !important;\r\n border: none !important;\r\n background-size: cover;\r\n align-items: center;\r\n text-decoration: none!important;\r\n margin: 0 48px 0 20px;\n}\n.top_coupon_btn * {\r\n cursor: pointer;\n}\n.top_coupon_btn .top-coupon-tle {\r\n flex: 1;\r\n height: 12px;\r\n text-align: center;\r\n line-height: 12px;\r\n margin-left: 4px;\r\n font-size: 12px !important;\r\n font-weight: normal !important;\r\n color: #fff;\n}\n.top_coupon_btn .price-num {\r\n font-size: 14px;\r\n color: #FFFFFF;\r\n font-weight: bold;\r\n width: 56px;\r\n height: 22px;\r\n text-align: center;\r\n margin-left: 3px;\r\n line-height: 22px !important;\r\n padding: 0px !important;\r\n vertical-align: middle;\n}\n.top_coupon_btn .price-num span {\r\n display: inline;\n}\n.top_coupon_btn .price-sm {\r\n font-size: 12px;\r\n transform: scale(0.8333);\r\n transform-origin: bottom right;\n}\n.top_coupon_btn .link_hand {\r\n display: inline-block;\r\n height: 30px;\r\n width: 38px;\r\n position: absolute;\r\n right: -38px;\r\n top: -2px;\r\n background: url(https://cdn.gwdang.com/images/extensions/newbar/hand.gif) 0px 0px no-repeat;\n}\n.bijia-goods-list {\r\n display: none;\r\n position: absolute;\r\n bottom: 50px;\r\n left: -1px;\r\n right: -1px;\r\n height: 270px;\r\n background: #fff;\r\n box-shadow: 0 -5px 10px 0 rgba(22,24,26,.15);\n}\n.bijia-goods-list .goods-list{\r\n flex: 1;\r\n overflow-x: auto;\r\n display: flex;\r\n align-items: center;\n}\n.bijia-goods-list .goods-list .goods-item{\r\n display: inline-block;\r\n text-align: center;\r\n width: 270px;\r\n margin: 0 10px;\n}\n.goods-list .goods-item img{\r\n width: 120px;\r\n height: 120px;\n}\n.goods-list .goods-item p{\r\n font-size: 14px;\r\n margin-top: 8px;\r\n line-height: 1;\n}\n.goods-list .goods-item .price{\r\n color: #E4393C;\n}\n.goods-list .goods-item .shop-name{\r\n color: #666666;\n}\n.goods-list .goods-item .title{\r\n height: 38px;\r\n line-height: 19px;\r\n width: 210px;\r\n overflow: hidden;\r\n margin: 8px auto 0 auto;\n}\n.bijia-goods-list .pre-page,.bijia-goods-list .next-page{\r\n height: 33px;\r\n width: 120px;\r\n text-align: center;\n}\n.pre-page em,.next-page em{\r\n height: 33px;\r\n width: 20px;\r\n display: inline-block;\r\n cursor: pointer;\n}\n.pre-page em{\r\n background-position: -112px -38px;\n}\n.pre-page em:hover{\r\n background-position: -160px -38px;\n}\n.next-page em{\r\n background-position: -137px -38px;\n}\n.next-page em:hover{\r\n background-position: -185px -38px;\n}\n.bijia-goods-list .pagination{\r\n position: absolute;\r\n top: 15px;\r\n width: auto;\r\n right: 30px;\r\n padding: 0;\r\n text-align: center;\r\n font-size: 12px;\r\n margin: 0;\r\n height: auto;\r\n font-weight: 400;\r\n color: #999999;\n}\r\n",
  979. ""
  980. ]),
  981. (t.a = i);
  982. },
  983. function (e, t, o) {
  984. "use strict";
  985. Object.defineProperty(t, "__esModule", { value: !0 }),
  986. (t.default = (e, t) => {
  987. const o = e.__vccOpts || e;
  988. for (const [e, n] of t) o[e] = n;
  989. return o;
  990. });
  991. },
  992. function (e, t) {
  993. var o;
  994. o = (function () {
  995. return this;
  996. })();
  997. try {
  998. o = o || new Function("return this")();
  999. } catch (e) {
  1000. "object" == typeof window && (o = window);
  1001. }
  1002. e.exports = o;
  1003. },
  1004. function (e, t, o) {
  1005. "use strict";
  1006. o.r(t);
  1007. var n = o(3).a,
  1008. i = o(0),
  1009. r = o(2),
  1010. c = o(1);
  1011. const a = (e, t) => {
  1012. const o = (function (e, t) {
  1013. var o = e.split("; ");
  1014. for (let e = 0; e < o.length; e++) {
  1015. let n = o[e].split("=");
  1016. if (n[0] == t) return decodeURIComponent(n[1]);
  1017. }
  1018. return null;
  1019. })(e, "fp");
  1020. console.log(o);
  1021. const n = Object.keys(t);
  1022. n.sort();
  1023. const i = [];
  1024. n.forEach((e) => {
  1025. i.push(`${e.toString()}=${t[e]}`);
  1026. }),
  1027. console.log(i);
  1028. let r = i.join("*");
  1029. return (r += "*fp=" + o), console.log(r), md5(r);
  1030. };
  1031. const s = { id: "history_chart" };
  1032. var l = {
  1033. __name: "historyChart",
  1034. props: { chartData: { type: Object, default: { data: [], date: [] } } },
  1035. setup(e) {
  1036. const t = e,
  1037. { chartData: o } = Object(i.toRefs)(t);
  1038. let n = null;
  1039. return (
  1040. Object(i.onMounted)(() => {
  1041. !(function () {
  1042. if (
  1043. (console.log(o),
  1044. !(o.value.data.length < 1 || o.value.date.length < 1))
  1045. ) {
  1046. console.log(o),
  1047. (n = echarts.init(
  1048. document.getElementById("history_chart")
  1049. )),
  1050. window.addEventListener("resize", function () {
  1051. n.resize();
  1052. });
  1053. var e = {
  1054. tooltip: { trigger: "axis" },
  1055. grid: {
  1056. left: "3%",
  1057. right: "4%",
  1058. bottom: "3%",
  1059. containLabel: !0
  1060. },
  1061. xAxis: {
  1062. type: "category",
  1063. boundaryGap: !1,
  1064. data: [...o.value.date]
  1065. },
  1066. yAxis: { type: "value" },
  1067. series: [
  1068. {
  1069. name: "到手价",
  1070. type: "line",
  1071. stack: "Total",
  1072. data: [...o.value.data]
  1073. }
  1074. ]
  1075. };
  1076. n.setOption(e),
  1077. Object(i.nextTick)(() => {
  1078. setTimeout(() => {
  1079. n.resize();
  1080. }, 1500);
  1081. });
  1082. }
  1083. })();
  1084. }),
  1085. (e, t) => (
  1086. Object(i.openBlock)(), Object(i.createElementBlock)("div", s)
  1087. )
  1088. );
  1089. }
  1090. },
  1091. d = o(4),
  1092. p = o.n(d),
  1093. u = o(6),
  1094. g = { insert: "head", singleton: !1 },
  1095. m = (p()(u.a, g), u.a.locals, o(8));
  1096. var h = o.n(m)()(l, [["__scopeId", "data-v-1c244362"]]);
  1097. const b = {
  1098. style: {
  1099. width: "auto",
  1100. height: "50px",
  1101. display: "flex",
  1102. "align-items": "center",
  1103. background: "#fff",
  1104. border: "1px solid #f7f8f9",
  1105. "font-family": "HelveticaNeue-Bold, 'Helvetica Neue'",
  1106. position: "relative"
  1107. }
  1108. },
  1109. f = Object(i.createElementVNode)(
  1110. "div",
  1111. { class: "logo" },
  1112. [
  1113. Object(i.createElementVNode)("img", {
  1114. src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAACXBIWXMAAAsTAAALEwEAmpwYAAAGvmlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9i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DBEhHmMdXfIrBd8uoCC/GPB9pPGrG/4DLDbT+oqfjn+6AcxOVHhcgTFuiDTLMtIS6dDnIpIu60F4TiZKbCQui47D7oA6F44gnaCIMHSLZ9kqLjd11XaCVIUQVcF9uIyqjTspWbaBooVrOHCk3OwLFYoFxhswydTljBrAKyQeeFyFvxmQZHpEGBDfPo2EnEwi2qeS0CGd6qgwoiPDCbUGYYjgcrmpsDsIqrThLCnlwLYiDv+6ndK9B6mtNzIq7PQ+1ycBLn+Sp2qAk8LcN/RTIvC7ncDyUA1u1WCe5vdtkHmY7/zHB1skPTJM0iJCJSnEKuEBuX/z0KFGg+kaDGmqP/8y/P63FKfTAxrM6LzIUDyf0vQCLhZIc5+kTwXcGuwVWAn8KLBQ4JDZn3/j0+EBf7YB/K8FASkqZBmQLBCheSIEtycpWwUcNKBIgxKj/inZoL/TbYD/ASbcNlFOij7YAAAAAElFTkSuQmCC"
  1115. })
  1116. ],
  1117. -1
  1118. ),
  1119. x = { key: 2, class: "bijia_list" },
  1120. j = { key: 0, class: "bijia-goods-list" },
  1121. y = {
  1122. style: {
  1123. display: "flex",
  1124. "align-items": "center",
  1125. width: "100%",
  1126. height: "100%"
  1127. }
  1128. },
  1129. w = ["onClick"],
  1130. v = [Object(i.createElementVNode)("em", { class: "zh-bg" }, null, -1)],
  1131. O = { class: "goods-list" },
  1132. k = ["onClick"],
  1133. C = ["src"],
  1134. I = { key: 0, class: "price" },
  1135. D = { key: 1, class: "price" },
  1136. B = { class: "shop-name" },
  1137. A = { class: "title" },
  1138. N = ["onClick"],
  1139. E = [Object(i.createElementVNode)("em", { class: "zh-bg" }, null, -1)],
  1140. M = { class: "pagination" },
  1141. S = { style: { color: "#E4393C", margin: "0" } },
  1142. V = { key: 5, class: "price_status", style: { color: "#E4393C" } },
  1143. G = {
  1144. key: 0,
  1145. class: "price_status_icon zh-bg",
  1146. style: { "background-position": "-96px -13px" }
  1147. },
  1148. T = {
  1149. key: 1,
  1150. class: "price_status_icon zh-bg",
  1151. style: { "background-position": "-70px -12px" }
  1152. },
  1153. z = {
  1154. key: 2,
  1155. class: "price_status_icon zh-bg",
  1156. style: { "background-position": "-40px -12px" }
  1157. },
  1158. P = {
  1159. key: 3,
  1160. class: "price_status_icon zh-bg",
  1161. style: { "background-position": "-122px -190px" }
  1162. },
  1163. L = { key: 4, class: "history_price" },
  1164. F = { class: "history-tips" },
  1165. R = { class: "max-price" },
  1166. Z = { class: "min-price" },
  1167. U = { style: { color: "#9d9d9d", "font-weight": "400" } },
  1168. Q = { class: "tips" },
  1169. q = Object(i.createElementVNode)("div", { id: "menu-coupon" }, null, -1);
  1170. var Y = {
  1171. __name: "menu",
  1172. setup(e) {
  1173. const t = Object(i.reactive)({
  1174. goodsInfo: {},
  1175. bijiaList: [],
  1176. bijiaListShow: !1,
  1177. historyData: null,
  1178. historyChartData: { date: [], data: [] },
  1179. historyChartShow: !1,
  1180. bijiaRequestFail: !1,
  1181. requestFail: !1,
  1182. isBan: !1,
  1183. gwdangCookie: ""
  1184. });
  1185. Object(i.watch)(
  1186. () => t.historyData,
  1187. (e, o) => {
  1188. console.log(e, o),
  1189. e.promo_series && e.promo_series.length > 0
  1190. ? e.promo_series[0].data.forEach((e) => {
  1191. t.historyChartData.date.push(Object(c.k)(1e3 * e.x)),
  1192. t.historyChartData.data.push(e.y / 100);
  1193. })
  1194. : e.series &&
  1195. e.series.length > 0 &&
  1196. e.series[0].data.forEach((e) => {
  1197. t.historyChartData.date.push(Object(c.k)(1e3 * e.x)),
  1198. t.historyChartData.data.push(e.y / 100);
  1199. });
  1200. },
  1201. { deep: !0 }
  1202. );
  1203. let { fpid: o, page: n, initData: s } = Object(i.inject)("global");
  1204. function l() {
  1205. t.historyChartShow ||
  1206. (console.log(t.historyChartShow), (t.historyChartShow = !0));
  1207. }
  1208. function d() {
  1209. t.historyChartShow &&
  1210. (console.log(t.historyChartShow), (t.historyChartShow = !1));
  1211. }
  1212. async function p() {
  1213. try {
  1214. if (
  1215. ((t.goodsInfo = await (async function () {
  1216. let e = r.a.getter("goodsInfo");
  1217. for (let t = 0; t < 10; t++) {
  1218. if (e) return console.log(t, e), e;
  1219. e = await Object(c.h)();
  1220. }
  1221. })()),
  1222. (t.gwdangCookie = Object(c.f)("gwdangCookie")),
  1223. console.log(t.gwdangCookie),
  1224. !t.gwdangCookie || "''" === t.gwdangCookie)
  1225. ) {
  1226. Object(c.b)(
  1227. "http://www.gwdang.com/v2/trend/" +
  1228. t.goodsInfo.goodsId +
  1229. "-" +
  1230. o +
  1231. ".html",
  1232. !0
  1233. );
  1234. const e = Object(c.a)("gwdangCookie", function (o, n, i, r) {
  1235. i &&
  1236. -1 !== i.indexOf("fp=") &&
  1237. (console.log(i),
  1238. (document.cookie = "gwdangCookie=" + encodeURIComponent(i)),
  1239. (t.gwdangCookie = i),
  1240. Object(c.c)(e),
  1241. Object(c.d)("gwdangCookie", null));
  1242. });
  1243. }
  1244. } catch (e) {
  1245. console.log(e);
  1246. }
  1247. }
  1248. function u() {
  1249. let e = t.goodsInfo.goodsId;
  1250. GM_xmlhttpRequest({
  1251. url:
  1252. "http://www.gwdang.com/trend/data_www?dp_id=" +
  1253. e +
  1254. "-" +
  1255. o +
  1256. "&show_prom=true&v=2&get_coupon=0&price=" +
  1257. t.goodsInfo.price,
  1258. method: "GET",
  1259. timeout: 1e4,
  1260. headers: {
  1261. ":Authority": "www.gwdang.com",
  1262. Accept: "application/json",
  1263. Cookie: t.gwdangCookie,
  1264. Referer:
  1265. "http://www.gwdang.com/v2/trend/" +
  1266. e +
  1267. "-" +
  1268. o +
  1269. ".html?static=true"
  1270. },
  1271. onload: function (e) {
  1272. if (
  1273. (console.log(e),
  1274. -1 !== e.responseText.indexOf("Too Many Requests"))
  1275. )
  1276. (t.requestFail = !0), (t.isloading = !0);
  1277. else {
  1278. const o = JSON.parse(e.responseText);
  1279. o.product_status &&
  1280. ((t.historyData = { ...o }),
  1281. (t.requestFail = !1),
  1282. (t.isBan = !1));
  1283. }
  1284. }
  1285. });
  1286. }
  1287. function g() {
  1288. const e = new Date().getTime(),
  1289. n = t.goodsInfo.goodsId + "-" + o,
  1290. i = a(t.gwdangCookie, {
  1291. dp_id: n,
  1292. price: t.goodsInfo.price,
  1293. title: t.goodsInfo.title,
  1294. timestamp: e
  1295. });
  1296. console.log(i);
  1297. const r = (new Date().getTime() / 1e3).toFixed(0);
  1298. GM_xmlhttpRequest({
  1299. url:
  1300. "https://www.gwdang.com/product/aj_same?dp_id=" +
  1301. n +
  1302. "&title=" +
  1303. encodeURIComponent(t.goodsInfo.title) +
  1304. "&price=" +
  1305. t.goodsInfo.price +
  1306. "&from=trend&timestamp=" +
  1307. e +
  1308. "&str=" +
  1309. i +
  1310. "&t=" +
  1311. r,
  1312. method: "GET",
  1313. timeout: 1e4,
  1314. headers: {
  1315. ":Authority": "gwdang.com",
  1316. Accept:
  1317. "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
  1318. "Cache-Control": "public",
  1319. Cookie: t.gwdangCookie,
  1320. Host: "gwdang.com",
  1321. Referer:
  1322. "http://www.gwdang.com/v2/trend/" +
  1323. t.goodsInfo.goodsId +
  1324. "-" +
  1325. o +
  1326. ".html"
  1327. },
  1328. onload: function (e) {
  1329. if (
  1330. (console.log(e),
  1331. -1 !== e.responseText.indexOf("Too Many Requests"))
  1332. )
  1333. return void (t.bijiaRequestFail = !0);
  1334. console.log(e.responseText.indexOf("Too Many Requests"));
  1335. const o = JSON.parse(e.responseText);
  1336. if ((console.log(o), (t.bijiaList = []), 0 === o.code)) {
  1337. if (
  1338. (o.data.b2c.length > 0 &&
  1339. o.data.b2c.forEach((e) => {
  1340. ("3" !== e.site_id &&
  1341. "83" !== e.site_id &&
  1342. "129" !== e.site_id) ||
  1343. t.bijiaList.push({ ...e, currentPage: 1 });
  1344. }),
  1345. o.data.tb.taobao.product.length > 0)
  1346. ) {
  1347. const e = {
  1348. min_price: o.data.tb.taobao.product[0].coupon_price
  1349. ? 100 * o.data.tb.taobao.product[0].coupon_price
  1350. : 100 * o.data.tb.taobao.product[0].price,
  1351. products: [...o.data.tb.taobao.product],
  1352. site_id: "83",
  1353. site_name: "淘宝",
  1354. currentPage: 1
  1355. };
  1356. t.bijiaList.push(e);
  1357. }
  1358. if (o.data.tb.tmall.product.length > 0) {
  1359. const e = {
  1360. min_price: o.data.tb.tmall.product[0].coupon_price
  1361. ? 100 * o.data.tb.tmall.product[0].coupon_price
  1362. : 100 * o.data.tb.tmall.product[0].price,
  1363. products: [...o.data.tb.tmall.product],
  1364. site_id: "83",
  1365. site_name: "天猫商城",
  1366. currentPage: 1
  1367. };
  1368. t.bijiaList.push(e);
  1369. }
  1370. (t.bijiaRequestFail = !1), console.log(t.bijiaList);
  1371. } else
  1372. (document.cookie = "gwdangCookie=''"),
  1373. (t.bijiaRequestFail = !0),
  1374. p();
  1375. }
  1376. });
  1377. }
  1378. return (
  1379. Object(i.onBeforeMount)(() => {
  1380. p();
  1381. }),
  1382. (e, o) => (
  1383. Object(i.openBlock)(),
  1384. Object(i.createElementBlock)("div", b, [
  1385. f,
  1386. t.bijiaRequestFail || 0 !== t.bijiaList.length
  1387. ? Object(i.createCommentVNode)("v-if", !0)
  1388. : (Object(i.openBlock)(),
  1389. Object(i.createElementBlock)(
  1390. "div",
  1391. {
  1392. key: 0,
  1393. class: "price_status",
  1394. onClick: g,
  1395. style: { color: "##35bd68" }
  1396. },
  1397. " 查看比价商品列表 "
  1398. )),
  1399. t.bijiaRequestFail
  1400. ? (Object(i.openBlock)(),
  1401. Object(i.createElementBlock)(
  1402. "div",
  1403. {
  1404. key: 1,
  1405. class: "price_status",
  1406. onClick: g,
  1407. style: { color: "#E4393C" }
  1408. },
  1409. " 商品比价获取失败,点击重试 "
  1410. ))
  1411. : (Object(i.openBlock)(),
  1412. Object(i.createElementBlock)("div", x, [
  1413. (Object(i.openBlock)(!0),
  1414. Object(i.createElementBlock)(
  1415. i.Fragment,
  1416. null,
  1417. Object(i.renderList)(
  1418. t.bijiaList,
  1419. (e, o) => (
  1420. Object(i.openBlock)(),
  1421. Object(i.createElementBlock)(
  1422. "div",
  1423. { class: "bijia_item", key: o },
  1424. [
  1425. Object(i.createElementVNode)("div", null, [
  1426. Object(i.createTextVNode)(
  1427. Object(i.toDisplayString)(e.site_name),
  1428. 1
  1429. ),
  1430. Object(i.createElementVNode)(
  1431. "text",
  1432. null,
  1433. "¥" +
  1434. Object(i.toDisplayString)(
  1435. (e.min_price / 100).toFixed(2)
  1436. ),
  1437. 1
  1438. )
  1439. ]),
  1440. e.products.length > 0
  1441. ? (Object(i.openBlock)(),
  1442. Object(i.createElementBlock)("div", j, [
  1443. Object(i.createElementVNode)("div", y, [
  1444. Object(i.createElementVNode)(
  1445. "div",
  1446. {
  1447. class: "pre-page",
  1448. onClick: (e) =>
  1449. (function (e) {
  1450. t.bijiaList[e].currentPage >
  1451. 1 &&
  1452. t.bijiaList[e].currentPage--;
  1453. })(o)
  1454. },
  1455. v,
  1456. 8,
  1457. w
  1458. ),
  1459. Object(i.createElementVNode)("div", O, [
  1460. (Object(i.openBlock)(!0),
  1461. Object(i.createElementBlock)(
  1462. i.Fragment,
  1463. null,
  1464. Object(i.renderList)(
  1465. e.products.slice(
  1466. 6 * (e.currentPage - 1),
  1467. 6 * e.currentPage
  1468. ),
  1469. (t, o) => (
  1470. Object(i.openBlock)(),
  1471. Object(i.createElementBlock)(
  1472. "div",
  1473. {
  1474. class: "goods-item",
  1475. key: o,
  1476. onClick: (e) => {
  1477. return (
  1478. "83" ==
  1479. (o = t).site_id ||
  1480. "8" == o.site_id ||
  1481. "123" == o.site_id
  1482. ? Object(c.b)(
  1483. `https://tool.wezhicms.com/coupon/newCoupon.php?m=redirect&goods_info=${o.url_crc}&site_id=${o.site_id}`,
  1484. {
  1485. active: !0,
  1486. insert: !0,
  1487. setParent: !0
  1488. }
  1489. )
  1490. : Object(c.b)(
  1491. `https://tool.wezhicms.com/coupon/newCoupon.php?m=redirect&goods_info=${o.url}&site_id=${o.site_id}`,
  1492. {
  1493. active: !0,
  1494. insert: !0,
  1495. setParent: !0
  1496. }
  1497. ),
  1498. void console.log(o)
  1499. );
  1500. var o;
  1501. }
  1502. },
  1503. [
  1504. Object(
  1505. i.createElementVNode
  1506. )(
  1507. "img",
  1508. { src: t.img_url },
  1509. null,
  1510. 8,
  1511. C
  1512. ),
  1513. "淘宝" === e.site_name ||
  1514. "天猫商城" === e.site_name
  1515. ? (Object(i.openBlock)(),
  1516. Object(
  1517. i.createElementBlock
  1518. )(
  1519. "p",
  1520. I,
  1521. "¥" +
  1522. Object(
  1523. i.toDisplayString
  1524. )(
  1525. t.coupon_price
  1526. ? t.coupon_price
  1527. : t.price
  1528. ),
  1529. 1
  1530. ))
  1531. : (Object(i.openBlock)(),
  1532. Object(
  1533. i.createElementBlock
  1534. )(
  1535. "p",
  1536. D,
  1537. "¥" +
  1538. Object(
  1539. i.toDisplayString
  1540. )(
  1541. (
  1542. t.price / 100
  1543. ).toFixed(2)
  1544. ),
  1545. 1
  1546. )),
  1547. Object(
  1548. i.createElementVNode
  1549. )(
  1550. "p",
  1551. B,
  1552. Object(i.toDisplayString)(
  1553. t.site_name
  1554. ),
  1555. 1
  1556. ),
  1557. Object(
  1558. i.createElementVNode
  1559. )(
  1560. "p",
  1561. A,
  1562. Object(i.toDisplayString)(
  1563. t.title
  1564. ),
  1565. 1
  1566. )
  1567. ],
  1568. 8,
  1569. k
  1570. )
  1571. )
  1572. ),
  1573. 128
  1574. ))
  1575. ]),
  1576. Object(i.createElementVNode)(
  1577. "div",
  1578. {
  1579. class: "next-page",
  1580. onClick: (e) =>
  1581. (function (e) {
  1582. t.bijiaList[e].currentPage <
  1583. Math.ceil(
  1584. t.bijiaList[e].products
  1585. .length / 6
  1586. ) &&
  1587. t.bijiaList[e].currentPage++;
  1588. })(o)
  1589. },
  1590. E,
  1591. 8,
  1592. N
  1593. )
  1594. ]),
  1595. Object(i.createElementVNode)("div", M, [
  1596. Object(i.createTextVNode)("第"),
  1597. Object(i.createElementVNode)(
  1598. "text",
  1599. S,
  1600. Object(i.toDisplayString)(
  1601. e.currentPage
  1602. ),
  1603. 1
  1604. ),
  1605. Object(i.createTextVNode)(
  1606. "页,共" +
  1607. Object(i.toDisplayString)(
  1608. Math.ceil(e.products.length / 6)
  1609. ) +
  1610. "页",
  1611. 1
  1612. )
  1613. ])
  1614. ]))
  1615. : Object(i.createCommentVNode)("v-if", !0)
  1616. ]
  1617. )
  1618. )
  1619. ),
  1620. 128
  1621. ))
  1622. ])),
  1623. t.requestFail || t.isBan || t.historyData
  1624. ? Object(i.createCommentVNode)("v-if", !0)
  1625. : (Object(i.openBlock)(),
  1626. Object(i.createElementBlock)(
  1627. "div",
  1628. {
  1629. key: 3,
  1630. class: "price_status",
  1631. onClick: u,
  1632. style: { color: "##35bd68" }
  1633. },
  1634. " 查看历史价格 "
  1635. )),
  1636. t.requestFail && !t.historyData
  1637. ? (Object(i.openBlock)(),
  1638. Object(i.createElementBlock)(
  1639. "div",
  1640. {
  1641. key: 4,
  1642. class: "price_status",
  1643. onClick: u,
  1644. style: { color: "#E4393C" }
  1645. },
  1646. " 历史价格获取失败,点击重试 "
  1647. ))
  1648. : Object(i.createCommentVNode)("v-if", !0),
  1649. t.isBan && !t.historyData
  1650. ? (Object(i.openBlock)(),
  1651. Object(i.createElementBlock)(
  1652. "div",
  1653. V,
  1654. " 历史价格获取失败,点击重试 "
  1655. ))
  1656. : Object(i.createCommentVNode)("v-if", !0),
  1657. null !== t.historyData
  1658. ? (Object(i.openBlock)(),
  1659. Object(i.createElementBlock)(
  1660. "div",
  1661. {
  1662. key: 6,
  1663. class: "price_status",
  1664. onMouseenter: l,
  1665. onMouseleave: d
  1666. },
  1667. [
  1668. 1 === t.historyData.product_status.status
  1669. ? (Object(i.openBlock)(),
  1670. Object(i.createElementBlock)("em", G))
  1671. : Object(i.createCommentVNode)("v-if", !0),
  1672. 0 === t.historyData.product_status.status
  1673. ? (Object(i.openBlock)(),
  1674. Object(i.createElementBlock)("em", T))
  1675. : Object(i.createCommentVNode)("v-if", !0),
  1676. -1 === t.historyData.product_status.status
  1677. ? (Object(i.openBlock)(),
  1678. Object(i.createElementBlock)("em", z))
  1679. : Object(i.createCommentVNode)("v-if", !0),
  1680. -2 === t.historyData.product_status.status
  1681. ? (Object(i.openBlock)(),
  1682. Object(i.createElementBlock)("em", P))
  1683. : Object(i.createCommentVNode)("v-if", !0),
  1684. Object(i.createTextVNode)(
  1685. " " +
  1686. Object(i.toDisplayString)(
  1687. t.historyData.product_status.status_text
  1688. ) +
  1689. " ",
  1690. 1
  1691. ),
  1692. t.historyChartShow
  1693. ? (Object(i.openBlock)(),
  1694. Object(i.createElementBlock)("div", L, [
  1695. Object(i.createElementVNode)("div", F, [
  1696. Object(i.createElementVNode)(
  1697. "div",
  1698. R,
  1699. "最高: ¥" +
  1700. Object(i.toDisplayString)(
  1701. t.historyData.series[0].max / 100
  1702. ),
  1703. 1
  1704. ),
  1705. Object(i.createElementVNode)("div", Z, [
  1706. Object(i.createTextVNode)(
  1707. " 最低(单件): ¥" +
  1708. Object(i.toDisplayString)(
  1709. t.historyData.series[0].min / 100
  1710. ) +
  1711. " (",
  1712. 1
  1713. ),
  1714. Object(i.createElementVNode)(
  1715. "span",
  1716. U,
  1717. Object(i.toDisplayString)(
  1718. Object(i.unref)(c.k)(
  1719. 1e3 * t.historyData.series[0].min_stamp
  1720. )
  1721. ),
  1722. 1
  1723. ),
  1724. Object(i.createTextVNode)(")")
  1725. ]),
  1726. Object(i.createElementVNode)(
  1727. "div",
  1728. Q,
  1729. Object(i.toDisplayString)(
  1730. t.historyData.analysis.tips[360]
  1731. ),
  1732. 1
  1733. )
  1734. ]),
  1735. Object(i.createVNode)(
  1736. h,
  1737. { "chart-data": t.historyChartData },
  1738. null,
  1739. 8,
  1740. ["chart-data"]
  1741. )
  1742. ]))
  1743. : Object(i.createCommentVNode)("v-if", !0)
  1744. ],
  1745. 32
  1746. ))
  1747. : Object(i.createCommentVNode)("v-if", !0),
  1748. q
  1749. ])
  1750. )
  1751. );
  1752. }
  1753. },
  1754. X = o(7),
  1755. J = { insert: "head", singleton: !1 };
  1756. p()(X.a, J), X.a.locals;
  1757. var _ = Y;
  1758. let W = {
  1759. qqGroup: "188872170",
  1760. qqGroupText: "智狐捡漏Q群:",
  1761. scanUrl: "http://tool.wezhicms.com/coupon/getscan.php",
  1762. cmsUrl: "http://wxego.yhzu.cn/",
  1763. wenkuCode: 696852,
  1764. taobao: {
  1765. text: "淘宝",
  1766. couponNode: "#J_StepPrice",
  1767. titleClass: ".tb-main-title",
  1768. priceClass: "#J_SellCounter"
  1769. },
  1770. tianmao: {
  1771. text: "淘宝",
  1772. couponNode: ".Promotion--root--3qHQalP",
  1773. titleClass: ".ItemHeader--mainTitle--3CIjqW5",
  1774. priceClass: ".Price--priceText--2nLbVda"
  1775. },
  1776. chaoshi: {
  1777. text: "淘宝",
  1778. couponNode: ".Promotion--root--3qHQalP",
  1779. titleClass: ".ItemHeader--mainTitle--3CIjqW5",
  1780. priceClass: ".ItemHeader--salesDesc--srlk2Hv"
  1781. },
  1782. jd: {
  1783. text: "京东",
  1784. couponNode: "#J-summary-top",
  1785. titleClass: ".sku-name",
  1786. priceClass: ".p-price>.price"
  1787. },
  1788. vip: {
  1789. text: "唯品会",
  1790. couponNode: "#J_product_delivery",
  1791. titleClass: ".pib-title-detail",
  1792. priceClass: ".sp-price"
  1793. }
  1794. },
  1795. H = "",
  1796. K = "";
  1797. const $ = window.location.host;
  1798. function ee() {
  1799. switch ($) {
  1800. case "item.taobao.com":
  1801. (H = "taobao"), (K = "83"), te(), oe();
  1802. break;
  1803. case "chaoshi.detail.tmall.com":
  1804. (H = "chaoshi"), (K = "8"), te(), oe();
  1805. break;
  1806. case "detail.tmall.com":
  1807. case "detail.tmall.hk":
  1808. (H = "tianmao"), (K = "83"), te(), oe();
  1809. break;
  1810. case "item.yiyaojd.com":
  1811. case "item.jd.com":
  1812. case "npcitem.jd.hk":
  1813. (H = "jd"), (K = "3"), te(), oe();
  1814. break;
  1815. case "detail.vip.com":
  1816. case "www.vipglobal.hk":
  1817. (H = "vip"), (K = "129"), te(), oe();
  1818. break;
  1819. case "www.gwdang.com":
  1820. !(async function () {
  1821. let e = document.cookie;
  1822. for (let t = 0; t < 10; t++) {
  1823. if (
  1824. -1 !== e.indexOf("fp=") &&
  1825. -1 !== e.indexOf("dfp=") &&
  1826. -1 !== e.indexOf("Hm_lvt") &&
  1827. -1 !== e.indexOf("Hm_lvt")
  1828. )
  1829. return (
  1830. console.log(t, e),
  1831. Object(c.d)("gwdangCookie", e),
  1832. window.close(),
  1833. null
  1834. );
  1835. (e = await Object(c.h)("cookie")), 9 === t && window.close();
  1836. }
  1837. })();
  1838. break;
  1839. case "www.wezhicms.com":
  1840. Object(c.j)("#code").then((e) => {
  1841. (e.value = W.wenkuCode), (e.placeholder = "验证码是" + W.wenkuCode);
  1842. });
  1843. }
  1844. }
  1845. function te() {
  1846. ne();
  1847. const e = Object(c.e)("coupon"),
  1848. t = `<div id="${e}"></div>`;
  1849. Object(c.j)(W[H].couponNode).then((o) => {
  1850. o.insertAdjacentHTML("beforebegin", t);
  1851. const i = Vue.createApp(n);
  1852. i.provide("global", { page: H, fpid: K, initData: W }),
  1853. i.mount("#" + e);
  1854. });
  1855. }
  1856. function oe() {
  1857. const e = Object(c.e)("menu");
  1858. let t = document.createElement("div");
  1859. (t.id = e),
  1860. (t.style =
  1861. "position: fixed;bottom: 0;left: 0;right: 0;z-index:99999999"),
  1862. document.body.appendChild(t);
  1863. const n = o(0).createApp(_);
  1864. n.provide("global", { page: H, fpid: K, initData: W }), n.mount("#" + e);
  1865. }
  1866. function ne() {
  1867. return new Promise((e, t) => {
  1868. axios
  1869. .get("https://tool.wezhicms.com/coupon/getInitData.php")
  1870. .then((t) => {
  1871. const o = t.data;
  1872. e(o);
  1873. })
  1874. .catch((e) => {
  1875. t();
  1876. });
  1877. });
  1878. }
  1879. ne()
  1880. .then((e) => {
  1881. W = e;
  1882. })
  1883. .finally(() => {
  1884. ee();
  1885. });
  1886. }
  1887. ]);

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址