update
This commit is contained in:
parent
052710886b
commit
f3ff6b4c44
1
App.vue
1
App.vue
@ -41,6 +41,7 @@
|
||||
})
|
||||
|
||||
let _this = this
|
||||
console.log('app',this.user.WeChat_MiniProToken)
|
||||
if (this.user.WeChat_MiniProToken) {
|
||||
this.memberLogin() // 获取用户数据
|
||||
} else {
|
||||
|
||||
@ -45,7 +45,7 @@ export default {
|
||||
loadMore(){
|
||||
if(!this.pageData.isEnd) {
|
||||
this.pageData.pageIndex += 1
|
||||
this.getList()
|
||||
this.getData()
|
||||
}
|
||||
},
|
||||
goDetail(item) {
|
||||
@ -58,10 +58,10 @@ export default {
|
||||
QueryType:"0",
|
||||
SearchParameter:{
|
||||
Operation_Type: "10",
|
||||
BusinessProcessState: "2000,3000,9000,9999",
|
||||
BusinessProcess_StateSearch: "2000,2010,2020,2030,2040,2050,2060,2070,2080,2090,3000,9000,9999",
|
||||
},
|
||||
ShowWholePower: true,
|
||||
PageIndex:1,
|
||||
PageIndex:this.pageData.pageIndex,
|
||||
PageSize: 10,
|
||||
SortStr:'BUSINESSAPPROVAL_STATE,BUSINESS_STARTDATE desc'
|
||||
// SortStr: 'BusinessProcess_State,BusinessProcess_StartDate desc'
|
||||
@ -94,7 +94,7 @@ export default {
|
||||
uni.showLoading({
|
||||
title:'正在加载'
|
||||
})
|
||||
this.getList()
|
||||
this.getData()
|
||||
setTimeout(function() {
|
||||
uni.stopPullDownRefresh()
|
||||
}, 1000)
|
||||
@ -110,7 +110,7 @@ export default {
|
||||
})
|
||||
_this.pageData.pageIndex = 1
|
||||
_this.pageData.isEnd = false
|
||||
// _this.getList()
|
||||
// _this.getData()
|
||||
console.log('onShow')
|
||||
_this.getData()
|
||||
this.shouldReLoadingList(false)
|
||||
@ -124,7 +124,7 @@ export default {
|
||||
uni.showLoading({
|
||||
title:'正在加载'
|
||||
})
|
||||
// this.getList()
|
||||
// this.getData()
|
||||
this.getData()
|
||||
},
|
||||
onUnload() {
|
||||
|
||||
@ -85,7 +85,7 @@
|
||||
},
|
||||
getList () {
|
||||
let _this = this
|
||||
|
||||
console.log('this')
|
||||
_this.$request.$get('GetEndaccountTotalList',{
|
||||
// action_record: this.searchTime,
|
||||
Page_Index: this.pageData.pageIndex,
|
||||
|
||||
@ -452,6 +452,7 @@
|
||||
},
|
||||
async initData() { // 初始化营收数据
|
||||
let _this = this
|
||||
console.log('theRequest',this.theRequest)
|
||||
const [reginList, totalData, busniessTypePie, busniessTradePie, busniessAreaPie, bayonetPie] =
|
||||
await anhuiYestodayRevenueData.getData(this.theRequest) // 获取实时数据
|
||||
|
||||
|
||||
@ -82,9 +82,11 @@ const actions = {
|
||||
WeChat_Code: _code || '',
|
||||
|
||||
}).then(data=>{
|
||||
console.log('memberLogin',data)
|
||||
if (data.Result_Code === 100) {
|
||||
let user = data.Result_Data
|
||||
if (user.Membership_Id) {
|
||||
commit('setUser', user)
|
||||
dispatch('updateUser',data.Result_Data)
|
||||
// _this.addUserBehavior(1002) // 记录用户行为
|
||||
}else{
|
||||
@ -94,9 +96,7 @@ const actions = {
|
||||
content: '请您授权登录后再操作。',
|
||||
success(res) {
|
||||
if(res.confirm){
|
||||
|
||||
util.toNextRoute('navigateTo', '/pages/register/register')
|
||||
|
||||
}
|
||||
}
|
||||
})
|
||||
@ -114,9 +114,11 @@ const actions = {
|
||||
|
||||
let _user = user || state.userData
|
||||
let _id = _user.Membership_Id
|
||||
console.log('_user',_user)
|
||||
if(!_id) return
|
||||
// console.log(_user)
|
||||
request.$get('WeChat_GetBusinessMemberInfo',{Membership_Id:_id}).then(res=>{
|
||||
console.log('updateUser',res)
|
||||
// request.$webGet('WebAPI_Push/Member/GetMemberInfo',{Membership_Id:_id,memberShipId:_id}).then(res=>{
|
||||
if(res.Result_Code==100) {
|
||||
let data = res.Result_Data
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user