王士厅
@@ -46,7 +46,7 @@ struct EditUserInfoPage { @@ -46,7 +46,7 @@ struct EditUserInfoPage {
46 46
47 this.currentUserInfo.editDataType = WDEditDataModelType.WDEditDataModelType_region 47 this.currentUserInfo.editDataType = WDEditDataModelType.WDEditDataModelType_region
48 this.updateEditModel() 48 this.updateEditModel()
49 - this.getAreaIndex() 49 + // this.getAreaIndex()
50 } 50 }
51 }), 51 }),
52 alignment: DialogAlignment.Bottom, 52 alignment: DialogAlignment.Bottom,
@@ -231,7 +231,9 @@ struct EditUserInfoPage { @@ -231,7 +231,9 @@ struct EditUserInfoPage {
231 } 231 }
232 WDRouterRule.jumpWithPage(WDRouterPage.editUserIntroductionPage,params) 232 WDRouterRule.jumpWithPage(WDRouterPage.editUserIntroductionPage,params)
233 }else if (i === 3){ 233 }else if (i === 3){
234 - this.dialogController.open() 234 + if (this.dataSource.length > 0) {
  235 + this.dialogController.open()
  236 + }
235 } else if (i === 4) { 237 } else if (i === 4) {
236 this.dateDialogController.open() 238 this.dateDialogController.open()
237 }else if(i === 5){ 239 }else if(i === 5){
@@ -287,14 +289,16 @@ struct EditUserInfoPage { @@ -287,14 +289,16 @@ struct EditUserInfoPage {
287 this.getAreaList() 289 this.getAreaList()
288 }else { 290 }else {
289 EditInfoViewModel.queryPeopleAccountOwnerInfo(getContext(this)).then((peopleItem) => { 291 EditInfoViewModel.queryPeopleAccountOwnerInfo(getContext(this)).then((peopleItem) => {
290 - EditInfoViewModel.queryAccountOwnerInfo(getContext(this)).then((editM) => {  
291 - this.listData = []  
292 - editM.userExtend.introduction = peopleItem.introduction  
293 - editM.userName = peopleItem.userName  
294 - this.headerImg = peopleItem.headPhotoUrl  
295 - this.currentUserInfo = editM as editModel;  
296 - this.listData.push(...EditInfoViewModel.getEditListInfo(editM))  
297 - }); 292 + this.currentUserInfo = new editModel()
  293 + this.currentUserInfo.userExtend.introduction = peopleItem.introduction
  294 + this.currentUserInfo.userExtend.creatorId = peopleItem.creatorId
  295 + this.currentUserInfo.userName = peopleItem.userName
  296 + this.headerImg = peopleItem.headPhotoUrl
  297 + this.currentUserInfo.userType = Number(this.userType)
  298 + this.currentUserInfo.userExtend.districtCode = peopleItem.district
  299 + this.currentUserInfo.userExtend.cityCode = peopleItem.city
  300 + this.currentUserInfo.userExtend.provinceCode = peopleItem.province
  301 + // this.listData.push(...EditInfoViewModel.getEditListInfo(this.currentUserInfo))
298 this.getAreaList() 302 this.getAreaList()
299 }); 303 });
300 } 304 }
@@ -308,25 +312,54 @@ struct EditUserInfoPage { @@ -308,25 +312,54 @@ struct EditUserInfoPage {
308 } 312 }
309 313
310 getAreaIndex(){ 314 getAreaIndex(){
311 - ///地区选择器当前位置  
312 - if (this.currentUserInfo.userExtend.province.length > 0) {  
313 - this.dataSource.forEach((element,index) => {  
314 - if (element.label === this.currentUserInfo.userExtend.province) {  
315 - this.firstSelect = index  
316 - let currentFirst = EditInfoViewModel.getAreaListManageModel(element)  
317 - currentFirst.children.forEach((element,index) => {  
318 - if (element.label === this.currentUserInfo.userExtend.city) {  
319 - this.secondSelect = index  
320 - let currentSecondBean = EditInfoViewModel.getAreaListManageModel(element)  
321 - currentSecondBean.children.forEach((element,index) => {  
322 - if (element.label === this.currentUserInfo.userExtend.county) {  
323 - this.thirdSelect = index  
324 - }  
325 - });  
326 - }  
327 - });  
328 - }  
329 - }); 315 + if (this.userType === '1'){
  316 + ///地区选择器当前位置
  317 + if (this.currentUserInfo.userExtend.province.length > 0) {
  318 + this.dataSource.forEach((element,index) => {
  319 + if (element.label === this.currentUserInfo.userExtend.province) {
  320 + this.firstSelect = index
  321 + let currentFirst = EditInfoViewModel.getAreaListManageModel(element)
  322 + currentFirst.children.forEach((element,index) => {
  323 + if (element.label === this.currentUserInfo.userExtend.city) {
  324 + this.secondSelect = index
  325 + let currentSecondBean = EditInfoViewModel.getAreaListManageModel(element)
  326 + currentSecondBean.children.forEach((element,index) => {
  327 + if (element.label === this.currentUserInfo.userExtend.county) {
  328 + this.thirdSelect = index
  329 + }
  330 + });
  331 + }
  332 + });
  333 + }
  334 + });
  335 + }
  336 + }else {
  337 + ///地区选择器当前位置
  338 + if (this.currentUserInfo.userExtend.provinceCode.length > 0) {
  339 + this.dataSource.forEach((element,index) => {
  340 + if (element.code === this.currentUserInfo.userExtend.provinceCode) {
  341 + this.firstSelect = index
  342 + this.currentUserInfo.userExtend.province = element.label
  343 + let currentFirst = EditInfoViewModel.getAreaListManageModel(element)
  344 + currentFirst.children.forEach((element,index) => {
  345 + if (element.code === this.currentUserInfo.userExtend.cityCode) {
  346 + this.secondSelect = index
  347 + this.currentUserInfo.userExtend.city = element.label
  348 + let currentSecondBean = EditInfoViewModel.getAreaListManageModel(element)
  349 + currentSecondBean.children.forEach((element,index) => {
  350 + if (element.code === this.currentUserInfo.userExtend.districtCode) {
  351 + this.currentUserInfo.userExtend.county = element.label
  352 + this.thirdSelect = index
  353 + }
  354 + });
  355 + }
  356 + });
  357 + }
  358 + });
  359 + this.listData = []
  360 + this.currentUserInfo.userExtend.address = this.currentUserInfo.userExtend.province + this.currentUserInfo.userExtend.city + this.currentUserInfo.userExtend.county
  361 + this.listData.push(...EditInfoViewModel.getEditListInfo(this.currentUserInfo))
  362 + }
330 } 363 }
331 } 364 }
332 } 365 }
@@ -137,4 +137,10 @@ export class peopleItemModel{ @@ -137,4 +137,10 @@ export class peopleItemModel{
137 headPhotoUrl:string = '' 137 headPhotoUrl:string = ''
138 138
139 userType:number = 1 139 userType:number = 1
  140 +
  141 + creatorId:string = ''
  142 +
  143 + district:string = ''
  144 + province:string = ''
  145 + city:string = ''
140 } 146 }
@@ -67,7 +67,7 @@ struct LaunchAdvertisingPage { @@ -67,7 +67,7 @@ struct LaunchAdvertisingPage {
67 controller: this.controller 67 controller: this.controller
68 }).controls(false) 68 }).controls(false)
69 .autoPlay(true) 69 .autoPlay(true)
70 - .objectFit(ImageFit.Contain) //设置视频适配模式 70 + // .objectFit(ImageFit.Fill) //设置视频适配模式
71 .width('100%') 71 .width('100%')
72 .height('100%') 72 .height('100%')
73 }else { 73 }else {
@@ -19,9 +19,9 @@ @@ -19,9 +19,9 @@
19 "name": "EntryAbility", 19 "name": "EntryAbility",
20 // 这里不能改动,和后台推送有绑定 20 // 这里不能改动,和后台推送有绑定
21 "srcEntry": "./ets/entryability/EntryAbility.ets", 21 "srcEntry": "./ets/entryability/EntryAbility.ets",
22 - "description": "$string:EntryAbility_desc", 22 + "description": "$string:app_desc",
23 "icon": "$media:app_icon_layer", 23 "icon": "$media:app_icon_layer",
24 - "label": "$string:EntryAbility_label", 24 + "label": "$string:app_name",
25 "startWindowIcon": "$media:app_icon", 25 "startWindowIcon": "$media:app_icon",
26 "startWindowBackground": "$color:start_window_background", 26 "startWindowBackground": "$color:start_window_background",
27 "exported": true, 27 "exported": true,
@@ -5,14 +5,6 @@ @@ -5,14 +5,6 @@
5 "value": "main entry" 5 "value": "main entry"
6 }, 6 },
7 { 7 {
8 - "name": "EntryAbility_desc",  
9 - "value": "$string:app_desc"  
10 - },  
11 - {  
12 - "name": "EntryAbility_label",  
13 - "value": "$string:app_name"  
14 - },  
15 - {  
16 "name": "permission_photo_tip", 8 "name": "permission_photo_tip",
17 "value": "开启之后即可用于保存新闻图片到相册、发视频、设置封面、设置头像、缓存图片和视频来展示内容等功能" 9 "value": "开启之后即可用于保存新闻图片到相册、发视频、设置封面、设置头像、缓存图片和视频来展示内容等功能"
18 }, 10 },
@@ -5,14 +5,6 @@ @@ -5,14 +5,6 @@
5 "value": "main entry" 5 "value": "main entry"
6 }, 6 },
7 { 7 {
8 - "name": "EntryAbility_desc",  
9 - "value": "$string:app_desc"  
10 - },  
11 - {  
12 - "name": "EntryAbility_label",  
13 - "value": "$string:app_name"  
14 - },  
15 - {  
16 "name": "dialog_text_title", 8 "name": "dialog_text_title",
17 "value": "个人隐私保护指引" 9 "value": "个人隐私保护指引"
18 }, 10 },
@@ -5,14 +5,6 @@ @@ -5,14 +5,6 @@
5 "value": "主入口" 5 "value": "主入口"
6 }, 6 },
7 { 7 {
8 - "name": "EntryAbility_desc",  
9 - "value": "$string:app_desc"  
10 - },  
11 - {  
12 - "name": "EntryAbility_label",  
13 - "value": "$string:app_name"  
14 - },  
15 - {  
16 "name": "dialog_text_title", 8 "name": "dialog_text_title",
17 "value": "个人隐私保护指引" 9 "value": "个人隐私保护指引"
18 }, 10 },