Merge branch 'feature/惠桂保添加访问授权控制' into release/1218

This commit is contained in:
yang.huaxiang
2020-12-18 18:05:21 +08:00

View File

@@ -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,7 +130,13 @@ export default {
}
}
},
async created() {
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
@@ -133,7 +145,6 @@ export default {
this.$toast(res.resultMessage)
}
},
methods: {
onRefresh() {
location.reload()
},