editOutbound.vue 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. <template>
  2. <view class="container outbound-content">
  3. <view class="top-box" v-if="isShowTitle!=='设置外呼号码'&&identification!=='我的'">
  4. 修改后的外呼号码,将作为您的默认外呼号码,若后期还需修改,可在【我的】-【外呼号码】页面设置
  5. </view>
  6. <view class="item-box">
  7. <view class="ipt-item">
  8. <label class="item-label item-iphone" @click="areaCode">+{{telephone}} <u-icon :name="areacodeShow?'arrow-up':'arrow-down'" color="#3385FF" size="28"></u-icon></label>
  9. <input type="text" v-model="phoneIpt" class="ipt" placeholder="请输入外呼号码">
  10. </view>
  11. <text class="text-box">座机号请填写区号,分机号用"-"分隔,例:02150509999-8888</text>
  12. </view>
  13. <view class="bottom-btn">
  14. <view class="submit-box">
  15. 提交
  16. </view>
  17. <view class="cancel" v-if="isShowTitle!=='设置外呼号码'">
  18. 取消修改
  19. </view>
  20. </view>
  21. <view class="select-box">
  22. <u-popup v-model="areacodeShow" mode="bottom">
  23. <view class="box" style="color: #333333;font-size: 28rpxrpx;">请选择您的国际区号</view>
  24. <view class="box" style="color: #2C83FF;" @click="areacode('852')">香港+852</view>
  25. <view class="box" style="color: #2C83FF;" @click="areacode('866')">台湾+866</view>
  26. <view class="box" style="color: #2C83FF;" @click="areacode('1')">美国+1</view>
  27. <view class="box" style="color: #2C83FF;" @click="areacode('65')">新加坡+65</view>
  28. <view class="box box-bottom" style="color: #A9AFB8;" @click="cancel">取消</view>
  29. </u-popup>
  30. </view>
  31. </view>
  32. </template>
  33. <script>
  34. export default {
  35. data() {
  36. return {
  37. phoneIpt:'',
  38. isShowTitle:'',
  39. telephone:'86',
  40. areacodeShow: false,
  41. identification:''
  42. }
  43. },
  44. methods: {
  45. areaCode(){
  46. this.areacodeShow= true
  47. },
  48. areacode(code){
  49. this.telephone=code
  50. this.areacodeShow= false
  51. }
  52. },
  53. onLoad(option) {
  54. uni.setNavigationBarTitle({
  55. title:option.title
  56. });
  57. this.isShowTitle=option.title
  58. this.identification=option.identification
  59. }
  60. }
  61. </script>
  62. <style scoped lang="scss">
  63. .outbound-content {
  64. .top-box {
  65. width: 100%;
  66. background-color: #F7F7F7;
  67. padding: 20rpx 34rpx ;
  68. font-size: 28rpx;
  69. font-weight: 400;
  70. line-height: 48rpx;
  71. color: #666666;
  72. }
  73. .item-box {
  74. width: 100%;
  75. margin-top: 35rpx;
  76. padding: 0 32rpx;
  77. .text-box {
  78. height: 30rpx;
  79. font-size: 22rpx;
  80. line-height: 30px;
  81. color: #999999;
  82. }
  83. }
  84. .ipt-item {
  85. padding: 33rpx 0 10rpx;
  86. border-bottom: 1rpx solid #D6D6D6;
  87. display: flex;
  88. align-items: center;
  89. font-size: 28rpx;
  90. .item-label {
  91. display: flex;
  92. justify-content: space-between;
  93. width: 105rpx;
  94. color: #3385FF;
  95. }
  96. .ipt {
  97. margin-left: 40rpx;
  98. width: 500rpx;
  99. font-size: 32rpx;
  100. color: #666;
  101. }
  102. }
  103. .bottom-btn {
  104. margin-top: 247rpx;
  105. font-size: 34rpx;
  106. text-align: center;
  107. .submit-box {
  108. margin: 0 auto;
  109. width: 368rpx;
  110. height: 80rpx;
  111. background: linear-gradient(268deg, #2DDBFF 0%, #1599FF 49%, #005EFF 100%);
  112. color: #FFFFFF;
  113. line-height: 80rpx;
  114. border-radius: 4rpx;
  115. }
  116. .cancel {
  117. margin: 30rpx auto;
  118. width: 368rpx;
  119. height: 80rpx;
  120. border: 2px solid #2C83FF;
  121. border-radius: 4rpx;
  122. line-height: 80rpx;
  123. color: #2C83FF;
  124. }
  125. }
  126. .select-box {
  127. width: 100%;
  128. .box {
  129. height: 95prx;
  130. line-height: 95rpx;
  131. text-align: center;
  132. font-size: 32rpx;
  133. border-bottom: 1rpx solid #EBEBEB;
  134. }
  135. .box-bottom {
  136. border-bottom: none !important;
  137. }
  138. }
  139. }
  140. </style>