This commit is contained in:
parent
d5fbdde238
commit
04a333f836
|
@ -0,0 +1,14 @@
|
|||
# Windows
|
||||
[Dd]esktop.ini
|
||||
Thumbs.db
|
||||
$RECYCLE.BIN/
|
||||
|
||||
# macOS
|
||||
.DS_Store
|
||||
.fseventsd
|
||||
.Spotlight-V100
|
||||
.TemporaryItems
|
||||
.Trashes
|
||||
|
||||
# Node.js
|
||||
node_modules/
|
|
@ -0,0 +1,5 @@
|
|||
require("./common/runtime.js");
|
||||
|
||||
require("./common/vendor.js");
|
||||
|
||||
require("./common/main.js");
|
|
@ -0,0 +1,34 @@
|
|||
{
|
||||
"pages": [
|
||||
"pages/index/index",
|
||||
"pages/search/search",
|
||||
"pages/result/result",
|
||||
"pages/detail/detail",
|
||||
"pages/category/category",
|
||||
"pages/wall/wall",
|
||||
"pages/wall/wall_detail",
|
||||
"pages/wall/comment_detail",
|
||||
"pages/wall_album/wall_album",
|
||||
"pages/my/my",
|
||||
"pages/my/complaint",
|
||||
"pages/chat/chat",
|
||||
"pages/book/book",
|
||||
"pages/book/detail",
|
||||
"pages/book/chapter",
|
||||
"pages/image/image",
|
||||
"pages/xuewei/xuewei",
|
||||
"pages/xuewei/xuewei_detail",
|
||||
"pages/xuewei/jingluo",
|
||||
"pages/xuewei/jingluo_detail",
|
||||
"pages/article/article",
|
||||
"pages/article/detail"
|
||||
],
|
||||
"window": {
|
||||
"navigationBarTextStyle": "black",
|
||||
"navigationBarTitleText": "口袋方剂",
|
||||
"navigationBarBackgroundColor": "#F8F8F8",
|
||||
"backgroundColor": "#F8F8F8"
|
||||
},
|
||||
"usingComponents": {},
|
||||
"plugins": {}
|
||||
}
|
|
@ -0,0 +1,81 @@
|
|||
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([ [ "common/main" ], {
|
||||
"2b3b": function(e, t, n) {
|
||||
"use strict";
|
||||
n.r(t);
|
||||
var o = n("7cf3");
|
||||
for (var r in o) [ "default" ].indexOf(r) < 0 && function(e) {
|
||||
n.d(t, e, function() {
|
||||
return o[e];
|
||||
});
|
||||
}(r);
|
||||
n("978d");
|
||||
var c = n("f0c5"), u = Object(c["a"])(o["default"], void 0, void 0, !1, null, null, null, !1, void 0, void 0);
|
||||
t["default"] = u.exports;
|
||||
},
|
||||
4612: function(e, t, n) {},
|
||||
"643c": function(e, t, n) {
|
||||
"use strict";
|
||||
Object.defineProperty(t, "__esModule", {
|
||||
value: !0
|
||||
}), t.default = void 0;
|
||||
var o = {
|
||||
onLaunch: function() {
|
||||
console.log("App Launch");
|
||||
},
|
||||
onShow: function() {
|
||||
console.log("App Show");
|
||||
},
|
||||
onHide: function() {
|
||||
console.log("App Hide");
|
||||
}
|
||||
};
|
||||
t.default = o;
|
||||
},
|
||||
"7cf3": function(e, t, n) {
|
||||
"use strict";
|
||||
n.r(t);
|
||||
var o = n("643c"), r = n.n(o);
|
||||
for (var c in o) [ "default" ].indexOf(c) < 0 && function(e) {
|
||||
n.d(t, e, function() {
|
||||
return o[e];
|
||||
});
|
||||
}(c);
|
||||
t["default"] = r.a;
|
||||
},
|
||||
"978d": function(e, t, n) {
|
||||
"use strict";
|
||||
var o = n("4612"), r = n.n(o);
|
||||
r.a;
|
||||
},
|
||||
afe4: function(e, t, n) {
|
||||
"use strict";
|
||||
(function(e, t) {
|
||||
var o = n("4ea4"), r = o(n("9523"));
|
||||
n("94a9");
|
||||
var c = o(n("2b3b")), u = o(n("66fd")), f = o(n("c8c1"));
|
||||
function a(e, t) {
|
||||
var n = Object.keys(e);
|
||||
if (Object.getOwnPropertySymbols) {
|
||||
var o = Object.getOwnPropertySymbols(e);
|
||||
t && (o = o.filter(function(t) {
|
||||
return Object.getOwnPropertyDescriptor(e, t).enumerable;
|
||||
})), n.push.apply(n, o);
|
||||
}
|
||||
return n;
|
||||
}
|
||||
e.__webpack_require_UNI_MP_PLUGIN__ = n, u.default.config.productionTip = !1, c.default.mpType = "app";
|
||||
var i = new u.default(function(e) {
|
||||
for (var t = 1; t < arguments.length; t++) {
|
||||
var n = null != arguments[t] ? arguments[t] : {};
|
||||
t % 2 ? a(Object(n), !0).forEach(function(t) {
|
||||
(0, r.default)(e, t, n[t]);
|
||||
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : a(Object(n)).forEach(function(t) {
|
||||
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
||||
});
|
||||
}
|
||||
return e;
|
||||
}({}, c.default));
|
||||
t(i).$mount(), u.default.use(f.default);
|
||||
}).call(this, n("bc2e")["default"], n("543d")["createApp"]);
|
||||
}
|
||||
}, [ [ "afe4", "common/runtime", "common/vendor" ] ] ]);
|
|
@ -0,0 +1,188 @@
|
|||
!function() {
|
||||
try {
|
||||
var a = Function("return this")();
|
||||
a && !a.Math && (Object.assign(a, {
|
||||
isFinite: isFinite,
|
||||
Array: Array,
|
||||
Date: Date,
|
||||
Error: Error,
|
||||
Function: Function,
|
||||
Math: Math,
|
||||
Object: Object,
|
||||
RegExp: RegExp,
|
||||
String: String,
|
||||
TypeError: TypeError,
|
||||
setTimeout: setTimeout,
|
||||
clearTimeout: clearTimeout,
|
||||
setInterval: setInterval,
|
||||
clearInterval: clearInterval
|
||||
}), "undefined" != typeof Reflect && (a.Reflect = Reflect));
|
||||
} catch (a) {}
|
||||
}();
|
||||
|
||||
(function(n) {
|
||||
function e(e) {
|
||||
for (var i, u, s = e[0], r = e[1], l = e[2], a = 0, m = []; a < s.length; a++) u = s[a],
|
||||
Object.prototype.hasOwnProperty.call(t, u) && t[u] && m.push(t[u][0]), t[u] = 0;
|
||||
for (i in r) Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
||||
c && c(e);
|
||||
while (m.length) m.shift()();
|
||||
return p.push.apply(p, l || []), o();
|
||||
}
|
||||
function o() {
|
||||
for (var n, e = 0; e < p.length; e++) {
|
||||
for (var o = p[e], i = !0, u = 1; u < o.length; u++) {
|
||||
var r = o[u];
|
||||
0 !== t[r] && (i = !1);
|
||||
}
|
||||
i && (p.splice(e--, 1), n = s(s.s = o[0]));
|
||||
}
|
||||
return n;
|
||||
}
|
||||
var i = {}, u = {
|
||||
"common/runtime": 0
|
||||
}, t = {
|
||||
"common/runtime": 0
|
||||
}, p = [];
|
||||
function s(e) {
|
||||
if (i[e]) return i[e].exports;
|
||||
var o = i[e] = {
|
||||
i: e,
|
||||
l: !1,
|
||||
exports: {}
|
||||
};
|
||||
return n[e].call(o.exports, o, o.exports, s), o.l = !0, o.exports;
|
||||
}
|
||||
s.e = function(n) {
|
||||
var e = [];
|
||||
u[n] ? e.push(u[n]) : 0 !== u[n] && {
|
||||
"components/bootNav/bootNav": 1,
|
||||
"uni_modules/uni-card/components/uni-card/uni-card": 1,
|
||||
"uni_modules/uni-section/components/uni-section/uni-section": 1,
|
||||
"components/wall/wall": 1,
|
||||
"uni_modules/uni-fab/components/uni-fab/uni-fab": 1,
|
||||
"uni_modules/uni-icons/components/uni-icons/uni-icons": 1,
|
||||
"uni_modules/uni-file-picker/components/uni-file-picker/uni-file-picker": 1,
|
||||
"uni_modules/uni-popup/components/uni-popup-message/uni-popup-message": 1,
|
||||
"uni_modules/uni-popup/components/uni-popup/uni-popup": 1,
|
||||
"uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput": 1,
|
||||
"uni_modules/uni-rate/components/uni-rate/uni-rate": 1,
|
||||
"uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog": 1,
|
||||
"uni_modules/uni-file-picker/components/uni-file-picker/upload-file": 1,
|
||||
"uni_modules/uni-file-picker/components/uni-file-picker/upload-image": 1
|
||||
}[n] && e.push(u[n] = new Promise(function(e, o) {
|
||||
for (var i = ({
|
||||
"components/bootNav/bootNav": "components/bootNav/bootNav",
|
||||
"components/xad/xad": "components/xad/xad",
|
||||
"components/xpop/xpop": "components/xpop/xpop",
|
||||
"uni_modules/uni-card/components/uni-card/uni-card": "uni_modules/uni-card/components/uni-card/uni-card",
|
||||
"uni_modules/uni-section/components/uni-section/uni-section": "uni_modules/uni-section/components/uni-section/uni-section",
|
||||
"components/wall/wall": "components/wall/wall",
|
||||
"uni_modules/uni-fab/components/uni-fab/uni-fab": "uni_modules/uni-fab/components/uni-fab/uni-fab",
|
||||
"uni_modules/uni-icons/components/uni-icons/uni-icons": "uni_modules/uni-icons/components/uni-icons/uni-icons",
|
||||
"components/wall/comment": "components/wall/comment",
|
||||
"components/wall/reply": "components/wall/reply",
|
||||
"uni_modules/uni-file-picker/components/uni-file-picker/uni-file-picker": "uni_modules/uni-file-picker/components/uni-file-picker/uni-file-picker",
|
||||
"uni_modules/uni-popup/components/uni-popup-message/uni-popup-message": "uni_modules/uni-popup/components/uni-popup-message/uni-popup-message",
|
||||
"uni_modules/uni-popup/components/uni-popup/uni-popup": "uni_modules/uni-popup/components/uni-popup/uni-popup",
|
||||
"uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput": "uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput",
|
||||
"uni_modules/uni-rate/components/uni-rate/uni-rate": "uni_modules/uni-rate/components/uni-rate/uni-rate",
|
||||
"node-modules/@dcloudio/uni-cli-shared/components/ad-interstitial": "node-modules/@dcloudio/uni-cli-shared/components/ad-interstitial",
|
||||
"node-modules/@dcloudio/uni-cli-shared/components/ad-rewarded-video": "node-modules/@dcloudio/uni-cli-shared/components/ad-rewarded-video",
|
||||
"node-modules/@dcloudio/uni-cli-shared/components/uniad": "node-modules/@dcloudio/uni-cli-shared/components/uniad",
|
||||
"uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog": "uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog",
|
||||
"uni_modules/uni-file-picker/components/uni-file-picker/upload-file": "uni_modules/uni-file-picker/components/uni-file-picker/upload-file",
|
||||
"uni_modules/uni-file-picker/components/uni-file-picker/upload-image": "uni_modules/uni-file-picker/components/uni-file-picker/upload-image",
|
||||
"uni_modules/uni-transition/components/uni-transition/uni-transition": "uni_modules/uni-transition/components/uni-transition/uni-transition"
|
||||
}[n] || n) + ".wxss", t = s.p + i, p = document.getElementsByTagName("link"), r = 0; r < p.length; r++) {
|
||||
var l = p[r], a = l.getAttribute("data-href") || l.getAttribute("href");
|
||||
if ("stylesheet" === l.rel && (a === i || a === t)) return e();
|
||||
}
|
||||
var c = document.getElementsByTagName("style");
|
||||
for (r = 0; r < c.length; r++) {
|
||||
l = c[r], a = l.getAttribute("data-href");
|
||||
if (a === i || a === t) return e();
|
||||
}
|
||||
var m = document.createElement("link");
|
||||
m.rel = "stylesheet", m.type = "text/css", m.onload = e, m.onerror = function(e) {
|
||||
var i = e && e.target && e.target.src || t, p = new Error("Loading CSS chunk " + n + " failed.\n(" + i + ")");
|
||||
p.code = "CSS_CHUNK_LOAD_FAILED", p.request = i, delete u[n], m.parentNode.removeChild(m),
|
||||
o(p);
|
||||
}, m.href = t;
|
||||
var d = document.getElementsByTagName("head")[0];
|
||||
d.appendChild(m);
|
||||
}).then(function() {
|
||||
u[n] = 0;
|
||||
}));
|
||||
var o = t[n];
|
||||
if (0 !== o) if (o) e.push(o[2]); else {
|
||||
var i = new Promise(function(e, i) {
|
||||
o = t[n] = [ e, i ];
|
||||
});
|
||||
e.push(o[2] = i);
|
||||
var p, r = document.createElement("script");
|
||||
r.charset = "utf-8", r.timeout = 120, s.nc && r.setAttribute("nonce", s.nc), r.src = function(n) {
|
||||
return s.p + "" + n + ".js";
|
||||
}(n);
|
||||
var l = new Error();
|
||||
p = function(e) {
|
||||
r.onerror = r.onload = null, clearTimeout(a);
|
||||
var o = t[n];
|
||||
if (0 !== o) {
|
||||
if (o) {
|
||||
var i = e && ("load" === e.type ? "missing" : e.type), u = e && e.target && e.target.src;
|
||||
l.message = "Loading chunk " + n + " failed.\n(" + i + ": " + u + ")", l.name = "ChunkLoadError",
|
||||
l.type = i, l.request = u, o[1](l);
|
||||
}
|
||||
t[n] = void 0;
|
||||
}
|
||||
};
|
||||
var a = setTimeout(function() {
|
||||
p({
|
||||
type: "timeout",
|
||||
target: r
|
||||
});
|
||||
}, 12e4);
|
||||
r.onerror = r.onload = p, document.head.appendChild(r);
|
||||
}
|
||||
return Promise.all(e);
|
||||
}, s.m = n, s.c = i, s.d = function(n, e, o) {
|
||||
s.o(n, e) || Object.defineProperty(n, e, {
|
||||
enumerable: !0,
|
||||
get: o
|
||||
});
|
||||
}, s.r = function(n) {
|
||||
"undefined" !== typeof Symbol && Symbol.toStringTag && Object.defineProperty(n, Symbol.toStringTag, {
|
||||
value: "Module"
|
||||
}), Object.defineProperty(n, "__esModule", {
|
||||
value: !0
|
||||
});
|
||||
}, s.t = function(n, e) {
|
||||
if (1 & e && (n = s(n)), 8 & e) return n;
|
||||
if (4 & e && "object" === typeof n && n && n.__esModule) return n;
|
||||
var o = Object.create(null);
|
||||
if (s.r(o), Object.defineProperty(o, "default", {
|
||||
enumerable: !0,
|
||||
value: n
|
||||
}), 2 & e && "string" != typeof n) for (var i in n) s.d(o, i, function(e) {
|
||||
return n[e];
|
||||
}.bind(null, i));
|
||||
return o;
|
||||
}, s.n = function(n) {
|
||||
var e = n && n.__esModule ? function() {
|
||||
return n["default"];
|
||||
} : function() {
|
||||
return n;
|
||||
};
|
||||
return s.d(e, "a", e), e;
|
||||
}, s.o = function(n, e) {
|
||||
return Object.prototype.hasOwnProperty.call(n, e);
|
||||
}, s.p = "/", s.oe = function(n) {
|
||||
throw console.error(n), n;
|
||||
};
|
||||
var r = global["webpackJsonp"] = global["webpackJsonp"] || [], l = r.push.bind(r);
|
||||
r.push = e, r = r.slice();
|
||||
for (var a = 0; a < r.length; a++) e(r[a]);
|
||||
var c = l;
|
||||
o();
|
||||
})([]);
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,110 @@
|
|||
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([ [ "components/bootNav/bootNav" ], {
|
||||
"027b": function(t, n, e) {
|
||||
"use strict";
|
||||
var a = e("5c05"), i = e.n(a);
|
||||
i.a;
|
||||
},
|
||||
"0641": function(t, n, e) {
|
||||
"use strict";
|
||||
e.d(n, "b", function() {
|
||||
return i;
|
||||
}), e.d(n, "c", function() {
|
||||
return o;
|
||||
}), e.d(n, "a", function() {
|
||||
return a;
|
||||
});
|
||||
var a = {
|
||||
uniIcons: function() {
|
||||
return Promise.all([ e.e("common/vendor"), e.e("uni_modules/uni-icons/components/uni-icons/uni-icons") ]).then(e.bind(null, "8be1"));
|
||||
}
|
||||
}, i = function() {
|
||||
var t = this.$createElement;
|
||||
this._self._c;
|
||||
}, o = [];
|
||||
},
|
||||
"0d0a": function(t, n, e) {
|
||||
"use strict";
|
||||
var a = e("4ea4");
|
||||
Object.defineProperty(n, "__esModule", {
|
||||
value: !0
|
||||
}), n.default = void 0;
|
||||
a(e("5c77"));
|
||||
var i = {
|
||||
name: "bootNav",
|
||||
data: function() {
|
||||
return {
|
||||
navTextClass: "xuni-tabbar_normal",
|
||||
navTextActiveClass: "xuni-tabbar_active",
|
||||
navList: [ {
|
||||
name: "home",
|
||||
text: "首页",
|
||||
img: "home",
|
||||
path: "/pages/index/index",
|
||||
appId: ""
|
||||
}, {
|
||||
name: "category",
|
||||
text: "分类",
|
||||
img: "list",
|
||||
path: "/pages/category/category",
|
||||
appId: ""
|
||||
}, {
|
||||
name: "my",
|
||||
text: "我的收藏",
|
||||
img: "heart-filled",
|
||||
path: "/pages/result/result?isMy=1",
|
||||
appId: ""
|
||||
} ]
|
||||
};
|
||||
},
|
||||
mounted: function() {
|
||||
this.getNav();
|
||||
},
|
||||
methods: {
|
||||
getNav: function() {
|
||||
this.x_request("api/nav/index", {}, function(t, n) {
|
||||
1 === n.code && (t.navList = n.data), t.initNav();
|
||||
});
|
||||
},
|
||||
initNav: function() {
|
||||
for (var t in this.navList) this.navList[t]["name"] == this.nav ? this.navList[t].textColor = "#a67d41;" : this.navList[t].textColor = "rgb(122, 126, 131)";
|
||||
},
|
||||
goTo: function(t) {
|
||||
console.log(t.currentTarget.dataset.app_id), this.x_redirect(t.currentTarget.dataset.path, t.currentTarget.dataset.app_id);
|
||||
}
|
||||
},
|
||||
props: [ "nav" ]
|
||||
};
|
||||
n.default = i;
|
||||
},
|
||||
"5c05": function(t, n, e) {},
|
||||
"6e7d": function(t, n, e) {
|
||||
"use strict";
|
||||
e.r(n);
|
||||
var a = e("0d0a"), i = e.n(a);
|
||||
for (var o in a) [ "default" ].indexOf(o) < 0 && function(t) {
|
||||
e.d(n, t, function() {
|
||||
return a[t];
|
||||
});
|
||||
}(o);
|
||||
n["default"] = i.a;
|
||||
},
|
||||
dc0f: function(t, n, e) {
|
||||
"use strict";
|
||||
e.r(n);
|
||||
var a = e("0641"), i = e("6e7d");
|
||||
for (var o in i) [ "default" ].indexOf(o) < 0 && function(t) {
|
||||
e.d(n, t, function() {
|
||||
return i[t];
|
||||
});
|
||||
}(o);
|
||||
e("027b");
|
||||
var r = e("f0c5"), u = Object(r["a"])(i["default"], a["b"], a["c"], !1, null, null, null, !1, a["a"], void 0);
|
||||
n["default"] = u.exports;
|
||||
}
|
||||
} ]);
|
||||
|
||||
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([ "components/bootNav/bootNav-create-component", {
|
||||
"components/bootNav/bootNav-create-component": function(module, exports, __webpack_require__) {
|
||||
__webpack_require__("543d")["createComponent"](__webpack_require__("dc0f"));
|
||||
}
|
||||
}, [ [ "components/bootNav/bootNav-create-component" ] ] ]);
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"usingComponents": {
|
||||
"uni-icons": "/uni_modules/uni-icons/components/uni-icons/uni-icons"
|
||||
},
|
||||
"component": true
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
<view class="xuni-tabbar-bottom">
|
||||
<view class="xbottom-menu">
|
||||
<view bindtap="__e" class="xuni-tabbar__item" data-app_id="{{item.appId}}" data-event-opts="{{[ [ 'tap',[ [ 'goTo',['$event'] ] ] ] ]}}" data-path="{{item.path}}" wx:for="{{navList}}" wx:for-index="__i0__">
|
||||
<view class="xuni-tabbar__bd" style="height:50px;">
|
||||
<uni-icons bind:__l="__l" color="{{item.textColor}}" size="25" style="height:28px;" type="{{item.img}}" vueId="{{'e46d7344-1-'+__i0__}}"></uni-icons>
|
||||
<view class="{{['xuni-tabbar__label']}}" style="{{'color:'+item.textColor+';'}}">{{''+item.text+''}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
|
@ -0,0 +1,63 @@
|
|||
.xuni-tabbar-bottom {
|
||||
display: block;
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.xbottom-menu,.xuni-tabbar-bottom {
|
||||
bottom: 0;
|
||||
box-sizing: border-box;
|
||||
z-index: 998;
|
||||
}
|
||||
|
||||
.xbottom-menu {
|
||||
backdrop-filter: none;
|
||||
background-color: #f8f8f8;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.xuni-tabbar__item {
|
||||
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
||||
flex: 1;
|
||||
flex-direction: column;
|
||||
font-size: 0;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.xuni-tabbar__bd,.xuni-tabbar__item {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.xuni-tabbar__bd {
|
||||
cursor: pointer;
|
||||
flex-direction: column;
|
||||
height: 50px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.xuni-tabbar__icon {
|
||||
display: inline-block;
|
||||
margin-top: 5px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.xuni-tabbar__icon ._img {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.xuni-tabbar__label {
|
||||
font-size: 10px;
|
||||
line-height: normal;
|
||||
margin-top: 3px;
|
||||
}
|
||||
|
||||
.xuni-tabbar_normal {
|
||||
color: #7a7e83;
|
||||
}
|
||||
|
||||
.xuni-tabbar_active {
|
||||
color: #a67d41;
|
||||
}
|
|
@ -0,0 +1,80 @@
|
|||
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([ [ "components/wall/comment" ], {
|
||||
"27f9": function(n, t, i) {
|
||||
"use strict";
|
||||
i.r(t);
|
||||
var e = i("39b2"), o = i("c5b6");
|
||||
for (var u in o) [ "default" ].indexOf(u) < 0 && function(n) {
|
||||
i.d(t, n, function() {
|
||||
return o[n];
|
||||
});
|
||||
}(u);
|
||||
var c = i("f0c5"), l = Object(c["a"])(o["default"], e["b"], e["c"], !1, null, null, null, !1, e["a"], void 0);
|
||||
t["default"] = l.exports;
|
||||
},
|
||||
"39b2": function(n, t, i) {
|
||||
"use strict";
|
||||
i.d(t, "b", function() {
|
||||
return o;
|
||||
}), i.d(t, "c", function() {
|
||||
return u;
|
||||
}), i.d(t, "a", function() {
|
||||
return e;
|
||||
});
|
||||
var e = {
|
||||
uniIcons: function() {
|
||||
return Promise.all([ i.e("common/vendor"), i.e("uni_modules/uni-icons/components/uni-icons/uni-icons") ]).then(i.bind(null, "8be1"));
|
||||
}
|
||||
}, o = function() {
|
||||
var n = this.$createElement;
|
||||
this._self._c;
|
||||
}, u = [];
|
||||
},
|
||||
6782: function(n, t, i) {
|
||||
"use strict";
|
||||
var e = i("4ea4");
|
||||
Object.defineProperty(t, "__esModule", {
|
||||
value: !0
|
||||
}), t.default = void 0;
|
||||
var o = e(i("5c77")), u = {
|
||||
name: "comment",
|
||||
data: function() {
|
||||
return {
|
||||
xitem: {},
|
||||
wall_id: 0,
|
||||
normalColor: "color:#999",
|
||||
focusColor: "color:#007aff"
|
||||
};
|
||||
},
|
||||
mounted: function() {
|
||||
this.xitem = this.item, this.wall_id = this.detail_id;
|
||||
},
|
||||
methods: {
|
||||
actionsClick: function(n) {
|
||||
"like" === n && o.default.wallLike(this, this.item.id, 1);
|
||||
},
|
||||
commentLike: function() {
|
||||
o.default.wallLike(this, this.xitem.id, 2);
|
||||
}
|
||||
},
|
||||
props: [ "item", "detail_id" ]
|
||||
};
|
||||
t.default = u;
|
||||
},
|
||||
c5b6: function(n, t, i) {
|
||||
"use strict";
|
||||
i.r(t);
|
||||
var e = i("6782"), o = i.n(e);
|
||||
for (var u in e) [ "default" ].indexOf(u) < 0 && function(n) {
|
||||
i.d(t, n, function() {
|
||||
return e[n];
|
||||
});
|
||||
}(u);
|
||||
t["default"] = o.a;
|
||||
}
|
||||
} ]);
|
||||
|
||||
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([ "components/wall/comment-create-component", {
|
||||
"components/wall/comment-create-component": function(module, exports, __webpack_require__) {
|
||||
__webpack_require__("543d")["createComponent"](__webpack_require__("27f9"));
|
||||
}
|
||||
}, [ [ "components/wall/comment-create-component" ] ] ]);
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"usingComponents": {
|
||||
"uni-icons": "/uni_modules/uni-icons/components/uni-icons/uni-icons"
|
||||
},
|
||||
"component": true
|
||||
}
|
|
@ -0,0 +1,22 @@
|
|||
<view class="uni-flex uni-row">
|
||||
<view class="flex-item-avatar">
|
||||
<image class="_img" src="{{xitem.user.avatar}}"></image>
|
||||
</view>
|
||||
<view class="flex-item-content">
|
||||
<view class="uni-flex uni-row line-header">
|
||||
<view class="username">{{xitem.user.nick_name}}</view>
|
||||
<view bindtap="__e" class="user-zan" data-event-opts="{{[ [ 'tap',[ ['commentLike'] ] ] ]}}">
|
||||
<uni-icons bind:__l="__l" color="{{xitem.is_like==1?'#007aff':'#999'}}" size="18" type="hand-up" vueId="466afad1-1"></uni-icons>
|
||||
<text style="{{xitem.is_like==1?focusColor:normalColor}}">{{xitem.like_num}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="container-text">
|
||||
<text>{{xitem.content}}</text>
|
||||
</view>
|
||||
<view class="uni-flex uni-row reply_line">
|
||||
<text bindtap="__e" class="container-return" data-event-opts="{{[ [ 'tap',[ [ 'x_redirect',['/pages/wall/comment_detail?id='+wall_id+'&comment_id='+id] ] ] ] ]}}" wx:if="{{xitem.comment_num==0}}">回复></text>
|
||||
<text bindtap="__e" class="container-return" data-event-opts="{{[ [ 'tap',[ [ 'x_redirect',['/pages/wall/comment_detail?id='+wall_id+'&comment_id='+id] ] ] ] ]}}" wx:if="{{xitem.comment_num>0}}">{{'回复 ('+xitem.comment_num+') >'}}</text>
|
||||
<text>{{xitem.create_at}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
|
@ -0,0 +1,86 @@
|
|||
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([ [ "components/wall/reply" ], {
|
||||
"00df": function(n, t, e) {
|
||||
"use strict";
|
||||
e.r(t);
|
||||
var i = e("db15"), o = e("1dd0");
|
||||
for (var u in o) [ "default" ].indexOf(u) < 0 && function(n) {
|
||||
e.d(t, n, function() {
|
||||
return o[n];
|
||||
});
|
||||
}(u);
|
||||
var c = e("f0c5"), r = Object(c["a"])(o["default"], i["b"], i["c"], !1, null, null, null, !1, i["a"], void 0);
|
||||
t["default"] = r.exports;
|
||||
},
|
||||
"1dd0": function(n, t, e) {
|
||||
"use strict";
|
||||
e.r(t);
|
||||
var i = e("bfad"), o = e.n(i);
|
||||
for (var u in i) [ "default" ].indexOf(u) < 0 && function(n) {
|
||||
e.d(t, n, function() {
|
||||
return i[n];
|
||||
});
|
||||
}(u);
|
||||
t["default"] = o.a;
|
||||
},
|
||||
bfad: function(n, t, e) {
|
||||
"use strict";
|
||||
var i = e("4ea4");
|
||||
Object.defineProperty(t, "__esModule", {
|
||||
value: !0
|
||||
}), t.default = void 0;
|
||||
var o = i(e("5c77")), u = {
|
||||
name: "reply",
|
||||
data: function() {
|
||||
return {
|
||||
xitem: {},
|
||||
comment_id: 0,
|
||||
normalColor: "color:#999",
|
||||
focusColor: "color:#007aff"
|
||||
};
|
||||
},
|
||||
mounted: function() {
|
||||
this.xitem = this.item, this.comment_id = this.detail_id;
|
||||
},
|
||||
methods: {
|
||||
actionsClick: function(n) {
|
||||
"like" === n && o.default.wallLike(this, this.item.id, 1);
|
||||
},
|
||||
commentLike: function() {
|
||||
o.default.wallLike(this, this.xitem.id, 3);
|
||||
},
|
||||
showCommentWrap: function(n, t) {
|
||||
this.$emit("showComment", {
|
||||
comment_id: n,
|
||||
reply_id: t
|
||||
});
|
||||
}
|
||||
},
|
||||
props: [ "item", "detail_id" ]
|
||||
};
|
||||
t.default = u;
|
||||
},
|
||||
db15: function(n, t, e) {
|
||||
"use strict";
|
||||
e.d(t, "b", function() {
|
||||
return o;
|
||||
}), e.d(t, "c", function() {
|
||||
return u;
|
||||
}), e.d(t, "a", function() {
|
||||
return i;
|
||||
});
|
||||
var i = {
|
||||
uniIcons: function() {
|
||||
return Promise.all([ e.e("common/vendor"), e.e("uni_modules/uni-icons/components/uni-icons/uni-icons") ]).then(e.bind(null, "8be1"));
|
||||
}
|
||||
}, o = function() {
|
||||
var n = this.$createElement;
|
||||
this._self._c;
|
||||
}, u = [];
|
||||
}
|
||||
} ]);
|
||||
|
||||
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([ "components/wall/reply-create-component", {
|
||||
"components/wall/reply-create-component": function(module, exports, __webpack_require__) {
|
||||
__webpack_require__("543d")["createComponent"](__webpack_require__("00df"));
|
||||
}
|
||||
}, [ [ "components/wall/reply-create-component" ] ] ]);
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"usingComponents": {
|
||||
"uni-icons": "/uni_modules/uni-icons/components/uni-icons/uni-icons"
|
||||
},
|
||||
"component": true
|
||||
}
|
|
@ -0,0 +1,24 @@
|
|||
<view class="uni-flex uni-row">
|
||||
<view class="flex-item-avatar">
|
||||
<image class="_img" src="{{xitem.user.avatar}}"></image>
|
||||
</view>
|
||||
<view class="flex-item-content">
|
||||
<view class="uni-flex uni-row line-header">
|
||||
<view class="username">{{xitem.user.nick_name}}</view>
|
||||
<view bindtap="__e" class="user-zan" data-event-opts="{{[ [ 'tap',[ ['commentLike'] ] ] ]}}">
|
||||
<uni-icons bind:__l="__l" color="{{xitem.is_like==1?'#007aff':'#999'}}" size="18" type="hand-up" vueId="5d44a5a6-1"></uni-icons>
|
||||
<text style="{{xitem.is_like==1?focusColor:normalColor}}">{{xitem.like_num}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="container-toContent" wx:if="{{xitem.to_content}}">
|
||||
<text>{{'@'+xitem.toUser.nick_name+':'+xitem.to_content}}</text>
|
||||
</view>
|
||||
<view class="container-text">
|
||||
<text>{{xitem.content}}</text>
|
||||
</view>
|
||||
<view class="uni-flex uni-row reply_line">
|
||||
<text bindtap="__e" class="container-return" data-event-opts="{{[ [ 'tap',[ [ 'showCommentWrap',['$0','$1'],['comment_id','xitem.id'] ] ] ] ]}}">回复></text>
|
||||
<text>{{xitem.create_at}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
|
@ -0,0 +1,97 @@
|
|||
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([ [ "components/wall/wall" ], {
|
||||
"04c9": function(n, i, e) {},
|
||||
"0f94": function(n, i, e) {
|
||||
"use strict";
|
||||
e.d(i, "b", function() {
|
||||
return u;
|
||||
}), e.d(i, "c", function() {
|
||||
return o;
|
||||
}), e.d(i, "a", function() {
|
||||
return t;
|
||||
});
|
||||
var t = {
|
||||
uniCard: function() {
|
||||
return e.e("uni_modules/uni-card/components/uni-card/uni-card").then(e.bind(null, "7d11"));
|
||||
},
|
||||
uniFilePicker: function() {
|
||||
return Promise.all([ e.e("common/vendor"), e.e("uni_modules/uni-file-picker/components/uni-file-picker/uni-file-picker") ]).then(e.bind(null, "b9c3"));
|
||||
},
|
||||
uniIcons: function() {
|
||||
return Promise.all([ e.e("common/vendor"), e.e("uni_modules/uni-icons/components/uni-icons/uni-icons") ]).then(e.bind(null, "8be1"));
|
||||
},
|
||||
uniad: function() {
|
||||
return Promise.all([ e.e("common/vendor"), e.e("node-modules/@dcloudio/uni-cli-shared/components/uniad") ]).then(e.bind(null, "d229"));
|
||||
}
|
||||
}, u = function() {
|
||||
var n = this.$createElement;
|
||||
this._self._c;
|
||||
}, o = [];
|
||||
},
|
||||
"6d46": function(n, i, e) {
|
||||
"use strict";
|
||||
e.r(i);
|
||||
var t = e("0f94"), u = e("98b4");
|
||||
for (var o in u) [ "default" ].indexOf(o) < 0 && function(n) {
|
||||
e.d(i, n, function() {
|
||||
return u[n];
|
||||
});
|
||||
}(o);
|
||||
e("f0b5");
|
||||
var c = e("f0c5"), l = Object(c["a"])(u["default"], t["b"], t["c"], !1, null, null, null, !1, t["a"], void 0);
|
||||
i["default"] = l.exports;
|
||||
},
|
||||
"7bfa": function(n, i, e) {
|
||||
"use strict";
|
||||
(function(n) {
|
||||
var t = e("4ea4");
|
||||
Object.defineProperty(i, "__esModule", {
|
||||
value: !0
|
||||
}), i.default = void 0;
|
||||
var u = t(e("5c77")), o = {
|
||||
name: "wall",
|
||||
data: function() {
|
||||
return {
|
||||
xitem: {}
|
||||
};
|
||||
},
|
||||
mounted: function() {
|
||||
this.xitem = this.item;
|
||||
},
|
||||
methods: {
|
||||
toDeail: function() {
|
||||
return 1 === this.isRedirect && n.navigateTo({
|
||||
url: "/pages/wall/wall_detail?id=" + this.item.id
|
||||
}), !1;
|
||||
},
|
||||
actionsClick: function(n) {
|
||||
"like" === n && u.default.wallLike(this, this.item.id, 1);
|
||||
}
|
||||
},
|
||||
props: [ "item", "isRedirect" ]
|
||||
};
|
||||
i.default = o;
|
||||
}).call(this, e("543d")["default"]);
|
||||
},
|
||||
"98b4": function(n, i, e) {
|
||||
"use strict";
|
||||
e.r(i);
|
||||
var t = e("7bfa"), u = e.n(t);
|
||||
for (var o in t) [ "default" ].indexOf(o) < 0 && function(n) {
|
||||
e.d(i, n, function() {
|
||||
return t[n];
|
||||
});
|
||||
}(o);
|
||||
i["default"] = u.a;
|
||||
},
|
||||
f0b5: function(n, i, e) {
|
||||
"use strict";
|
||||
var t = e("04c9"), u = e.n(t);
|
||||
u.a;
|
||||
}
|
||||
} ]);
|
||||
|
||||
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([ "components/wall/wall-create-component", {
|
||||
"components/wall/wall-create-component": function(module, exports, __webpack_require__) {
|
||||
__webpack_require__("543d")["createComponent"](__webpack_require__("6d46"));
|
||||
}
|
||||
}, [ [ "components/wall/wall-create-component" ] ] ]);
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"usingComponents": {
|
||||
"uni-card": "/uni_modules/uni-card/components/uni-card/uni-card",
|
||||
"uni-file-picker": "/uni_modules/uni-file-picker/components/uni-file-picker/uni-file-picker",
|
||||
"uni-icons": "/uni_modules/uni-icons/components/uni-icons/uni-icons",
|
||||
"uniad": "/node-modules/@dcloudio/uni-cli-shared/components/uniad"
|
||||
},
|
||||
"component": true
|
||||
}
|
|
@ -0,0 +1,27 @@
|
|||
<view>
|
||||
<view wx:if="{{!item.ad_id}}">
|
||||
<view style="margin-top:20rpx;"></view>
|
||||
<uni-card bind:__l="__l" bind:click="__e" data-event-opts="{{[ [ '^click',[ [ 'x_redirect',['/pages/wall/wall_detail?id='+item.id] ] ] ] ]}}" isFull="{{!isRedirect}}" subTitle="{{item.create_at}}" thumbnail="{{item.user.avatar}}" title="{{item.user.nick_name}}" vueId="88e4b67c-1" vueSlots="{{['default']}}">
|
||||
<text class="uni-body uni-mt-5" style="margin-bottom:10px;word-break:break-all;">{{''+item.content+''}}</text>
|
||||
<uni-file-picker bind:__l="__l" fileMediatype="image" readonly="{{true}}" value="{{item.pics}}" vueId="{{'88e4b67c-2'+','+'88e4b67c-1'}}"></uni-file-picker>
|
||||
<view class="card-actions" slot="actions" wx:if="{{isRedirect}}">
|
||||
<view bindtap="__e" class="card-actions-item" data-event-opts="{{[ [ 'tap',[ [ 'actionsClick',['分享'] ] ] ] ]}}">
|
||||
<uni-icons bind:__l="__l" color="#999" size="18" type="redo" vueId="{{'88e4b67c-3'+','+'88e4b67c-1'}}"></uni-icons>
|
||||
<text class="card-actions-item-text">{{'分享('+item.share_num+')'}}</text>
|
||||
</view>
|
||||
<view catchtap="__e" class="card-actions-item" data-event-opts="{{[ [ 'tap',[ [ 'actionsClick',['like'] ] ] ] ]}}">
|
||||
<uni-icons bind:__l="__l" color="#007aff" size="18" type="hand-up" vueId="{{'88e4b67c-4'+','+'88e4b67c-1'}}" wx:if="{{xitem.is_like}}"></uni-icons>
|
||||
<uni-icons bind:__l="__l" color="#666" size="18" type="hand-up" vueId="{{'88e4b67c-5'+','+'88e4b67c-1'}}" wx:else></uni-icons>
|
||||
<text class="card-actions-item-text" style="color:#007aff;" wx:if="{{xitem.is_like}}">{{'点赞('+xitem.like_num+')'}}</text>
|
||||
<text class="card-actions-item-text" style="color:#666;" wx:else>{{'点赞('+xitem.like_num+')'}}</text>
|
||||
</view>
|
||||
<view bindtap="__e" class="card-actions-item" data-event-opts="{{[ [ 'tap',[ [ 'actionsClick',['评论'] ] ] ] ]}}">
|
||||
<uni-icons bind:__l="__l" color="#999" size="18" type="chatbubble" vueId="{{'88e4b67c-6'+','+'88e4b67c-1'}}"></uni-icons>
|
||||
<text class="card-actions-item-text">{{'评论('+item.comment_num+')'}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</uni-card>
|
||||
</view>
|
||||
<ad unitId="{{item.ad_id}}" wx:if="{{item.from==='wx'}}"></ad>
|
||||
<uniad adpid="{{item.ad_id}}" bind:__l="__l" vueId="88e4b67c-7" wx:if="{{item.from==='uni'}}"></uniad>
|
||||
</view>
|
|
@ -0,0 +1,69 @@
|
|||
.card-actions {
|
||||
border-top: 1px solid #eee;
|
||||
height: 45px;
|
||||
justify-content: space-around;
|
||||
}
|
||||
|
||||
.card-actions,.card-actions-item {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
}
|
||||
|
||||
.card-actions-item-text {
|
||||
color: #666;
|
||||
font-size: 12px;
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
||||
.cover-image {
|
||||
flex: 1;
|
||||
height: 150px;
|
||||
}
|
||||
|
||||
.no-border {
|
||||
border-width: 0;
|
||||
}
|
||||
|
||||
.x_gird_image {
|
||||
display: inline-block;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.text {
|
||||
font-size: 14px;
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
.grid-dynamic-box {
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.grid-item-box {
|
||||
flex: 1;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.grid-item-box,.grid-item-box-row {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
padding: 15px 0;
|
||||
}
|
||||
|
||||
.grid-item-box-row {
|
||||
flex: 1;
|
||||
flex-direction: row;
|
||||
}
|
||||
|
||||
.grid-dot {
|
||||
position: absolute;
|
||||
right: 15px;
|
||||
top: 5px;
|
||||
}
|
||||
|
||||
.swiper {
|
||||
height: 420px;
|
||||
}
|
|
@ -0,0 +1,66 @@
|
|||
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([ [ "components/xad/xad" ], {
|
||||
"1f4e": function(n, e, t) {
|
||||
"use strict";
|
||||
t.r(e);
|
||||
var o = t("8f2f"), u = t.n(o);
|
||||
for (var a in o) [ "default" ].indexOf(a) < 0 && function(n) {
|
||||
t.d(e, n, function() {
|
||||
return o[n];
|
||||
});
|
||||
}(a);
|
||||
e["default"] = u.a;
|
||||
},
|
||||
"8f2f": function(n, e, t) {
|
||||
"use strict";
|
||||
Object.defineProperty(e, "__esModule", {
|
||||
value: !0
|
||||
}), e.default = void 0;
|
||||
e.default = {
|
||||
name: "xad",
|
||||
data: function() {
|
||||
return {};
|
||||
},
|
||||
methods: {},
|
||||
props: [ "x_common_ad", "x_cp_ad" ]
|
||||
};
|
||||
},
|
||||
9621: function(n, e, t) {
|
||||
"use strict";
|
||||
t.r(e);
|
||||
var o = t("a4f3"), u = t("1f4e");
|
||||
for (var a in u) [ "default" ].indexOf(a) < 0 && function(n) {
|
||||
t.d(e, n, function() {
|
||||
return u[n];
|
||||
});
|
||||
}(a);
|
||||
var i = t("f0c5"), d = Object(i["a"])(u["default"], o["b"], o["c"], !1, null, "00b6cb30", null, !1, o["a"], void 0);
|
||||
e["default"] = d.exports;
|
||||
},
|
||||
a4f3: function(n, e, t) {
|
||||
"use strict";
|
||||
t.d(e, "b", function() {
|
||||
return u;
|
||||
}), t.d(e, "c", function() {
|
||||
return a;
|
||||
}), t.d(e, "a", function() {
|
||||
return o;
|
||||
});
|
||||
var o = {
|
||||
uniad: function() {
|
||||
return Promise.all([ t.e("common/vendor"), t.e("node-modules/@dcloudio/uni-cli-shared/components/uniad") ]).then(t.bind(null, "d229"));
|
||||
},
|
||||
adInterstitial: function() {
|
||||
return Promise.all([ t.e("common/vendor"), t.e("node-modules/@dcloudio/uni-cli-shared/components/ad-interstitial") ]).then(t.bind(null, "faa3"));
|
||||
}
|
||||
}, u = function() {
|
||||
var n = this.$createElement;
|
||||
this._self._c;
|
||||
}, a = [];
|
||||
}
|
||||
} ]);
|
||||
|
||||
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([ "components/xad/xad-create-component", {
|
||||
"components/xad/xad-create-component": function(module, exports, __webpack_require__) {
|
||||
__webpack_require__("543d")["createComponent"](__webpack_require__("9621"));
|
||||
}
|
||||
}, [ [ "components/xad/xad-create-component" ] ] ]);
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"usingComponents": {
|
||||
"uniad": "/node-modules/@dcloudio/uni-cli-shared/components/uniad",
|
||||
"ad-interstitial": "/node-modules/@dcloudio/uni-cli-shared/components/ad-interstitial"
|
||||
},
|
||||
"component": true
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
<view class="xk_ad data-v-00b6cb30">
|
||||
<ad class="data-v-00b6cb30" unitId="{{x_common_ad.ad_id}}" wx:if="{{x_common_ad.from==='wx'&&x_common_ad.ad_type==='banner'}}"></ad>
|
||||
<ad adTheme="white" adType="video" class="data-v-00b6cb30" unitId="{{x_common_ad.ad_id}}" wx:if="{{x_common_ad.from==='wx'&&x_common_ad.ad_type==='video'}}"></ad>
|
||||
<ad-custom bind:__l="__l" class="data-v-00b6cb30" unitId="{{x_common_ad.ad_id}}" vueId="9503636c-1" wx:if="{{x_common_ad.from==='wx'&&x_common_ad.ad_type==='diy'}}"></ad-custom>
|
||||
<uniad adpid="{{x_common_ad.ad_id}}" bind:__l="__l" class="data-v-00b6cb30" vueId="9503636c-2" wx:if="{{x_common_ad.from==='uni'}}"></uniad>
|
||||
<ad-interstitial adpid="{{x_cp_ad.ad_id}}" bind:__l="__l" class="data-v-00b6cb30 vue-ref" data-ref="adInterstitial" vueId="9503636c-3" wx:if="{{x_cp_ad.from==='uni'}}"></ad-interstitial>
|
||||
</view>
|
|
@ -0,0 +1,94 @@
|
|||
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([ [ "components/xpop/xpop" ], {
|
||||
"67bb": function(n, e, t) {
|
||||
"use strict";
|
||||
t.r(e);
|
||||
var o = t("d156"), i = t.n(o);
|
||||
for (var u in o) [ "default" ].indexOf(u) < 0 && function(n) {
|
||||
t.d(e, n, function() {
|
||||
return o[n];
|
||||
});
|
||||
}(u);
|
||||
e["default"] = i.a;
|
||||
},
|
||||
"8c3c": function(n, e, t) {
|
||||
"use strict";
|
||||
t.r(e);
|
||||
var o = t("b8c1"), i = t("67bb");
|
||||
for (var u in i) [ "default" ].indexOf(u) < 0 && function(n) {
|
||||
t.d(e, n, function() {
|
||||
return i[n];
|
||||
});
|
||||
}(u);
|
||||
var c = t("f0c5"), l = Object(c["a"])(i["default"], o["b"], o["c"], !1, null, "13085a74", null, !1, o["a"], void 0);
|
||||
e["default"] = l.exports;
|
||||
},
|
||||
b8c1: function(n, e, t) {
|
||||
"use strict";
|
||||
t.d(e, "b", function() {
|
||||
return i;
|
||||
}), t.d(e, "c", function() {
|
||||
return u;
|
||||
}), t.d(e, "a", function() {
|
||||
return o;
|
||||
});
|
||||
var o = {
|
||||
uniPopup: function() {
|
||||
return t.e("uni_modules/uni-popup/components/uni-popup/uni-popup").then(t.bind(null, "edb0"));
|
||||
},
|
||||
uniPopupDialog: function() {
|
||||
return Promise.all([ t.e("common/vendor"), t.e("uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog") ]).then(t.bind(null, "b336"));
|
||||
},
|
||||
uniPopupMessage: function() {
|
||||
return Promise.all([ t.e("common/vendor"), t.e("uni_modules/uni-popup/components/uni-popup-message/uni-popup-message") ]).then(t.bind(null, "36c1"));
|
||||
}
|
||||
}, i = function() {
|
||||
var n = this.$createElement;
|
||||
this._self._c;
|
||||
}, u = [];
|
||||
},
|
||||
d156: function(n, e, t) {
|
||||
"use strict";
|
||||
Object.defineProperty(e, "__esModule", {
|
||||
value: !0
|
||||
}), e.default = void 0;
|
||||
var o = {
|
||||
name: "xpop",
|
||||
data: function() {
|
||||
return {
|
||||
msgType: "success",
|
||||
cancelText: "关闭",
|
||||
confirmText: "确定",
|
||||
confirmTitle: "提示",
|
||||
content: "",
|
||||
call: null,
|
||||
t: null
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
messageToggle: function(n, e, t) {
|
||||
this.t = n, e && (this.msgType = e), t && (this.confirmTitle = t), this.$refs.message.open();
|
||||
},
|
||||
dialogToggle: function(n, e, t, o, i, u, c) {
|
||||
this.t = n, e && (this.type = e), t && (this.confirmTitle = t), o && (this.content = o),
|
||||
u && (this.confirmText = u), c && (this.cancelText = c), i && (this.call = i), this.$refs.alertDialog.open();
|
||||
},
|
||||
dialogConfirm: function() {
|
||||
if (this.call) {
|
||||
var n = this.t, e = this.call;
|
||||
n[e]();
|
||||
}
|
||||
},
|
||||
dialogClose: function() {
|
||||
console.log("点击关闭");
|
||||
}
|
||||
}
|
||||
};
|
||||
e.default = o;
|
||||
}
|
||||
} ]);
|
||||
|
||||
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([ "components/xpop/xpop-create-component", {
|
||||
"components/xpop/xpop-create-component": function(module, exports, __webpack_require__) {
|
||||
__webpack_require__("543d")["createComponent"](__webpack_require__("8c3c"));
|
||||
}
|
||||
}, [ [ "components/xpop/xpop-create-component" ] ] ]);
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"usingComponents": {
|
||||
"uni-popup": "/uni_modules/uni-popup/components/uni-popup/uni-popup",
|
||||
"uni-popup-dialog": "/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog",
|
||||
"uni-popup-message": "/uni_modules/uni-popup/components/uni-popup-message/uni-popup-message"
|
||||
},
|
||||
"component": true
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
<view class="data-v-13085a74">
|
||||
<view class="data-v-13085a74">
|
||||
<uni-popup animation="true" bind:__l="__l" class="data-v-13085a74 vue-ref" data-ref="alertDialog" type="dialog" vueId="51bcaf62-1" vueSlots="{{['default']}}">
|
||||
<uni-popup-dialog bind:__l="__l" bind:close="__e" bind:confirm="__e" cancelText="{{cancelText}}" class="data-v-13085a74" confirmText="{{confirmText}}" content="{{content}}" data-event-opts="{{[ [ '^confirm',[ ['dialogConfirm'] ] ],[ '^close',[ ['dialogClose'] ] ] ]}}" title="{{confirmTitle}}" type="{{msgType}}" vueId="{{'51bcaf62-2'+','+'51bcaf62-1'}}"></uni-popup-dialog>
|
||||
</uni-popup>
|
||||
</view>
|
||||
<view class="data-v-13085a74">
|
||||
<uni-popup bind:__l="__l" class="data-v-13085a74 vue-ref" data-ref="message" type="message" vueId="51bcaf62-3" vueSlots="{{['default']}}">
|
||||
<uni-popup-message bind:__l="__l" class="data-v-13085a74" duration="{{2000}}" message="{{confirmTitle}}" type="{{msgType}}" vueId="{{'51bcaf62-4'+','+'51bcaf62-3'}}"></uni-popup-message>
|
||||
</uni-popup>
|
||||
</view>
|
||||
</view>
|
|
@ -0,0 +1,142 @@
|
|||
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([ [ "pages/article/article" ], {
|
||||
2407: function(t, e, n) {
|
||||
"use strict";
|
||||
(function(t, e) {
|
||||
var i = n("4ea4");
|
||||
n("94a9");
|
||||
i(n("66fd"));
|
||||
var a = i(n("e894"));
|
||||
t.__webpack_require_UNI_MP_PLUGIN__ = n, e(a.default);
|
||||
}).call(this, n("bc2e")["default"], n("543d")["createPage"]);
|
||||
},
|
||||
"5ece": function(t, e, n) {
|
||||
"use strict";
|
||||
n.r(e);
|
||||
var i = n("e7ea"), a = n.n(i);
|
||||
for (var o in i) [ "default" ].indexOf(o) < 0 && function(t) {
|
||||
n.d(e, t, function() {
|
||||
return i[t];
|
||||
});
|
||||
}(o);
|
||||
e["default"] = a.a;
|
||||
},
|
||||
"6d11": function(t, e, n) {
|
||||
"use strict";
|
||||
n.d(e, "b", function() {
|
||||
return a;
|
||||
}), n.d(e, "c", function() {
|
||||
return o;
|
||||
}), n.d(e, "a", function() {
|
||||
return i;
|
||||
});
|
||||
var i = {
|
||||
xad: function() {
|
||||
return n.e("components/xad/xad").then(n.bind(null, "9621"));
|
||||
},
|
||||
xpop: function() {
|
||||
return n.e("components/xpop/xpop").then(n.bind(null, "8c3c"));
|
||||
},
|
||||
bootNav: function() {
|
||||
return Promise.all([ n.e("common/vendor"), n.e("components/bootNav/bootNav") ]).then(n.bind(null, "dc0f"));
|
||||
}
|
||||
}, a = function() {
|
||||
var t = this, e = t.$createElement, n = (t._self._c, t.isProduct ? t.__map(t.itemList, function(e, n) {
|
||||
var i = t.__get_orig(e), a = e.ad_id ? {} : null;
|
||||
return {
|
||||
$orig: i,
|
||||
a0: a
|
||||
};
|
||||
}) : null);
|
||||
t.$mp.data = Object.assign({}, {
|
||||
$root: {
|
||||
l0: n
|
||||
}
|
||||
});
|
||||
}, o = [];
|
||||
},
|
||||
ae9c: function(t, e, n) {},
|
||||
dcb3: function(t, e, n) {
|
||||
"use strict";
|
||||
var i = n("ae9c"), a = n.n(i);
|
||||
a.a;
|
||||
},
|
||||
e7ea: function(t, e, n) {
|
||||
"use strict";
|
||||
Object.defineProperty(e, "__esModule", {
|
||||
value: !0
|
||||
}), e.default = void 0;
|
||||
e.default = {
|
||||
data: function() {
|
||||
return {
|
||||
itemList: [],
|
||||
focusType: "",
|
||||
categoryList: [],
|
||||
word: "",
|
||||
tag: 0,
|
||||
page: 1
|
||||
};
|
||||
},
|
||||
onLoad: function(t) {
|
||||
this.getList(), this.x_get_ad("common"), this.cpAd();
|
||||
},
|
||||
methods: {
|
||||
onShareAppMessage: function() {
|
||||
return {
|
||||
title: this.title
|
||||
};
|
||||
},
|
||||
onShareTimeline: function() {
|
||||
return {
|
||||
title: this.title
|
||||
};
|
||||
},
|
||||
getList: function() {
|
||||
this.x_request("api/fangji.article/category", {}, function(t, e) {
|
||||
t.categoryList = e.data, t.focus(0);
|
||||
});
|
||||
},
|
||||
focus: function(t) {
|
||||
this.changeTab(t);
|
||||
},
|
||||
changeTab: function(t) {
|
||||
this.tag = t, this.itemList = [], this.page = 1, this.searchResult();
|
||||
},
|
||||
onReachBottom: function() {
|
||||
this.searchResult();
|
||||
},
|
||||
doSearch: function() {
|
||||
this.word && (this.itemList = [], this.page = 1, this.searchResult());
|
||||
},
|
||||
searchResult: function() {
|
||||
this.page > 0 && this.x_request("api/fangji.article/search", {
|
||||
title: this.word,
|
||||
tag: this.tag,
|
||||
page: this.page
|
||||
}, function(t, e) {
|
||||
//去除数据中的广告数据
|
||||
console.log('处理前的数据:',e.data.data)
|
||||
const filteredArray = e.data.data.filter(item =>
|
||||
!item.ad_id
|
||||
);
|
||||
console.log('处理后的数据:',filteredArray)
|
||||
var n = filteredArray;
|
||||
n.length > 0 ? (t.itemList = t.itemList.concat(n), t.page++) : t.page = 0;
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
},
|
||||
e894: function(t, e, n) {
|
||||
"use strict";
|
||||
n.r(e);
|
||||
var i = n("6d11"), a = n("5ece");
|
||||
for (var o in a) [ "default" ].indexOf(o) < 0 && function(t) {
|
||||
n.d(e, t, function() {
|
||||
return a[t];
|
||||
});
|
||||
}(o);
|
||||
n("dcb3");
|
||||
var c = n("f0c5"), u = Object(c["a"])(a["default"], i["b"], i["c"], !1, null, null, null, !1, i["a"], void 0);
|
||||
e["default"] = u.exports;
|
||||
}
|
||||
}, [ [ "2407", "common/runtime", "common/vendor" ] ] ]);
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"navigationBarTitleText": "文章",
|
||||
"onReachBottomDistance": 300,
|
||||
"enablePullDownRefresh": false,
|
||||
"usingComponents": {
|
||||
"xad": "/components/xad/xad",
|
||||
"xpop": "/components/xpop/xpop",
|
||||
"boot-nav": "/components/bootNav/bootNav"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,39 @@
|
|||
<view wx:if="{{isProduct}}">
|
||||
<view class="_div bookPage body xk_main_page">
|
||||
<view class="_div x-search search">
|
||||
<view class="_div x-search">
|
||||
<input bindinput="__e" class="_input x-search " data-event-opts="{{[ [ 'input',[ [ '__set_model',[ '','word','$event',[] ] ] ] ] ]}}" placeholder="请输入搜索" type="text" value="{{word}}"></input>
|
||||
<view bindtap="__e" class="searchTabItem searchTabItemFocus" data-event-opts="{{[ [ 'tap',[ ['doSearch'] ] ] ]}}" style="padding:3px 8px;">搜索</view>
|
||||
</view>
|
||||
<view class="_i x-search"></view>
|
||||
</view>
|
||||
<view class="searchTab">
|
||||
<view bindtap="__e" class="{{['','searchTabItem',tag==key?'searchTabItemFocus':'']}}" data-event-opts="{{[ [ 'tap',[ [ 'focus',[key] ] ] ] ]}}" wx:for="{{categoryList}}" wx:for-index="key">{{item}}</view>
|
||||
<view style="clear:both;"></view>
|
||||
<view class="_ul result">
|
||||
<view class="_li bookPage" wx:for="{{$root.l0}}" wx:for-index="__i0__">
|
||||
<view class="uni-flex uni-row x-item" wx:if="{{!item.$orig.ad_id}}">
|
||||
<view class="image-content flex-item">
|
||||
<image mode="aspectFill" src="{{item.$orig.face}}" style="width:80px;height:80px;background-color:#eeeeee;" wx:if="{{item.$orig.face}}"></image>
|
||||
</view>
|
||||
<view bindtap="__e" class="flex-item instroduce" data-event-opts="{{[ [ 'tap',[ [ 'x_redirect',['/pages/article/detail?id='+item.$orig.id] ] ] ] ]}}">
|
||||
<view>
|
||||
<text style="color:#94674b;margin-left:10rpx;">{{item.$orig.title+''}}</text>
|
||||
</view>
|
||||
<view>
|
||||
<text style="margin-left:10rpx;">{{item.$orig.introduce+''}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<xad bind:__l="__l" vueId="{{'9fa026dc-1-'+__i0__}}" x_common_ad="{{item.$orig}}" x_cp_ad="{{item.a0}}" wx:if="{{item.$orig.ad_id}}"></xad>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<xpop bind:__l="__l" class="vue-ref" data-ref="xpop" vueId="9fa026dc-2"></xpop>
|
||||
<view style="height:100px;"></view>
|
||||
<boot-nav bind:__l="__l" nav="article" vueId="9fa026dc-3"></boot-nav>
|
||||
</view>
|
||||
<view class="xk_ad_0">
|
||||
<xad bind:__l="__l" vueId="9fa026dc-4" x_common_ad="{{common_ad}}" x_cp_ad="{{cp_ad}}"></xad>
|
||||
</view>
|
||||
</view>
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,115 @@
|
|||
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([ [ "pages/article/detail" ], {
|
||||
"449d": function(t, e, n) {
|
||||
"use strict";
|
||||
n.r(e);
|
||||
var i = n("67e9"), a = n("a393");
|
||||
for (var o in a) [ "default" ].indexOf(o) < 0 && function(t) {
|
||||
n.d(e, t, function() {
|
||||
return a[t];
|
||||
});
|
||||
}(o);
|
||||
n("e97f");
|
||||
var u = n("f0c5"), c = Object(u["a"])(a["default"], i["b"], i["c"], !1, null, null, null, !1, i["a"], void 0);
|
||||
e["default"] = c.exports;
|
||||
},
|
||||
"67e9": function(t, e, n) {
|
||||
"use strict";
|
||||
n.d(e, "b", function() {
|
||||
return a;
|
||||
}), n.d(e, "c", function() {
|
||||
return o;
|
||||
}), n.d(e, "a", function() {
|
||||
return i;
|
||||
});
|
||||
var i = {
|
||||
xad: function() {
|
||||
return n.e("components/xad/xad").then(n.bind(null, "9621"));
|
||||
},
|
||||
xpop: function() {
|
||||
return n.e("components/xpop/xpop").then(n.bind(null, "8c3c"));
|
||||
},
|
||||
bootNav: function() {
|
||||
return Promise.all([ n.e("common/vendor"), n.e("components/bootNav/bootNav") ]).then(n.bind(null, "dc0f"));
|
||||
}
|
||||
}, a = function() {
|
||||
var t = this.$createElement, e = (this._self._c, this.isProduct ? {} : null);
|
||||
this.$mp.data = Object.assign({}, {
|
||||
$root: {
|
||||
a0: e
|
||||
}
|
||||
});
|
||||
}, o = [];
|
||||
},
|
||||
"9a98": function(t, e, n) {
|
||||
"use strict";
|
||||
(function(t, e) {
|
||||
var i = n("4ea4");
|
||||
n("94a9");
|
||||
i(n("66fd"));
|
||||
var a = i(n("449d"));
|
||||
t.__webpack_require_UNI_MP_PLUGIN__ = n, e(a.default);
|
||||
}).call(this, n("bc2e")["default"], n("543d")["createPage"]);
|
||||
},
|
||||
a393: function(t, e, n) {
|
||||
"use strict";
|
||||
n.r(e);
|
||||
var i = n("f5b6"), a = n.n(i);
|
||||
for (var o in i) [ "default" ].indexOf(o) < 0 && function(t) {
|
||||
n.d(e, t, function() {
|
||||
return i[t];
|
||||
});
|
||||
}(o);
|
||||
e["default"] = a.a;
|
||||
},
|
||||
b611: function(t, e, n) {},
|
||||
e97f: function(t, e, n) {
|
||||
"use strict";
|
||||
var i = n("b611"), a = n.n(i);
|
||||
a.a;
|
||||
},
|
||||
f5b6: function(t, e, n) {
|
||||
"use strict";
|
||||
Object.defineProperty(e, "__esModule", {
|
||||
value: !0
|
||||
}), e.default = void 0;
|
||||
e.default = {
|
||||
data: function() {
|
||||
return {
|
||||
id: 0,
|
||||
item: {},
|
||||
recommendList: []
|
||||
};
|
||||
},
|
||||
onLoad: function(t) {
|
||||
this.id = t.id, this.getItem(), this.x_get_ad("common"), this.cpAd();
|
||||
},
|
||||
methods: {
|
||||
onShareAppMessage: function() {
|
||||
return {
|
||||
title: this.title
|
||||
};
|
||||
},
|
||||
onShareTimeline: function() {
|
||||
return {
|
||||
title: this.title
|
||||
};
|
||||
},
|
||||
getItem: function() {
|
||||
this.x_request("api/fangji.article/detail", {
|
||||
id: this.id
|
||||
}, function(t, e) {
|
||||
var n = e.data;
|
||||
t.item = n, n.ad && (t.item_ad = n.ad), t.getRecommend(t.item.tag);
|
||||
});
|
||||
},
|
||||
getRecommend: function(t) {
|
||||
this.x_request("api/fangji.article/recommend", {
|
||||
tag: t
|
||||
}, function(t, e) {
|
||||
t.recommendList = e.data;
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}, [ [ "9a98", "common/runtime", "common/vendor" ] ] ]);
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"navigationBarTitleText": "文章详情",
|
||||
"enablePullDownRefresh": false,
|
||||
"usingComponents": {
|
||||
"xad": "/components/xad/xad",
|
||||
"xpop": "/components/xpop/xpop",
|
||||
"boot-nav": "/components/bootNav/bootNav"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,21 @@
|
|||
<view wx:if="{{isProduct}}">
|
||||
<view class="_div bookPage body xk_main_page" style="padding:10px;">
|
||||
<view style="color:#94674b;font-weight:bold;margin:10px 0px;">{{item.title}}</view>
|
||||
<view>
|
||||
<rich-text class="x_font_16 x-center" nodes="{{item.content}}" wx:if="{{item.content}}"></rich-text>
|
||||
</view>
|
||||
<!-- <xad bind:__l="__l" vueId="58187223-1" x_common_ad="{{item_ad}}" x_cp_ad="{{$root.a0}}"></xad> -->
|
||||
<view style="font-weight:bold;color:#94674b;">推荐阅读</view>
|
||||
<view>
|
||||
<view wx:for="{{recommendList}}" wx:for-index="__i0__" wx:for-item="recommend">
|
||||
<view bindtap="__e" data-event-opts="{{[ [ 'tap',[ [ 'x_redirect',['/pages/article/detail?id='+recommend.id] ] ] ] ]}}" style="color:#94674b;" wx:if="{{!recommend.ad_id}}">{{recommend.title}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<xpop bind:__l="__l" class="vue-ref" data-ref="xpop" vueId="58187223-2"></xpop>
|
||||
<view style="height:100px;"></view>
|
||||
<boot-nav bind:__l="__l" nav="article" vueId="58187223-3"></boot-nav>
|
||||
</view>
|
||||
<view class="xk_ad_0">
|
||||
<xad bind:__l="__l" vueId="58187223-4" x_common_ad="{{common_ad}}" x_cp_ad="{{cp_ad}}"></xad>
|
||||
</view>
|
||||
</view>
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,150 @@
|
|||
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([ [ "pages/book/book" ], {
|
||||
"0910": function(t, n, e) {
|
||||
"use strict";
|
||||
e.r(n);
|
||||
var o = e("ce5a"), a = e.n(o);
|
||||
for (var i in o) [ "default" ].indexOf(i) < 0 && function(t) {
|
||||
e.d(n, t, function() {
|
||||
return o[t];
|
||||
});
|
||||
}(i);
|
||||
n["default"] = a.a;
|
||||
},
|
||||
"4aba": function(t, n, e) {
|
||||
"use strict";
|
||||
e.d(n, "b", function() {
|
||||
return a;
|
||||
}), e.d(n, "c", function() {
|
||||
return i;
|
||||
}), e.d(n, "a", function() {
|
||||
return o;
|
||||
});
|
||||
var o = {
|
||||
xad: function() {
|
||||
return e.e("components/xad/xad").then(e.bind(null, "9621"));
|
||||
},
|
||||
xpop: function() {
|
||||
return e.e("components/xpop/xpop").then(e.bind(null, "8c3c"));
|
||||
},
|
||||
bootNav: function() {
|
||||
return Promise.all([ e.e("common/vendor"), e.e("components/bootNav/bootNav") ]).then(e.bind(null, "dc0f"));
|
||||
}
|
||||
}, a = function() {
|
||||
var t = this, n = t.$createElement, e = (t._self._c, t.isProduct ? t.__map(t.bookList, function(n, e) {
|
||||
var o = t.__get_orig(n), a = n.ad_id ? {} : null;
|
||||
return {
|
||||
$orig: o,
|
||||
a0: a
|
||||
};
|
||||
}) : null);
|
||||
t._isMounted || (t.e0 = function(n) {
|
||||
t.inputValue = "";
|
||||
}), t.$mp.data = Object.assign({}, {
|
||||
$root: {
|
||||
l0: e
|
||||
}
|
||||
});
|
||||
}, i = [];
|
||||
},
|
||||
"6f99": function(t, n, e) {
|
||||
"use strict";
|
||||
e.r(n);
|
||||
var o = e("4aba"), a = e("0910");
|
||||
for (var i in a) [ "default" ].indexOf(i) < 0 && function(t) {
|
||||
e.d(n, t, function() {
|
||||
return a[t];
|
||||
});
|
||||
}(i);
|
||||
e("9a39");
|
||||
var u = e("f0c5"), c = Object(u["a"])(a["default"], o["b"], o["c"], !1, null, null, null, !1, o["a"], void 0);
|
||||
n["default"] = c.exports;
|
||||
},
|
||||
"8d67": function(t, n, e) {
|
||||
"use strict";
|
||||
(function(t, n) {
|
||||
var o = e("4ea4");
|
||||
e("94a9");
|
||||
o(e("66fd"));
|
||||
var a = o(e("6f99"));
|
||||
t.__webpack_require_UNI_MP_PLUGIN__ = e, n(a.default);
|
||||
}).call(this, e("bc2e")["default"], e("543d")["createPage"]);
|
||||
},
|
||||
"9a39": function(t, n, e) {
|
||||
"use strict";
|
||||
var o = e("b0c5"), a = e.n(o);
|
||||
a.a;
|
||||
},
|
||||
b0c5: function(t, n, e) {},
|
||||
ce5a: function(t, n, e) {
|
||||
"use strict";
|
||||
Object.defineProperty(n, "__esModule", {
|
||||
value: !0
|
||||
}), n.default = void 0;
|
||||
n.default = {
|
||||
data: function() {
|
||||
return {
|
||||
inputValue: "",
|
||||
itemList: [],
|
||||
bookList: [],
|
||||
focusType: "",
|
||||
categoryList: []
|
||||
};
|
||||
},
|
||||
onLoad: function(t) {
|
||||
this.getList(), this.x_get_ad("common"), this.cpAd();
|
||||
},
|
||||
watch: {
|
||||
inputValue: {
|
||||
handler: function(t, n) {
|
||||
t != n && this.searchResult(t);
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
onShareAppMessage: function() {
|
||||
return {
|
||||
title: this.title
|
||||
};
|
||||
},
|
||||
onShareTimeline: function() {
|
||||
return {
|
||||
title: this.title
|
||||
};
|
||||
},
|
||||
getList: function() {
|
||||
this.x_request("api_v2/fangji/zy_book/category/", {}, function(t, n) {
|
||||
t.categoryList = n.data, t.focus(n.data[0]["key"]);
|
||||
});
|
||||
},
|
||||
focus: function(t) {
|
||||
this.changeTab(t);
|
||||
},
|
||||
changeTab: function(t) {
|
||||
this.focusType = t, this.x_request("api/fangji.book/book", {
|
||||
key: t
|
||||
}, function(t, n) {
|
||||
//去除数据中的广告数据
|
||||
console.log('处理前的数据:',n.data)
|
||||
const filteredArray = n.data.filter(item =>
|
||||
!item.ad_id
|
||||
);
|
||||
t.bookList = filteredArray;
|
||||
});
|
||||
},
|
||||
searchResult: function(t) {
|
||||
this.x_request("api/fangji.book/search", {
|
||||
name: t
|
||||
}, function(t, n) {
|
||||
//去除数据中的广告数据
|
||||
console.log('处理前的数据:',n.data)
|
||||
const filteredArray = n.data.filter(item =>
|
||||
!item.ad_id
|
||||
);
|
||||
t.bookList = filteredArray;
|
||||
// t.bookList = n.data;
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}, [ [ "8d67", "common/runtime", "common/vendor" ] ] ]);
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"navigationBarTitleText": "历代古籍",
|
||||
"enablePullDownRefresh": false,
|
||||
"usingComponents": {
|
||||
"xad": "/components/xad/xad",
|
||||
"xpop": "/components/xpop/xpop",
|
||||
"boot-nav": "/components/bootNav/bootNav"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,36 @@
|
|||
<view wx:if="{{isProduct}}">
|
||||
<view class="_div bookPage body xk_main_page">
|
||||
<view class="_div x-search search">
|
||||
<view class="_div x-search">
|
||||
<input bindinput="__e" class="_input x-search" data-event-opts="{{[ [ 'input',[ [ '__set_model',[ '','inputValue','$event',[] ] ] ] ] ]}}" placeholder="请输入搜索" type="text" value="{{inputValue}}"></input>
|
||||
<image alt="{{true}}" class="_img x-search" src="/static/app_image/search_icon1.png"></image>
|
||||
<view class="_em x-search iconBox">
|
||||
<button bindtap="__e" class="_button x-search icon font_family icon-icon_guanbi" data-event-opts="{{[ [ 'tap',[ [ 'searchClose',['$event'] ] ] ] ]}}"></button>
|
||||
</view>
|
||||
<label bindtap="__e" class="_span x-search" data-event-opts="{{[ [ 'tap',[ [ 'e0',['$event'] ] ] ] ]}}">取消</label>
|
||||
</view>
|
||||
<view class="_i x-search"></view>
|
||||
</view>
|
||||
<view class="searchTab">
|
||||
<view bindtap="__e" class="{{['','searchTabItem',focusType==item.key?'searchTabItemFocus':'']}}" data-event-opts="{{[ [ 'tap',[ [ 'focus',['$0'],[ [ ['categoryList','',key,'key'] ] ] ] ] ] ]}}" wx:for="{{categoryList}}" wx:for-index="key">{{item.title}}</view>
|
||||
<view style="clear:both;"></view>
|
||||
<view class="_ul bookPage result">
|
||||
<view bindtap="__e" class="_li bookPage" data-event-opts="{{[ [ 'tap',[ [ 'x_redirect',['/pages/book/chapter?id='+book.$orig.id+'&book='+book.$orig.name] ] ] ] ]}}" wx:for="{{$root.l0}}" wx:for-index="__i0__" wx:for-item="book">
|
||||
<view class="_div bookPage title" wx:if="{{book.$orig.id}}">
|
||||
<view class="_h3 bookPage">{{''+book.$orig.name+''}}</view>
|
||||
<view class="_h3 bookPage">
|
||||
<text wx:if="{{book.$orig.author}}">{{book.$orig.author}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<xad bind:__l="__l" vueId="{{'59a10720-1-'+__i0__}}" x_common_ad="{{book.$orig}}" x_cp_ad="{{book.a0}}" wx:if="{{book.$orig.ad_id}}"></xad>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<xpop bind:__l="__l" class="vue-ref" data-ref="xpop" vueId="59a10720-2"></xpop>
|
||||
<view style="height:100px;"></view>
|
||||
<boot-nav bind:__l="__l" nav="book" vueId="59a10720-3"></boot-nav>
|
||||
</view>
|
||||
<view class="xk_ad_0">
|
||||
<xad bind:__l="__l" vueId="59a10720-4" x_common_ad="{{common_ad}}" x_cp_ad="{{cp_ad}}"></xad>
|
||||
</view>
|
||||
</view>
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,138 @@
|
|||
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([ [ "pages/book/chapter" ], {
|
||||
"003d": function(t, n, i) {
|
||||
"use strict";
|
||||
i.r(n);
|
||||
var o = i("8d34"), e = i.n(o);
|
||||
for (var a in o) [ "default" ].indexOf(a) < 0 && function(t) {
|
||||
i.d(n, t, function() {
|
||||
return o[t];
|
||||
});
|
||||
}(a);
|
||||
n["default"] = e.a;
|
||||
},
|
||||
"257b": function(t, n, i) {
|
||||
"use strict";
|
||||
var o = i("f34a"), e = i.n(o);
|
||||
e.a;
|
||||
},
|
||||
"5abc": function(t, n, i) {
|
||||
"use strict";
|
||||
i.r(n);
|
||||
var o = i("923c"), e = i("003d");
|
||||
for (var a in e) [ "default" ].indexOf(a) < 0 && function(t) {
|
||||
i.d(n, t, function() {
|
||||
return e[t];
|
||||
});
|
||||
}(a);
|
||||
i("257b");
|
||||
var r = i("f0c5"), u = Object(r["a"])(e["default"], o["b"], o["c"], !1, null, null, null, !1, o["a"], void 0);
|
||||
n["default"] = u.exports;
|
||||
},
|
||||
"8d34": function(t, n, i) {
|
||||
"use strict";
|
||||
(function(t) {
|
||||
Object.defineProperty(n, "__esModule", {
|
||||
value: !0
|
||||
}), n.default = void 0;
|
||||
var i = {
|
||||
data: function() {
|
||||
return {
|
||||
itemList: []
|
||||
};
|
||||
},
|
||||
onLoad: function(t) {
|
||||
var n;
|
||||
this.book = t.book, this.book_id = null !== (n = t.id) && void 0 !== n ? n : 1,
|
||||
this.init();
|
||||
},
|
||||
methods: {
|
||||
onShareAppMessage: function() {
|
||||
return {
|
||||
title: this.title
|
||||
};
|
||||
},
|
||||
onShareTimeline: function() {
|
||||
return {
|
||||
title: this.title
|
||||
};
|
||||
},
|
||||
init: function() {
|
||||
var n = this;
|
||||
t.setNavigationBarTitle({
|
||||
title: n.book + "目录"
|
||||
}), n.getList(), this.x_get_ad("common"), n.cpAd();
|
||||
},
|
||||
getList: function() {
|
||||
this.x_request("api/fangji.book/chapter", {
|
||||
book_id: this.book_id
|
||||
}, function(t, n) {
|
||||
//去除数据中的广告数据
|
||||
console.log('处理前的数据:',n.data)
|
||||
const filteredArray = n.data.filter(item =>
|
||||
!item.ad_id
|
||||
);
|
||||
console.log('处理后的数据:',filteredArray)
|
||||
t.itemList = filteredArray;
|
||||
});
|
||||
},
|
||||
toDetail: function(t, n) {
|
||||
this.x_redirect("/pages/book/detail?id=" + t + "&book_id=" + this.book_id + "&title=" + this.book + "-" + n);
|
||||
}
|
||||
}
|
||||
};
|
||||
n.default = i;
|
||||
}).call(this, i("543d")["default"]);
|
||||
},
|
||||
"923c": function(t, n, i) {
|
||||
"use strict";
|
||||
i.d(n, "b", function() {
|
||||
return e;
|
||||
}), i.d(n, "c", function() {
|
||||
return a;
|
||||
}), i.d(n, "a", function() {
|
||||
return o;
|
||||
});
|
||||
var o = {
|
||||
xad: function() {
|
||||
return i.e("components/xad/xad").then(i.bind(null, "9621"));
|
||||
},
|
||||
xpop: function() {
|
||||
return i.e("components/xpop/xpop").then(i.bind(null, "8c3c"));
|
||||
},
|
||||
bootNav: function() {
|
||||
return Promise.all([ i.e("common/vendor"), i.e("components/bootNav/bootNav") ]).then(i.bind(null, "dc0f"));
|
||||
}
|
||||
}, e = function() {
|
||||
var t = this, n = t.$createElement, i = (t._self._c, t.isProduct ? t.__map(t.itemList, function(n, i) {
|
||||
var o = t.__get_orig(n), e = n.ad_id ? null : t.__map(n.child, function(i, o) {
|
||||
var e = t.__get_orig(i), a = n.child.length;
|
||||
return {
|
||||
$orig: e,
|
||||
g0: a
|
||||
};
|
||||
}), a = n.ad_id ? {} : null;
|
||||
return {
|
||||
$orig: o,
|
||||
l0: e,
|
||||
a0: a
|
||||
};
|
||||
}) : null);
|
||||
t.$mp.data = Object.assign({}, {
|
||||
$root: {
|
||||
l1: i
|
||||
}
|
||||
});
|
||||
}, a = [];
|
||||
},
|
||||
bff2: function(t, n, i) {
|
||||
"use strict";
|
||||
(function(t, n) {
|
||||
var o = i("4ea4");
|
||||
i("94a9");
|
||||
o(i("66fd"));
|
||||
var e = o(i("5abc"));
|
||||
t.__webpack_require_UNI_MP_PLUGIN__ = i, n(e.default);
|
||||
}).call(this, i("bc2e")["default"], i("543d")["createPage"]);
|
||||
},
|
||||
f34a: function(t, n, i) {}
|
||||
}, [ [ "bff2", "common/runtime", "common/vendor" ] ] ]);
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"navigationBarTitleText": "历代古籍",
|
||||
"enablePullDownRefresh": false,
|
||||
"usingComponents": {
|
||||
"xad": "/components/xad/xad",
|
||||
"xpop": "/components/xpop/xpop",
|
||||
"boot-nav": "/components/bootNav/bootNav"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,27 @@
|
|||
<view class="_div bookPage body" wx:if="{{isProduct}}">
|
||||
<view class="xk_main_page">
|
||||
<view class="searchTab">
|
||||
<view class="_ul bookPage result">
|
||||
<view class="_li bookPage" style="border-bottom:0rpx;padding-bottom:0rpx;" wx:for="{{$root.l1}}" wx:for-index="__i0__">
|
||||
<view wx:if="{{!item.$orig.ad_id}}">
|
||||
<view class="_div bookPage title x_bottom">
|
||||
<view class="_h3 bookPage x_font_16 xfocus_color">{{'|-'+item.$orig.chapter.name+''}}</view>
|
||||
<view bindtap="__e" class="xfocus_color x_font_16" data-event-opts="{{[ [ 'tap',[ [ 'toDetail',['$0','$1'],[ [ ['itemList','',__i0__,'chapter.content_id'] ],[ ['itemList','',__i0__,'chapter.name'] ] ] ] ] ] ]}}" wx:if="{{item.$orig.chapter.content_id>0}}">查看</view>
|
||||
</view>
|
||||
<view class="_div bookPage title x_child_li" wx:if="{{first.g0>0}}" wx:for="{{item.l0}}" wx:for-index="__i1__" wx:for-item="first">
|
||||
<view class="_h3 bookPage x_font_16">{{'|-----'+first.$orig.chapter.name+''}}</view>
|
||||
<view bindtap="__e" class="_h3 bookPage x_font_16" data-event-opts="{{[ [ 'tap',[ [ 'toDetail',['$0','$1'],[ [ ['itemList','',__i0__],['child','',__i1__,'chapter.content_id'] ],[ ['itemList','',__i0__],['child','',__i1__,'chapter.name'] ] ] ] ] ] ]}}">查看</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- <xad bind:__l="__l" vueId="{{'5a72f066-1-'+__i0__}}" x_common_ad="{{item.$orig}}" x_cp_ad="{{item.a0}}" wx:if="{{item.$orig.ad_id}}"></xad> -->
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<xpop bind:__l="__l" class="vue-ref" data-ref="xpop" vueId="5a72f066-2"></xpop>
|
||||
<view style="height:100px;"></view>
|
||||
<boot-nav bind:__l="__l" nav="book" vueId="5a72f066-3"></boot-nav>
|
||||
</view>
|
||||
<view class="xk_ad_0">
|
||||
<xad bind:__l="__l" vueId="5a72f066-4" x_common_ad="{{common_ad}}" x_cp_ad="{{cp_ad}}"></xad>
|
||||
</view>
|
||||
</view>
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,126 @@
|
|||
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([ [ "pages/book/detail" ], {
|
||||
"129c": function(t, n, e) {
|
||||
"use strict";
|
||||
e.r(n);
|
||||
var i = e("d72f"), o = e.n(i);
|
||||
for (var a in i) [ "default" ].indexOf(a) < 0 && function(t) {
|
||||
e.d(n, t, function() {
|
||||
return i[t];
|
||||
});
|
||||
}(a);
|
||||
n["default"] = o.a;
|
||||
},
|
||||
"1f42": function(t, n, e) {
|
||||
"use strict";
|
||||
(function(t, n) {
|
||||
var i = e("4ea4");
|
||||
e("94a9");
|
||||
i(e("66fd"));
|
||||
var o = i(e("9097"));
|
||||
t.__webpack_require_UNI_MP_PLUGIN__ = e, n(o.default);
|
||||
}).call(this, e("bc2e")["default"], e("543d")["createPage"]);
|
||||
},
|
||||
"5f36": function(t, n, e) {},
|
||||
"849d": function(t, n, e) {
|
||||
"use strict";
|
||||
var i = e("5f36"), o = e.n(i);
|
||||
o.a;
|
||||
},
|
||||
9097: function(t, n, e) {
|
||||
"use strict";
|
||||
e.r(n);
|
||||
var i = e("b1d3"), o = e("129c");
|
||||
for (var a in o) [ "default" ].indexOf(a) < 0 && function(t) {
|
||||
e.d(n, t, function() {
|
||||
return o[t];
|
||||
});
|
||||
}(a);
|
||||
e("849d");
|
||||
var r = e("f0c5"), u = Object(r["a"])(o["default"], i["b"], i["c"], !1, null, null, null, !1, i["a"], void 0);
|
||||
n["default"] = u.exports;
|
||||
},
|
||||
b1d3: function(t, n, e) {
|
||||
"use strict";
|
||||
e.d(n, "b", function() {
|
||||
return o;
|
||||
}), e.d(n, "c", function() {
|
||||
return a;
|
||||
}), e.d(n, "a", function() {
|
||||
return i;
|
||||
});
|
||||
var i = {
|
||||
xad: function() {
|
||||
return e.e("components/xad/xad").then(e.bind(null, "9621"));
|
||||
},
|
||||
xpop: function() {
|
||||
return e.e("components/xpop/xpop").then(e.bind(null, "8c3c"));
|
||||
},
|
||||
bootNav: function() {
|
||||
return Promise.all([ e.e("common/vendor"), e.e("components/bootNav/bootNav") ]).then(e.bind(null, "dc0f"));
|
||||
}
|
||||
}, o = function() {
|
||||
var t = this, n = t.$createElement, e = (t._self._c, t.isProduct ? t.__map(t.contentList, function(n, e) {
|
||||
var i = t.__get_orig(n), o = n.ad_id ? {} : null;
|
||||
return {
|
||||
$orig: i,
|
||||
a0: o
|
||||
};
|
||||
}) : null);
|
||||
t.$mp.data = Object.assign({}, {
|
||||
$root: {
|
||||
l0: e
|
||||
}
|
||||
});
|
||||
}, a = [];
|
||||
},
|
||||
d72f: function(t, n, e) {
|
||||
"use strict";
|
||||
(function(t) {
|
||||
Object.defineProperty(n, "__esModule", {
|
||||
value: !0
|
||||
}), n.default = void 0;
|
||||
var e = {
|
||||
data: function() {
|
||||
return {
|
||||
chapter_id: 0,
|
||||
book_id: 0,
|
||||
barTitle: "",
|
||||
contentList: []
|
||||
};
|
||||
},
|
||||
onLoad: function(t) {
|
||||
this.chapter_id = t.id, this.book_id = t.book_id, this.barTitle = t.title, this.init();
|
||||
},
|
||||
methods: {
|
||||
onShareAppMessage: function() {
|
||||
return {
|
||||
title: this.title
|
||||
};
|
||||
},
|
||||
onShareTimeline: function() {
|
||||
return {
|
||||
title: this.title
|
||||
};
|
||||
},
|
||||
init: function() {
|
||||
var n = this;
|
||||
t.setNavigationBarTitle({
|
||||
title: n.barTitle
|
||||
}), n.getContentList(), this.x_get_ad("common"), n.cpAd();
|
||||
},
|
||||
getContentList: function() {
|
||||
t.showLoading({
|
||||
title: "加载中..."
|
||||
}), this.x_request("api/fangji.book/detail", {
|
||||
book_id: this.book_id,
|
||||
chapter_id: this.chapter_id
|
||||
}, function(n, e) {
|
||||
n.contentList = e.data, t.hideLoading();
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
n.default = e;
|
||||
}).call(this, e("543d")["default"]);
|
||||
}
|
||||
}, [ [ "1f42", "common/runtime", "common/vendor" ] ] ]);
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"navigationBarTitleText": "历代古籍",
|
||||
"enablePullDownRefresh": false,
|
||||
"usingComponents": {
|
||||
"xad": "/components/xad/xad",
|
||||
"xpop": "/components/xpop/xpop",
|
||||
"boot-nav": "/components/bootNav/bootNav"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
<view class="_div bookPage body" wx:if="{{isProduct}}">
|
||||
<view class="xk_main_page">
|
||||
<view class="contentPage">
|
||||
<view wx:for="{{$root.l0}}" wx:for-index="__i0__">
|
||||
<view wx:if="{{!item.$orig.ad_id}}">
|
||||
<rich-text class="x_font_16 xfocus_color x-center" nodes="{{item.$orig.value}}" wx:if="{{item.$orig.is_title===1}}"></rich-text>
|
||||
<rich-text class="x_font_14" nodes="{{item.$orig.value}}" wx:else></rich-text>
|
||||
</view>
|
||||
<xad bind:__l="__l" common_ad="{{item.$orig}}" cp_ad="{{item.a0}}" vueId="{{'052d77f8-1-'+__i0__}}" wx:if="{{item.$orig.ad_id}}"></xad>
|
||||
</view>
|
||||
</view>
|
||||
<view style="height:300px;"></view>
|
||||
<xpop bind:__l="__l" class="vue-ref" data-ref="xpop" vueId="052d77f8-2"></xpop>
|
||||
<boot-nav bind:__l="__l" nav="book" vueId="052d77f8-3"></boot-nav>
|
||||
</view>
|
||||
<view class="xk_ad_0">
|
||||
<xad bind:__l="__l" vueId="052d77f8-4" x_common_ad="{{common_ad}}" x_cp_ad="{{cp_ad}}"></xad>
|
||||
</view>
|
||||
</view>
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,107 @@
|
|||
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([ [ "pages/category/category" ], {
|
||||
1340: function(n, t, e) {
|
||||
"use strict";
|
||||
var o = e("86fc"), a = e.n(o);
|
||||
a.a;
|
||||
},
|
||||
"1a48": function(n, t, e) {
|
||||
"use strict";
|
||||
var o = e("4ea4");
|
||||
Object.defineProperty(t, "__esModule", {
|
||||
value: !0
|
||||
}), t.default = void 0;
|
||||
o(e("5c77"));
|
||||
t.default = {
|
||||
data: function() {
|
||||
return {
|
||||
fangjiCategory: [],
|
||||
zhongyaoCategory: [],
|
||||
openDetail: 0
|
||||
};
|
||||
},
|
||||
onLoad: function() {
|
||||
this.x_get_ad("common"), this.getCategory(), this.cpAd();
|
||||
},
|
||||
methods: {
|
||||
toResult: function(n, t, e) {
|
||||
1 === this.openDetail && this.x_redirect("/pages/result/result?category_id=" + n + "&cat_title=" + t + "分类&tab=" + e);
|
||||
},
|
||||
getCategory: function() {
|
||||
this.x_request("api/fangji.index/category", {}, function(n, t) {
|
||||
n.fangjiCategory = t.data.fangji, n.zhongyaoCategory = t.data.zhongyao, n.openDetail = t.status;
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
},
|
||||
"1b3a": function(n, t, e) {
|
||||
"use strict";
|
||||
(function(n, t) {
|
||||
var o = e("4ea4");
|
||||
e("94a9");
|
||||
o(e("66fd"));
|
||||
var a = o(e("d1c8"));
|
||||
n.__webpack_require_UNI_MP_PLUGIN__ = e, t(a.default);
|
||||
}).call(this, e("bc2e")["default"], e("543d")["createPage"]);
|
||||
},
|
||||
"85d7": function(n, t, e) {
|
||||
"use strict";
|
||||
e.d(t, "b", function() {
|
||||
return a;
|
||||
}), e.d(t, "c", function() {
|
||||
return i;
|
||||
}), e.d(t, "a", function() {
|
||||
return o;
|
||||
});
|
||||
var o = {
|
||||
uniSection: function() {
|
||||
return e.e("uni_modules/uni-section/components/uni-section/uni-section").then(e.bind(null, "79f5"));
|
||||
},
|
||||
uniCard: function() {
|
||||
return e.e("uni_modules/uni-card/components/uni-card/uni-card").then(e.bind(null, "7d11"));
|
||||
},
|
||||
xpop: function() {
|
||||
return e.e("components/xpop/xpop").then(e.bind(null, "8c3c"));
|
||||
},
|
||||
bootNav: function() {
|
||||
return Promise.all([ e.e("common/vendor"), e.e("components/bootNav/bootNav") ]).then(e.bind(null, "dc0f"));
|
||||
},
|
||||
xad: function() {
|
||||
return e.e("components/xad/xad").then(e.bind(null, "9621"));
|
||||
}
|
||||
}, a = function() {
|
||||
var n = this.$createElement, t = (this._self._c, this.fangjiCategory.length), e = this.zhongyaoCategory.length;
|
||||
this.$mp.data = Object.assign({}, {
|
||||
$root: {
|
||||
g0: t,
|
||||
g1: e
|
||||
}
|
||||
});
|
||||
}, i = [];
|
||||
},
|
||||
"86fc": function(n, t, e) {},
|
||||
c7d5: function(n, t, e) {
|
||||
"use strict";
|
||||
e.r(t);
|
||||
var o = e("1a48"), a = e.n(o);
|
||||
for (var i in o) [ "default" ].indexOf(i) < 0 && function(n) {
|
||||
e.d(t, n, function() {
|
||||
return o[n];
|
||||
});
|
||||
}(i);
|
||||
t["default"] = a.a;
|
||||
},
|
||||
d1c8: function(n, t, e) {
|
||||
"use strict";
|
||||
e.r(t);
|
||||
var o = e("85d7"), a = e("c7d5");
|
||||
for (var i in a) [ "default" ].indexOf(i) < 0 && function(n) {
|
||||
e.d(t, n, function() {
|
||||
return a[n];
|
||||
});
|
||||
}(i);
|
||||
e("1340");
|
||||
var u = e("f0c5"), c = Object(u["a"])(a["default"], o["b"], o["c"], !1, null, null, null, !1, o["a"], void 0);
|
||||
t["default"] = c.exports;
|
||||
}
|
||||
}, [ [ "1b3a", "common/runtime", "common/vendor" ] ] ]);
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"navigationBarTitleText": "分类",
|
||||
"enablePullDownRefresh": false,
|
||||
"usingComponents": {
|
||||
"uni-section": "/uni_modules/uni-section/components/uni-section/uni-section",
|
||||
"uni-card": "/uni_modules/uni-card/components/uni-card/uni-card",
|
||||
"xpop": "/components/xpop/xpop",
|
||||
"boot-nav": "/components/bootNav/bootNav",
|
||||
"xad": "/components/xad/xad"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,24 @@
|
|||
<view class="_div data-v-6414c978 IndexContainer">
|
||||
<view class="xk_main_page">
|
||||
<uni-section bind:__l="__l" title="方剂分类" type="line" vueId="9d275500-1" vueSlots="{{['default']}}" wx:if="{{$root.g0>0}}">
|
||||
<uni-card bind:__l="__l" isFull="{{true}}" isShadow="{{false}}" vueId="{{'9d275500-2'+','+'9d275500-1'}}" vueSlots="{{['default']}}">
|
||||
<view class="_div data-v-6414c978 body xcateBox">
|
||||
<label bindtap="__e" class="_span data-v-6414c978 toCollect" data-event-opts="{{[ [ 'tap',[ [ 'toResult',['$0','$1',1],[ [ ['fangjiCategory','',__i0__,'id'] ],[ ['fangjiCategory','',__i0__,'title'] ] ] ] ] ] ]}}" wx:for="{{fangjiCategory}}" wx:for-index="__i0__">{{item.title}}</label>
|
||||
</view>
|
||||
</uni-card>
|
||||
</uni-section>
|
||||
<uni-section bind:__l="__l" title="中药分类" type="line" vueId="9d275500-3" vueSlots="{{['default']}}" wx:if="{{$root.g1>0}}">
|
||||
<uni-card bind:__l="__l" isFull="{{true}}" isShadow="{{false}}" vueId="{{'9d275500-4'+','+'9d275500-3'}}" vueSlots="{{['default']}}">
|
||||
<view class="_div data-v-6414c978 body xcateBox">
|
||||
<label bindtap="__e" class="_span data-v-6414c978 toCollect" data-event-opts="{{[ [ 'tap',[ [ 'toResult',['$0','$1',2],[ [ ['zhongyaoCategory','',__i1__,'id'] ],[ ['zhongyaoCategory','',__i1__,'title'] ] ] ] ] ] ]}}" wx:for="{{zhongyaoCategory}}" wx:for-index="__i1__">{{item.title}}</label>
|
||||
</view>
|
||||
</uni-card>
|
||||
</uni-section>
|
||||
<view style="height:100px;"></view>
|
||||
<xpop bind:__l="__l" class="vue-ref" data-ref="xpop" vueId="9d275500-5"></xpop>
|
||||
<boot-nav bind:__l="__l" nav="category" vueId="9d275500-6"></boot-nav>
|
||||
</view>
|
||||
<view class="xk_ad_0">
|
||||
<xad bind:__l="__l" vueId="9d275500-7" x_common_ad="{{common_ad}}" x_cp_ad="{{cp_ad}}"></xad>
|
||||
</view>
|
||||
</view>
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,174 @@
|
|||
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([ [ "pages/chat/chat" ], {
|
||||
"4e6c": function(e, n, t) {
|
||||
"use strict";
|
||||
t.d(n, "b", function() {
|
||||
return o;
|
||||
}), t.d(n, "c", function() {
|
||||
return a;
|
||||
}), t.d(n, "a", function() {
|
||||
return i;
|
||||
});
|
||||
var i = {
|
||||
adInterstitial: function() {
|
||||
return Promise.all([ t.e("common/vendor"), t.e("node-modules/@dcloudio/uni-cli-shared/components/ad-interstitial") ]).then(t.bind(null, "faa3"));
|
||||
},
|
||||
adRewardedVideo: function() {
|
||||
return Promise.all([ t.e("common/vendor"), t.e("node-modules/@dcloudio/uni-cli-shared/components/ad-rewarded-video") ]).then(t.bind(null, "52ee"));
|
||||
},
|
||||
uniEasyinput: function() {
|
||||
return t.e("uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput").then(t.bind(null, "aad6"));
|
||||
},
|
||||
bootNav: function() {
|
||||
return Promise.all([ t.e("common/vendor"), t.e("components/bootNav/bootNav") ]).then(t.bind(null, "dc0f"));
|
||||
},
|
||||
xpop: function() {
|
||||
return t.e("components/xpop/xpop").then(t.bind(null, "8c3c"));
|
||||
}
|
||||
}, o = function() {
|
||||
var e = this, n = e.$createElement;
|
||||
e._self._c;
|
||||
e._isMounted || (e.e0 = function(n) {
|
||||
e.ask = "";
|
||||
});
|
||||
}, a = [];
|
||||
},
|
||||
6384: function(e, n, t) {
|
||||
"use strict";
|
||||
t.r(n);
|
||||
var i = t("f837"), o = t.n(i);
|
||||
for (var a in i) [ "default" ].indexOf(a) < 0 && function(e) {
|
||||
t.d(n, e, function() {
|
||||
return i[e];
|
||||
});
|
||||
}(a);
|
||||
n["default"] = o.a;
|
||||
},
|
||||
"7fc2": function(e, n, t) {
|
||||
"use strict";
|
||||
var i = t("a6d5"), o = t.n(i);
|
||||
o.a;
|
||||
},
|
||||
a69d: function(e, n, t) {
|
||||
"use strict";
|
||||
(function(e, n) {
|
||||
var i = t("4ea4");
|
||||
t("94a9");
|
||||
i(t("66fd"));
|
||||
var o = i(t("ad71"));
|
||||
e.__webpack_require_UNI_MP_PLUGIN__ = t, n(o.default);
|
||||
}).call(this, t("bc2e")["default"], t("543d")["createPage"]);
|
||||
},
|
||||
a6d5: function(e, n, t) {},
|
||||
ad71: function(e, n, t) {
|
||||
"use strict";
|
||||
t.r(n);
|
||||
var i = t("4e6c"), o = t("6384");
|
||||
for (var a in o) [ "default" ].indexOf(a) < 0 && function(e) {
|
||||
t.d(n, e, function() {
|
||||
return o[e];
|
||||
});
|
||||
}(a);
|
||||
t("7fc2");
|
||||
var s = t("f0c5"), c = Object(s["a"])(o["default"], i["b"], i["c"], !1, null, null, null, !1, i["a"], void 0);
|
||||
n["default"] = c.exports;
|
||||
},
|
||||
f837: function(e, n, t) {
|
||||
"use strict";
|
||||
(function(e) {
|
||||
var i = t("4ea4");
|
||||
Object.defineProperty(n, "__esModule", {
|
||||
value: !0
|
||||
}), n.default = void 0;
|
||||
var o = i(t("5c77")), a = {
|
||||
components: {
|
||||
xpop: function() {
|
||||
t.e("components/xpop/xpop").then(function() {
|
||||
return resolve(t("8c3c"));
|
||||
}.bind(null, t)).catch(t.oe);
|
||||
}
|
||||
},
|
||||
data: function() {
|
||||
return {
|
||||
title: "智能问答",
|
||||
isProduct: 0,
|
||||
scrollHeight: "height:300px;",
|
||||
ask: "",
|
||||
itemList: [],
|
||||
current_page: 0,
|
||||
last_page: 1,
|
||||
noMore: 0,
|
||||
endId: "",
|
||||
type: "center",
|
||||
msgType: "success",
|
||||
messageText: "这是一条成功提示",
|
||||
value: "",
|
||||
loading: !1
|
||||
};
|
||||
},
|
||||
onReady: function() {
|
||||
var n = this;
|
||||
e.getSystemInfo({
|
||||
success: function(e) {
|
||||
var t = 150;
|
||||
e.windowHeight > 800 && (t = 250), n.scrollHeight = "height:" + (e.windowHeight - t) + "px;";
|
||||
}
|
||||
}), this.getSessions(), this.cpAd(), this.initRewardAd();
|
||||
},
|
||||
methods: {
|
||||
onShareAppMessage: function() {
|
||||
return {
|
||||
title: this.title
|
||||
};
|
||||
},
|
||||
onShareTimeline: function() {
|
||||
return {
|
||||
title: this.title
|
||||
};
|
||||
},
|
||||
subAsk: function() {
|
||||
"" === this.ask ? e.showToast({
|
||||
title: "请输入需要提问的内容",
|
||||
icon: "error",
|
||||
duration: 2e3
|
||||
}) : o.default.toAsk(this);
|
||||
},
|
||||
getSessions: function() {
|
||||
this.x_request("api/chat/lst", {
|
||||
page: this.current_page + 1
|
||||
}, function(e, n) {
|
||||
1 === n.code && (e.itemList = e.itemList.concat(n.data.data), e.current_page = n.data.current_page,
|
||||
e.last_page = n.data.last_page, e.toEnd());
|
||||
});
|
||||
},
|
||||
toEnd: function() {
|
||||
var e = this.itemList.length;
|
||||
this.endId = "end" + (e - 1);
|
||||
},
|
||||
playVideo: function() {
|
||||
var e = this;
|
||||
console.log("play"), console.log(this.videoAd), this.videoAd && this.videoAd.show().catch(function() {
|
||||
e.videoAd.load().then(function() {
|
||||
return e.videoAd.show();
|
||||
}).catch(function(e) {
|
||||
console.log("激励视频 广告显示失败");
|
||||
});
|
||||
}), 1 === this.isAdUni && this.$refs.adRewardedVideo.show();
|
||||
},
|
||||
addTimes: function() {
|
||||
this.x_request("api/chat/addTimes", {}, function(e, n) {
|
||||
e.x_tips("success", "成功领取免费提问次数");
|
||||
});
|
||||
},
|
||||
dialogConfirm: function() {
|
||||
this.playVideo();
|
||||
},
|
||||
onadclose: function(e) {
|
||||
var n = e.detail;
|
||||
n && n.isEnded ? this.addTimes() : console.log("onClose " + n.isEnded);
|
||||
}
|
||||
}
|
||||
};
|
||||
n.default = a;
|
||||
}).call(this, t("543d")["default"]);
|
||||
}
|
||||
}, [ [ "a69d", "common/runtime", "common/vendor" ] ] ]);
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"navigationBarTitleText": "问答",
|
||||
"enablePullDownRefresh": false,
|
||||
"usingComponents": {
|
||||
"ad-interstitial": "/node-modules/@dcloudio/uni-cli-shared/components/ad-interstitial",
|
||||
"ad-rewarded-video": "/node-modules/@dcloudio/uni-cli-shared/components/ad-rewarded-video",
|
||||
"uni-easyinput": "/uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput",
|
||||
"boot-nav": "/components/bootNav/bootNav",
|
||||
"xpop": "/components/xpop/xpop"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,36 @@
|
|||
<view class="container" wx:if="{{isProduct}}">
|
||||
<ad-interstitial adpid="{{cp_ad.ad_id}}" bind:__l="__l" class="vue-ref" data-ref="adInterstitial" vueId="6e1d75c0-1" wx:if="{{cp_ad.from==='uni'}}"></ad-interstitial>
|
||||
<ad-rewarded-video adpid="{{reward_ad.ad_id}}" bind:__l="__l" bind:close="__e" class="vue-ref" data-event-opts="{{[ [ '^close',[ ['onadclose'] ] ] ]}}" data-ref="adRewardedVideo" vueId="6e1d75c0-2" wx:if="{{reward_ad.from==='uni'}}"></ad-rewarded-video>
|
||||
<view>
|
||||
<scroll-view scrollIntoView="{{endId}}" scrollY="true" style="{{scrollHeight}}">
|
||||
<view>
|
||||
<view class="uni-flex uni-row chat-row" wx:for="{{itemList}}">
|
||||
<view class="flex-item flex-item-avatar" wx:if="{{item.type==1}}">
|
||||
<image class="_img" src="{{item.avatar}}"></image>
|
||||
</view>
|
||||
<view class="flex-item flex-item-message" wx:else>
|
||||
<text selectable="true">{{''+item.content+''}}</text>
|
||||
</view>
|
||||
<view class="flex-item flex-item-message" id="{{'end'+index}}" wx:if="{{item.type==1}}">
|
||||
<text selectable="true">{{''+item.content+''}}</text>
|
||||
</view>
|
||||
<view class="flex-item flex-item-avatar" id="{{'end'+index}}" wx:else>
|
||||
<image class="_img" src="{{item.avatar}}"></image>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view id="end"></view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
<view class="uni-flex uni-row ask-container">
|
||||
<view class="flex-item ask-input">
|
||||
<uni-easyinput autoHeight="{{true}}" bind:__l="__l" bind:input="__e" data-event-opts="{{[ [ '^input',[ [ '__set_model',[ '','ask','$event',[] ] ] ] ] ]}}" inputBorder="{{false}}" maxlength="255" placeholder="提问次数并非无限,请谨慎提问" type="textarea" value="{{ask}}" vueId="6e1d75c0-3"></uni-easyinput>
|
||||
</view>
|
||||
<view class="flex-item ask-btn">
|
||||
<button bindtap="__e" class="flex-item" data-event-opts="{{[ [ 'tap',[ ['subAsk'] ] ] ]}}" size="mini" type="primary">提交</button>
|
||||
<button bindtap="__e" class="flex-item" data-event-opts="{{[ [ 'tap',[ [ 'e0',['$event'] ] ] ] ]}}" size="mini" type="warn">清空</button>
|
||||
</view>
|
||||
</view>
|
||||
<boot-nav bind:__l="__l" nav="chat" vueId="6e1d75c0-4"></boot-nav>
|
||||
<xpop bind:__l="__l" class="vue-ref" data-ref="xpop" vueId="6e1d75c0-5"></xpop>
|
||||
</view>
|
|
@ -0,0 +1,62 @@
|
|||
page {
|
||||
background: #ebeef5;
|
||||
}
|
||||
|
||||
.xpage-container {
|
||||
background-color: #ebeef5;
|
||||
}
|
||||
|
||||
.chat-row {
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.flex-item-avatar {
|
||||
line-height: 35px;
|
||||
text-align: center;
|
||||
width: 15%;
|
||||
}
|
||||
|
||||
.flex-item-avatar ._img {
|
||||
border-radius: 5rpx;
|
||||
height: 35px;
|
||||
width: 35px;
|
||||
}
|
||||
|
||||
.flex-item-message {
|
||||
background: #fff;
|
||||
border-radius: 10rpx;
|
||||
padding: 5px;
|
||||
width: 80%;
|
||||
}
|
||||
|
||||
.flex-item-message text {
|
||||
word-wrap: break-word;
|
||||
color: #666;
|
||||
display: inline-block;
|
||||
font-size: 14px;
|
||||
height: auto;
|
||||
text-overflow: ellipsis;
|
||||
white-space: pre-wrap;
|
||||
width: 100%;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
.ask-container {
|
||||
background: #fff;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.ask-input {
|
||||
border: 1px solid #dedede;
|
||||
border-radius: 3px;
|
||||
width: 78%;
|
||||
}
|
||||
|
||||
.ask-btn {
|
||||
padding: 5px;
|
||||
width: 20%;
|
||||
}
|
||||
|
||||
.uni-easyinput__content-textarea {
|
||||
min-height: 20px!important;
|
||||
}
|
|
@ -0,0 +1,155 @@
|
|||
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([ [ "pages/detail/detail" ], {
|
||||
4230: function(t, e, n) {
|
||||
"use strict";
|
||||
n.r(e);
|
||||
var i = n("93dc"), a = n.n(i);
|
||||
for (var c in i) [ "default" ].indexOf(c) < 0 && function(t) {
|
||||
n.d(e, t, function() {
|
||||
return i[t];
|
||||
});
|
||||
}(c);
|
||||
e["default"] = a.a;
|
||||
},
|
||||
"60dc": function(t, e, n) {
|
||||
"use strict";
|
||||
(function(t, e) {
|
||||
var i = n("4ea4");
|
||||
n("94a9");
|
||||
i(n("66fd"));
|
||||
var a = i(n("9836"));
|
||||
t.__webpack_require_UNI_MP_PLUGIN__ = n, e(a.default);
|
||||
}).call(this, n("bc2e")["default"], n("543d")["createPage"]);
|
||||
},
|
||||
"93dc": function(t, e, n) {
|
||||
"use strict";
|
||||
(function(t) {
|
||||
var i = n("4ea4");
|
||||
Object.defineProperty(e, "__esModule", {
|
||||
value: !0
|
||||
}), e.default = void 0;
|
||||
i(n("5c77"));
|
||||
var a = {
|
||||
data: function() {
|
||||
return {
|
||||
title: "详情",
|
||||
id: 0,
|
||||
detailData: {},
|
||||
isCollected: 0
|
||||
};
|
||||
},
|
||||
onLoad: function(t) {
|
||||
var e;
|
||||
this.id = t.id, this.tab = null !== (e = t.tab) && void 0 !== e ? e : 1, this.x_get_ad("common"),
|
||||
this.cpAd(), this.find();
|
||||
},
|
||||
methods: {
|
||||
toImage: function(t) {
|
||||
this.x_redirect("/pages/image/image?url=" + t);
|
||||
},
|
||||
find: function() {
|
||||
this.x_request("api/fangji.index/detail", {
|
||||
id: this.id,
|
||||
tab: this.tab
|
||||
}, function(e, n) {
|
||||
var i = n.data;
|
||||
e.detailData = i, e.isCollected = i.collected, e.title = n.data.name, t.setNavigationBarTitle({
|
||||
title: n.data.name
|
||||
}), i.ad && (e.item_ad = i.ad);
|
||||
});
|
||||
},
|
||||
wxshare: function() {
|
||||
t.share({
|
||||
provider: "weixin",
|
||||
scene: "WXSceneSession",
|
||||
type: 1,
|
||||
summary: "",
|
||||
success: function(t) {
|
||||
console.log("success:" + JSON.stringify(t));
|
||||
},
|
||||
fail: function(t) {
|
||||
console.log("fail:" + JSON.stringify(t));
|
||||
}
|
||||
});
|
||||
},
|
||||
wxQuanshare: function() {
|
||||
t.share({
|
||||
provider: "",
|
||||
scene: "WXSceneTimeline",
|
||||
type: 1,
|
||||
summary: this.title,
|
||||
success: function(t) {
|
||||
console.log("success:" + JSON.stringify(t));
|
||||
},
|
||||
fail: function(t) {
|
||||
console.log("fail:" + JSON.stringify(t));
|
||||
}
|
||||
});
|
||||
},
|
||||
collect: function() {
|
||||
this.x_request("api/fangji.index/collect", {
|
||||
prescription_id: this.id,
|
||||
tab: this.tab
|
||||
}, function(t, e) {
|
||||
1 === e.code && (t.isCollected = !t.isCollected);
|
||||
});
|
||||
}
|
||||
},
|
||||
onShareAppMessage: function() {
|
||||
return {
|
||||
title: this.title
|
||||
};
|
||||
},
|
||||
onShareTimeline: function() {
|
||||
return {
|
||||
title: this.title
|
||||
};
|
||||
}
|
||||
};
|
||||
e.default = a;
|
||||
}).call(this, n("543d")["default"]);
|
||||
},
|
||||
9836: function(t, e, n) {
|
||||
"use strict";
|
||||
n.r(e);
|
||||
var i = n("c1cd"), a = n("4230");
|
||||
for (var c in a) [ "default" ].indexOf(c) < 0 && function(t) {
|
||||
n.d(e, t, function() {
|
||||
return a[t];
|
||||
});
|
||||
}(c);
|
||||
n("f460");
|
||||
var o = n("f0c5"), s = Object(o["a"])(a["default"], i["b"], i["c"], !1, null, null, null, !1, i["a"], void 0);
|
||||
e["default"] = s.exports;
|
||||
},
|
||||
be3f: function(t, e, n) {},
|
||||
c1cd: function(t, e, n) {
|
||||
"use strict";
|
||||
n.d(e, "b", function() {
|
||||
return a;
|
||||
}), n.d(e, "c", function() {
|
||||
return c;
|
||||
}), n.d(e, "a", function() {
|
||||
return i;
|
||||
});
|
||||
var i = {
|
||||
xad: function() {
|
||||
return n.e("components/xad/xad").then(n.bind(null, "9621"));
|
||||
},
|
||||
bootNav: function() {
|
||||
return Promise.all([ n.e("common/vendor"), n.e("components/bootNav/bootNav") ]).then(n.bind(null, "dc0f"));
|
||||
}
|
||||
}, a = function() {
|
||||
var t = this.$createElement, e = (this._self._c, this.isProduct ? {} : null);
|
||||
this.$mp.data = Object.assign({}, {
|
||||
$root: {
|
||||
a0: e
|
||||
}
|
||||
});
|
||||
}, c = [];
|
||||
},
|
||||
f460: function(t, e, n) {
|
||||
"use strict";
|
||||
var i = n("be3f"), a = n.n(i);
|
||||
a.a;
|
||||
}
|
||||
}, [ [ "60dc", "common/runtime", "common/vendor" ] ] ]);
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"navigationBarTitleText": "详情",
|
||||
"enablePullDownRefresh": false,
|
||||
"usingComponents": {
|
||||
"xad": "/components/xad/xad",
|
||||
"boot-nav": "/components/bootNav/bootNav"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,50 @@
|
|||
<view class="xk_main_page" wx:if="{{isProduct}}">
|
||||
<view class="_div data-v-47a11b89 prescriptionDetail">
|
||||
<view class="_div data-v-47a11b89 body">
|
||||
<view class="_div data-v-47a11b89 head">
|
||||
<view class="_i data-v-47a11b89">
|
||||
<view class="_h3 data-v-47a11b89">{{detailData.name}}</view>
|
||||
<view bindtap="__e" data-event-opts="{{[ [ 'tap',[ [ 'toImage',['$0'],['detailData.pic'] ] ] ] ]}}" wx:if="{{detailData.pic}}">
|
||||
<image mode="aspectFill" src="{{detailData.pic}}" style="width:80px;height:80px;background-color:#eeeeee;" wx:if="{{detailData.pic}}"></image>
|
||||
</view>
|
||||
<view bindtap="handleProxy" class="_em data-v-47a11b89">
|
||||
<image alt="{{true}}" class="_img data-v-47a11b89" src="/static/app_image/coupleBack_icon.png"></image>
|
||||
<label class="_span data-v-47a11b89">纠错</label>
|
||||
</view>
|
||||
</view>
|
||||
<view class="_h4 data-v-47a11b89">{{detailData.book}}</view>
|
||||
<view class="_h5 data-v-47a11b89" wx:if="{{detailData.alias_name}}">{{'别名:'+detailData.alias_name}}</view>
|
||||
</view>
|
||||
<view class="_li data-v-47a11b89 drugInfo" wx:if="{{detailData.describe}}">
|
||||
<view class="_h3 data-v-47a11b89">简介</view>
|
||||
<view class="_p data-v-47a11b89">{{detailData.describe}}</view>
|
||||
</view>
|
||||
<view class="_ul data-v-47a11b89 drugInfo">
|
||||
<view class="_li data-v-47a11b89" wx:for="{{detailData.param}}" wx:for-index="__i0__">
|
||||
<view class="_h3 data-v-47a11b89">{{item.desc}}</view>
|
||||
<view class="_p data-v-47a11b89">{{item.value}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<xad bind:__l="__l" vueId="3db16520-1" x_common_ad="{{item_ad}}" x_cp_ad="{{$root.a0}}"></xad>
|
||||
<view class="_div data-v-47a11b89 interaction">
|
||||
<button bindtap="__e" class="_button data-v-47a11b89" data-event-opts="{{[ [ 'tap',[ [ 'wxshare',['$event'] ] ] ] ]}}" openType="share">
|
||||
<image alt="{{true}}" class="_img data-v-47a11b89" src="/static/app_image/share.png"></image>
|
||||
<label class="_span data-v-47a11b89">分享聊天</label>
|
||||
</button>
|
||||
<button bindtap="__e" class="_button data-v-47a11b89" data-event-opts="{{[ [ 'tap',[ [ 'wxQuanshare',['$event'] ] ] ] ]}}" openType="share">
|
||||
<image alt="{{true}}" class="_img data-v-47a11b89" src="/static/app_image/share.png"></image>
|
||||
<label class="_span data-v-47a11b89">分享朋友圈</label>
|
||||
</button>
|
||||
<button bindtap="__e" class="_button data-v-47a11b89" data-event-opts="{{[ [ 'tap',[ ['collect'] ] ] ]}}">
|
||||
<image alt="{{true}}" class="_img data-v-47a11b89" src="/static/app_image/collected.png" wx:if="{{isCollected}}"></image>
|
||||
<image alt="{{true}}" class="_img data-v-47a11b89" src="/static/app_image/collect.png" wx:else></image>
|
||||
<label class="_span data-v-47a11b89">收藏</label>
|
||||
</button>
|
||||
</view>
|
||||
</view>
|
||||
<boot-nav bind:__l="__l" nav="home" vueId="3db16520-2"></boot-nav>
|
||||
</view>
|
||||
<view class="xk_ad_0">
|
||||
<xad bind:__l="__l" vueId="3db16520-3" x_common_ad="{{common_ad}}" x_cp_ad="{{cp_ad}}"></xad>
|
||||
</view>
|
||||
</view>
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,73 @@
|
|||
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([ [ "pages/image/image" ], {
|
||||
"125d": function(n, t, e) {
|
||||
"use strict";
|
||||
e.d(t, "b", function() {
|
||||
return u;
|
||||
}), e.d(t, "c", function() {
|
||||
return a;
|
||||
}), e.d(t, "a", function() {
|
||||
return o;
|
||||
});
|
||||
var o = {
|
||||
xad: function() {
|
||||
return e.e("components/xad/xad").then(e.bind(null, "9621"));
|
||||
},
|
||||
bootNav: function() {
|
||||
return Promise.all([ e.e("common/vendor"), e.e("components/bootNav/bootNav") ]).then(e.bind(null, "dc0f"));
|
||||
}
|
||||
}, u = function() {
|
||||
var n = this.$createElement;
|
||||
this._self._c;
|
||||
}, a = [];
|
||||
},
|
||||
"7d5e": function(n, t, e) {
|
||||
"use strict";
|
||||
e.r(t);
|
||||
var o = e("a1dc"), u = e.n(o);
|
||||
for (var a in o) [ "default" ].indexOf(a) < 0 && function(n) {
|
||||
e.d(t, n, function() {
|
||||
return o[n];
|
||||
});
|
||||
}(a);
|
||||
t["default"] = u.a;
|
||||
},
|
||||
a1dc: function(n, t, e) {
|
||||
"use strict";
|
||||
Object.defineProperty(t, "__esModule", {
|
||||
value: !0
|
||||
}), t.default = void 0;
|
||||
t.default = {
|
||||
data: function() {
|
||||
return {
|
||||
url: ""
|
||||
};
|
||||
},
|
||||
onLoad: function(n) {
|
||||
this.url = n.url, this.x_get_ad("common"), this.cpAd();
|
||||
},
|
||||
methods: {}
|
||||
};
|
||||
},
|
||||
da63: function(n, t, e) {
|
||||
"use strict";
|
||||
e.r(t);
|
||||
var o = e("125d"), u = e("7d5e");
|
||||
for (var a in u) [ "default" ].indexOf(a) < 0 && function(n) {
|
||||
e.d(t, n, function() {
|
||||
return u[n];
|
||||
});
|
||||
}(a);
|
||||
var r = e("f0c5"), c = Object(r["a"])(u["default"], o["b"], o["c"], !1, null, null, null, !1, o["a"], void 0);
|
||||
t["default"] = c.exports;
|
||||
},
|
||||
e320: function(n, t, e) {
|
||||
"use strict";
|
||||
(function(n, t) {
|
||||
var o = e("4ea4");
|
||||
e("94a9");
|
||||
o(e("66fd"));
|
||||
var u = o(e("da63"));
|
||||
n.__webpack_require_UNI_MP_PLUGIN__ = e, t(u.default);
|
||||
}).call(this, e("bc2e")["default"], e("543d")["createPage"]);
|
||||
}
|
||||
}, [ [ "e320", "common/runtime", "common/vendor" ] ] ]);
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"navigationBarTitleText": "图片预览",
|
||||
"enablePullDownRefresh": false,
|
||||
"usingComponents": {
|
||||
"xad": "/components/xad/xad",
|
||||
"boot-nav": "/components/bootNav/bootNav"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
<view>
|
||||
<view style="width:100%;padding:10px;background:#dedede;">
|
||||
<image mode="aspectFill" src="{{url}}" style="width:100%;background-color:#eeeeee;" wx:if="{{url}}"></image>
|
||||
</view>
|
||||
<xad bind:__l="__l" vueId="fc2266f0-1" x_common_ad="{{common_ad}}" x_cp_ad="{{cp_ad}}"></xad>
|
||||
<boot-nav bind:__l="__l" nav="home" vueId="fc2266f0-2"></boot-nav>
|
||||
</view>
|
|
@ -0,0 +1,120 @@
|
|||
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([ [ "pages/index/index" ], {
|
||||
"1f4b": function(t, n, e) {},
|
||||
2143: function(t, n, e) {
|
||||
"use strict";
|
||||
var i = e("1f4b"), a = e.n(i);
|
||||
a.a;
|
||||
},
|
||||
4783: function(t, n, e) {
|
||||
"use strict";
|
||||
e.r(n);
|
||||
var i = e("fac9"), a = e.n(i);
|
||||
for (var o in i) [ "default" ].indexOf(o) < 0 && function(t) {
|
||||
e.d(n, t, function() {
|
||||
return i[t];
|
||||
});
|
||||
}(o);
|
||||
n["default"] = a.a;
|
||||
},
|
||||
6431: function(t, n, e) {
|
||||
"use strict";
|
||||
e.r(n);
|
||||
var i = e("9b48"), a = e("4783");
|
||||
for (var o in a) [ "default" ].indexOf(o) < 0 && function(t) {
|
||||
e.d(n, t, function() {
|
||||
return a[t];
|
||||
});
|
||||
}(o);
|
||||
e("2143");
|
||||
var c = e("f0c5"), u = Object(c["a"])(a["default"], i["b"], i["c"], !1, null, null, null, !1, i["a"], void 0);
|
||||
n["default"] = u.exports;
|
||||
},
|
||||
"8be9": function(t, n, e) {
|
||||
"use strict";
|
||||
(function(t, n) {
|
||||
var i = e("4ea4");
|
||||
e("94a9");
|
||||
i(e("66fd"));
|
||||
var a = i(e("6431"));
|
||||
t.__webpack_require_UNI_MP_PLUGIN__ = e, n(a.default);
|
||||
}).call(this, e("bc2e")["default"], e("543d")["createPage"]);
|
||||
},
|
||||
"9b48": function(t, n, e) {
|
||||
"use strict";
|
||||
e.d(n, "b", function() {
|
||||
return a;
|
||||
}), e.d(n, "c", function() {
|
||||
return o;
|
||||
}), e.d(n, "a", function() {
|
||||
return i;
|
||||
});
|
||||
var i = {
|
||||
xad: function() {
|
||||
return e.e("components/xad/xad").then(e.bind(null, "9621"));
|
||||
},
|
||||
bootNav: function() {
|
||||
return Promise.all([ e.e("common/vendor"), e.e("components/bootNav/bootNav") ]).then(e.bind(null, "dc0f"));
|
||||
}
|
||||
}, a = function() {
|
||||
var t = this.$createElement;
|
||||
this._self._c;
|
||||
this.$mp.data = Object.assign({}, {
|
||||
$root: {
|
||||
a0: {}
|
||||
}
|
||||
});
|
||||
}, o = [];
|
||||
},
|
||||
fac9: function(t, n, e) {
|
||||
"use strict";
|
||||
(function(t) {
|
||||
var i = e("4ea4");
|
||||
Object.defineProperty(n, "__esModule", {
|
||||
value: !0
|
||||
}), n.default = void 0;
|
||||
i(e("5c77"));
|
||||
var a = e("aef3"), o = {
|
||||
data: function() {
|
||||
return {
|
||||
mixins: [ a.mixin ],
|
||||
title: this.appTitle,
|
||||
fangji: [],
|
||||
current_page: "",
|
||||
share: {
|
||||
title: this.appName,
|
||||
path: "/pages/index/index",
|
||||
imageUrl: "",
|
||||
desc: "",
|
||||
content: ""
|
||||
}
|
||||
};
|
||||
},
|
||||
onShareAppMessage: function() {
|
||||
return {
|
||||
title: this.title
|
||||
};
|
||||
},
|
||||
onShareTimeline: function() {
|
||||
return {
|
||||
title: this.title
|
||||
};
|
||||
},
|
||||
onLoad: function() {
|
||||
this.x_config();
|
||||
var n = this;
|
||||
t.getStorageSync("uToken") ? (n.x_get_ad("common"), n.cpAd()) : setTimeout(function() {
|
||||
n.x_get_ad("common"), n.cpAd();
|
||||
}, 3e3);
|
||||
},
|
||||
methods: {
|
||||
x_config: function() {
|
||||
this.x_request("api/config/index/", {}, function(t, n) {
|
||||
1 === n.code && (t.item_ad = n.data.ad);
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
n.default = o;
|
||||
}).call(this, e("543d")["default"]);
|
||||
}
|
||||
}, [ [ "8be9", "common/runtime", "common/vendor" ] ] ]);
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"navigationBarTitleText": "口袋方剂学",
|
||||
"usingComponents": {
|
||||
"xad": "/components/xad/xad",
|
||||
"boot-nav": "/components/bootNav/bootNav"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
<view class="_div data-v-6414c978 IndexContainer">
|
||||
<view class="xk_main_page">
|
||||
<view class="_div data-v-6414c978 body">
|
||||
<view class="_div data-v-6414c978 tab"></view>
|
||||
<label bindtap="__e" class="_span data-v-6414c978 toSearch" data-event-opts="{{[ [ 'tap',[ [ 'x_redirect',['/pages/search/search'] ] ] ] ]}}">
|
||||
<image alt="{{true}}" class="_img data-v-6414c978" src="/static/app_image/search_icon.png"></image>
|
||||
</label>
|
||||
<label bindtap="__e" class="_span data-v-6414c978 toCollect" data-event-opts="{{[ [ 'tap',[ [ 'x_redirect',['/pages/result/result?isMy=1'] ] ] ] ]}}">方剂收藏<view class="_i data-v-6414c978 icon font_family icon-icon_shoucangjia"></view>
|
||||
</label>
|
||||
<view style="margin-top:10px;"></view>
|
||||
<!-- <xad bind:__l="__l" vueId="8dd740cc-1" x_common_ad="{{item_ad}}" x_cp_ad="{{$root.a0}}"></xad> -->
|
||||
<view style="margin-top:20px;"></view>
|
||||
</view>
|
||||
<boot-nav bind:__l="__l" nav="home" vueId="8dd740cc-2"></boot-nav>
|
||||
</view>
|
||||
<view class="xk_ad_0">
|
||||
<!-- <xad bind:__l="__l" vueId="8dd740cc-3" x_common_ad="{{common_ad}}" x_cp_ad="{{cp_ad}}"></xad> -->
|
||||
</view>
|
||||
</view>
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,95 @@
|
|||
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([ [ "pages/my/complaint" ], {
|
||||
"2ab3": function(n, t, e) {
|
||||
"use strict";
|
||||
e.r(t);
|
||||
var u = e("3d3a"), i = e.n(u);
|
||||
for (var o in u) [ "default" ].indexOf(o) < 0 && function(n) {
|
||||
e.d(t, n, function() {
|
||||
return u[n];
|
||||
});
|
||||
}(o);
|
||||
t["default"] = i.a;
|
||||
},
|
||||
"3d3a": function(n, t, e) {
|
||||
"use strict";
|
||||
Object.defineProperty(t, "__esModule", {
|
||||
value: !0
|
||||
}), t.default = void 0;
|
||||
var u = {
|
||||
data: function() {
|
||||
return {
|
||||
rateValue: 5,
|
||||
complaint: ""
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
sub: function() {
|
||||
"" === this.complaint ? this.x_tips("error", "请填写投诉建议内容") : this.x_request("api/user/complaint", {
|
||||
rate: this.rateValue,
|
||||
complaint: this.complaint
|
||||
}, function(n, t) {
|
||||
if (console.log(t), 0 === t.code) n.x_tips("error", t.info); else {
|
||||
n.x_alert("success", "感谢您的宝贵意见,我们将再接再厉,进行调整", "subSuccess");
|
||||
}
|
||||
});
|
||||
},
|
||||
subSuccess: function() {
|
||||
this.x_back();
|
||||
}
|
||||
}
|
||||
};
|
||||
t.default = u;
|
||||
},
|
||||
"3ea3": function(n, t, e) {
|
||||
"use strict";
|
||||
e.d(t, "b", function() {
|
||||
return i;
|
||||
}), e.d(t, "c", function() {
|
||||
return o;
|
||||
}), e.d(t, "a", function() {
|
||||
return u;
|
||||
});
|
||||
var u = {
|
||||
uniSection: function() {
|
||||
return e.e("uni_modules/uni-section/components/uni-section/uni-section").then(e.bind(null, "79f5"));
|
||||
},
|
||||
uniRate: function() {
|
||||
return e.e("uni_modules/uni-rate/components/uni-rate/uni-rate").then(e.bind(null, "905b"));
|
||||
},
|
||||
uniEasyinput: function() {
|
||||
return e.e("uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput").then(e.bind(null, "aad6"));
|
||||
},
|
||||
xpop: function() {
|
||||
return e.e("components/xpop/xpop").then(e.bind(null, "8c3c"));
|
||||
},
|
||||
bootNav: function() {
|
||||
return Promise.all([ e.e("common/vendor"), e.e("components/bootNav/bootNav") ]).then(e.bind(null, "dc0f"));
|
||||
}
|
||||
}, i = function() {
|
||||
var n = this.$createElement;
|
||||
this._self._c;
|
||||
}, o = [];
|
||||
},
|
||||
a695: function(n, t, e) {
|
||||
"use strict";
|
||||
e.r(t);
|
||||
var u = e("3ea3"), i = e("2ab3");
|
||||
for (var o in i) [ "default" ].indexOf(o) < 0 && function(n) {
|
||||
e.d(t, n, function() {
|
||||
return i[n];
|
||||
});
|
||||
}(o);
|
||||
var a = e("f0c5"), c = Object(a["a"])(i["default"], u["b"], u["c"], !1, null, null, null, !1, u["a"], void 0);
|
||||
t["default"] = c.exports;
|
||||
},
|
||||
fac1: function(n, t, e) {
|
||||
"use strict";
|
||||
(function(n, t) {
|
||||
var u = e("4ea4");
|
||||
e("94a9");
|
||||
u(e("66fd"));
|
||||
var i = u(e("a695"));
|
||||
n.__webpack_require_UNI_MP_PLUGIN__ = e, t(i.default);
|
||||
}).call(this, e("bc2e")["default"], e("543d")["createPage"]);
|
||||
}
|
||||
}, [ [ "fac1", "common/runtime", "common/vendor" ] ] ]);
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"navigationBarTitleText": "投诉与建议",
|
||||
"enablePullDownRefresh": false,
|
||||
"usingComponents": {
|
||||
"uni-section": "/uni_modules/uni-section/components/uni-section/uni-section",
|
||||
"uni-rate": "/uni_modules/uni-rate/components/uni-rate/uni-rate",
|
||||
"uni-easyinput": "/uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput",
|
||||
"xpop": "/components/xpop/xpop",
|
||||
"boot-nav": "/components/bootNav/bootNav"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
<view style="padding:10px;">
|
||||
<uni-section bind:__l="__l" padding="{{true}}" title="评分" type="line" vueId="2f09afb6-1" vueSlots="{{['default']}}">
|
||||
<uni-rate bind:__l="__l" bind:input="__e" data-event-opts="{{[ [ '^input',[ [ '__set_model',[ '','rateValue','$event',[] ] ] ] ] ]}}" size="18" value="{{rateValue}}" vueId="{{'2f09afb6-2'+','+'2f09afb6-1'}}"></uni-rate>
|
||||
</uni-section>
|
||||
<uni-section bind:__l="__l" padding="{{true}}" title="投诉与建议" type="line" vueId="2f09afb6-3" vueSlots="{{['default']}}">
|
||||
<uni-easyinput autoHeight="{{true}}" bind:__l="__l" bind:input="__e" data-event-opts="{{[ [ '^input',[ [ '__set_model',[ '','complaint','$event',[] ] ] ] ] ]}}" maxSize="510" placeholder="请输入内容" type="textarea" value="{{complaint}}" vueId="{{'2f09afb6-4'+','+'2f09afb6-3'}}"></uni-easyinput>
|
||||
</uni-section>
|
||||
<view>
|
||||
<button bindtap="__e" data-event-opts="{{[ [ 'tap',[ [ 'sub',['$event'] ] ] ] ]}}" type="primary">提交</button>
|
||||
</view>
|
||||
<xpop bind:__l="__l" class="vue-ref" data-ref="xpop" vueId="2f09afb6-5"></xpop>
|
||||
<boot-nav nav bind:__l="__l" vueId="2f09afb6-6"></boot-nav>
|
||||
</view>
|
|
@ -0,0 +1,141 @@
|
|||
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([ [ "pages/my/my" ], {
|
||||
"0c43": function(e, n, t) {
|
||||
"use strict";
|
||||
t.r(n);
|
||||
var a = t("3bff"), i = t.n(a);
|
||||
for (var u in a) [ "default" ].indexOf(u) < 0 && function(e) {
|
||||
t.d(n, e, function() {
|
||||
return a[e];
|
||||
});
|
||||
}(u);
|
||||
n["default"] = i.a;
|
||||
},
|
||||
2757: function(e, n, t) {},
|
||||
"3bff": function(e, n, t) {
|
||||
"use strict";
|
||||
(function(e) {
|
||||
var a = t("4ea4");
|
||||
Object.defineProperty(n, "__esModule", {
|
||||
value: !0
|
||||
}), n.default = void 0;
|
||||
var i = a(t("5c77")), u = {
|
||||
data: function() {
|
||||
return {
|
||||
xheader_item_image: {
|
||||
width: 60,
|
||||
height: 60,
|
||||
border: {
|
||||
radius: "50%"
|
||||
},
|
||||
margin: {
|
||||
left: 20
|
||||
}
|
||||
},
|
||||
userInfo: {
|
||||
avatar: "/static/user.png",
|
||||
nick_name: "会员"
|
||||
},
|
||||
default_head: [ {
|
||||
url: "/static/user.png",
|
||||
extname: "png",
|
||||
name: "shuijiao.png"
|
||||
} ],
|
||||
showNickNameEdit: !1,
|
||||
menuList: []
|
||||
};
|
||||
},
|
||||
onReady: function() {
|
||||
this.getUserInfo(), this.getMyMenu(this), this.x_get_ad("common"), this.cpAd();
|
||||
},
|
||||
methods: {
|
||||
uploadHead: function(n) {
|
||||
var t = this;
|
||||
n.tempFilePaths.forEach(function(n) {
|
||||
e.uploadFile({
|
||||
url: i.default.root_host + "api/user/head/",
|
||||
filePath: n,
|
||||
header: {
|
||||
"Content-Type": "multipart/form-data"
|
||||
},
|
||||
name: "image",
|
||||
formData: i.default.authParam({
|
||||
uuid: e.getStorageSync("uToken"),
|
||||
app_name: t.app_name
|
||||
}),
|
||||
success: function(n) {
|
||||
var t = JSON.parse(n.data);
|
||||
1 === t.code && e.msg("已修改头像");
|
||||
}
|
||||
});
|
||||
});
|
||||
},
|
||||
getUserInfo: function() {
|
||||
i.default.getUserInfo(this);
|
||||
},
|
||||
changeNickName: function() {
|
||||
i.default.changeNickName(this);
|
||||
},
|
||||
getMyMenu: function() {
|
||||
i.default.getMyMenu(this);
|
||||
}
|
||||
}
|
||||
};
|
||||
n.default = u;
|
||||
}).call(this, t("543d")["default"]);
|
||||
},
|
||||
6147: function(e, n, t) {
|
||||
"use strict";
|
||||
t.r(n);
|
||||
var a = t("b3f8"), i = t("0c43");
|
||||
for (var u in i) [ "default" ].indexOf(u) < 0 && function(e) {
|
||||
t.d(n, e, function() {
|
||||
return i[e];
|
||||
});
|
||||
}(u);
|
||||
t("ea49");
|
||||
var o = t("f0c5"), r = Object(o["a"])(i["default"], a["b"], a["c"], !1, null, null, null, !1, a["a"], void 0);
|
||||
n["default"] = r.exports;
|
||||
},
|
||||
"8a96": function(e, n, t) {
|
||||
"use strict";
|
||||
(function(e, n) {
|
||||
var a = t("4ea4");
|
||||
t("94a9");
|
||||
a(t("66fd"));
|
||||
var i = a(t("6147"));
|
||||
e.__webpack_require_UNI_MP_PLUGIN__ = t, n(i.default);
|
||||
}).call(this, t("bc2e")["default"], t("543d")["createPage"]);
|
||||
},
|
||||
b3f8: function(e, n, t) {
|
||||
"use strict";
|
||||
t.d(n, "b", function() {
|
||||
return i;
|
||||
}), t.d(n, "c", function() {
|
||||
return u;
|
||||
}), t.d(n, "a", function() {
|
||||
return a;
|
||||
});
|
||||
var a = {
|
||||
uniFilePicker: function() {
|
||||
return Promise.all([ t.e("common/vendor"), t.e("uni_modules/uni-file-picker/components/uni-file-picker/uni-file-picker") ]).then(t.bind(null, "b9c3"));
|
||||
},
|
||||
bootNav: function() {
|
||||
return Promise.all([ t.e("common/vendor"), t.e("components/bootNav/bootNav") ]).then(t.bind(null, "dc0f"));
|
||||
},
|
||||
xad: function() {
|
||||
return t.e("components/xad/xad").then(t.bind(null, "9621"));
|
||||
}
|
||||
}, i = function() {
|
||||
var e = this, n = e.$createElement;
|
||||
e._self._c;
|
||||
e._isMounted || (e.e0 = function(n) {
|
||||
e.showNickNameEdit = !e.showNickNameEdit;
|
||||
});
|
||||
}, u = [];
|
||||
},
|
||||
ea49: function(e, n, t) {
|
||||
"use strict";
|
||||
var a = t("2757"), i = t.n(a);
|
||||
i.a;
|
||||
}
|
||||
}, [ [ "8a96", "common/runtime", "common/vendor" ] ] ]);
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"navigationBarTitleText": "我的",
|
||||
"enablePullDownRefresh": false,
|
||||
"usingComponents": {
|
||||
"uni-file-picker": "/uni_modules/uni-file-picker/components/uni-file-picker/uni-file-picker",
|
||||
"boot-nav": "/components/bootNav/bootNav",
|
||||
"xad": "/components/xad/xad"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,28 @@
|
|||
<view class="center" wx:if="{{isProduct}}">
|
||||
<view class="xk_main_page">
|
||||
<view class="xheader_wrap uni-flex uni-row">
|
||||
<view class="flex-item xheader_item">
|
||||
<uni-file-picker bind:__l="__l" bind:select="__e" data-event-opts="{{[ [ '^select',[ ['uploadHead'] ] ] ]}}" delIcon="{{false}}" disablePreview="{{true}}" fileMediatype="image" imageStyles="{{xheader_item_image}}" limit="1" sizeType="{{['compressed']}}" value="{{default_head}}" vueId="704e9d00-1" vueSlots="{{['default']}}">选择</uni-file-picker>
|
||||
</view>
|
||||
<view bindtap="__e" class="nick_item flex-item" data-event-opts="{{[ [ 'tap',[ [ 'e0',['$event'] ] ] ] ]}}" wx:if="{{!showNickNameEdit}}">{{''+userInfo.nick_name+''}}</view>
|
||||
<view class="nick_item flex-item" wx:if="{{showNickNameEdit}}">
|
||||
<view class="uni-flex uni-row" style="align-items:center;">
|
||||
<input bindinput="__e" class="flex-item uni-input" data-event-opts="{{[ [ 'input',[ [ '__set_model',[ '$0','nick_name','$event',[] ],['userInfo'] ] ] ] ]}}" placeholder="更改昵称" style="color:#666666;" value="{{userInfo.nick_name}}"></input>
|
||||
<button bindtap="__e" class="flex-item" data-event-opts="{{[ [ 'tap',[ ['changeNickName'] ] ] ]}}" size="mini" style="margin-left:3px;" type="warn">保存</button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="mytab">
|
||||
<view class="uni-panel-c" wx:for="{{menuList}}" wx:for-index="__i0__">
|
||||
<view bindtap="__e" class="uni-navigate-item" data-event-opts="{{[ [ 'tap',[ [ 'x_redirect',['$0','$1'],[ [ ['menuList','',__i0__,'path'] ],[ ['menuList','',__i0__,'AppId'] ] ] ] ] ] ]}}">
|
||||
<text class="uni-navigate-text">{{item.title}}</text>
|
||||
<text class="uni-navigate-icon uni-icon"></text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<boot-nav bind:__l="__l" nav="my" vueId="704e9d00-2"></boot-nav>
|
||||
</view>
|
||||
<view class="xk_ad_0">
|
||||
<xad bind:__l="__l" vueId="704e9d00-3" x_common_ad="{{common_ad}}" x_cp_ad="{{cp_ad}}"></xad>
|
||||
</view>
|
||||
</view>
|
|
@ -0,0 +1,44 @@
|
|||
.center {
|
||||
background: #f8f8f8;
|
||||
}
|
||||
|
||||
.xheader_wrap {
|
||||
background: #a67d41;
|
||||
padding: 15rpx;
|
||||
}
|
||||
|
||||
.xheader_item_image {
|
||||
border: 1px solid #fff;
|
||||
border-radius: 50%;
|
||||
height: 100rpx;
|
||||
margin-left: 20rpx;
|
||||
width: 100rpx;
|
||||
}
|
||||
|
||||
.nick_item {
|
||||
color: #fff;
|
||||
margin: auto 0rpx;
|
||||
padding-left: 30rpx;
|
||||
}
|
||||
|
||||
.uni-navigate-item {
|
||||
align-items: center;
|
||||
background-color: #fff;
|
||||
border-top: 1px solid #f0f0f0;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
margin-top: 10rpx;
|
||||
padding: 8rpx;
|
||||
}
|
||||
|
||||
.uni-navigate-text {
|
||||
color: #000;
|
||||
flex: 1;
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.mytab {
|
||||
padding: 10rpx;
|
||||
}
|
|
@ -0,0 +1,149 @@
|
|||
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([ [ "pages/result/result" ], {
|
||||
"11c2": function(t, e, a) {},
|
||||
"38de": function(t, e, a) {
|
||||
"use strict";
|
||||
a.d(e, "b", function() {
|
||||
return i;
|
||||
}), a.d(e, "c", function() {
|
||||
return o;
|
||||
}), a.d(e, "a", function() {
|
||||
return n;
|
||||
});
|
||||
var n = {
|
||||
xad: function() {
|
||||
return a.e("components/xad/xad").then(a.bind(null, "9621"));
|
||||
},
|
||||
xpop: function() {
|
||||
return a.e("components/xpop/xpop").then(a.bind(null, "8c3c"));
|
||||
},
|
||||
bootNav: function() {
|
||||
return Promise.all([ a.e("common/vendor"), a.e("components/bootNav/bootNav") ]).then(a.bind(null, "dc0f"));
|
||||
}
|
||||
}, i = function() {
|
||||
var t = this, e = t.$createElement, a = (t._self._c, t.resultData.length), n = a > 50 ? null : t.resultData.length, i = t.__map(t.resultData, function(e, a) {
|
||||
var n = t.__get_orig(e), i = e.ad_id ? {} : null;
|
||||
return {
|
||||
$orig: n,
|
||||
a0: i
|
||||
};
|
||||
});
|
||||
t.$mp.data = Object.assign({}, {
|
||||
$root: {
|
||||
g0: a,
|
||||
g1: n,
|
||||
l0: i
|
||||
}
|
||||
});
|
||||
}, o = [];
|
||||
},
|
||||
"39c4": function(t, e, a) {
|
||||
"use strict";
|
||||
var n = a("11c2"), i = a.n(n);
|
||||
i.a;
|
||||
},
|
||||
"47e9": function(t, e, a) {
|
||||
"use strict";
|
||||
(function(t, e) {
|
||||
var n = a("4ea4");
|
||||
a("94a9");
|
||||
n(a("66fd"));
|
||||
var i = n(a("583d"));
|
||||
t.__webpack_require_UNI_MP_PLUGIN__ = a, e(i.default);
|
||||
}).call(this, a("bc2e")["default"], a("543d")["createPage"]);
|
||||
},
|
||||
"57be": function(t, e, a) {
|
||||
"use strict";
|
||||
a.r(e);
|
||||
var n = a("ba10"), i = a.n(n);
|
||||
for (var o in n) [ "default" ].indexOf(o) < 0 && function(t) {
|
||||
a.d(e, t, function() {
|
||||
return n[t];
|
||||
});
|
||||
}(o);
|
||||
e["default"] = i.a;
|
||||
},
|
||||
"583d": function(t, e, a) {
|
||||
"use strict";
|
||||
a.r(e);
|
||||
var n = a("38de"), i = a("57be");
|
||||
for (var o in i) [ "default" ].indexOf(o) < 0 && function(t) {
|
||||
a.d(e, t, function() {
|
||||
return i[t];
|
||||
});
|
||||
}(o);
|
||||
a("39c4");
|
||||
var r = a("f0c5"), u = Object(r["a"])(i["default"], n["b"], n["c"], !1, null, null, null, !1, n["a"], void 0);
|
||||
e["default"] = u.exports;
|
||||
},
|
||||
ba10: function(t, e, a) {
|
||||
"use strict";
|
||||
(function(t) {
|
||||
var n = a("4ea4");
|
||||
Object.defineProperty(e, "__esModule", {
|
||||
value: !0
|
||||
}), e.default = void 0;
|
||||
n(a("5c77"));
|
||||
var i = {
|
||||
data: function() {
|
||||
return {
|
||||
keyword: "",
|
||||
category_id: "",
|
||||
cat_title: "",
|
||||
total: "",
|
||||
current_page: 0,
|
||||
last_page: 1,
|
||||
resultData: [],
|
||||
noMore: 0,
|
||||
openDetail: 0,
|
||||
isMy: 0,
|
||||
tab: 1
|
||||
};
|
||||
},
|
||||
onLoad: function(e) {
|
||||
var a, n, i, o;
|
||||
this.keyword = null !== (a = e.keyword) && void 0 !== a ? a : "", this.category_id = null !== (n = e.category_id) && void 0 !== n ? n : 0,
|
||||
this.cat_title = null !== (i = e.cat_title) && void 0 !== i ? i : "", this.tab = null !== (o = e.tab) && void 0 !== o ? o : 1,
|
||||
"1" === e.isMy ? (this.isMy = 1, t.setNavigationBarTitle({
|
||||
title: "我收藏的内容"
|
||||
})) : t.setNavigationBarTitle({
|
||||
title: this.cat_title + "-筛选结果"
|
||||
}), this.searchResult(), this.cpAd(), this.x_get_ad("common");
|
||||
},
|
||||
onReachBottom: function() {
|
||||
this.searchResult();
|
||||
},
|
||||
methods: {
|
||||
searchResult: function() {
|
||||
var t = this;
|
||||
t.current_page >= t.last_page ? t.noMore = 1 : this.x_request("api/fangji.index/search", {
|
||||
keyword: this.keyword,
|
||||
category_id: this.category_id,
|
||||
isMy: t.isMy,
|
||||
page: t.current_page + 1,
|
||||
tab: t.tab
|
||||
}, function(t, e) {
|
||||
//去除数据中的广告数据
|
||||
console.log('处理前的数据:',e.data.data)
|
||||
const filteredArray = e.data.data.filter(item =>
|
||||
!item.ad_id
|
||||
);
|
||||
|
||||
filteredArray.forEach(element => {
|
||||
if(!element.pic.includes('http://cdn.yqdhz.com/')){
|
||||
element.pic = 'http://cdn.yqdhz.com/'+element.pic
|
||||
}
|
||||
});
|
||||
console.log('处理后的数据:',filteredArray)
|
||||
e.data.data.length && (t.resultData = t.resultData.concat(filteredArray), t.total = e.data.total,
|
||||
t.current_page = e.data.current_page, t.last_page = e.data.last_page, t.openDetail = e.status);
|
||||
});
|
||||
},
|
||||
toDetail: function(t) {
|
||||
this.isProduct && this.x_redirect("/pages/detail/detail?id=" + t.currentTarget.dataset.id + "&tab=" + this.tab);
|
||||
}
|
||||
}
|
||||
};
|
||||
e.default = i;
|
||||
}).call(this, a("543d")["default"]);
|
||||
}
|
||||
}, [ [ "47e9", "common/runtime", "common/vendor" ] ] ]);
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"navigationBarTitleText": "搜索结果",
|
||||
"enablePullDownRefresh": false,
|
||||
"onReachBottomDistance": 300,
|
||||
"usingComponents": {
|
||||
"xad": "/components/xad/xad",
|
||||
"xpop": "/components/xpop/xpop",
|
||||
"boot-nav": "/components/bootNav/bootNav"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,30 @@
|
|||
<view>
|
||||
<view class="_div data-v-b33d9c3a body xk_main_page">
|
||||
<view class="_div data-v-b33d9c3a search">
|
||||
<view bindtap="__e" class="_i data-v-b33d9c3a input" data-event-opts="{{[ [ 'tap',[ [ 'x_redirect',['/pages/search/search'] ] ] ] ]}}">{{keyword}}</view>
|
||||
<label bindtap="__e" class="_span data-v-b33d9c3a" data-event-opts="{{[ [ 'tap',[ [ 'x_redirect',['/pages/index/index'] ] ] ] ]}}">取消</label>
|
||||
<image alt="{{true}}" class="_img data-v-b33d9c3a" src="/static/app_image/search_icon1.png"></image>
|
||||
<view class="_p data-v-b33d9c3a">共<text class="_text data-v-b33d9c3a">{{total||0}}</text>条,为您展示<text class="_text data-v-b33d9c3a">{{$root.g0>50?50:$root.g1}}</text>条,请尝试精确搜索</view>
|
||||
</view>
|
||||
<view class="_ul data-v-b33d9c3a result">
|
||||
<view bindtap="__e" class="_li data-v-b33d9c3a" data-event-opts="{{[ [ 'tap',[ [ 'toDetail',['$event'] ] ] ] ]}}" data-id="{{item.$orig.id}}" wx:for="{{$root.l0}}" wx:for-index="__i0__">
|
||||
<xad bind:__l="__l" vueId="{{'d5c3dac0-1-'+__i0__}}" x_common_ad="{{item.$orig}}" x_cp_ad="{{item.a0}}" wx:if="{{item.$orig.ad_id}}"></xad>
|
||||
<view class="uni-flex uni-row" wx:if="{{item.$orig.id}}">
|
||||
<view class="image-content flex-item">
|
||||
<image mode="aspectFill" src="{{item.$orig.pic}}" style="width:80px;height:80px;background-color:#eeeeee;" wx:if="{{item.$orig.pic}}"></image>
|
||||
</view>
|
||||
<view class="flex-item">
|
||||
<text style="color:#94674b;">{{item.$orig.name}}</text>
|
||||
<text style="margin-left:10rpx;">{{item.$orig.book}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="_p data-v-b33d9c3a nothing" wx:if="{{noMore}}">暂无更多搜索结果</view>
|
||||
<xpop bind:__l="__l" class="vue-ref" data-ref="xpop" vueId="d5c3dac0-2"></xpop>
|
||||
<boot-nav bind:__l="__l" vueId="d5c3dac0-3"></boot-nav>
|
||||
</view>
|
||||
<view class="xk_ad_0">
|
||||
<xad bind:__l="__l" vueId="d5c3dac0-4" x_common_ad="{{common_ad}}" x_cp_ad="{{cp_ad}}"></xad>
|
||||
</view>
|
||||
</view>
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,120 @@
|
|||
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([ [ "pages/search/search" ], {
|
||||
"0ab4": function(e, t, n) {
|
||||
"use strict";
|
||||
n.r(t);
|
||||
var a = n("5105"), c = n.n(a);
|
||||
for (var r in a) [ "default" ].indexOf(r) < 0 && function(e) {
|
||||
n.d(t, e, function() {
|
||||
return a[e];
|
||||
});
|
||||
}(r);
|
||||
t["default"] = c.a;
|
||||
},
|
||||
"0e0f": function(e, t, n) {
|
||||
"use strict";
|
||||
var a = n("5c75"), c = n.n(a);
|
||||
c.a;
|
||||
},
|
||||
"116a": function(e, t, n) {
|
||||
"use strict";
|
||||
(function(e, t) {
|
||||
var a = n("4ea4");
|
||||
n("94a9");
|
||||
a(n("66fd"));
|
||||
var c = a(n("fa89"));
|
||||
e.__webpack_require_UNI_MP_PLUGIN__ = n, t(c.default);
|
||||
}).call(this, n("bc2e")["default"], n("543d")["createPage"]);
|
||||
},
|
||||
5105: function(e, t, n) {
|
||||
"use strict";
|
||||
var a = n("4ea4");
|
||||
Object.defineProperty(t, "__esModule", {
|
||||
value: !0
|
||||
}), t.default = void 0;
|
||||
a(n("5c77"));
|
||||
t.default = {
|
||||
data: function() {
|
||||
return {
|
||||
placeholder: "请输入方剂搜索",
|
||||
inputValue: "",
|
||||
searchData: [],
|
||||
searchType: 1
|
||||
};
|
||||
},
|
||||
watch: {
|
||||
inputValue: {
|
||||
handler: function(e, t) {
|
||||
e != t && "" != e && this.searchResult();
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
switchSelectTab: function(e) {
|
||||
this.searchType = e, this.searchData = [], this.searchResult();
|
||||
},
|
||||
searchClose: function() {
|
||||
this.inputValue = "";
|
||||
},
|
||||
searchResult: function() {
|
||||
this.x_request("api/fangji.index/preview", {
|
||||
tab: this.searchType,
|
||||
keyword: this.inputValue
|
||||
}, function(e, t) {
|
||||
//去除数据中的广告数据
|
||||
console.log('处理前的数据:',t.data)
|
||||
const filteredArray = t.data.filter(item =>
|
||||
!item.ad_id
|
||||
);
|
||||
console.log('处理后的数据:',filteredArray)
|
||||
e.searchData = filteredArray, e.x_get_ad("common"), e.cpAd();
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
},
|
||||
"5c75": function(e, t, n) {},
|
||||
8204: function(e, t, n) {
|
||||
"use strict";
|
||||
n.d(t, "b", function() {
|
||||
return c;
|
||||
}), n.d(t, "c", function() {
|
||||
return r;
|
||||
}), n.d(t, "a", function() {
|
||||
return a;
|
||||
});
|
||||
var a = {
|
||||
xad: function() {
|
||||
return n.e("components/xad/xad").then(n.bind(null, "9621"));
|
||||
},
|
||||
bootNav: function() {
|
||||
return Promise.all([ n.e("common/vendor"), n.e("components/bootNav/bootNav") ]).then(n.bind(null, "dc0f"));
|
||||
}
|
||||
}, c = function() {
|
||||
var e = this, t = e.$createElement, n = (e._self._c, e.__map(e.searchData, function(t, n) {
|
||||
var a = e.__get_orig(t), c = t.ad_id ? {} : null;
|
||||
return {
|
||||
$orig: a,
|
||||
a0: c
|
||||
};
|
||||
}));
|
||||
e.$mp.data = Object.assign({}, {
|
||||
$root: {
|
||||
l0: n
|
||||
}
|
||||
});
|
||||
}, r = [];
|
||||
},
|
||||
fa89: function(e, t, n) {
|
||||
"use strict";
|
||||
n.r(t);
|
||||
var a = n("8204"), c = n("0ab4");
|
||||
for (var r in c) [ "default" ].indexOf(r) < 0 && function(e) {
|
||||
n.d(t, e, function() {
|
||||
return c[e];
|
||||
});
|
||||
}(r);
|
||||
n("0e0f");
|
||||
var u = n("f0c5"), i = Object(u["a"])(c["default"], a["b"], a["c"], !1, null, null, null, !1, a["a"], void 0);
|
||||
t["default"] = i.exports;
|
||||
}
|
||||
}, [ [ "116a", "common/runtime", "common/vendor" ] ] ]);
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"navigationBarTitleText": "按方名查询",
|
||||
"enablePullDownRefresh": false,
|
||||
"usingComponents": {
|
||||
"xad": "/components/xad/xad",
|
||||
"boot-nav": "/components/bootNav/bootNav"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,39 @@
|
|||
<view class="_div x-search searchContainer">
|
||||
<view class="xk_main_page">
|
||||
<view class="_div x-search body">
|
||||
<view class="searchTab uni-flex uni-row">
|
||||
<view bindtap="__e" class="{{['flex-item','searchTabItem','',searchType==1?'searchTabItemFocus':'']}}" data-event-opts="{{[ [ 'tap',[ [ 'switchSelectTab',[1] ] ] ] ]}}">方剂</view>
|
||||
<view bindtap="__e" class="{{['flex-item','searchTabItem',searchType==2?'searchTabItemFocus':'']}}" data-event-opts="{{[ [ 'tap',[ [ 'switchSelectTab',[2] ] ] ] ]}}">中药</view>
|
||||
</view>
|
||||
<view class="_div x-search search">
|
||||
<view class="_div x-search">
|
||||
<input autoFocus="{{true}}" bindconfirm="__e" bindinput="__e" class="_input x-search" data-event-opts="{{[ [ 'confirm',[ [ 'x_redirect',['/pages/result/result?keyword='+inputValue] ] ] ],[ 'input',[ [ '__set_model',[ '','inputValue','$event',[] ] ] ] ] ]}}" placeholder="{{placeholder}}" type="text" value="{{inputValue}}"></input>
|
||||
<image alt="{{true}}" class="_img x-search" src="/static/app_image/search_icon1.png"></image>
|
||||
<view class="_em x-search iconBox">
|
||||
<button bindtap="__e" class="_button x-search icon font_family icon-icon_guanbi" data-event-opts="{{[ [ 'tap',[ [ 'searchClose',['$event'] ] ] ] ]}}"></button>
|
||||
</view>
|
||||
<label bindtap="__e" class="_span x-search" data-event-opts="{{[ [ 'tap',[ ['x_redirect'] ] ] ]}}">取消</label>
|
||||
</view>
|
||||
<view class="_i x-search"></view>
|
||||
</view>
|
||||
<view class="_div x-search thing">
|
||||
<view bindtap="__e" class="_p x-search" data-event-opts="{{[ [ 'tap',[ [ 'x_redirect',['/pages/result/result?keyword='+item.$orig.name+'&tab='+searchType] ] ] ] ]}}" wx:for="{{$root.l0}}" wx:for-index="__i0__">
|
||||
<view class="uni-flex uni-row" wx:if="{{!item.$orig.ad_id}}">
|
||||
<view class="image-content flex-item">
|
||||
<image mode="aspectFill" src="{{item.$orig.pic}}" style="width:80px;height:80px;background-color:#eeeeee;" wx:if="{{item.$orig.pic}}"></image>
|
||||
</view>
|
||||
<view class="flex-item">
|
||||
<text style="color:#94674b;">{{item.$orig.name+''}}</text>
|
||||
<text style="margin-left:10rpx;">{{item.$orig.book+''}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<xad bind:__l="__l" vueId="{{'50cad900-1-'+__i0__}}" x_common_ad="{{item.$orig}}" x_cp_ad="{{item.a0}}" wx:if="{{item.$orig.ad_id}}"></xad>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<boot-nav nav bind:__l="__l" vueId="50cad900-2"></boot-nav>
|
||||
</view>
|
||||
<view class="xk_ad_0">
|
||||
<xad bind:__l="__l" vueId="50cad900-3" x_common_ad="{{common_ad}}" x_cp_ad="{{cp_ad}}"></xad>
|
||||
</view>
|
||||
</view>
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,143 @@
|
|||
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([ [ "pages/wall/comment_detail" ], {
|
||||
"1f53": function(n, t, e) {
|
||||
"use strict";
|
||||
var o = e("4ea4");
|
||||
Object.defineProperty(t, "__esModule", {
|
||||
value: !0
|
||||
}), t.default = void 0;
|
||||
var i = o(e("5c77")), c = {
|
||||
data: function() {
|
||||
return {
|
||||
title: "留言墙",
|
||||
item: {},
|
||||
comment: {},
|
||||
replyObj: {
|
||||
message: "",
|
||||
last_page: 1,
|
||||
current_page: 0,
|
||||
noMore: 0,
|
||||
list: []
|
||||
},
|
||||
baseForm: {
|
||||
content: "",
|
||||
comment_id: 0,
|
||||
reply_id: 0
|
||||
},
|
||||
showComment: !1,
|
||||
normalColor: "color:#999",
|
||||
focusColor: "color:#007aff"
|
||||
};
|
||||
},
|
||||
components: {
|
||||
reply: function() {
|
||||
e.e("components/wall/reply").then(function() {
|
||||
return resolve(e("00df"));
|
||||
}.bind(null, e)).catch(e.oe);
|
||||
}
|
||||
},
|
||||
onBackPress: function() {
|
||||
return !!this.$refs.fab.isShow && (this.$refs.fab.close(), !0);
|
||||
},
|
||||
onLoad: function(n) {
|
||||
this.id = n.id, this.comment_id = n.comment_id, this.getWall(this.id), this.getComment(),
|
||||
this.getReplyList();
|
||||
},
|
||||
onReachBottom: function() {
|
||||
this.getReplyList();
|
||||
},
|
||||
methods: {
|
||||
getWall: function() {
|
||||
i.default.getWall(this);
|
||||
},
|
||||
getComment: function() {
|
||||
i.default.getComment(this);
|
||||
},
|
||||
getReplyList: function() {
|
||||
i.default.getReplyList(this);
|
||||
},
|
||||
cancelComment: function() {
|
||||
this.showComment = !this.showComment, this.baseForm.wall_id = 0, this.baseForm.reply_id = 0,
|
||||
this.baseForm.content = "";
|
||||
},
|
||||
addComment: function() {
|
||||
i.default.addComment(this);
|
||||
},
|
||||
showCommentWrap: function(n, t) {
|
||||
i.default.showCommentWrap(this, n, t);
|
||||
},
|
||||
childCall: function(n) {
|
||||
this.showCommentWrap(n.comment_id, n.reply_id);
|
||||
}
|
||||
}
|
||||
};
|
||||
t.default = c;
|
||||
},
|
||||
"8f96": function(n, t, e) {},
|
||||
9601: function(n, t, e) {
|
||||
"use strict";
|
||||
e.r(t);
|
||||
var o = e("1f53"), i = e.n(o);
|
||||
for (var c in o) [ "default" ].indexOf(c) < 0 && function(n) {
|
||||
e.d(t, n, function() {
|
||||
return o[n];
|
||||
});
|
||||
}(c);
|
||||
t["default"] = i.a;
|
||||
},
|
||||
"9b58": function(n, t, e) {
|
||||
"use strict";
|
||||
(function(n, t) {
|
||||
var o = e("4ea4");
|
||||
e("94a9");
|
||||
o(e("66fd"));
|
||||
var i = o(e("ac53"));
|
||||
n.__webpack_require_UNI_MP_PLUGIN__ = e, t(i.default);
|
||||
}).call(this, e("bc2e")["default"], e("543d")["createPage"]);
|
||||
},
|
||||
ac53: function(n, t, e) {
|
||||
"use strict";
|
||||
e.r(t);
|
||||
var o = e("f87f"), i = e("9601");
|
||||
for (var c in i) [ "default" ].indexOf(c) < 0 && function(n) {
|
||||
e.d(t, n, function() {
|
||||
return i[n];
|
||||
});
|
||||
}(c);
|
||||
e("cae5");
|
||||
var u = e("f0c5"), a = Object(u["a"])(i["default"], o["b"], o["c"], !1, null, null, null, !1, o["a"], void 0);
|
||||
t["default"] = a.exports;
|
||||
},
|
||||
cae5: function(n, t, e) {
|
||||
"use strict";
|
||||
var o = e("8f96"), i = e.n(o);
|
||||
i.a;
|
||||
},
|
||||
f87f: function(n, t, e) {
|
||||
"use strict";
|
||||
e.d(t, "b", function() {
|
||||
return i;
|
||||
}), e.d(t, "c", function() {
|
||||
return c;
|
||||
}), e.d(t, "a", function() {
|
||||
return o;
|
||||
});
|
||||
var o = {
|
||||
wall: function() {
|
||||
return e.e("components/wall/wall").then(e.bind(null, "6d46"));
|
||||
},
|
||||
uniSection: function() {
|
||||
return e.e("uni_modules/uni-section/components/uni-section/uni-section").then(e.bind(null, "79f5"));
|
||||
},
|
||||
uniIcons: function() {
|
||||
return Promise.all([ e.e("common/vendor"), e.e("uni_modules/uni-icons/components/uni-icons/uni-icons") ]).then(e.bind(null, "8be1"));
|
||||
},
|
||||
bootNav: function() {
|
||||
return Promise.all([ e.e("common/vendor"), e.e("components/bootNav/bootNav") ]).then(e.bind(null, "dc0f"));
|
||||
}
|
||||
}, i = function() {
|
||||
var n = this.$createElement;
|
||||
this._self._c;
|
||||
this._isMounted || (this.e0 = !0);
|
||||
}, c = [];
|
||||
}
|
||||
}, [ [ "9b58", "common/runtime", "common/vendor" ] ] ]);
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"navigationBarTitleText": "留言回复",
|
||||
"enablePullDownRefresh": false,
|
||||
"usingComponents": {
|
||||
"wall": "/components/wall/wall",
|
||||
"uni-section": "/uni_modules/uni-section/components/uni-section/uni-section",
|
||||
"uni-icons": "/uni_modules/uni-icons/components/uni-icons/uni-icons",
|
||||
"boot-nav": "/components/bootNav/bootNav",
|
||||
"reply": "/components/wall/reply"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,55 @@
|
|||
<view class="container">
|
||||
<wall bind:__l="__l" isRedirect="{{0}}" item="{{item}}" vueId="51fddf79-1"></wall>
|
||||
<uni-section bind:__l="__l" title="评论" type="line" vueId="51fddf79-2" vueSlots="{{['default']}}">
|
||||
<view class="uni-flex uni-row">
|
||||
<view class="flex-item-avatar">
|
||||
<image class="_img" src="{{comment.user.avatar}}"></image>
|
||||
</view>
|
||||
<view class="flex-item-content">
|
||||
<view class="uni-flex uni-row line-header">
|
||||
<view class="username">{{comment.user.nick_name}}</view>
|
||||
<view class="user-zan">
|
||||
<uni-icons bind:__l="__l" color="{{comment.is_like==1?'#007aff':'#999'}}" size="18" type="hand-up" vueId="{{'51fddf79-3'+','+'51fddf79-2'}}"></uni-icons>
|
||||
<text style="{{comment.is_like==1?focusColor:normalColor}}" wx:if="{{comment.like_num==0}}">赞</text>
|
||||
<text style="{{comment.is_like==1?focusColor:normalColor}}" wx:if="{{comment.like_num>0}}">{{comment.like_num}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="container-text">
|
||||
<text>{{comment.content}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</uni-section>
|
||||
<uni-section bind:__l="__l" title="全部回复" type="line" vueId="51fddf79-4" vueSlots="{{['default']}}">
|
||||
<reply bind:__l="__l" bind:showComment="__e" class="uni-flex uni-row" data-event-opts="{{[ [ '^showComment',[ ['childCall'] ] ] ]}}" detail_id="{{comment.id}}" item="{{reply}}" vueId="{{'51fddf79-5-'+__i0__+','+'51fddf79-4'}}" wx:for="{{replyObj.list}}" wx:for-index="__i0__" wx:for-item="reply"></reply>
|
||||
<view class="listDesc">{{replyObj.message}}</view>
|
||||
</uni-section>
|
||||
<view style="height:100px;"></view>
|
||||
<view class="uni-flex uni-row bottom-actions">
|
||||
<view class="bottom-comment-wrap">
|
||||
<input bindtap="__e" class="uni-input bottom-comment" data-event-opts="{{[ [ 'tap',[ [ 'showCommentWrap',['$0',0],['comment.id'] ] ] ] ]}}" placeholder="友善评论"></input>
|
||||
</view>
|
||||
<view class="card-actions" slot="actions">
|
||||
<view class="card-actions-item">
|
||||
<uni-icons bind:__l="__l" color="#999" size="18" type="chatbubble" vueId="51fddf79-6"></uni-icons>
|
||||
<text class="card-actions-item-text">{{item.comment_num}}</text>
|
||||
</view>
|
||||
<view class="card-actions-item">
|
||||
<uni-icons bind:__l="__l" color="#999" size="18" type="redo" vueId="51fddf79-7"></uni-icons>
|
||||
<text class="card-actions-item-text">{{item.share_num}}</text>
|
||||
</view>
|
||||
<view class="card-actions-item">
|
||||
<uni-icons bind:__l="__l" color="#999" size="18" type="heart" vueId="51fddf79-8"></uni-icons>
|
||||
<text class="card-actions-item-text">{{item.like_num}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="uni-flex uni-column bottom-actions comment-action-wrap" wx:if="{{showComment}}">
|
||||
<textarea bindautoFocus="__e" bindinput="__e" class="comment-textarea" data-event-opts="{{[ [ 'auto-focus',[ [ 'e0',['$event'] ] ] ],[ 'input',[ [ '__set_model',[ '$0','content','$event',[] ],['baseForm'] ] ] ] ]}}" maxlength="255" placeholder="评论连接你我他,文明靠大家" value="{{baseForm.content}}"></textarea>
|
||||
<view class="comment-button-wrap">
|
||||
<button bindtap="__e" class="flex-item" data-event-opts="{{[ [ 'tap',[ ['addComment'] ] ] ]}}" size="mini" type="primary">提交</button>
|
||||
<button bindtap="__e" class="flex-item" data-event-opts="{{[ [ 'tap',[ ['cancelComment'] ] ] ]}}" size="mini" type="default">取消</button>
|
||||
</view>
|
||||
</view>
|
||||
<boot-nav bind:__l="__l" nav="wall" vueId="51fddf79-9"></boot-nav>
|
||||
</view>
|
|
@ -0,0 +1,139 @@
|
|||
.container {
|
||||
background: #ebeef5;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.uni-flex {
|
||||
background: #fff;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.flex-item-avatar {
|
||||
line-height: 30px;
|
||||
width: 12%;
|
||||
}
|
||||
|
||||
.flex-item-avatar ._img {
|
||||
border-radius: 50%;
|
||||
height: 30px;
|
||||
width: 30px;
|
||||
}
|
||||
|
||||
.flex-item-content {
|
||||
width: 88%;
|
||||
}
|
||||
|
||||
.line-header {
|
||||
padding: 0;
|
||||
width: 30px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.username {
|
||||
font-weight: 700;
|
||||
height: 30px;
|
||||
width: 80%;
|
||||
}
|
||||
|
||||
.user-zan {
|
||||
color: #666;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.container-text,.container-toContent {
|
||||
color: #666;
|
||||
font-size: 12px;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
.container-toContent {
|
||||
background: #f8f8f8;
|
||||
}
|
||||
|
||||
.reply_line {
|
||||
font-size: 12px;
|
||||
height: 25px;
|
||||
line-height: 25px;
|
||||
margin-top: 10px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.container-return {
|
||||
background: #f8f8f8;
|
||||
color: #666;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.bottom-comment {
|
||||
background: #f8f8f8;
|
||||
padding: 5rpx 10rpx;
|
||||
}
|
||||
|
||||
.bottom-comment-wrap {
|
||||
width: 40%;
|
||||
}
|
||||
|
||||
.card-actions {
|
||||
border-top: 1px solid #eee;
|
||||
height: 45px;
|
||||
justify-content: space-around;
|
||||
}
|
||||
|
||||
.card-actions,.card-actions-item {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
}
|
||||
|
||||
.card-actions {
|
||||
border-top: 0;
|
||||
height: 35px;
|
||||
line-height: 35px;
|
||||
width: 60%;
|
||||
}
|
||||
|
||||
.card-actions-item {
|
||||
width: 33%;
|
||||
}
|
||||
|
||||
.card-actions-item-text {
|
||||
color: #666;
|
||||
font-size: 12px;
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
||||
.bottom-actions {
|
||||
bottom: 40px;
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.comment-action-wrap {
|
||||
background: #fff;
|
||||
border: 1px solid #ebeef5;
|
||||
box-shadow: 0 0 3px 1px rgba(0,0,0,.08);
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.comment-textarea {
|
||||
border: 1px solid #ebeef5;
|
||||
font-size: 12px;
|
||||
height: 240rpx;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.comment-button-wrap {
|
||||
margin-top: 5px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.comment-button-wrap button {
|
||||
margin: 5px;
|
||||
}
|
||||
|
||||
.listDesc {
|
||||
color: #666;
|
||||
height: 100rpx;
|
||||
line-height: 100rpx;
|
||||
text-align: center;
|
||||
}
|
|
@ -0,0 +1,148 @@
|
|||
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([ [ "pages/wall/wall" ], {
|
||||
"295c": function(t, e, n) {
|
||||
"use strict";
|
||||
n.r(e);
|
||||
var a = n("cdbd"), i = n.n(a);
|
||||
for (var o in a) [ "default" ].indexOf(o) < 0 && function(t) {
|
||||
n.d(e, t, function() {
|
||||
return a[t];
|
||||
});
|
||||
}(o);
|
||||
e["default"] = i.a;
|
||||
},
|
||||
"48ef": function(t, e, n) {
|
||||
"use strict";
|
||||
(function(t, e) {
|
||||
var a = n("4ea4");
|
||||
n("94a9");
|
||||
a(n("66fd"));
|
||||
var i = a(n("7f42"));
|
||||
t.__webpack_require_UNI_MP_PLUGIN__ = n, e(i.default);
|
||||
}).call(this, n("bc2e")["default"], n("543d")["createPage"]);
|
||||
},
|
||||
"56cf": function(t, e, n) {
|
||||
"use strict";
|
||||
n.d(e, "b", function() {
|
||||
return i;
|
||||
}), n.d(e, "c", function() {
|
||||
return o;
|
||||
}), n.d(e, "a", function() {
|
||||
return a;
|
||||
});
|
||||
var a = {
|
||||
wall: function() {
|
||||
return n.e("components/wall/wall").then(n.bind(null, "6d46"));
|
||||
},
|
||||
uniFab: function() {
|
||||
return n.e("uni_modules/uni-fab/components/uni-fab/uni-fab").then(n.bind(null, "a7a8"));
|
||||
},
|
||||
bootNav: function() {
|
||||
return Promise.all([ n.e("common/vendor"), n.e("components/bootNav/bootNav") ]).then(n.bind(null, "dc0f"));
|
||||
},
|
||||
xad: function() {
|
||||
return n.e("components/xad/xad").then(n.bind(null, "9621"));
|
||||
}
|
||||
}, i = function() {
|
||||
var t = this.$createElement;
|
||||
this._self._c;
|
||||
}, o = [];
|
||||
},
|
||||
"75ee": function(t, e, n) {
|
||||
"use strict";
|
||||
var a = n("d9df"), i = n.n(a);
|
||||
i.a;
|
||||
},
|
||||
"7f42": function(t, e, n) {
|
||||
"use strict";
|
||||
n.r(e);
|
||||
var a = n("56cf"), i = n("295c");
|
||||
for (var o in i) [ "default" ].indexOf(o) < 0 && function(t) {
|
||||
n.d(e, t, function() {
|
||||
return i[t];
|
||||
});
|
||||
}(o);
|
||||
n("75ee");
|
||||
var c = n("f0c5"), r = Object(c["a"])(i["default"], a["b"], a["c"], !1, null, null, null, !1, a["a"], void 0);
|
||||
e["default"] = r.exports;
|
||||
},
|
||||
cdbd: function(t, e, n) {
|
||||
"use strict";
|
||||
(function(t) {
|
||||
var a = n("4ea4");
|
||||
Object.defineProperty(e, "__esModule", {
|
||||
value: !0
|
||||
}), e.default = void 0;
|
||||
a(n("5c77"));
|
||||
var i = {
|
||||
data: function() {
|
||||
return {
|
||||
isProduct: 0,
|
||||
title: "留言墙",
|
||||
wallList: [],
|
||||
extraIcon: {
|
||||
color: "#4cd964",
|
||||
size: "22",
|
||||
type: "gear-filled"
|
||||
},
|
||||
pattern: {
|
||||
color: "#7A7E83",
|
||||
backgroundColor: "#fff",
|
||||
selectedColor: "#007AFF",
|
||||
buttonColor: "#007AFF",
|
||||
iconColor: "#fff"
|
||||
},
|
||||
content: [ {
|
||||
iconPath: "/static/image.png",
|
||||
selectedIconPath: "/static/image-active.png",
|
||||
text: "发布留言",
|
||||
active: !1
|
||||
} ],
|
||||
isMy: 0,
|
||||
current_page: 0,
|
||||
last_page: 1,
|
||||
noMore: 0
|
||||
};
|
||||
},
|
||||
onBackPress: function() {
|
||||
return !!this.$refs.fab.isShow && (this.$refs.fab.close(), !0);
|
||||
},
|
||||
onLoad: function(t) {
|
||||
"1" === t.isMy && (this.isMy = 1), this.getWalls(), this.cpAd(), this.x_get_ad("common");
|
||||
},
|
||||
methods: {
|
||||
onShareAppMessage: function() {
|
||||
return {
|
||||
title: this.title
|
||||
};
|
||||
},
|
||||
onShareTimeline: function() {
|
||||
return {
|
||||
title: this.title
|
||||
};
|
||||
},
|
||||
actionsClick: function(e) {
|
||||
t.showToast({
|
||||
title: e,
|
||||
icon: "none"
|
||||
});
|
||||
},
|
||||
trigger: function(t) {
|
||||
this.content[t.index].active = !t.item.active, this.x_redirect("/pages/wall_album/wall_album");
|
||||
},
|
||||
getWalls: function() {
|
||||
var t = this;
|
||||
t.current_page >= t.last_page ? t.noMore = 1 : this.x_request("api/wall/", {
|
||||
isMy: t.isMy,
|
||||
page: t.current_page + 1
|
||||
}, function(t, e) {
|
||||
1 === e.code && (t.wallList = t.wallList.concat(e.data.data), t.current_page = e.data.current_page,
|
||||
t.last_page = e.data.last_page, t.isProduct = e.status);
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
e.default = i;
|
||||
}).call(this, n("543d")["default"]);
|
||||
},
|
||||
d9df: function(t, e, n) {}
|
||||
}, [ [ "48ef", "common/runtime", "common/vendor" ] ] ]);
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"navigationBarTitleText": "留言墙",
|
||||
"enablePullDownRefresh": false,
|
||||
"usingComponents": {
|
||||
"wall": "/components/wall/wall",
|
||||
"uni-fab": "/uni_modules/uni-fab/components/uni-fab/uni-fab",
|
||||
"boot-nav": "/components/bootNav/bootNav",
|
||||
"xad": "/components/xad/xad"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
<view class="_body" wx:if="{{isProduct}}">
|
||||
<view class="xk_main_page">
|
||||
<view class="container">
|
||||
<wall bind:__l="__l" isRedirect="{{1}}" item="{{row}}" vueId="{{'31c6c680-1-'+__i0__}}" wx:for="{{wallList}}" wx:for-index="__i0__" wx:for-item="row"></wall>
|
||||
<uni-fab bind:__l="__l" bind:trigger="__e" class="vue-ref" content="{{content}}" data-event-opts="{{[ [ '^trigger',[ ['trigger'] ] ] ]}}" data-ref="fab" direction="horizontal" horizontal="right" pattern="{{pattern}}" vertical="bottom" vueId="31c6c680-2"></uni-fab>
|
||||
</view>
|
||||
<view style="height:100px;"></view>
|
||||
<boot-nav bind:__l="__l" nav="wall" vueId="31c6c680-3"></boot-nav>
|
||||
</view>
|
||||
<view class="xk_ad_0">
|
||||
<xad bind:__l="__l" vueId="31c6c680-4" x_common_ad="{{common_ad}}" x_cp_ad="{{cp_ad}}"></xad>
|
||||
</view>
|
||||
</view>
|
|
@ -0,0 +1,4 @@
|
|||
.container {
|
||||
background: #ebeef5;
|
||||
overflow: hidden;
|
||||
}
|
|
@ -0,0 +1,148 @@
|
|||
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([ [ "pages/wall/wall_detail" ], {
|
||||
3763: function(n, t, e) {
|
||||
"use strict";
|
||||
(function(n, t) {
|
||||
var o = e("4ea4");
|
||||
e("94a9");
|
||||
o(e("66fd"));
|
||||
var i = o(e("eb70"));
|
||||
n.__webpack_require_UNI_MP_PLUGIN__ = e, t(i.default);
|
||||
}).call(this, e("bc2e")["default"], e("543d")["createPage"]);
|
||||
},
|
||||
"577e": function(n, t, e) {
|
||||
"use strict";
|
||||
e.d(t, "b", function() {
|
||||
return i;
|
||||
}), e.d(t, "c", function() {
|
||||
return u;
|
||||
}), e.d(t, "a", function() {
|
||||
return o;
|
||||
});
|
||||
var o = {
|
||||
wall: function() {
|
||||
return e.e("components/wall/wall").then(e.bind(null, "6d46"));
|
||||
},
|
||||
uniSection: function() {
|
||||
return e.e("uni_modules/uni-section/components/uni-section/uni-section").then(e.bind(null, "79f5"));
|
||||
},
|
||||
uniIcons: function() {
|
||||
return Promise.all([ e.e("common/vendor"), e.e("uni_modules/uni-icons/components/uni-icons/uni-icons") ]).then(e.bind(null, "8be1"));
|
||||
},
|
||||
bootNav: function() {
|
||||
return Promise.all([ e.e("common/vendor"), e.e("components/bootNav/bootNav") ]).then(e.bind(null, "dc0f"));
|
||||
}
|
||||
}, i = function() {
|
||||
var n = this.$createElement;
|
||||
this._self._c;
|
||||
this._isMounted || (this.e0 = !0);
|
||||
}, u = [];
|
||||
},
|
||||
"59fc": function(n, t, e) {
|
||||
"use strict";
|
||||
e.r(t);
|
||||
var o = e("9240"), i = e.n(o);
|
||||
for (var u in o) [ "default" ].indexOf(u) < 0 && function(n) {
|
||||
e.d(t, n, function() {
|
||||
return o[n];
|
||||
});
|
||||
}(u);
|
||||
t["default"] = i.a;
|
||||
},
|
||||
9240: function(n, t, e) {
|
||||
"use strict";
|
||||
var o = e("4ea4");
|
||||
Object.defineProperty(t, "__esModule", {
|
||||
value: !0
|
||||
}), t.default = void 0;
|
||||
var i = o(e("5c77")), u = {
|
||||
data: function() {
|
||||
return {
|
||||
title: "留言墙",
|
||||
normalColor: "#666",
|
||||
item: {},
|
||||
commentObj: {
|
||||
message: "",
|
||||
last_page: 1,
|
||||
current_page: 0,
|
||||
noMore: 0,
|
||||
list: []
|
||||
},
|
||||
baseForm: {
|
||||
content: "",
|
||||
comment_id: 0,
|
||||
reply_id: 0
|
||||
},
|
||||
showComment: !1,
|
||||
id: 0
|
||||
};
|
||||
},
|
||||
components: {
|
||||
comment: function() {
|
||||
e.e("components/wall/comment").then(function() {
|
||||
return resolve(e("27f9"));
|
||||
}.bind(null, e)).catch(e.oe);
|
||||
}
|
||||
},
|
||||
onBackPress: function() {
|
||||
return !!this.$refs.fab.isShow && (this.$refs.fab.close(), !0);
|
||||
},
|
||||
onLoad: function(n) {
|
||||
this.id = n.id, this.getWall(this.id), this.getComment(), this.cpAd();
|
||||
},
|
||||
onReachBottom: function() {
|
||||
this.getComment();
|
||||
},
|
||||
methods: {
|
||||
onShareAppMessage: function() {
|
||||
return {
|
||||
title: this.title
|
||||
};
|
||||
},
|
||||
onShareTimeline: function() {
|
||||
return {
|
||||
title: this.title
|
||||
};
|
||||
},
|
||||
getWall: function() {
|
||||
i.default.getWall(this);
|
||||
},
|
||||
getComment: function() {
|
||||
i.default.getCommentList(this);
|
||||
},
|
||||
showCommentWrap: function(n, t) {
|
||||
i.default.showCommentWrap(this, n, t);
|
||||
},
|
||||
cancelComment: function() {
|
||||
this.showComment = !this.showComment, this.baseForm.wall_id = 0, this.baseForm.reply_id = 0,
|
||||
this.baseForm.content = "";
|
||||
},
|
||||
comment: function() {
|
||||
i.default.addComment(this);
|
||||
},
|
||||
commentLike: function(n, t) {
|
||||
"like" === n && i.default.wallLike(this, this.item.id, t);
|
||||
}
|
||||
}
|
||||
};
|
||||
t.default = u;
|
||||
},
|
||||
d435: function(n, t, e) {},
|
||||
e3ab: function(n, t, e) {
|
||||
"use strict";
|
||||
var o = e("d435"), i = e.n(o);
|
||||
i.a;
|
||||
},
|
||||
eb70: function(n, t, e) {
|
||||
"use strict";
|
||||
e.r(t);
|
||||
var o = e("577e"), i = e("59fc");
|
||||
for (var u in i) [ "default" ].indexOf(u) < 0 && function(n) {
|
||||
e.d(t, n, function() {
|
||||
return i[n];
|
||||
});
|
||||
}(u);
|
||||
e("e3ab");
|
||||
var c = e("f0c5"), a = Object(c["a"])(i["default"], o["b"], o["c"], !1, null, null, null, !1, o["a"], void 0);
|
||||
t["default"] = a.exports;
|
||||
}
|
||||
}, [ [ "3763", "common/runtime", "common/vendor" ] ] ]);
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"navigationBarTitleText": "留言",
|
||||
"enablePullDownRefresh": false,
|
||||
"usingComponents": {
|
||||
"wall": "/components/wall/wall",
|
||||
"uni-section": "/uni_modules/uni-section/components/uni-section/uni-section",
|
||||
"uni-icons": "/uni_modules/uni-icons/components/uni-icons/uni-icons",
|
||||
"boot-nav": "/components/bootNav/bootNav",
|
||||
"comment": "/components/wall/comment"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
<view class="container" wx:if="{{isProduct}}">
|
||||
<wall bind:__l="__l" isRedirect="{{0}}" item="{{item}}" vueId="67f656a8-1"></wall>
|
||||
<uni-section bind:__l="__l" title="评论" type="line" vueId="67f656a8-2" vueSlots="{{['default']}}">
|
||||
<comment bind:__l="__l" detail_id="{{id}}" item="{{comment}}" vueId="{{'67f656a8-3-'+k+','+'67f656a8-2'}}" wx:for="{{commentObj.list}}" wx:for-index="k" wx:for-item="comment"></comment>
|
||||
<view class="listDesc">{{commentObj.message}}</view>
|
||||
</uni-section>
|
||||
<view style="height:100px;"></view>
|
||||
<view class="uni-flex uni-row bottom-actions">
|
||||
<view class="bottom-comment-wrap">
|
||||
<input bindtap="__e" class="uni-input bottom-comment" data-event-opts="{{[ [ 'tap',[ [ 'showCommentWrap',[0,0] ] ] ] ]}}" placeholder="友善评论"></input>
|
||||
</view>
|
||||
<view class="card-actions" slot="actions">
|
||||
<view class="card-actions-item">
|
||||
<uni-icons bind:__l="__l" color="#999" size="18" type="chatbubble" vueId="67f656a8-4"></uni-icons>
|
||||
<text class="card-actions-item-text">{{item.comment_num}}</text>
|
||||
</view>
|
||||
<view class="card-actions-item">
|
||||
<uni-icons bind:__l="__l" color="#999" size="18" type="redo" vueId="67f656a8-5"></uni-icons>
|
||||
<text class="card-actions-item-text">{{item.share_num}}</text>
|
||||
</view>
|
||||
<view catchtap="__e" class="card-actions-item" data-event-opts="{{[ [ 'tap',[ [ 'commentLike',['like',1] ] ] ] ]}}">
|
||||
<uni-icons bind:__l="__l" color="#007aff" size="18" type="hand-up" vueId="67f656a8-6" wx:if="{{item.is_like==1}}"></uni-icons>
|
||||
<uni-icons bind:__l="__l" color="#999" size="18" type="hand-up" vueId="67f656a8-7" wx:else></uni-icons>
|
||||
<text class="card-actions-item-text" style="color:#007aff;" wx:if="{{item.is_like==1}}">{{item.like_num}}</text>
|
||||
<text class="card-actions-item-text" wx:else>{{item.like_num}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="uni-flex uni-column bottom-actions comment-action-wrap" wx:if="{{showComment}}">
|
||||
<textarea bindautoFocus="__e" bindinput="__e" class="comment-textarea" data-event-opts="{{[ [ 'auto-focus',[ [ 'e0',['$event'] ] ] ],[ 'input',[ [ '__set_model',[ '$0','content','$event',[] ],['baseForm'] ] ] ] ]}}" maxlength="255" placeholder="评论连接你我他,文明靠大家" value="{{baseForm.content}}"></textarea>
|
||||
<view class="comment-button-wrap">
|
||||
<button bindtap="__e" class="flex-item" data-event-opts="{{[ [ 'tap',[ ['comment'] ] ] ]}}" size="mini" type="primary">提交</button>
|
||||
<button bindtap="__e" class="flex-item" data-event-opts="{{[ [ 'tap',[ ['cancelComment'] ] ] ]}}" size="mini" type="default">取消</button>
|
||||
</view>
|
||||
</view>
|
||||
<boot-nav bind:__l="__l" nav="wall" vueId="67f656a8-8"></boot-nav>
|
||||
</view>
|
|
@ -0,0 +1,139 @@
|
|||
.container {
|
||||
background: #ebeef5;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.uni-flex {
|
||||
background: #fff;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.flex-item-avatar {
|
||||
line-height: 30px;
|
||||
width: 12%;
|
||||
}
|
||||
|
||||
.flex-item-avatar ._img {
|
||||
border-radius: 50%;
|
||||
height: 30px;
|
||||
width: 30px;
|
||||
}
|
||||
|
||||
.flex-item-content {
|
||||
width: 88%;
|
||||
}
|
||||
|
||||
.line-header {
|
||||
padding: 0;
|
||||
width: 30px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.username {
|
||||
font-weight: 700;
|
||||
height: 30px;
|
||||
width: 80%;
|
||||
}
|
||||
|
||||
.user-zan {
|
||||
color: #666;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.container-text,.container-toContent {
|
||||
color: #666;
|
||||
font-size: 12px;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
.container-toContent {
|
||||
background: #f8f8f8;
|
||||
}
|
||||
|
||||
.reply_line {
|
||||
font-size: 12px;
|
||||
height: 25px;
|
||||
line-height: 25px;
|
||||
margin-top: 10px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.container-return {
|
||||
background: #f8f8f8;
|
||||
color: #666;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.bottom-comment {
|
||||
background: #f8f8f8;
|
||||
padding: 5rpx 10rpx;
|
||||
}
|
||||
|
||||
.bottom-comment-wrap {
|
||||
width: 40%;
|
||||
}
|
||||
|
||||
.card-actions {
|
||||
border-top: 1px solid #eee;
|
||||
height: 45px;
|
||||
justify-content: space-around;
|
||||
}
|
||||
|
||||
.card-actions,.card-actions-item {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
}
|
||||
|
||||
.card-actions {
|
||||
border-top: 0;
|
||||
height: 35px;
|
||||
line-height: 35px;
|
||||
width: 60%;
|
||||
}
|
||||
|
||||
.card-actions-item {
|
||||
width: 33%;
|
||||
}
|
||||
|
||||
.card-actions-item-text {
|
||||
color: #666;
|
||||
font-size: 12px;
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
||||
.bottom-actions {
|
||||
bottom: 40px;
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.comment-action-wrap {
|
||||
background: #fff;
|
||||
border: 1px solid #ebeef5;
|
||||
box-shadow: 0 0 3px 1px rgba(0,0,0,.08);
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.comment-textarea {
|
||||
border: 1px solid #ebeef5;
|
||||
font-size: 12px;
|
||||
height: 240rpx;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.comment-button-wrap {
|
||||
margin-top: 5px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.comment-button-wrap button {
|
||||
margin: 5px;
|
||||
}
|
||||
|
||||
.listDesc {
|
||||
color: #666;
|
||||
height: 100rpx;
|
||||
line-height: 100rpx;
|
||||
text-align: center;
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue