优化页面
This commit is contained in:
53
unpackage/dist/dev/mp-weixin/pages/Mine/Mine.js
vendored
53
unpackage/dist/dev/mp-weixin/pages/Mine/Mine.js
vendored
@@ -2,6 +2,7 @@
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const components_request = require("../../components/request.js");
|
||||
const components_formatDate = require("../../components/formatDate.js");
|
||||
const components_TimeFormatting = require("../../components/TimeFormatting.js");
|
||||
const common_assets = require("../../common/assets.js");
|
||||
const tabBar = () => "../../components/tabBar/tabBar.js";
|
||||
const _sfc_main = {
|
||||
@@ -17,7 +18,7 @@ const _sfc_main = {
|
||||
key: "userinfo",
|
||||
success: (res) => {
|
||||
this.userinfo = res.data;
|
||||
common_vendor.index.__f__("log", "at pages/Mine/Mine.vue:132", this.userinfo);
|
||||
common_vendor.index.__f__("log", "at pages/Mine/Mine.vue:133", this.userinfo);
|
||||
this.getpkInformation();
|
||||
this.getmyPkRecord();
|
||||
}
|
||||
@@ -25,6 +26,7 @@ const _sfc_main = {
|
||||
},
|
||||
methods: {
|
||||
formatDate: components_formatDate.formatDate,
|
||||
TimeFormatting: components_TimeFormatting.TimeFormatting,
|
||||
//获取pk信息
|
||||
getpkInformation() {
|
||||
components_request.request({
|
||||
@@ -39,9 +41,9 @@ const _sfc_main = {
|
||||
}).then((res) => {
|
||||
if (res.code == 200) {
|
||||
this.pkInformationdata = res.data;
|
||||
common_vendor.index.__f__("log", "at pages/Mine/Mine.vue:154", this.pkInformationdata);
|
||||
common_vendor.index.__f__("log", "at pages/Mine/Mine.vue:156", this.pkInformationdata);
|
||||
} else {
|
||||
common_vendor.index.__f__("log", "at pages/Mine/Mine.vue:156", res.msg);
|
||||
common_vendor.index.__f__("log", "at pages/Mine/Mine.vue:158", res.msg);
|
||||
}
|
||||
});
|
||||
},
|
||||
@@ -60,9 +62,9 @@ const _sfc_main = {
|
||||
}).then((res) => {
|
||||
if (res.code == 200) {
|
||||
this.myPkRecorddata = res.data;
|
||||
common_vendor.index.__f__("log", "at pages/Mine/Mine.vue:175", this.myPkRecorddata);
|
||||
common_vendor.index.__f__("log", "at pages/Mine/Mine.vue:177", this.myPkRecorddata);
|
||||
} else {
|
||||
common_vendor.index.__f__("log", "at pages/Mine/Mine.vue:177", res.msg);
|
||||
common_vendor.index.__f__("log", "at pages/Mine/Mine.vue:179", res.msg);
|
||||
}
|
||||
});
|
||||
},
|
||||
@@ -90,20 +92,15 @@ const _sfc_main = {
|
||||
url: "/pages/Setting/Setting"
|
||||
});
|
||||
},
|
||||
// 跳转到服务协议页面
|
||||
serviceProtocol() {
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/pages/Mine/minecomponents/serviceProtocol"
|
||||
});
|
||||
},
|
||||
// 退出登录
|
||||
logout() {
|
||||
common_vendor.index.removeStorage({
|
||||
key: "chatInfo"
|
||||
});
|
||||
common_vendor.index.removeStorage({
|
||||
key: "userinfo"
|
||||
});
|
||||
common_vendor.index.removeStorage({
|
||||
key: "userSig"
|
||||
});
|
||||
common_vendor.index.removeStorage({
|
||||
key: "lastPage"
|
||||
});
|
||||
common_vendor.index.clearStorage();
|
||||
common_vendor.index.reLaunch({
|
||||
url: "/pages/login/login"
|
||||
});
|
||||
@@ -140,11 +137,23 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
}),
|
||||
i: common_assets._imports_2$1,
|
||||
j: common_vendor.o$1((...args) => $options.pkRecord && $options.pkRecord(...args)),
|
||||
k: common_assets._imports_3$1,
|
||||
l: common_vendor.o$1((...args) => $options.contact && $options.contact(...args)),
|
||||
m: common_assets._imports_4,
|
||||
n: common_assets._imports_5,
|
||||
o: common_vendor.o$1((...args) => $options.logout && $options.logout(...args))
|
||||
k: common_vendor.f($data.myPkRecorddata, (item, index, i0) => {
|
||||
return common_vendor.e({
|
||||
a: item.anchorIconA,
|
||||
b: item.winnerAnchorId !== item.anchorIdA
|
||||
}, item.winnerAnchorId !== item.anchorIdA ? {} : item.winnerAnchorId === item.anchorIdA ? {} : {}, {
|
||||
c: item.winnerAnchorId === item.anchorIdA,
|
||||
d: common_vendor.t(item.pkNumber),
|
||||
e: common_vendor.t($options.TimeFormatting(item.pkTime)),
|
||||
f: index
|
||||
});
|
||||
}),
|
||||
l: common_assets._imports_3$1,
|
||||
m: common_vendor.o$1((...args) => $options.contact && $options.contact(...args)),
|
||||
n: common_assets._imports_4,
|
||||
o: common_vendor.o$1((...args) => $options.serviceProtocol && $options.serviceProtocol(...args)),
|
||||
p: common_assets._imports_5,
|
||||
q: common_vendor.o$1((...args) => $options.logout && $options.logout(...args))
|
||||
};
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-402ad917"]]);
|
||||
|
||||
Reference in New Issue
Block a user