dachedengdai.vue 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <template>
  2. <view>
  3. <view class="contentColumnC">
  4. <view class="contentColumnC timectV">
  5. <text class="textfontB4" style="color: white;">{{timeChange(timeInde)}}</text>
  6. <text class="textfontB4" style="color: white;">呼叫中</text>
  7. </view>
  8. </view>
  9. <view class="contentColumnC">
  10. <text class="quxiaohj" @click="actSelect(1)">取消呼叫</text>
  11. </view>
  12. </view>
  13. </template>
  14. <script>
  15. export default {
  16. name:"dachedengdai",
  17. props: {
  18. timeInde:0
  19. },
  20. data() {
  21. return {
  22. };
  23. },
  24. methods:{
  25. timeChange(timeInde){
  26. var shi='00';
  27. var fen='00';
  28. var miao='00';
  29. shi = parseInt(timeInde/3600);
  30. fen=timeInde%3600;
  31. fen=parseInt(fen/60);
  32. miao=timeInde%60;
  33. return shi+':'+fen+':'+miao;
  34. },
  35. actSelect(index){
  36. this.$emit('EddSelect',index);
  37. },
  38. },
  39. }
  40. </script>
  41. <style>
  42. .timectV{
  43. width: 280rpx;
  44. height: 280rpx;
  45. border-radius: 140rpx;
  46. background-color: rgba(80, 80, 80, 0.7);
  47. }
  48. .quxiaohj{
  49. margin-top: 50rpx;
  50. padding-left: 50rpx;
  51. padding-right: 50rpx;
  52. line-height: 60rpx;
  53. text-align: center;
  54. background-color: #1A1A1A;
  55. color: white;
  56. font-size: 34rpx;
  57. border-radius: 30rpx;
  58. }
  59. </style>