Browse Source

初始化

小彬 3 years ago
parent
commit
2c8e91dd62
5 changed files with 70 additions and 13 deletions
  1. 34 0
      activityPages/editOutbound/editOutbound.vue
  2. 2 2
      config/config.js
  3. 10 1
      pages.json
  4. 1 6
      pages/login/login.vue
  5. 23 4
      pages/my/my.vue

+ 34 - 0
activityPages/editOutbound/editOutbound.vue

@@ -0,0 +1,34 @@
+<template>
+	<view class="container outbound-content">
+		<view class="top-box">
+			修改后的外呼号码,将作为您的默认外呼号码,若后期还需修改,可在【我的】-【外呼号码】页面设置
+		</view>
+	</view>
+</template>
+
+<script>
+	export default {
+		data() {
+			return {
+				
+			}
+		},
+		methods: {
+			
+		}
+	}
+</script>
+
+<style scoped lang="scss">
+.outbound-content {
+	.top-box {
+		width: 100%;
+		background-color: #F7F7F7;
+		padding: 20rpx 34rpx ;
+		font-size: 28rpx;
+		font-weight: 400;
+		line-height: 48rpx;
+		color: #666666;
+	}
+}
+</style>

+ 2 - 2
config/config.js

@@ -1,6 +1,6 @@
 
-//export const baseUrl = 'http://8.136.199.33:8500/api';//小程序开发接口地址
-export const baseUrl = 'https://cygx.hzinsights.com/api';//小程序线上接口地址
+export const baseUrl = 'http://8.136.199.33:8500/api';//小程序开发接口地址
+//export const baseUrl = 'https://cygx.hzinsights.com/api';//小程序线上接口地址
 // #ifdef H5
 export const H5baseUrl=process.env.NODE_ENV === 'development'?window.location.origin+'/':baseUrl
 // #endif

+ 10 - 1
pages.json

@@ -141,7 +141,16 @@
 				}
 
 			}
-		]
+		    ,{
+                    "path" : "editOutbound/editOutbound",
+                    "style" :                                                                                    
+                {
+                    "navigationBarTitleText": "",
+                    "enablePullDownRefresh": false
+                }
+                
+                }
+            ]
 	},{
 		"root": "reportPages",
 		"pages":[

+ 1 - 6
pages/login/login.vue

@@ -7,7 +7,7 @@
 		<view class="bind-cont">
 			<view class="tel-bind" v-if="bind_type === 1">
 				<view class="ipt-item">
-					<label class="item-label item-iphone" @click="isAreaCode=true">+86<u-icon :name="isAreaCode?'arrow-up':'arrow-down'" color="#2979ff" size="28"></u-icon></label>
+					<label class="item-label item-iphone">手机号</label>
 					<input type="text" v-model="phoneIpt" class="ipt" placeholder="请输入手机号" style="width: 300rpx;">
           <button open-type="getPhoneNumber" value="用户授权" @getphonenumber="getPhoneNumber" class='code-btn'>微信手机号绑定</button> 
 				</view>
@@ -45,13 +45,11 @@
 				<button @click="bindHandle" class='infobutton bind-btn'>提交</button>
 			</view>
 		</view>
-		<areaCode :isAreaCode="isAreaCode" :areaCode="areaCode" />
 	</view>
 </template>
 
 <script>
 	import { User } from '@/config/api.js';
-	import areaCode from "@/components/areaCode.vue";
 	export default {
 		data() {
 			return {
@@ -73,9 +71,6 @@
 				},
 			};
 		},
-		components: {
-			areaCode,
-		},
 		methods:{
 			/* 切换方式 */
 			toggleTab(val) {

+ 23 - 4
pages/my/my.vue

@@ -40,6 +40,15 @@
 				<text class="notlog-tip" v-else>让好的研究不再是奢侈品</text>
 			</view>
 		</view>
+		<view class="my-bot-cont">
+			<view class="list-item border_bottom"  @click="itemClickHandle('外呼')">
+				<text>外呼号码</text>
+				<view class="my-bot-box">
+					<text style="margin-right: 40rpx;">12312312312312</text>
+					<u-icon name="arrow-right" color="#BDBDBD" size="34"></u-icon>
+				</view>
+			</view>
+		</view>
 		<view class="my-bot-cont">
 			<view class="list-item border_bottom" v-for="type in typeArr" :key="type" @click="itemClickHandle(type)">
 				<text>{{type}}</text>
@@ -140,10 +149,17 @@
 			itemClickHandle(type) {
 				/* 是否登录 */
 				if(this.isLogin) { 
-					let path = this.typeObj.get(type);
-					uni.navigateTo({
-						url:`/pages/${path}/${path}`
-					});
+					if(type=='外呼'){
+						uni.navigateTo({
+							url:'/activityPages/editOutbound/editOutbound'
+						});
+					}else {
+						let path = this.typeObj.get(type);
+						uni.navigateTo({
+							url:`/pages/${path}/${path}`
+						});
+					}
+					
 				}else {
 					this.loginHandle();
 				}
@@ -257,6 +273,9 @@
 		}
 	}
 	.my-bot-cont {
+		.my-bot-box {
+			display: flex;
+		}
 		.list-item {
 			display: flex;
 			align-items: center;