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