Commit 3bfe6101 3bfe610140b161df4f6fcdcc7bcb07fe7d28513a by 张浩

commit

1 parent 2562c9c0
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
13 <template slot="title">国寿AI健康</template> 13 <template slot="title">国寿AI健康</template>
14 <el-menu-item index="/tool">测试工具1.0</el-menu-item> 14 <el-menu-item index="/tool">测试工具1.0</el-menu-item>
15 <el-menu-item index="/tool2">测试工具2.0</el-menu-item> 15 <el-menu-item index="/tool2">测试工具2.0</el-menu-item>
16 <el-menu-item index="/toolData">数据分析工具</el-menu-item>
16 <el-menu-item index="/androidCode">线上包二维码</el-menu-item> 17 <el-menu-item index="/androidCode">线上包二维码</el-menu-item>
17 <el-menu-item><a class="link" href="http://192.168.8.113:8070/android/new/log.html" target="_blank">Android UI自动化</a></el-menu-item> 18 <el-menu-item><a class="link" href="http://192.168.8.113:8070/android/new/log.html" target="_blank">Android UI自动化</a></el-menu-item>
18 <el-menu-item><a class="link" href="http://192.168.8.113:8070/ios/new/log.html" target="_blank">IOS UI自动化</a></el-menu-item> 19 <el-menu-item><a class="link" href="http://192.168.8.113:8070/ios/new/log.html" target="_blank">IOS UI自动化</a></el-menu-item>
......
1 <template xmlns:el-col="http://www.w3.org/1999/html">
2 <div>
3 <el-row style="margin-bottom: 15px; margin-top: 5px">
4 <el-col :span="8">
5 <el-form ref="smsCode" :model="smsCode" label-width="0px">
6 <el-card class="darkred" shadow="always">
7 <div slot="header" class="clearfix">
8 <span>设置短信验证码</span>
9 </div>
10 <div class="text item">
11 <el-form-item>
12 <el-input placeholder="请输入手机号" v-model="smsCode.phone" clearable></el-input>
13 </el-form-item>
14 <el-form-item>
15 <el-input placeholder="请输入验证码" v-model="smsCode.code" clearable></el-input>
16 </el-form-item>
17 <div style="margin: 15px 0;"></div>
18 <el-form-item>
19 <el-button round @click="smsCodeSubmit">设置验证码</el-button>
20 </el-form-item>
21 </div>
22 </el-card>
23 </el-form>
24 </el-col>
25 </el-row>
26 </div>
27 </template>
28
29 <style>
30 .text {
31 font-size: 14px;
32 }
33
34 .item {
35 margin-bottom: 18px;
36 }
37
38 .clearfix:before,
39 .clearfix:after {
40 display: table;
41 content: "";
42 }
43 .clearfix:after {
44 clear: both
45 }
46 .yellowgreen {
47 width: calc(100% - 20px);
48 padding: 0px;
49 background-color: yellowgreen;
50 }
51
52 .darkred {
53 width: calc(100% - 20px);
54 padding: 0px;
55 background-color: darkkhaki;
56 }
57
58 .blue {
59 width: calc(100% - 20px);
60 padding: 0px;
61 background-color: deepskyblue;
62 }
63
64 .Orange {
65 width: calc(100% - 20px);
66 padding: 0px;
67 background-color: Orange;
68 }
69
70 .chocolate {
71 width: calc(100% - 20px);
72 padding: 0px;
73 background-color: chocolate;
74 }
75
76 .CadetBlue {
77 width: calc(100% - 20px);
78 padding: 0px;
79 background-color: CadetBlue;
80 }
81 .LightPink {
82 width: calc(100% - 20px);
83 padding: 0px;
84 background-color: LightPink;
85 }
86 .LightSalmon {
87 width: calc(100% - 20px);
88 padding: 0px;
89 background-color: LightSalmon;
90 }
91 </style>
92
93 <script>
94 export default {
95 data() {
96 return {
97 smsCode: {
98 phone: '',
99 code: 1111
100 }
101 }
102 },
103 mounted() {
104 this.openToolPage();
105 },
106 methods: {
107 openToolPage() {
108 let config = {
109 headers: {
110 'Content-Type': 'application/x-www-form-urlencoded'
111 }
112 }
113 this.$http.get('/bigdata/openToolPage',config).then((res)=>{
114 console.log(res);
115 }).catch(error=>{
116 console.log(error);
117 })
118 },
119 onCopy (e) {
120 this.$message({
121 showClose: true,
122 message: '内容已复制到剪切板!',
123 type: 'success'
124 });
125 },
126 apiTestSubmit() {
127 const {href} = this.$router.resolve({ name:'apiTest2', query:
128 {method: this.apiTest.method, biz_data: this.apiTest.biz_data, phone: this.apiTest.phone, path: this.apiTest.path.toString(), type: this.apiTest.huanjing.toString()}})
129 window.open(href, '_blank')
130 }
131 }
132 }
133 </script>
...@@ -23,6 +23,7 @@ import queryTjAccount from '@/page/queryTjAccount' ...@@ -23,6 +23,7 @@ import queryTjAccount from '@/page/queryTjAccount'
23 import testHouLi from '@/page/testHouLi' 23 import testHouLi from '@/page/testHouLi'
24 import chouJiang from '@/page/chouJiang' 24 import chouJiang from '@/page/chouJiang'
25 import selectActCount from '@/page/selectActCount' 25 import selectActCount from '@/page/selectActCount'
26 import toolData from '@/page/toolData'
26 27
27 Vue.use(Router) 28 Vue.use(Router)
28 29
...@@ -57,6 +58,13 @@ export default new Router({ ...@@ -57,6 +58,13 @@ export default new Router({
57 } 58 }
58 }, 59 },
59 { 60 {
61 path: '/toolData',
62 component: toolData,
63 meta: {
64 title: '测试工具平台'
65 }
66 },
67 {
60 path: '/activityConfig', 68 path: '/activityConfig',
61 component: activityConfig, 69 component: activityConfig,
62 name: 'activityConfig', 70 name: 'activityConfig',
......