(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["pages/jianzhixinxi/detail"], {"1c65": function(t, e, n) { "use strict"; n.r(e); var a = n("ffa5"), r = n.n(a); for (var i in a) "default" !== i && function(t) { n.d(e, t, (function() { return a[t] })) }(i); e["default"] = r.a }, ac57: function(t, e, n) {}, c878: function(t, e, n) { "use strict"; (function(t) { n("f758"); a(n("66fd")); var e = a(n("dd90")); function a(t) { return t && t.__esModule ? t : { default: t } } t(e.default) }).call(this, n("543d")["createPage"]) }, d5f4: function(t, e, n) { "use strict"; n.d(e, "b", (function() { return r })), n.d(e, "c", (function() { return i })), n.d(e, "a", (function() { return a })); var a = { mescrollUni: function() { return Promise.all([n.e("common/vendor"), n.e("components/mescroll-uni/mescroll-uni")]).then(n.bind(null, "af5e")) }, uniPopup: function() { return n.e("components/uni-popup/uni-popup").then(n.bind(null, "1c26")) } }, r = function() { var t = this, e = t.$createElement, n = (t._self._c, t.isAuth("jianzhixinxi", "报名")), a = t.isAuthFront("jianzhixinxi", "报名"); t.$mp.data = Object.assign({}, { $root: { m0: n, m1: a } }) }, i = [] }, dd90: function(t, e, n) { "use strict"; n.r(e); var a = n("d5f4"), r = n("1c65"); for (var i in r) "default" !== i && function(t) { n.d(e, t, (function() { return r[t] })) }(i); n("e687"); var s, u = n("f0c5"), o = Object(u["a"])(r["default"], a["b"], a["c"], !1, null, null, null, !1, a["a"], s); e["default"] = o.exports }, e687: function(t, e, n) { "use strict"; var a = n("ac57"), r = n.n(a); r.a }, ffa5: function(t, e, n) { "use strict"; (function(t) { Object.defineProperty(e, "__esModule", { value: !0 }), e.default = void 0; var a = r(n("a34a")); function r(t) { return t && t.__esModule ? t : { default: t } } function i(t, e, n) { return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t } function s(t, e, n, a, r, i, s) { try { var u = ti, o = u.value } catch (c) { return void n(c) } u.done ? e(o) : Promise.resolve(o).then(a, r) } function u(t) { return function() { var e = this, n = arguments; return new Promise((function(a, r) { var i = t.apply(e, n); function u(t) { s(i, a, r, u, o, "next", t) } function o(t) { s(i, a, r, u, o, "throw", t) } u(void 0) })) } } var o = { data: function() { return { autoplaySwiper: !0, intervalSwiper: 5e3, btnColor: ["#409eff", "#67c23a", "#909399", "#e6a23c", "#f56c6c", "#356c6c", "#351c6c", "#f093a9", "#a7c23a", "#104eff", "#10441f", "#a21233", "#503319"], id: "", userid: "", detail: {}, swiperList: [], commentList: [], mescroll: null, downOption: { auto: !1 }, upOption: { noMoreSize: 3, textNoMore: "~ 没有更多了 ~" }, hasNext: !0, user: {}, sfshIndex: -1, sfshOptions: ["通过", "不通过"], storeupFlag: 0, count: 0, timer: null } }, computed: { baseUrl: function() { return this.$base.url }, SecondToDate: function() { var t = this.count; return null != t && "" != t && (t = t > 60 && t < 3600 ? parseInt(t / 60) + "分钟" + parseInt(60 * (parseFloat(t / 60) - parseInt(t / 60))) + "秒" : t >= 3600 && t < 86400 ? parseInt(t / 3600) + "小时" + parseInt(60 * (parseFloat(t / 3600) - parseInt(t / 3600))) + "分钟" + parseInt(60 * (parseFloat(60 * (parseFloat(t / 3600) - parseInt(t / 3600))) - parseInt(60 * (parseFloat(t / 3600) - parseInt(t / 3600))))) + "秒" : t >= 86400 ? parseInt(t / 3600 / 24) + "天" + parseInt(24 * (parseFloat(t / 3600 / 24) - parseInt(t / 3600 / 24))) + "小时" + parseInt(60 * (parseFloat(t / 3600) - parseInt(t / 3600))) + "分钟" + parseInt(60 * (parseFloat(60 * (parseFloat(t / 3600) - parseInt(t / 3600))) - parseInt(60 * (parseFloat(t / 3600) - parseInt(t / 3600))))) + "秒" : parseInt(t) + "秒"), t } }, onLoad: function(t) { var e = this; return u(a.default.mark((function n() { return a.default.wrap((function(n) { while (1) switch (n.prev = n.next) { case 0: e.id = t.id, t.userid && (e.userid = t.userid); case 2: case "end": return n.stop() } }), n) })))() }, onShow: function(e) { var n = this; return u(a.default.mark((function e() { var r, i; return a.default.wrap((function(e) { while (1) switch (e.prev = e.next) { case 0: return n.init(), r = t.getStorageSync("nowTable"), e.next = 4, n.$api.session(r); case 4: i = e.sent, n.user = i.data, n.btnColor = n.btnColor.sort((function() { return .5 - Math.random() })), n.getStoreup(); case 8: case "end": return e.stop() } }), e) })))() }, destroyed: function() {}, methods: { onPayTap: function() { t.setStorageSync("paytable", "jianzhixinxi"), t.setStorageSync("payObject", this.detail), this.$utils.jump("../pay-confirm/pay-confirm?type=1") }, getStoreup: function() { var t = this; return u(a.default.mark((function e() { var n, r; return a.default.wrap((function(e) { while (1) switch (e.prev = e.next) { case 0: return n = { page: 1, limit: 1, refid: t.id, tablename: "jianzhixinxi", userid: t.user.id, type: 1 }, e.next = 3, t.$api.list("storeup", n); case 3: r = e.sent, t.storeupFlag = r.data.list.length; case 5: case "end": return e.stop() } }), e) })))() }, shoucang: function() { var e = this; return u(a.default.mark((function n() { var r, s, o, c; return a.default.wrap((function(n) { while (1) switch (n.prev = n.next) { case 0: return r = e, s = { page: 1, limit: 1, refid: r.detail.id, tablename: "jianzhixinxi", userid: r.user.id, type: 1 }, n.next = 4, r.$api.list("storeup", s); case 4: if (o = n.sent, 1 != o.data.list.length) { n.next = 9; break } return c = o.data.list[0].id, t.showModal({ title: "提示", content: "是否取消", success: function() { var t = u(a.default.mark((function t(e) { return a.default.wrap((function(t) { while (1) switch (t.prev = t.next) { case 0: if (!e.confirm) { t.next = 5; break } return t.next = 3, r.$api.del("storeup", JSON.stringify([c])); case 3: r.$utils.msg("取消成功"), r.getStoreup(); case 5: case "end": return t.stop() } }), t) }))); function e(e) { return t.apply(this, arguments) } return e() } }), n.abrupt("return"); case 9: t.showModal({ title: "提示", content: "是否收藏", success: function() { var t = u(a.default.mark((function t(e) { var n; return a.default.wrap((function(t) { while (1) switch (t.prev = t.next) { case 0: if (!e.confirm) { t.next = 5; break } return t.next = 3, r.$api.add("storeup", (n = { userid: r.user.id, name: r.detail.gangweimingcheng, inteltype: r.detail.gangweileixing }, i(n, "name", r.detail.gongzidaiyu), i(n, "picture", r.swiperList[0]), i(n, "refid", r.detail.id), i(n, "tablename", "jianzhixinxi"), i(n, "type", 1), n)); case 3: r.$utils.msg("收藏成功"), r.getStoreup(); case 5: case "end": return t.stop() } }), t) }))); function e(e) { return t.apply(this, arguments) } return e() } }); case 10: case "end": return n.stop() } }), n) })))() }, onAcrossTap: function(e, n, a, r, i) { if (t.setStorageSync("crossTable", "jianzhixinxi"), t.setStorageSync("crossObj", this.detail), t.setStorageSync("statusColumnName", a), t.setStorageSync("statusColumnValue", i), t.setStorageSync("tips", r), "" != a && !a.startsWith("[")) { var s = t.getStorageSync("crossObj"); for (var u in s) if (u == a && s[u] == i) return void this.$utils.msg(r) } this.$utils.jump("../".concat(e, "/add-or-update?cross=true")) }, init: function() { var t = this; return u(a.default.mark((function e() { var n; return a.default.wrap((function(e) { while (1) switch (e.prev = e.next) { case 0: return e.next = 2, t.$api.info("jianzhixinxi", t.id); case 2: n = e.sent, t.detail = n.data, t.swiperList = t.detail.tupian ? t.detail.tupian.split(",") : []; case 5: case "end": return e.stop() } }), e) })))() }, mescrollInit: function(t) { this.mescroll = t }, downCallback: function(t) { this.hasNext = !0, t.resetUpScroll() }, upCallback: function(t) { var e = this; return u(a.default.mark((function n() { return a.default.wrap((function(n) { while (1) switch (n.prev = n.next) { case 0: t.endSuccess(t.size, e.hasNext); case 1: case "end": return n.stop() } }), n) })))() }, onChatTap: function() { this.$utils.jump("../chat/chat") }, download: function(e) { var n = this; e = n.$base.url + e, t.downloadFile({ url: e, success: function(t) { 200 === t.statusCode && (n.$utils.msg("下载成功"), window.open(e)) } }) }, onCartTabTap: function() { this.$utils.tab("../shop-cart/shop-cart") }, onCommentTap: function() { var t = this; return u(a.default.mark((function e() { return a.default.wrap((function(e) { while (1) switch (e.prev = e.next) { case 0: t.$utils.jump("../discussjianzhixinxi/add-or-update?refid=".concat(t.id)); case 1: case "end": return e.stop() } }), e) })))() }, onSHTap: function() { this.$refs.popup.open() }, onFinishTap: function() { var t = this; return u(a.default.mark((function e() { return a.default.wrap((function(e) { while (1) switch (e.prev = e.next) { case 0: if (t.detail.sfsh) { e.next = 3; break } return t.$utils.msg("请选择审核状态"), e.abrupt("return"); case 3: if (t.detail.shhf) { e.next = 6; break } return t.$utils.msg("请填写审核回复"), e.abrupt("return"); case 6: return "通过" == t.detail.sfsh && (t.detail.sfsh = "是"), "不通过" == t.detail.sfsh && (t.detail.sfsh = "否"), e.next = 10, t.$api.update("jianzhixinxi", t.detail); case 10: t.$utils.msg("审核成功"), t.$refs.popup.close(); case 12: case "end": return e.stop() } }), e) })))() }, onCloseWinTap: function() { this.$refs.popup.close() }, sfshChange: function(t) { console.log(this.detail), this.sfshIndex = t.target.value, this.detail.sfsh = this.sfshOptions[this.sfshIndex] } } }; e.default = o }).call(this, n("543d")["default"]) }],[["c878", "common/runtime", "common/vendor"]]]

兼职信息详情页 - 小程序开发代码

原文地址: https://www.cveoy.top/t/topic/ocjK 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录