mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-11 05:06:43 +08:00
Merge branch 'feature/惠桂保添加访问授权控制' into release/1218
This commit is contained in:
@@ -75,6 +75,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</transition>
|
</transition>
|
||||||
</van-popup>
|
</van-popup>
|
||||||
|
|
||||||
|
<!-- 短信验证 -->
|
||||||
|
<check-agent @checModelSuccessMethod="initThisPage" />
|
||||||
</div>
|
</div>
|
||||||
</van-pull-refresh>
|
</van-pull-refresh>
|
||||||
</template>
|
</template>
|
||||||
@@ -84,10 +87,12 @@ import { Popup, DatetimePicker, Field, Pagination, PullRefresh, Loading, Icon }
|
|||||||
import { getAgentInfo } from '@/api/ebiz/my/my'
|
import { getAgentInfo } from '@/api/ebiz/my/my'
|
||||||
import { selectHgb } from '@/api/ebiz/hgb'
|
import { selectHgb } from '@/api/ebiz/hgb'
|
||||||
import dateUtil from '@/assets/js/utils/date-utils'
|
import dateUtil from '@/assets/js/utils/date-utils'
|
||||||
|
import CheckAgent from '@/components/common/CheckAgent'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'HgbIndex',
|
name: 'HgbIndex',
|
||||||
components: {
|
components: {
|
||||||
|
[CheckAgent.name]: CheckAgent,
|
||||||
[Popup.name]: Popup,
|
[Popup.name]: Popup,
|
||||||
[DatetimePicker.name]: DatetimePicker,
|
[DatetimePicker.name]: DatetimePicker,
|
||||||
[Field.name]: Field,
|
[Field.name]: Field,
|
||||||
@@ -98,6 +103,7 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
showFlag: true,
|
||||||
isDataLoaded: false,
|
isDataLoaded: false,
|
||||||
isLoading: false,
|
isLoading: false,
|
||||||
totalItems: 0,
|
totalItems: 0,
|
||||||
@@ -124,16 +130,21 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async created() {
|
async created() {},
|
||||||
const res = await getAgentInfo({})
|
|
||||||
if (res.result === '0') {
|
|
||||||
this.param.agentIdNo = res.cardNo
|
|
||||||
this.getData()
|
|
||||||
} else {
|
|
||||||
this.$toast(res.resultMessage)
|
|
||||||
}
|
|
||||||
},
|
|
||||||
methods: {
|
methods: {
|
||||||
|
async initThisPage(showFlag) {
|
||||||
|
this.showFlag = showFlag
|
||||||
|
if (this.showFlag) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
const res = await getAgentInfo({})
|
||||||
|
if (res.result === '0') {
|
||||||
|
this.param.agentIdNo = res.cardNo
|
||||||
|
this.getData()
|
||||||
|
} else {
|
||||||
|
this.$toast(res.resultMessage)
|
||||||
|
}
|
||||||
|
},
|
||||||
onRefresh() {
|
onRefresh() {
|
||||||
location.reload()
|
location.reload()
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user