mirror of
https://gitee.com/java110/WechatOwnerService.git
synced 2026-02-23 21:36:38 +08:00
优化手机端积分展示
This commit is contained in:
parent
a30c22432d
commit
df103e0b75
@ -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
|
||||
|
||||
@ -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({
|
||||
|
||||
@ -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",
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user