徐勤民 pirms 11 mēnešiem
vecāks
revīzija
63eeb4fa01
25 mainītis faili ar 288 papildinājumiem un 51 dzēšanām
  1. +20
    -0
      build.gradle
  2. +5
    -4
      entry/src/main/config.json
  3. Binārs
      entry/src/main/js/default/common/Icon/classification.png
  4. Binārs
      entry/src/main/js/default/common/Icon/find.png
  5. Binārs
      entry/src/main/js/default/common/Icon/home.png
  6. Binārs
      entry/src/main/js/default/common/Icon/selected_find.png
  7. Binārs
      entry/src/main/js/default/common/Icon/selected_home.png
  8. Binārs
      entry/src/main/js/default/common/Icon/selecteds.png
  9. Binārs
      entry/src/main/js/default/common/images/icon.png
  10. +45
    -0
      entry/src/main/js/default/common/indexData.js
  11. +17
    -0
      entry/src/main/js/default/pages/home/home.css
  12. +5
    -0
      entry/src/main/js/default/pages/home/home.hml
  13. +8
    -0
      entry/src/main/js/default/pages/home/home.js
  14. +15
    -40
      entry/src/main/js/default/pages/index/index.css
  15. +23
    -4
      entry/src/main/js/default/pages/index/index.hml
  16. +15
    -3
      entry/src/main/js/default/pages/index/index.js
  17. +17
    -0
      entry/src/main/js/default/pages/location/location.css
  18. +5
    -0
      entry/src/main/js/default/pages/location/location.hml
  19. +8
    -0
      entry/src/main/js/default/pages/location/location.js
  20. +17
    -0
      entry/src/main/js/default/pages/mine/mine.css
  21. +5
    -0
      entry/src/main/js/default/pages/mine/mine.hml
  22. +8
    -0
      entry/src/main/js/default/pages/mine/mine.js
  23. +32
    -0
      entry/src/main/js/default/pages/more/more.css
  24. +27
    -0
      entry/src/main/js/default/pages/more/more.hml
  25. +16
    -0
      entry/src/main/js/default/pages/more/more.js

+ 20
- 0
build.gradle Parādīt failu

@@ -3,6 +3,26 @@ apply plugin: 'com.huawei.ohos.app'

//For instructions on signature configuration, see https://developer.harmonyos.com/cn/docs/documentation/doc-guides-V3/ide_debug_device-0000001053822404-V3#section1112183053510
ohos {
signingConfigs {
debug {
storeFile file('E:\\AndroidConfig\\huawei\\key-huawei.p12')
storePassword '0000001C66E05ED22CCD99242BBCA86819077A6F6E82981C4019B05ACCA9C7346DBBA8C877B7D0716AC3ECA4'
keyAlias = 'xuqm'
keyPassword '0000001C5649FF5C8797C5ED434C08F14DA00F8266105AC313CDFDF65DAAAB37D51743B2637E42C87FFB0988'
signAlg = 'SHA256withECDSA'
profile file('E:\\AndroidConfig\\huawei\\元服务体验Debug.p7b')
certpath file('E:\\AndroidConfig\\huawei\\xuqm的调试证书.cer')
}
release {
storeFile file('E:\\AndroidConfig\\huawei\\key-huawei.p12')
storePassword '0000001C861687F2361AA54B6389639B93CF7DF1015ED199627F9199C8D4F36DD551CAF533F88B368033DBE1'
keyAlias = 'xuqm'
keyPassword '0000001CA72F0A95B5E98AE0B0765E985897A3696CDEC57D2F425100B97E52DFA826E6114689EFB574978078'
signAlg = 'SHA256withECDSA'
profile file('E:\\AndroidConfig\\huawei\\元服务体验-发布Release.p7b')
certpath file('E:\\AndroidConfig\\huawei\\xuqm的发布证书.cer')
}
}
compileSdkVersion 6
}



+ 5
- 4
entry/src/main/config.json Parādīt failu

