Browse Source

PC端默认为Android下载

朱海文 4 years ago
parent
commit
ba3932e0b0
1 changed files with 98 additions and 85 deletions
  1. 98 85
      src/views/Home.vue

+ 98 - 85
src/views/Home.vue

1
<template>
1
<template>
2
  <div>
2
    <div>
3
    <div>
3
        <div>
4
            <img id="topbg" src="../assets/top_bg.png">
5
            <div id="topleft">
6
                <img id="icon" src="../assets/icon2.png">
7
                <div class="kaixin">
8
                    <div id="kaixin_title">漫步今日益行</div>
9
                </div>
10
                <div class="noti">
11
                    <font>旅游生活娱乐 就在漫步今日益行</font>
12
                </div>
13
                <div class="btnP">
14
                    <img class="btnImg" src="~@/assets/apple.png">
15
                  <!-- <a href="https://s3.cn-northwest-1.amazonaws.com.cn/s3.jianos.com/Zero.apk" download="" traget="_blank"> -->
16
                    <font class="btnFont">IOS系统下载</font>
17
                  <!-- </a> -->
18
                </div>
19
            </div>
20
            <img id="shouji" src="~@/assets/shouji2.png">
4
      <img id="topbg" src="../assets/top_bg.png">
5
      <div id="topleft">
6
        <img id="icon" src="../assets/icon.png">
7
        <div class="kaixin">
8
          <div id="kaixin_title">开心0元购</div>
21
        </div>
9
        </div>
22
        <div>
23
            <div class="bottom1">
24
                <div class="WordP">
25
                    <h1>多样活动 旅游爱好者的集散地</h1>
26
                    <h2>参与主题游记等活动,与全国驴友一起记录旅途美好</h2>
27
                    <h3>• 在指定微店、京东、天猫等店铺购买指定的旅游卡</h3>
28
                    <h3>• 进入漫步今日益行,关联旅游卡,领取游记中心空间</h3>
29
                    <h3>• 快速手机写游记,记录旅途精彩点滴</h3>
30
                </div>
31
                <img class="img1" src="~@/assets/right_top.png">
32
            </div>
33
            <div class="bottom2">
34
                <img class="img2" src="~@/assets/left_bottom.png">
35
                <div class="WordP">
36
                    <h1>主题游记</h1>
37
                    <h2>你负责说走就走,我负责记录美好</h2>
38
                    <h3>• 进入主题活动专属游记中心</h3>
39
                    <h3>• 点击我的游记,随时保存、查看自己的精美游记</h3>
40
                    <h3>• 全部现金到账,更有神秘福利免费领取</h3>
41
                </div>
42
            </div>
10
        <div class="noti">
11
          <font>旅游生活娱乐 就在开心0元购</font>
43
        </div>
12
        </div>
13
        <div class="btnP" @click="download()">
14
          <img class="btnImg" src="~@/assets/bot.png">
15
          <!-- <a href="https://s3.cn-northwest-1.amazonaws.com.cn/s3.jianos.com/Zero.apk" download="" traget="_blank"> -->
16
          <font class="btnFont">Android系统下载</font>
17
          <!-- </a> -->
18
        </div>
19
      </div>
20
      <img id="shouji" src="~@/assets/shouji2.png">
44
    </div>
21
    </div>
22
    <div>
23
      <div class="bottom1">
24
        <div class="WordP">
25
          <h1>多样活动 旅游爱好者的集散地</h1>
26
          <h2>参与主题游记等活动,与全国驴友一起记录旅途美好</h2>
27
          <h3>• 在指定微店、京东、天猫等店铺购买指定的旅游卡</h3>
28
          <h3>• 进入开心0元购,关联旅游卡,领取游记中心空间</h3>
29
          <h3>• 快速手机写游记,记录旅途精彩点滴</h3>
30
        </div>
31
        <img class="img1" src="~@/assets/right_top.png">
32
      </div>
33
      <div class="bottom2">
34
        <img class="img2" src="~@/assets/left_bottom.png">
35
        <div class="WordP">
36
          <h1>主题游记</h1>
37
          <h2>你负责说走就走,我负责记录美好</h2>
38
          <h3>• 进入主题活动专属游记中心</h3>
39
          <h3>• 点击我的游记,随时保存、查看自己的精美游记</h3>
40
          <h3>• 全部现金到账,更有神秘福利免费领取</h3>
41
        </div>
42
      </div>
43
    </div>
44
  </div>
45
</template>
45
</template>
46
<!--(1920 px 1082 px)-->
46
<!--(1920 px 1082 px)-->
47
<!-- Add "scoped" attribute to limit CSS to this component only -->
47
<!-- Add "scoped" attribute to limit CSS to this component only -->
48
<style scoped>
48
<style scoped>
49
#topbg {
49
  #topbg {
50
    width: 100%;
50
    width: 100%;
51
    height: 100%;
51
    height: 100%;
52
}
52
  }
53
53
54
#topleft {
54
  #topleft {
55
    width: 1200px;
55
    width: 1200px;
56
    left: 18%;
56
    left: 18%;
57
    top: 224px;
57
    top: 224px;
58
    position: absolute;
58
    position: absolute;
59
    text-align: left;
59
    text-align: left;
60
}
60
  }
61
61
62
#icon {
62
  #icon {
63
    width: 144px;
63
    width: 144px;
64
    height: 144px;
