|
@@ -1,8 +1,33 @@
|
|
|
<template>
|
|
|
<view class="container outbound-content">
|
|
|
- <view class="top-box">
|
|
|
+ <view class="top-box" v-if="isShowTitle!=='设置外呼号码'&&identification!=='我的'">
|
|
|
修改后的外呼号码,将作为您的默认外呼号码,若后期还需修改,可在【我的】-【外呼号码】页面设置
|
|
|
</view>
|
|
|
+ <view class="item-box">
|
|
|
+ <view class="ipt-item">
|
|
|
+ <label class="item-label item-iphone" @click="areaCode">+{{telephone}} <u-icon :name="areacodeShow?'arrow-up':'arrow-down'" color="#3385FF" size="28"></u-icon></label>
|
|
|
+ <input type="text" v-model="phoneIpt" class="ipt" placeholder="请输入外呼号码">
|
|
|
+ </view>
|
|
|
+ <text class="text-box">座机号请填写区号,分机号用"-"分隔,例:02150509999-8888</text>
|
|
|
+ </view>
|
|
|
+ <view class="bottom-btn">
|
|
|
+ <view class="submit-box">
|
|
|
+ 提交
|
|
|
+ </view>
|
|
|
+ <view class="cancel" v-if="isShowTitle!=='设置外呼号码'">
|
|
|
+ 取消修改
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="select-box">
|
|
|
+ <u-popup v-model="areacodeShow" mode="bottom">
|
|
|
+ <view class="box" style="color: #333333;font-size: 28rpxrpx;">请选择您的国际区号</view>
|
|
|
+ <view class="box" style="color: #2C83FF;" @click="areacode('852')">香港+852</view>
|
|
|
+ <view class="box" style="color: #2C83FF;" @click="areacode('866')">台湾+866</view>
|
|
|
+ <view class="box" style="color: #2C83FF;" @click="areacode('1')">美国+1</view>
|
|
|
+ <view class="box" style="color: #2C83FF;" @click="areacode('65')">新加坡+65</view>
|
|
|
+ <view class="box box-bottom" style="color: #A9AFB8;" @click="cancel">取消</view>
|
|
|
+ </u-popup>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
@@ -10,11 +35,28 @@
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
-
|
|
|
+ phoneIpt:'',
|
|
|
+ isShowTitle:'',
|
|
|
+ telephone:'86',
|
|
|
+ areacodeShow: false,
|
|
|
+ identification:''
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
-
|
|
|
+ areaCode(){
|
|
|
+ this.areacodeShow= true
|
|
|
+ },
|
|
|
+ areacode(code){
|
|
|
+ this.telephone=code
|
|
|
+ this.areacodeShow= false
|
|
|
+ }
|
|
|
+ },
|
|
|
+ onLoad(option) {
|
|
|
+ uni.setNavigationBarTitle({
|
|
|
+ title:option.title
|
|
|
+ });
|
|
|
+ this.isShowTitle=option.title
|
|
|
+ this.identification=option.identification
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
@@ -30,5 +72,73 @@
|
|
|
line-height: 48rpx;
|
|
|
color: #666666;
|
|
|
}
|
|
|
+ .item-box {
|
|
|
+ width: 100%;
|
|
|
+ margin-top: 35rpx;
|
|
|
+ padding: 0 32rpx;
|
|
|
+ .text-box {
|
|
|
+ height: 30rpx;
|
|
|
+ font-size: 22rpx;
|
|
|
+ line-height: 30px;
|
|
|
+ color: #999999;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .ipt-item {
|
|
|
+ padding: 33rpx 0 10rpx;
|
|
|
+ border-bottom: 1rpx solid #D6D6D6;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ font-size: 28rpx;
|
|
|
+ .item-label {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ width: 105rpx;
|
|
|
+ color: #3385FF;
|
|
|
+ }
|
|
|
+ .ipt {
|
|
|
+ margin-left: 40rpx;
|
|
|
+ width: 500rpx;
|
|
|
+ font-size: 32rpx;
|
|
|
+ color: #666;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .bottom-btn {
|
|
|
+ margin-top: 247rpx;
|
|
|
+ font-size: 34rpx;
|
|
|
+ text-align: center;
|
|
|
+ .submit-box {
|
|
|
+ margin: 0 auto;
|
|
|
+ width: 368rpx;
|
|
|
+ height: 80rpx;
|
|
|
+ background: linear-gradient(268deg, #2DDBFF 0%, #1599FF 49%, #005EFF 100%);
|
|
|
+ color: #FFFFFF;
|
|
|
+ line-height: 80rpx;
|
|
|
+ border-radius: 4rpx;
|
|
|
+ }
|
|
|
+ .cancel {
|
|
|
+ margin: 30rpx auto;
|
|
|
+ width: 368rpx;
|
|
|
+ height: 80rpx;
|
|
|
+ border: 2px solid #2C83FF;
|
|
|
+ border-radius: 4rpx;
|
|
|
+ line-height: 80rpx;
|
|
|
+ color: #2C83FF;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .select-box {
|
|
|
+ width: 100%;
|
|
|
+
|
|
|
+ .box {
|
|
|
+ height: 95prx;
|
|
|
+ line-height: 95rpx;
|
|
|
+ text-align: center;
|
|
|
+ font-size: 32rpx;
|
|
|
+ border-bottom: 1rpx solid #EBEBEB;
|
|
|
+ }
|
|
|
+
|
|
|
+ .box-bottom {
|
|
|
+ border-bottom: none !important;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
</style>
|