51c28ec6 by 杨炀

no message

1 parent 2f7e2ea6
1 # 默认忽略的文件
2 /shelf/
3 /workspace.xml
4 # 基于编辑器的 HTTP 客户端请求
5 /httpRequests/
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project version="4">
3 <component name="ProjectModuleManager">
4 <modules>
5 <module fileurl="file://$PROJECT_DIR$/.idea/ztx_wx_admin.iml" filepath="$PROJECT_DIR$/.idea/ztx_wx_admin.iml" />
6 </modules>
7 </component>
8 </project>
...\ No newline at end of file ...\ No newline at end of file
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project version="4">
3 <component name="VcsDirectoryMappings">
4 <mapping directory="$PROJECT_DIR$" vcs="Git" />
5 </component>
6 </project>
...\ No newline at end of file ...\ No newline at end of file
1 <?xml version="1.0" encoding="UTF-8"?>
2 <module type="WEB_MODULE" version="4">
3 <component name="NewModuleRootManager">
4 <content url="file://$MODULE_DIR$">
5 <excludeFolder url="file://$MODULE_DIR$/temp" />
6 <excludeFolder url="file://$MODULE_DIR$/.tmp" />
7 <excludeFolder url="file://$MODULE_DIR$/tmp" />
8 </content>
9 <orderEntry type="inheritedJdk" />
10 <orderEntry type="sourceFolder" forTests="false" />
11 </component>
12 </module>
...\ No newline at end of file ...\ No newline at end of file
...@@ -3,12 +3,12 @@ ...@@ -3,12 +3,12 @@
3 3
4 4
5 // staging 会员系统 5 // staging 会员系统
6 // const baseUrl_api = "http://22yidpjzjifv.ngrok.xiaomiqiu123.top/stage-api/"; 6 // const baseUrl_api = "http://22yidpjzjifv.ngrok.xiaomiqiu123.top/stage-api/";
7 // const baseUrl_api = "http://36.153.235.222:7899/stage-api"; 7 const baseUrl_api = "http://36.153.235.222:7899/stage-api";
8 // const baseUrl_api = 'http://192.168.1.132:8787' 8 // const baseUrl_api = 'http://192.168.1.132:8787'
9 const baseUrl_api = 'https://tkcn.19wk.cn:8443/stage-api' 9 // const baseUrl_api = 'https://tkcn.19wk.cn:8443/stage-api'
10 10
11 // const baseUrl_api = 'https://system.taekwondo.org.cn/stage-api' 11 // const baseUrl_api = 'https://system.taekwondo.org.cn/stage-api'
12 export default { 12 export default {
13 baseUrl_api 13 baseUrl_api
14 } 14 }
......
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
63 63
64 <uni-forms-item label="头像" required> 64 <uni-forms-item label="头像" required>
65 <uni-file-picker v-model="photoArr" @delete="delPhoto" return-type="object" limit="1" 65 <uni-file-picker v-model="photoArr" @delete="delPhoto" return-type="object" limit="1"
66 @select="upPhoto" :del-ico="false" :image-styles="imageStylesTx"></uni-file-picker> 66 @select="upPhoto" :del-ico="false" :image-styles="imageStylesTx"></uni-file-picker>
67 <image mode="aspectFill" v-if="baseFormData.photo2" style="height:200rpx;width:200rpx;" :src="config.baseUrl_api + baseFormData.photo2"/> 67 <image mode="aspectFill" v-if="baseFormData.photo2" style="height:200rpx;width:200rpx;" :src="config.baseUrl_api + baseFormData.photo2"/>
68 </uni-forms-item> 68 </uni-forms-item>
69 </view> 69 </view>
...@@ -128,7 +128,7 @@ ...@@ -128,7 +128,7 @@
128 import { 128 import {
129 onLoad 129 onLoad
130 } from '@dcloudio/uni-app' 130 } from '@dcloudio/uni-app'
131 import config from '@/config.js' 131 import config from '@/config.js'
132 import * as aes2 from '@/common/utils.js' 132 import * as aes2 from '@/common/utils.js'
133 const current = ref(0) 133 const current = ref(0)
134 const popup = ref(null) 134 const popup = ref(null)
...@@ -274,7 +274,7 @@ ...@@ -274,7 +274,7 @@
274 uni.hideLoading() 274 uni.hideLoading()
275 uni.showModal({ 275 uni.showModal({
276 content: res.msg, 276 content: res.msg,
277 success: function(res) { 277 success: function(modalRes) {
278 278
279 } 279 }
280 }) 280 })
...@@ -296,14 +296,14 @@ ...@@ -296,14 +296,14 @@
296 uni.showLoading({ 296 uni.showLoading({
297 title: '加载中' 297 title: '加载中'
298 }); 298 });
299 api.uploadImgCorpPhoto(resp.tempFilePath).then(data => { 299 api.uploadImgCorpPhoto(resp.tempFilePath).then(data => {
300 console.log(data) 300 console.log(data)
301 baseFormData.value.photo = data.data.fang; 301 baseFormData.value.photo = data.data.fang;
302 baseFormData.value.photo2 = data.data.yuan; 302 baseFormData.value.photo2 = data.data.yuan;
303 photoArr.value = { 303 photoArr.value = {
304 url: config.baseUrl_api+baseFormData.value.photo, 304 url: config.baseUrl_api+baseFormData.value.photo,
305 name: '头像', 305 name: '头像',
306 extname: 'jpg' 306 extname: 'jpg'
307 } 307 }
308 }); 308 });
309 }, 309 },
...@@ -330,18 +330,18 @@ ...@@ -330,18 +330,18 @@
330 330
331 function delPhoto(n) { 331 function delPhoto(n) {
332 photoArr.value = {}; 332 photoArr.value = {};
333 baseFormData.value.photo = ''; 333 baseFormData.value.photo = '';
334 baseFormData.value.photo2 = ''; 334 baseFormData.value.photo2 = '';
335 } 335 }
336 336
337 337
338 function getExtractInfo(obj) { 338 function getExtractInfo(obj) {
339 photoArr.value = {} 339 photoArr.value = {}
340 // baseFormData.value = { 340 // baseFormData.value = {
341 // photo: '', 341 // photo: '',
342 // idcType: baseFormData.value.idcType, 342 // idcType: baseFormData.value.idcType,
343 // idcCode: baseFormData.value.idcCode, 343 // idcCode: baseFormData.value.idcCode,
344 // perType: '1' 344 // perType: '1'
345 // }; 345 // };
346 uni.showLoading({ 346 uni.showLoading({
347 title: '加载中' 347 title: '加载中'
...@@ -353,7 +353,7 @@ ...@@ -353,7 +353,7 @@
353 // } 353 // }
354 perId.value = res.data.perId 354 perId.value = res.data.perId
355 baseFormData.value.sex = res.data.sex 355 baseFormData.value.sex = res.data.sex
356 baseFormData.value.birth = res.data.birth 356 baseFormData.value.birth = res.data.birth
357 baseFormData.value.name = res.data.name 357 baseFormData.value.name = res.data.name
358 baseFormData.value.phone = res.data.phone 358 baseFormData.value.phone = res.data.phone
359 baseFormData.value.cityId = res.data.cityId 359 baseFormData.value.cityId = res.data.cityId
...@@ -495,23 +495,23 @@ ...@@ -495,23 +495,23 @@
495 uni.showModal({ 495 uni.showModal({
496 content: '请确认信息正确', 496 content: '请确认信息正确',
497 success: function(res) { 497 success: function(res) {
498 if (res.confirm) { 498 if (res.confirm) {
499 if(baseFormData.value.idcType=='4'){ 499 if(baseFormData.value.idcType=='4'){
500 baseFormData.value.idcType='0' 500 baseFormData.value.idcType='0'
501 } 501 }
502 delete baseFormData.value.card 502 delete baseFormData.value.card
503 503
504 const time = new Date().valueOf() + '' 504 const time = new Date().valueOf() + ''
505 baseFormData.t = time + Math.floor(Math.random() * 10) 505 baseFormData.t = time + Math.floor(Math.random() * 10)
506 baseFormData.signT = aes2.AESEncrypt(baseFormData.idcType + time) 506 baseFormData.signT = aes2.AESEncrypt(baseFormData.idcType + time)
507 507
508 api.addPersonToMyDept(baseFormData.value).then(Response => { 508 api.addPersonToMyDept(baseFormData.value).then(Response => {
509 if (Response.data == 0) { 509 if (Response.data == 0) {
510 let msg = '该成员,实名认证未通过,注册失败!' 510 let msg = '该成员,实名认证未通过,注册失败!'
511 uni.showModal({ 511 uni.showModal({
512 content: msg, 512 content: msg,
513 title: '提示', 513 title: '提示',
514 success: function() {} 514 success: function() {}
515 }) 515 })
516 return 516 return
517 } 517 }
...@@ -524,31 +524,29 @@ ...@@ -524,31 +524,29 @@
524 }) 524 })
525 return 525 return
526 } 526 }
527 // let msg = '保存成功' 527 // let msg = '保存成功'
528 uni.showModal({ 528 uni.showModal({
529 content: '保存成功', 529 content: '保存成功',
530 title: '提示', 530 title: '提示',
531 confirmText:'继续添加', 531 confirmText:'继续添加',
532 cancelColor:'返回首页', 532 cancelColor:'返回首页',
533 success: function(res) { 533 success: function(res) {
534 uni.redirectTo({ 534 uni.redirectTo({
535 url: `/personalVip/addVip?tab=${current.value}&idcType=${baseFormData.value.idcType}` 535 url: `/personalVip/addVip?tab=${current.value}&idcType=${baseFormData.value.idcType}`
536 }); 536 });
537 }, 537 },
538 fail:function(){ 538 fail:function(){
539 uni.reLaunch({ 539 uni.reLaunch({
540 url:`/pages/index/index` 540 url:`/pages/index/index`
541 }) 541 })
542 } 542 }
543 }) 543 })
544 544
545 }) 545 })
546 } 546 }
547 } 547 }
548 }); 548 });
549
550 } 549 }
551
552 function getUserInfo() { 550 function getUserInfo() {
553 api.getInfo(perId.value).then(res => { 551 api.getInfo(perId.value).then(res => {
554 baseFormData.value = res.data 552 baseFormData.value = res.data
...@@ -564,7 +562,6 @@ ...@@ -564,7 +562,6 @@
564 display: flex; 562 display: flex;
565 align-items: center; 563 align-items: center;
566 justify-content: flex-end; 564 justify-content: flex-end;
567
568 } 565 }
569 566
570 :deep(.segmented-control) { 567 :deep(.segmented-control) {
...@@ -639,4 +636,4 @@ ...@@ -639,4 +636,4 @@
639 :deep(.item-text-overflow) { 636 :deep(.item-text-overflow) {
640 text-align: left; 637 text-align: left;
641 } 638 }
642 </style>
...\ No newline at end of file ...\ No newline at end of file
639 </style>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!