优化手机端积分展示

This commit is contained in:
wuxw 2024-06-11 00:00:37 +08:00
parent a30c22432d
commit df103e0b75
3 changed files with 37 additions and 3 deletions

View File

@ -97,6 +97,33 @@ export function sendSmsCode(_link, _that) {
})
}
/**
* 查询用户积分信息
* @param {Object} _objData
*/
export function queryUserIntegral(_objData) {
return new Promise((resolve, reject) => {
request({
url: url.queryAppUserIntegral,
method: "GET",
data: _objData, //动态数据
success: function(res) {
let _json = res.data;
if (_json.code == 0) {
//成功情况下跳转
let _integral = _json.data;
resolve(_integral);
return;
}
reject();
},
fail: function(e) {
reject();
}
});
})
}
/**
* 查询用户账户信息
* @param {Object} _objData

View File

@ -55,7 +55,7 @@
const factory = context.factory; //app
const constant = context.constant;
import conf from '@/conf/config.js';
import {queryOwnerAccount} from '@/api/user/userApi.js';
import {queryOwnerAccount,queryUserIntegral} from '@/api/user/userApi.js';
import {
getCouponUsers
} from '../../api/fee/feeApi.js';
@ -199,7 +199,14 @@
});
},
loadUserIntegral:function(){
let _that =this;
this.inter = 0;
queryUserIntegral({
page:1,
row:1,
}).then(_data=>{
_that.inter = _data.integral
})
},
showLongModel: function() {
this.vc.navigateTo({

View File

@ -246,7 +246,7 @@ export default {
appEditSelfCarNum: baseUrl+"app/owner.appEditSelfCarNum",
appSaveMemberCar: baseUrl+"app/owner.appSaveMemberCar",
appDeleteMemberCar: baseUrl+"app/owner.appDeleteMemberCar",
queryAppUserIntegral: baseUrl+"app/integral.queryAppUserIntegral",