完善充值记录
This commit is contained in:
81
unpackage/dist/dev/mp-weixin/pages/my/wallet.js
vendored
81
unpackage/dist/dev/mp-weixin/pages/my/wallet.js
vendored
@ -106,6 +106,9 @@ try {
|
||||
uLine: function () {
|
||||
return __webpack_require__.e(/*! import() | components/uview-ui/components/u-line/u-line */ "components/uview-ui/components/u-line/u-line").then(__webpack_require__.bind(null, /*! @/components/uview-ui/components/u-line/u-line.vue */ 401))
|
||||
},
|
||||
loadingFooter: function () {
|
||||
return __webpack_require__.e(/*! import() | components/loading-footer/loading-footer */ "components/loading-footer/loading-footer").then(__webpack_require__.bind(null, /*! @/components/loading-footer/loading-footer.vue */ 606))
|
||||
},
|
||||
}
|
||||
} catch (e) {
|
||||
if (
|
||||
@ -158,8 +161,20 @@ __webpack_require__.r(__webpack_exports__);
|
||||
!*** ./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--13-1!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/Hbuilder/Project/jianbing/pages/my/wallet.vue?vue&type=script&lang=js& ***!
|
||||
\****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports) {
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
||||
|
||||
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = void 0;
|
||||
var _mescrollMixins = _interopRequireDefault(__webpack_require__(/*! @/components/mescroll-uni/mescroll-mixins.js */ 181));
|
||||
var _user = __webpack_require__(/*! @/api/user */ 34);
|
||||
var _type = __webpack_require__(/*! @/utils/type */ 42);
|
||||
var _tools = __webpack_require__(/*! @/utils/tools */ 41);
|
||||
//
|
||||
//
|
||||
//
|
||||
@ -209,16 +224,60 @@ __webpack_require__.r(__webpack_exports__);
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
var _default = {
|
||||
mixins: [_mescrollMixins.default],
|
||||
data: function data() {
|
||||
return {
|
||||
wallet: {},
|
||||
page: 1,
|
||||
loadingStatus: _type.loadingType.LOADING,
|
||||
lists: [],
|
||||
isRefreshing: false // 控制刷新状态
|
||||
};
|
||||
},
|
||||
onLoad: function onLoad() {
|
||||
this.getWalletFun();
|
||||
this.upCallback();
|
||||
},
|
||||
methods: {
|
||||
refreshCallback: function refreshCallback() {
|
||||
this.isRefreshing = true;
|
||||
this.page = 1;
|
||||
this.lists = [];
|
||||
this.loadingStatus = _type.loadingType.LOADING;
|
||||
this.upCallback();
|
||||
},
|
||||
// 初始化数据
|
||||
upCallback: function upCallback() {
|
||||
var _this = this;
|
||||
var lists = this.lists,
|
||||
loadingStatus = this.loadingStatus,
|
||||
page = this.page;
|
||||
(0, _tools.loadingFun)(_user.getAccountLog, page, lists, loadingStatus, {
|
||||
source: 1,
|
||||
type: 0
|
||||
}).then(function (res) {
|
||||
if (res) {
|
||||
setTimeout(function () {
|
||||
_this.isRefreshing = false;
|
||||
}, 500);
|
||||
_this.page = res.page;
|
||||
_this.lists = res.dataList;
|
||||
_this.loadingStatus = res.status;
|
||||
}
|
||||
});
|
||||
},
|
||||
// 获取钱包数据
|
||||
getWalletFun: function getWalletFun() {
|
||||
var _this2 = this;
|
||||
(0, _user.getWallet)().then(function (res) {
|
||||
_this2.wallet = res.data;
|
||||
console.log("wallet>>>", _this2.wallet);
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
exports.default = _default;
|
||||
|
||||
/***/ }),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user