|
@@ -9,12 +9,14 @@
|
|
|
<view class="xiangxia"> 有效时间:{{ item.startTime.split(' ')[0] }}~{{ item.endTime.split(' ')[0] }} </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
+ <Loading :loadStatus="loadStatus" :dataList="list" />
|
|
|
</view>
|
|
|
</template>
|
|
|
<script>
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
+ loadStatus: 0,
|
|
|
list: [],
|
|
|
websitId: ''
|
|
|
}
|
|
@@ -24,10 +26,32 @@ export default {
|
|
|
uni.showLoading({
|
|
|
title: '加载中'
|
|
|
})
|
|
|
+ this.loadStatus = 1
|
|
|
this.$api.post('/worker/policy', { pageNum: 1, pageSize: -1, websitId }).then(res => {
|
|
|
this.list = res?.data?.records
|
|
|
+ this.loadStatus = 2
|
|
|
this.$nextTick(() => {
|
|
|
uni.hideLoading()
|
|
|
+ setTimeout(() => {
|
|
|
+ if (this.list.length == 0) {
|
|
|
+ uni.showModal({
|
|
|
+ title: '提示',
|
|
|
+ // 提示文字
|
|
|
+ content: '保险方案没绑定网点,请联系工作人员!',
|
|
|
+ // 取消按钮的文字自定义
|
|
|
+ cancelText: '取消',
|
|
|
+ // 确认按钮的文字自定义
|
|
|
+ confirmText: '知道了',
|
|
|
+ success: function (res) {
|
|
|
+ if (res.confirm) {
|
|
|
+ // 执行确认后的操作
|
|
|
+ } else {
|
|
|
+ // 执行取消后的操作
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }, 250)
|
|
|
})
|
|
|
})
|
|
|
},
|