|
@@ -1,71 +1,63 @@
|
|
|
<template>
|
|
|
<view class="container outbound-content">
|
|
|
<!-- 这里顶部安全是状态栏 -->
|
|
|
- <view class="status_bar" color="#000000" :style="'height:' + demoTop + 'px;'"> </view>
|
|
|
- <!-- 自定义状态栏 -->
|
|
|
- <view class="status_title">
|
|
|
- <u-icon name="arrow-left" size="38" @click="backArrowleft"></u-icon>
|
|
|
- <view class="status_center">{{ isShowTitle }}</view>
|
|
|
- </view>
|
|
|
- <!-- 文本提示 -->
|
|
|
- <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 class="nav-bar-wrap" :style="{ height: navBarStyle.height, paddingTop: navBarStyle.paddingTop, paddingBottom: navBarStyle.paddingBottom }">
|
|
|
+ <view class="content-box" :style="{ color: '#333' }">
|
|
|
+ <text>{{ isShowTitle }}</text>
|
|
|
+ <view class="arrow-left-icon">
|
|
|
+ <van-icon name="arrow-left" size="20px" @click="backArrowleft" />
|
|
|
+ </view>
|
|
|
</view>
|
|
|
- <text class="text-box">座机号请填写区号,分机号用"-"分隔,例:02150509999-8888</text>
|
|
|
- </view>
|
|
|
- <!-- 底部确认 和取消 -->
|
|
|
- <view class="bottom-btn">
|
|
|
- <view class="submit-box" @click="submit"> 提交 </view>
|
|
|
- <view class="cancel" v-if="isShowTitle !== '设置外呼号码'" @click="cancelModification"> 取消修改 </view>
|
|
|
</view>
|
|
|
- <!-- 选择区号部分 -->
|
|
|
- <view class="select-box">
|
|
|
- <u-popup v-model="areacodeShow" mode="bottom" @close="areacodeShow = false">
|
|
|
- <view class="box" style="color: #333333; font-size: 28rpxrpx">请选择您的国际区号</view>
|
|
|
- <view class="box" v-for="item in mobileAreaCode" :key="item.code" style="color: #2c83ff" @click="areacode(item.code)">{{ item.name }}</view>
|
|
|
- <view class="box box-bottom" style="color: #a9afb8" @click="areacodeShow = false">取消</view>
|
|
|
- </u-popup>
|
|
|
- </view>
|
|
|
- <!-- 关注公众号 弹框 -->
|
|
|
- <u-modal
|
|
|
- v-model="goFollowShow"
|
|
|
- :content-style="{ fontSize: '32rpx' }"
|
|
|
- @confirm="goFollowShowBtn"
|
|
|
- :show-cancel-button="true"
|
|
|
- confirm-text="去关注"
|
|
|
- @cancel="cancelDialog"
|
|
|
- :show-title="false"
|
|
|
- :cancel-style="{ borderRight: '1rpx solid #EBEBEB' }"
|
|
|
- :confirm-style="{ fontWeight: '700' }"
|
|
|
- >
|
|
|
- <view class="slot-content">
|
|
|
- <rich-text :nodes="accounts"></rich-text>
|
|
|
+ <view class="content-box-edit">
|
|
|
+ <!-- 文本提示 -->
|
|
|
+ <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="#376cbb" 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" @click="submit"> 提交 </view>
|
|
|
+ <view class="cancel" v-if="isShowTitle !== '设置外呼号码'" @click="cancelModification"> 取消修改 </view>
|
|
|
</view>
|
|
|
- </u-modal>
|
|
|
- <!-- 知道的弹框 -->
|
|
|
- <u-modal
|
|
|
- v-model="show"
|
|
|
- :content="content"
|
|
|
- :content-style="{ fontSize: '32rpx' }"
|
|
|
- @confirm="cancelDialog"
|
|
|
- :show-title="false"
|
|
|
- confirm-text="知道了"
|
|
|
- :confirm-style="{ fontWeight: '700' }"
|
|
|
- >
|
|
|
- <view class="slot-content">
|
|
|
- <rich-text :nodes="content"></rich-text>
|
|
|
+ <!-- 选择区号部分 -->
|
|
|
+ <view class="select-box">
|
|
|
+ <u-popup v-model="areacodeShow" mode="bottom" @close="areacodeShow = false">
|
|
|
+ <view class="box" style="color: #333333; font-size: 28rpxrpx">请选择您的国际区号</view>
|
|
|
+ <view class="box" v-for="item in mobileAreaCode" :key="item.code" style="color: #2c83ff" @click="areacode(item.code)">{{ item.name }}</view>
|
|
|
+ <view class="box box-bottom" style="color: #a9afb8" @click="areacodeShow = false">取消</view>
|
|
|
+ </u-popup>
|
|
|
</view>
|
|
|
- </u-modal>
|
|
|
- <freeCharge class="free-charge" :isShowFreeBtn="isShowFree" />
|
|
|
- <Loading />
|
|
|
+ <!-- 关注公众号 弹框 -->
|
|
|
+ <u-modal
|
|
|
+ v-model="goFollowShow"
|
|
|
+ :content-style="{ fontSize: '32rpx' }"
|
|
|
+ @confirm="goFollowShowBtn"
|
|
|
+ :show-cancel-button="true"
|
|
|
+ confirm-text="去关注"
|
|
|
+ @cancel="cancelDialog"
|
|
|
+ :show-title="false"
|
|
|
+ :cancel-style="{ borderRight: '1rpx solid #EBEBEB' }"
|
|
|
+ :confirm-style="{ fontWeight: '700' }"
|
|
|
+ >
|
|
|
+ <view class="slot-content">
|
|
|
+ <rich-text :nodes="accounts"></rich-text>
|
|
|
+ </view>
|
|
|
+ </u-modal>
|
|
|
+ <!-- 知道的弹框 -->
|
|
|
+ <u-modal v-model="show" :content="content" :content-style="{ fontSize: '32rpx' }" @confirm="cancelDialog" :show-title="false" confirm-text="知道了" :confirm-style="{ fontWeight: '700' }">
|
|
|
+ <view class="slot-content">
|
|
|
+ <rich-text :nodes="content"></rich-text>
|
|
|
+ </view>
|
|
|
+ </u-modal>
|
|
|
+ <freeCharge class="free-charge" :isShowFreeBtn="isShowFree" />
|
|
|
+ <Loading />
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
@@ -86,10 +78,14 @@ export default {
|
|
|
accounts: "",
|
|
|
show: false,
|
|
|
content: "",
|
|
|
- demoTop: "",
|
|
|
id: "",
|
|
|
goOnNextStep: "",
|
|
|
cellphone: "",
|
|
|
+ navBarStyle: {
|
|
|
+ height: 60 + "px",
|
|
|
+ paddingTop: 40 + "px",
|
|
|
+ paddingBottom: "4px",
|
|
|
+ },
|
|
|
};
|
|
|
},
|
|
|
components: {
|
|
@@ -209,6 +205,15 @@ export default {
|
|
|
uni.navigateBack();
|
|
|
}
|
|
|
},
|
|
|
+ // 初始获取导航栏
|
|
|
+ initNavBar() {
|
|
|
+ let menuButtonInfo = uni.getMenuButtonBoundingClientRect();
|
|
|
+ this.navBarStyle = {
|
|
|
+ height: menuButtonInfo.height + menuButtonInfo.top + 8 + "px",
|
|
|
+ paddingTop: menuButtonInfo.top - 4 + "px",
|
|
|
+ paddingBottom: "4px",
|
|
|
+ };
|
|
|
+ },
|
|
|
},
|
|
|
onLoad(option) {
|
|
|
this.isShowTitle = option.title;
|
|
@@ -216,35 +221,51 @@ export default {
|
|
|
this.id = option.id || "";
|
|
|
this.goOnNextStep = option.goOnNextStep || "";
|
|
|
this.cellphone = option.cellphone || "";
|
|
|
- const res = uni.getSystemInfoSync();
|
|
|
- this.demoTop = res.safeArea.top;
|
|
|
+ this.initNavBar();
|
|
|
},
|
|
|
};
|
|
|
</script>
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
.outbound-content {
|
|
|
- /* 自定义状态栏 */
|
|
|
- .status_bar {
|
|
|
+ background-color: $uni-color-new;
|
|
|
+ padding: 200rpx 25rpx 25rpx;
|
|
|
+ .nav-bar-wrap {
|
|
|
+ position: fixed;
|
|
|
+ top: 0;
|
|
|
+ left: 0;
|
|
|
width: 100%;
|
|
|
- }
|
|
|
-
|
|
|
- /* 自定义导航栏 */
|
|
|
- .status_title {
|
|
|
- box-sizing: border-box;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
- width: 100%;
|
|
|
- height: 88rpx;
|
|
|
- padding: 10rpx 62rpx 15rpx 30rpx;
|
|
|
- background-color: #ffffff;
|
|
|
- box-sizing: border-box;
|
|
|
+ z-index: 999;
|
|
|
+ background-color: #fff;
|
|
|
+ .content-box {
|
|
|
+ position: relative;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ width: 100%;
|
|
|
+ justify-content: center;
|
|
|
+ color: #fff;
|
|
|
+ font-size: 34rpx;
|
|
|
+ .arrow-left-icon {
|
|
|
+ position: absolute;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ width: 40rpx;
|
|
|
+ height: 40rpx;
|
|
|
+ left: 39rpx;
|
|
|
+ top: 50%;
|
|
|
+ transform: translateY(-50%);
|
|
|
+ z-index: 99;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
- .status_center {
|
|
|
- margin: 0 auto;
|
|
|
- font-size: 34rpx;
|
|
|
- font-weight: 400;
|
|
|
- color: #000000;
|
|
|
+ .content-box-edit {
|
|
|
+ margin-top: 100rpx;
|
|
|
+ padding: 20rpx;
|
|
|
+ background-color: #fff;
|
|
|
+ border-radius: 8rpx;
|
|
|
}
|
|
|
.top-box {
|
|
|
width: 100%;
|
|
@@ -257,7 +278,6 @@ export default {
|
|
|
}
|
|
|
.item-box {
|
|
|
width: 100%;
|
|
|
- margin-top: 35rpx;
|
|
|
padding: 0 32rpx;
|
|
|
.text-box {
|
|
|
height: 30rpx;
|
|
@@ -276,7 +296,7 @@ export default {
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
|
width: 105rpx;
|
|
|
- color: #3385ff;
|
|
|
+ color: $uni-color-new;
|
|
|
}
|
|
|
.ipt {
|
|
|
margin-left: 40rpx;
|
|
@@ -291,11 +311,11 @@ export default {
|
|
|
text-align: center;
|
|
|
.submit-box {
|
|
|
margin: 0 auto;
|
|
|
- width: 368rpx;
|
|
|
- height: 80rpx;
|
|
|
- background: linear-gradient(268deg, #2ddbff 0%, #1599ff 49%, #005eff 100%);
|
|
|
+ width: 500rpx;
|
|
|
+ height: 60rpx;
|
|
|
+ background: $uni-color-new;
|
|
|
color: #ffffff;
|
|
|
- line-height: 80rpx;
|
|
|
+ line-height: 60rpx;
|
|
|
border-radius: 4rpx;
|
|
|
}
|
|
|
.cancel {
|