add
This commit is contained in:
@@ -204,6 +204,7 @@ Object.defineProperty(exports, "__esModule", { value: true });exports.default =
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var _user = __webpack_require__(/*! @/api/user */ 19); //
|
||||
@@ -278,8 +279,11 @@ var _user = __webpack_require__(/*! @/api/user */ 19); //
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
var Loading = function Loading() {return __webpack_require__.e(/*! import() | components/Loading */ "components/Loading").then(__webpack_require__.bind(null, /*! @/components/Loading */ 494));};var DataFormat = function DataFormat() {return __webpack_require__.e(/*! import() | components/DataFormat */ "components/DataFormat").then(__webpack_require__.bind(null, /*! @/components/DataFormat */ 577));};var _default = { name: "Integral", components: { Loading: Loading, DataFormat: DataFormat }, props: {}, data: function data() {return { navList: [{ name: "分值明细", icon: "icon-mingxi" // { name: "分值提升", icon: "icon-tishengfenzhi" }
|
||||
}], current: 0, where: { page: 1, limit: 15 }, data: { sign: 1, integral: 1, all: 1 }, list: [], info: [], loaded: false, loading: false };}, mounted: function mounted() {this.getIntegral();this.getInfo();}, onReachBottom: function onReachBottom() {!this.loading && this.getInfo();}, methods: { nav: function nav(index) {this.current = index;}, getInfo: function getInfo() {var that = this;if (that.loaded == true || that.loading == true) return;that.loading = true;(0, _user.getIntegralList)(that.where).then(function (res) {that.loading = false;that.loaded = res.data.length < that.where.limit;that.loadTitle = that.loaded ? "人家是有底线的" : "上拉加载更多";that.where.page = that.where.page + 1;that.list.push.apply(that.list, res.data);}, function (err) {that.$dialog.message(err.msg);});}, getIntegral: function getIntegral() {var that = this;(0, _user.postSignUser)(that.data).then(function (res) {that.info = res.data;}, function (err) {that.$dialog.message(err.msg);});} } };exports.default = _default;
|
||||
}], current: 0, where: { page: 1, limit: 15 }, data: { sign: 1, integral: 1, all: 1 }, list: [], info: [], loaded: false, loading: false };}, mounted: function mounted() {this.getIntegral();this.getInfo();}, onReachBottom: function onReachBottom() {!this.loading && this.getInfo();}, methods: { goSignIn: function goSignIn() {this.$yrouter.push("/pages/user/signIn/Sign/index");}, goHome: function goHome() {this.$yrouter.switchTab("/pages/home/index");}, nav: function nav(index) {this.current = index;}, getInfo: function getInfo() {var that = this;if (that.loaded == true || that.loading == true) return;that.loading = true;(0, _user.getIntegralList)(that.where).then(function (res) {that.loading = false;that.loaded = res.data.length < that.where.limit;that.loadTitle = that.loaded ? "人家是有底线的" : "上拉加载更多";that.where.page = that.where.page + 1;that.list.push.apply(that.list, res.data);}, function (err) {that.$dialog.message(err.msg);});}, getIntegral: function getIntegral() {var that = this;(0, _user.postSignUser)(that.data).then(function (res) {that.info = res.data;}, function (err) {that.$dialog.message(err.msg);});
|
||||
|
||||
} } };exports.default = _default;
|
||||
|
||||
/***/ }),
|
||||
|
||||
|
||||
@@ -1 +1 @@
|
||||
<view data-ref="container" class="integral-details _div vue-ref"><view class="header _div"><view class="currentScore _div">当前积分</view><view class="_div">{{info.integral}}</view><view class="line _div"></view></view><view class="wrapper _div"><view class="nav acea-row _div"><block wx:for="{{navList}}" wx:for-item="item" wx:for-index="navListIndex" wx:key="navListIndex"><view data-event-opts="{{[['tap',[['nav',[navListIndex]]]]]}}" class="{{['item acea-row row-center-wrapper _div',current===navListIndex?'on':'']}}" bindtap="__e"><label class="{{['iconfont _span',item.icon]}}"></label>{{item.name+''}}</view></block></view><view class="list _div" hidden="{{current!==0}}"><block wx:for="{{list}}" wx:for-item="item" wx:for-index="listIndex" wx:key="listIndex"><view class="item acea-row row-between-wrapper _div"><view class="_div"><view class="state _div">{{item.title}}</view><view class="_div"><data-format vue-id="{{'63e16316-1-'+listIndex}}" data="{{item.addTime}}" bind:__l="__l"></data-format></view></view><block wx:if="{{item.pm==1}}"><view class="num _div">{{"+"+item.number}}</view></block><block wx:if="{{item.pm==0}}"><view class="num font-color-red _div">{{'-'+item.number+''}}</view></block></view></block></view></view><loading vue-id="63e16316-2" loaded="{{loaded}}" loading="{{loading}}" bind:__l="__l"></loading></view>
|
||||
<view data-ref="container" class="integral-details _div vue-ref"><view class="header _div"><view class="currentScore _div">当前积分</view><view class="_div">{{info.integral}}</view><view class="line _div"></view></view><view class="wrapper _div"><view class="nav acea-row _div"><block wx:for="{{navList}}" wx:for-item="item" wx:for-index="navListIndex" wx:key="navListIndex"><view data-event-opts="{{[['tap',[['nav',[navListIndex]]]]]}}" class="{{['item acea-row row-center-wrapper _div',current===navListIndex?'on':'']}}" bindtap="__e"><label class="{{['iconfont _span',item.icon]}}"></label>{{''+item.name+''}}</view></block></view><view class="list _div" hidden="{{current!==0}}"><block wx:for="{{list}}" wx:for-item="item" wx:for-index="listIndex" wx:key="listIndex"><view class="item acea-row row-between-wrapper _div"><view class="_div"><view class="state _div">{{item.title}}</view><view class="_div"><data-format vue-id="{{'63e16316-1-'+listIndex}}" data="{{item.addTime}}" bind:__l="__l"></data-format></view></view><block wx:if="{{item.pm==1}}"><view class="num _div">{{"+"+item.number}}</view></block><block wx:if="{{item.pm==0}}"><view class="num font-color-red _div">{{"-"+item.number}}</view></block></view></block></view></view><loading vue-id="63e16316-2" loaded="{{loaded}}" loading="{{loading}}" bind:__l="__l"></loading></view>
|
||||
@@ -1,4 +1,4 @@
|
||||
|
||||
.list{
|
||||
}
|
||||
.list {
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user