sim.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <template>
  2. <view>
  3. <view class="section">
  4. <view class="tit">
  5. <image mode="widthFix" src="/static/image/cb/sim1.png" ></image>
  6. sim卡流量
  7. </view>
  8. <view class="item">
  9. <text>ICCID:</text>
  10. <text>{{sim.iccid}}</text>
  11. </view>
  12. <view class="item">
  13. <text>状态:</text>
  14. <text>{{sim.account_status}}</text>
  15. </view>
  16. <view class="item">
  17. <text>套餐:</text>
  18. <text>{{sim.data_plan}}</text>
  19. </view>
  20. <view class="item">
  21. <text>已用流量:</text>
  22. <text>{{sim.data_usage}}</text>
  23. </view>
  24. <view class="item">
  25. <text>剩余流量:</text>
  26. <text>{{sim.data_balance}}</text>
  27. </view>
  28. <view class="item">
  29. <text>到期时间:</text>
  30. <text>{{sim.expiry_date}}</text>
  31. </view>
  32. </view>
  33. <template v-if="showHksimFlag">
  34. <view class="section">
  35. <view class="tit">
  36. <image mode="widthFix" src="/static/image/cb/sim2.png" ></image>
  37. 海康sim卡流量
  38. </view>
  39. </view>
  40. </template>
  41. </view>
  42. </template>
  43. <script>
  44. export default {
  45. data() {
  46. return {
  47. sim: {
  48. iccid: "",
  49. account_status: 0, //卡状态 0-7 未知 测试期 沉默期 使用中 停机 停机保号 预销号 销号
  50. data_plan: 0, //套餐大小
  51. data_usage: 0, //当月用量
  52. data_balance: 0, //剩余流量
  53. expiry_date: 0, //到期日期
  54. },
  55. showHksimFlag: true, //是否显示hksim卡标识
  56. hksim: {
  57. iccid: "",
  58. account_status: 0, //卡状态 0-7 未知 测试期 沉默期 使用中 停机 停机保号 预销号 销号
  59. data_plan: 0, //套餐大小
  60. data_usage: 0, //当月用量
  61. data_balance: 0, //剩余流量
  62. expiry_date: 0, //到期日期
  63. },
  64. d_id:''
  65. }
  66. },
  67. onLoad(option){
  68. this.d_id=option.d_id
  69. console.log(this.d_id)
  70. },
  71. methods: {
  72. }
  73. }
  74. </script>
  75. <style lang="scss">
  76. page{
  77. padding:20rpx;
  78. .section{
  79. padding:20rpx;
  80. box-shadow: 0px 0px 5px 3px rgba(136,136,136,.1);
  81. margin-bottom:20rpx;
  82. .item{
  83. line-height:50rpx;
  84. font-size:24rpx;
  85. }
  86. .tit{
  87. font-size:26rpx;
  88. image{
  89. width:22rpx;
  90. margin-right:10rpx;
  91. }
  92. }
  93. }
  94. }
  95. </style>