64
    height: 144px;
65
}
65
  }
66
66
67
.kaixin {
67
  .kaixin {
68
    position: relative;
68
    position: relative;
69
    display: table;
69
    display: table;
70
    top: 30px;
70
    top: 30px;
71
}
71
  }
72
72
73
#kaixin_title {
73
  #kaixin_title {
74
    color: #F84842;
74
    color: #F84842;
75
    font-size: 40px;
75
    font-size: 40px;
76
    font-weight: bold;
76
    font-weight: bold;
77
}
77
  }
78
78
79
.noti {
79
  .noti {
80
    margin-top: 20px;
80
    margin-top: 20px;
81
    color:#AEAEAE;;
81
    color: #AEAEAE;;
82
    font-weight: bold;
82
    font-weight: bold;
83
    font-size: 20px;
83
    font-size: 20px;
84
    position: relative;
84
    position: relative;
85
    white-space: nowrap;
85
    white-space: nowrap;
86
    top: 20px;
86
    top: 20px;
87
}
87
  }
88
88
89
.btnP {
90
    width: 300px;
89
  .btnP {
90
    width: 350px;
91
    height: 66px;
91
    height: 66px;
92
    position: relative;
92
    position: relative;
93
    margin-top: 57px;
93
    margin-top: 57px;
94
    border-radius: 33px;
94
    border-radius: 33px;
95
    background-color: #FB4644;
95
    background-color: #FB4644;
96
}
96
  }
97
98
  .btnP:active {
99
    top: 5px; /**向下偏移2px **/
100
  }
97
101
98
.btnImg {
102
  .btnImg {
99
    position: absolute;
103
    position: absolute;
100
    top: 50%;
104
    top: 50%;
101
    transform: translateY(-50%);
105
    transform: translateY(-50%);
102
    margin-left: 40px;
106
    margin-left: 40px;
103
}
107
  }
104
108
105
.btnFont {
109
  .btnFont {
106
    color: white;
110
    color: white;
107
    font-size: 28px;
111
    font-size: 28px;
108
    font-weight: bold;
112
    font-weight: bold;
111
    transform: translateY(-50%);
115
    transform: translateY(-50%);
112
    right: 40px;
116
    right: 40px;
113
    /*left: auto;*/
117
    /*left: auto;*/
114
}
118
  }
119
120
  .btnFont:active {
121
    font-size: 26px;
122
  }
115
123
116
#shouji {
124
  #shouji {
117
    width: 380px;
125
    width: 380px;
118
    height: 380px;
126
    height: 380px;
119
    right: 19%;
127
    right: 19%;
120
    top: 224px;
128
    top: 224px;
121
    position: absolute;
129
    position: absolute;
122
}
130
  }
123
131
124
.bottom1 {
132
  .bottom1 {
125
    display: inline-flex;
133
    display: inline-flex;
126
    margin-top: 50px;
134
    margin-top: 50px;
127
    width: 62%;
135
    width: 62%;
128
}
136
  }
129
137
130
.WordP {
138
  .WordP {
131
    text-align: left;
139
    text-align: left;
132
    margin: auto 0;
140
    margin: auto 0;
133
}
141
  }
134
142
135
.WordP h1 {
143
  .WordP h1 {
136
    font-size: 30px;
144
    font-size: 30px;
137
}
145
  }
138
146
139
.WordP h2 {
147
  .WordP h2 {
140
    font-size: 20px;
148
    font-size: 20px;
141
}
149
  }
142
150
143
.WordP h3 {
151
  .WordP h3 {
144
    font-size: 14px;
152
    font-size: 14px;
145
}
153
  }
146
154
147
.img1 {
155
  .img1 {
148
    margin-left: 60px;
156
    margin-left: 60px;
149
}
157
  }
150
158
151
.bottom2 {
159
  .bottom2 {
152
    display: inline-flex;
160
    display: inline-flex;
153
    margin-top: 50px;
161
    margin-top: 50px;
154
    width: 62%;
162
    width: 62%;
155
}
163
  }
156
164
157
.img2 {
165
  .img2 {
158
    margin-right: 60px;
166
    margin-right: 60px;
159
}
167
  }
160
168
161
</style>
169
</style>
162
<script>
170
<script>
163
export default {
171
  export default {
164
    name: 'Home',
172
    name: 'Home',
165
    data() {
173
    data() {
166
        return {
167
            msg: 'Welcome to Your Vue.js App',
168
        }
174
      return {
175
        msg: 'Welcome to Your Vue.js App',
176
      }
169
    },
177
    },
170
    methods: {
178
    methods: {
171
        openNewTab() {
172
            window.open("http://d.firim.info/freepa", "_blank");
173
        },
179
      openNewTab() {
180
        window.open("http://d.firim.info/freepa", "_blank");
181
      },
182
      download() {
183
        console.log('点击下载按钮了')
184
        //window.location.href = "https://s3.cn-northwest-1.amazonaws.com.cn/s3.jianos.com/Zero.apk";
185
        window.open("https://s3.cn-northwest-1.amazonaws.com.cn/s3.jianos.com/Zero.apk", "_blank");
186
      },
174
    }
187
    }
175
}
188
  }
176
189
177
</script>
190
</script>
178
<!--本地网络地址:   http://192.168.31.101:8082-->
191
<!--本地网络地址:   http://192.168.31.101:8082-->