@@ -1,7 +1,7 @@
{
"app": {
"vendor": "example",
"bundleName": "com.example.demo",
"bundleName": "cn.org.bjca.trust.hm.demo",
"version": {
"code": 1000000,
"name": "1.0.0"
@@ -66,12 +66,13 @@
"js": [
{
"pages": [
"pages/index/index"
"pages/index/index",
"pages/location/location"
],
"name": "default",
"window": {
"designWidth": 720,
"autoDesignWidth": true
"autoDesignWidth": false
}
},
{
@@ -81,7 +82,7 @@
"name": "widget",
"window": {
"designWidth": 720,
"autoDesignWidth": true
"autoDesignWidth": false
},
"type": "form"
}


Binārs
entry/src/main/js/default/common/Icon/classification.png Parādīt failu

Pirms Pēc
Platums: 64  |  Augstums: 64  |  Izmērs: 1.6KB

Binārs
entry/src/main/js/default/common/Icon/find.png Parādīt failu

Pirms Pēc
Platums: 64  |  Augstums: 64  |  Izmērs: 6.0KB

Binārs
entry/src/main/js/default/common/Icon/home.png Parādīt failu

Pirms Pēc
Platums: 64  |  Augstums: 64  |  Izmērs: 3.1KB

Binārs
entry/src/main/js/default/common/Icon/selected_find.png Parādīt failu

Pirms Pēc
Platums: 64  |  Augstums: 64  |  Izmērs: 6.3KB

Binārs
entry/src/main/js/default/common/Icon/selected_home.png Parādīt failu

Pirms Pēc
Platums: 64  |  Augstums: 64  |  Izmērs: 3.3KB

Binārs
entry/src/main/js/default/common/Icon/selecteds.png Parādīt failu

Pirms Pēc
Platums: 64  |  Augstums: 64  |  Izmērs: 1.7KB

Binārs
entry/src/main/js/default/common/images/icon.png Parādīt failu

Pirms Pēc
Platums: 114  |  Augstums: 114  |  Izmērs: 6.6KB

+ 45
- 0
entry/src/main/js/default/common/indexData.js Parādīt failu

@@ -0,0 +1,45 @@
/*
* Copyright (c) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
var tabbarData = [
{
i: 0,
title: '基础',
color:'#515151',
selectedColor:'#EEB174',
img: '/common/Icon/home.png',
selectedImg: '/common/Icon/selected_home.png',
show: true,
},
{
i: 1,
title: '三方',
color:'#515151',
selectedColor:'#EEB174',
img: '/common/Icon/classification.png',
selectedImg: '/common/Icon/selecteds.png',
show: false,
},
{
i: 2,
title: '自定义',
color:'#515151',
selectedColor:'#EEB174',
img: '/common/Icon/find.png',
selectedImg: '/common/Icon/selected_find.png',
show: false,
},
]

export default tabbarData;

+ 17
- 0
entry/src/main/js/default/pages/home/home.css Parādīt failu

@@ -0,0 +1,17 @@
.container {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
left: 0px;
top: 0px;
width: 100%;
height: 100%;
}

.title {
font-size: 38px;
text-align: center;
width: 100%;
margin: 10px;
}

+ 5
- 0
entry/src/main/js/default/pages/home/home.hml Parādīt failu

@@ -0,0 +1,5 @@
<div class="container">
<text class="title">
{{ title }}
</text>
</div>

+ 8
- 0
entry/src/main/js/default/pages/home/home.js Parādīt failu

@@ -0,0 +1,8 @@
export default {
data: {
title: ""
},
onInit() {
this.title = "home";
}
}

+ 15
- 40
entry/src/main/js/default/pages/index/index.css Parādīt failu

@@ -1,47 +1,22 @@

.container {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
left: 0px;
top: 0px;
width: 100%;
height: 100%;
}

.title {
font-size: 40px;
text-align: center;
.tab-bar {
justify-content: space-between;
height: 6%;
}
.tab-item {
width: 100%;
height: 40%;
margin: 10px;
height: 100px;
flex-direction: column;
align-items: center;
justify-content: center;
}

@media screen and (device-type: tablet) and (orientation: landscape) {
.title {
font-size: 100px;
}
}
@media screen and (device-type: wearable) {
.title {
font-size: 28px;
color: #FFFFFF;
}
}
@media screen and (device-type: tv) {
.container {
background-image: url("/common/images/Wallpaper.png");
background-size: cover;
background-repeat: no-repeat;
background-position: center;
}
.title {
font-size: 100px;
color: #FFFFFF;
}
}
@media screen and (device-type: phone) and (orientation: landscape) {
.title {
font-size: 60px;
}
}
.tab-item-image {
width: 80%;
height: 60%;
object-fit: contain;
}

+ 23
- 4
entry/src/main/js/default/pages/index/index.hml Parādīt failu

@@ -1,5 +1,24 @@
<element name="pageHome" src="../home/home.hml"></element>
<element name="pageMore" src="../more/more.hml"></element>
<element name="pageMine" src="../mine/mine.hml"></element>
<div class="container">
<text class="title">
{{ $t('strings.hello') }} {{ title }}
</text>
</div>
<tabs class="tabs" onchange="changeTabIndex">
<tab-content>
<div>
<pageHome></pageHome>
</div>
<div>
<pageMore></pageMore>
</div>
<div>
<pageMine></pageMine>
</div>
</tab-content>
<tab-bar class="tab-bar" mode="fixed">
<div class="tab-item" for="{{ tabbardata }}">
<image class="tab-item-image" src="{{ $item.show ? $item.selectedImg : $item.img }}"></image>
<text style="color: {{ $item.show ? $item.selectedColor : $item.color }}">{{ $item.title }}</text>
</div>
</tab-bar>
</tabs>
</div>

+ 15
- 3
entry/src/main/js/default/pages/index/index.js Parādīt failu

@@ -1,8 +1,20 @@
import tabbarData from '../../common/indexData.js'

export default {
data: {
title: ""
data() {
return {
tabbardata: tabbarData
}
},
onInit() {
this.title = this.$t('strings.world');
},
changeTabIndex(e) {
for (let i = 0; i < this.tabbardata.length; i++) {
let element = this.tabbardata[i];
element.show = false;
if (i === e.index) {
element.show = true;
}
}
}
}

+ 17
- 0
entry/src/main/js/default/pages/location/location.css Parādīt failu

@@ -0,0 +1,17 @@
.container {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
left: 0px;
top: 0px;
width: 100%;
height: 100%;
}

.title {
font-size: 38px;
text-align: center;
width: 100%;
margin: 10px;
}

+ 5
- 0
entry/src/main/js/default/pages/location/location.hml Parādīt failu

@@ -0,0 +1,5 @@
<div class="container">
<text class="title">
{{ title }}
</text>
</div>

+ 8
- 0
entry/src/main/js/default/pages/location/location.js Parādīt failu

@@ -0,0 +1,8 @@
export default {
data: {
title: ""
},
onInit() {
this.title = "location";
}
}

+ 17
- 0
entry/src/main/js/default/pages/mine/mine.css Parādīt failu

@@ -0,0 +1,17 @@
.container {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
left: 0px;
top: 0px;
width: 100%;
height: 100%;
}

.title {
font-size: 38px;
text-align: center;
width: 100%;
margin: 10px;
}

+ 5
- 0
entry/src/main/js/default/pages/mine/mine.hml Parādīt failu

@@ -0,0 +1,5 @@
<div class="container">
<text class="title">
{{ title }}
</text>
</div>

+ 8
- 0
entry/src/main/js/default/pages/mine/mine.js Parādīt failu

@@ -0,0 +1,8 @@
export default {
data: {
title: ""
},
onInit() {
this.title = "mine";
}
}

+ 32
- 0
entry/src/main/js/default/pages/more/more.css Parādīt failu

@@ -0,0 +1,32 @@
.container {
flex-direction: column;
width: 100%;
margin-top: 10px;
}
.listG{
height: 400px;
}
.listItem{
width: 100%;
height: 60px;
line-height: 60px;
border-bottom: 1px solid #DEDEDE;
align-items: center;
font-size: 20px;
}
.group{
width: 96%;
height: 60px;
padding-left: 3%;
margin-left: 6%;
border-bottom: 1px solid #DEDEDE;
font-size: 20px;
font-weight:500;
}
.groupValue{
font-size: 16px;
width: 95%;
height: 60px;
margin-left: 15%;
border-bottom: 1px solid #DEDEDE;
}

+ 27
- 0
entry/src/main/js/default/pages/more/more.hml Parādīt failu

@@ -0,0 +1,27 @@
<div class="container">
<list class="listG">
<list-item-group>
<list-item><text class="group">定位相关</text></list-item>
<list-item><text class="groupValue" onclick="toLocation">实时定位</text></list-item>
<list-item><text class="groupValue">地图</text></list-item>
</list-item-group>
<list-item-group>
<list-item><text class="group">广告位招租</text></list-item>
<list-item><text class="groupValue">文本内容</text></list-item>
<list-item><text class="groupValue">文本内容</text></list-item>
<list-item><text class="groupValue">文本内容</text></list-item>
</list-item-group>
<list-item-group>
<list-item><text class="group">分组列表</text></list-item>
<list-item><text class="groupValue">文本内容</text></list-item>
<list-item><text class="groupValue">文本内容</text></list-item>
<list-item><text class="groupValue">文本内容</text></list-item>
</list-item-group>
<list-item-group>
<list-item><text class="group">分组列表</text></list-item>
<list-item><text class="groupValue">文本内容</text></list-item>
<list-item><text class="groupValue">文本内容</text></list-item>
<list-item><text class="groupValue">文本内容</text></list-item>
</list-item-group>
</list>
</div>

+ 16
- 0
entry/src/main/js/default/pages/more/more.js Parādīt failu

@@ -0,0 +1,16 @@
import router from '@system.router'

export default {
data: {
title: ""
},
onInit() {
this.title = "more";
},
toLocation() {
console.log('>>>>>>>>>>>>>>>>>>>')
router.push({
uri: 'pages/location/location'
})
}
}

Notiek ielāde…
Atcelt
Saglabāt