This commit is contained in:
cclu 2024-02-23 16:51:39 +08:00
parent 052710886b
commit f3ff6b4c44
5 changed files with 69 additions and 65 deletions

View File

@ -41,6 +41,7 @@
}) })
let _this = this let _this = this
console.log('app',this.user.WeChat_MiniProToken)
if (this.user.WeChat_MiniProToken) { if (this.user.WeChat_MiniProToken) {
this.memberLogin() // this.memberLogin() //
} else { } else {

View File

@ -45,7 +45,7 @@ export default {
loadMore(){ loadMore(){
if(!this.pageData.isEnd) { if(!this.pageData.isEnd) {
this.pageData.pageIndex += 1 this.pageData.pageIndex += 1
this.getList() this.getData()
} }
}, },
goDetail(item) { goDetail(item) {
@ -58,10 +58,10 @@ export default {
QueryType:"0", QueryType:"0",
SearchParameter:{ SearchParameter:{
Operation_Type: "10", 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, ShowWholePower: true,
PageIndex:1, PageIndex:this.pageData.pageIndex,
PageSize: 10, PageSize: 10,
SortStr:'BUSINESSAPPROVAL_STATE,BUSINESS_STARTDATE desc' SortStr:'BUSINESSAPPROVAL_STATE,BUSINESS_STARTDATE desc'
// SortStr: 'BusinessProcess_State,BusinessProcess_StartDate desc' // SortStr: 'BusinessProcess_State,BusinessProcess_StartDate desc'
@ -94,7 +94,7 @@ export default {
uni.showLoading({ uni.showLoading({
title:'正在加载' title:'正在加载'
}) })
this.getList() this.getData()
setTimeout(function() { setTimeout(function() {
uni.stopPullDownRefresh() uni.stopPullDownRefresh()
}, 1000) }, 1000)
@ -110,7 +110,7 @@ export default {
}) })
_this.pageData.pageIndex = 1 _this.pageData.pageIndex = 1
_this.pageData.isEnd = false _this.pageData.isEnd = false
// _this.getList() // _this.getData()
console.log('onShow') console.log('onShow')
_this.getData() _this.getData()
this.shouldReLoadingList(false) this.shouldReLoadingList(false)
@ -124,7 +124,7 @@ export default {
uni.showLoading({ uni.showLoading({
title:'正在加载' title:'正在加载'
}) })
// this.getList() // this.getData()
this.getData() this.getData()
}, },
onUnload() { onUnload() {

View File

@ -85,7 +85,7 @@
}, },
getList () { getList () {
let _this = this let _this = this
console.log('this')
_this.$request.$get('GetEndaccountTotalList',{ _this.$request.$get('GetEndaccountTotalList',{
// action_record: this.searchTime, // action_record: this.searchTime,
Page_Index: this.pageData.pageIndex, Page_Index: this.pageData.pageIndex,

View File

@ -452,6 +452,7 @@
}, },
async initData() { // async initData() { //
let _this = this let _this = this
console.log('theRequest',this.theRequest)
const [reginList, totalData, busniessTypePie, busniessTradePie, busniessAreaPie, bayonetPie] = const [reginList, totalData, busniessTypePie, busniessTradePie, busniessAreaPie, bayonetPie] =
await anhuiYestodayRevenueData.getData(this.theRequest) // await anhuiYestodayRevenueData.getData(this.theRequest) //

View File

@ -82,9 +82,11 @@ const actions = {
WeChat_Code: _code || '', WeChat_Code: _code || '',
}).then(data=>{ }).then(data=>{
console.log('memberLogin',data)
if (data.Result_Code === 100) { if (data.Result_Code === 100) {
let user = data.Result_Data let user = data.Result_Data
if (user.Membership_Id) { if (user.Membership_Id) {
commit('setUser', user)
dispatch('updateUser',data.Result_Data) dispatch('updateUser',data.Result_Data)
// _this.addUserBehavior(1002) // 记录用户行为 // _this.addUserBehavior(1002) // 记录用户行为
}else{ }else{
@ -94,9 +96,7 @@ const actions = {
content: '请您授权登录后再操作。', content: '请您授权登录后再操作。',
success(res) { success(res) {
if(res.confirm){ if(res.confirm){
util.toNextRoute('navigateTo', '/pages/register/register') util.toNextRoute('navigateTo', '/pages/register/register')
} }
} }
}) })
@ -114,9 +114,11 @@ const actions = {
let _user = user || state.userData let _user = user || state.userData
let _id = _user.Membership_Id let _id = _user.Membership_Id
console.log('_user',_user)
if(!_id) return if(!_id) return
// console.log(_user) // console.log(_user)
request.$get('WeChat_GetBusinessMemberInfo',{Membership_Id:_id}).then(res=>{ 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=>{ // request.$webGet('WebAPI_Push/Member/GetMemberInfo',{Membership_Id:_id,memberShipId:_id}).then(res=>{
if(res.Result_Code==100) { if(res.Result_Code==100) {
let data = res.Result_Data let data = res.Result_Data