LoadingAll.vue 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. <template>
  2. <div style="width: 100%;">
  3. <div class="boxMinHeight flex-box-v flex-center-center" style="background-color: #fff;" v-show="status==0">
  4. <div class="data-all">
  5. <img src="static/images/init.gif" style="width: 200px;"/>
  6. <div>{{content}}</div>
  7. </div>
  8. </div>
  9. <div class="boxMinHeight" v-show="status==1||status==2">
  10. <div class="data-all">
  11. <img :src="returnImg()" class="appImg"/>
  12. <div class="flex-box-ce footer">
  13. <img src="static/images/logo3.png" alt="" style="width: 60px;" />
  14. <div class="flex-1" style="margin-left: 10px;">
  15. <div style="font-size: 22px;font-weight: 600;margin-bottom: 4px;">{{strArr[isType-1]}}管理软件</div>
  16. <div style="font-size: 16px;" v-if="isType==1">聚焦公司目标达成,提高人效降低成本</div>
  17. <div style="font-size: 16px;" v-if="isType==2">赋能员工,激活组织,即时认可,文化落地</div>
  18. <div style="font-size: 16px;" v-if="isType==3">解决评分无依据,绩效走过场,让绩效考核有效落地</div>
  19. <div style="font-size: 16px;" v-if="isType==4">现场管理标准化,整顿改善现场环境、服务、安全等问题</div>
  20. </div>
  21. <el-button type="primary" plain @click="innerVisible=true" style="background-color: #FFC910;border-color:#FFC910;color: #000;">立即咨询</el-button>
  22. <!-- <el-button type="success" plain @click="innerVisible2=true" >预约演示</el-button> -->
  23. </div>
  24. <!-- <div style="text-align: center;margin-top: 30px;font-size: 16px;">{{strArr[isType-1]}}系统{{status==1? '未开启':'已过期'}},请<span @click="innerVisible=true" class="blue cursor">联系客服</span>{{status==1? '开启':'续费'}}</div> -->
  25. </div>
  26. </div>
  27. <template v-if="status==3"><slot></slot></template>
  28. <el-dialog :close-on-click-modal="false" title="客服" :visible.sync="innerVisible" width="400px" append-to-body class="innerVisible">
  29. <p style="margin:0;font-size:18px;">微信扫码添加功道云客服进行咨询</p>
  30. <img src="static/images/code2.png" style="width:100%" />
  31. <p style="font-size:20px;">电话咨询:400-6877-880</p>
  32. </el-dialog>
  33. <el-dialog :close-on-click-modal="false" title="预约演示" :visible.sync="innerVisible2" width="400px" append-to-body class="innerVisible">
  34. <div class="buyPopupTxt">欢迎使用功道云,我们有专属顾问免费给您一对一同屏讲解系统软件,如需演示请拨打电话预约</div>
  35. <p style="font-size:20px;">电话咨询:<a class="buyPopupTel" href="tel:400-6877-880">400-6877-880</a></p>
  36. </el-dialog>
  37. </div>
  38. </template>
  39. <script>
  40. import {mapState} from 'vuex';
  41. export default {
  42. name: 'LoadingAll',
  43. props: {
  44. content: {
  45. type: String,
  46. default: '加载中...'
  47. },
  48. isType:{ //1目标,2积分,3绩效,4现场
  49. type:Number,
  50. default:0,
  51. }
  52. },
  53. data() {
  54. return {
  55. text:'',
  56. status:0,// 1未开启 2过期 3已开启
  57. strArr:['目标','积分','绩效','巡检'],
  58. innerVisible: false,
  59. innerVisible2:false,
  60. };
  61. },
  62. computed: {
  63. ...mapState({
  64. site_info: state => state.user.site_info
  65. })
  66. },
  67. created(){
  68. setTimeout(()=>{
  69. this.init();
  70. },1000);
  71. },
  72. methods: {
  73. returnImg(){
  74. let arr=['static/images/pc-mubiao.jpg','static/images/pc-jifen.jpg','static/images/pc-jixiao.jpg','static/images/pc-xunjian.jpg']
  75. return arr[this.isType - 1]
  76. },
  77. init(){
  78. let arr=['okr','integral','performance','sm'];
  79. let obj=this.site_info[arr[this.isType-1]];
  80. if(obj&&obj.global_status&&obj.status){
  81. if(obj.expire_status===0){
  82. this.status=2
  83. }else{
  84. this.status=3
  85. }
  86. }else{
  87. this.status=1
  88. }
  89. }
  90. }
  91. };
  92. </script>
  93. <style scoped>
  94. .buyPopupTxt {
  95. font-size: 26px;
  96. }
  97. .buyPopupTel {
  98. color: #1a89fa;
  99. font-weight: bold;
  100. }
  101. .appImg {
  102. width: 100%;
  103. /* height: 600px; */
  104. }
  105. .data-all {
  106. margin-bottom: 10%;
  107. color: #595959;
  108. text-align: center;
  109. position: relative;
  110. }
  111. .boxMinHeight{
  112. /* background-color: #fff; */
  113. width: 100%;
  114. }
  115. .footer{
  116. position: fixed;
  117. bottom: 0;
  118. left: 80px;
  119. right: 20px;
  120. background-color: #fff;
  121. padding: 20px;
  122. border-top: 1px solid #f1f1f1;
  123. text-align: left;
  124. }
  125. </style>