|
@@ -298,6 +298,9 @@ var _default = {
|
|
|
res.data.content = res.data.content.replace(/\<img/gi, '<img class="rich-img"');
|
|
|
res.data.zhType = that.searchDict(res.data.type, 'type');
|
|
|
that.$set(that, "info", res.data);
|
|
|
+ uni.setNavigationBarTitle({
|
|
|
+ title: res.data.contact_name
|
|
|
+ });
|
|
|
} else {
|
|
|
uni.showToast({
|
|
|
title: res.errmsg
|
|
@@ -362,6 +365,18 @@ var _default = {
|
|
|
if (data) return data.label;else return '暂无';
|
|
|
}
|
|
|
},
|
|
|
+ // 滑动到评论专区
|
|
|
+ pageScroll: function pageScroll() {
|
|
|
+ var _this3 = this;
|
|
|
+ this.$set(this, "scrollTop", 0);
|
|
|
+ this.$nextTick(function () {
|
|
|
+ setTimeout(function () {
|
|
|
+ uni.createSelectorQuery().in(_this3).select(".thr").boundingClientRect(function (res) {
|
|
|
+ _this3.$set(_this3, "scrollTop", res.top);
|
|
|
+ }).exec();
|
|
|
+ }, 100);
|
|
|
+ });
|
|
|
+ },
|
|
|
// 发送
|
|
|
toSend: function toSend(item) {
|
|
|
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4() {
|
|
@@ -414,14 +429,14 @@ var _default = {
|
|
|
},
|
|
|
// 查询其他信息
|
|
|
searchOther: function searchOther() {
|
|
|
- var _this3 = this;
|
|
|
+ var _this4 = this;
|
|
|
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5() {
|
|
|
var that, res;
|
|
|
return _regenerator.default.wrap(function _callee5$(_context5) {
|
|
|
while (1) {
|
|
|
switch (_context5.prev = _context5.next) {
|
|
|
case 0:
|
|
|
- that = _this3;
|
|
|
+ that = _this4;
|
|
|
_context5.next = 3;
|
|
|
return that.$api("/dictData", 'GET', {
|
|
|
type: 'home_tabs',
|