Przeglądaj źródła

PC、iOS端、微信端修改

朱海文 4 lat temu
rodzic
commit
ef1754eaf6
9 zmienionych plików z 251 dodań i 19 usunięć
  1. 6 2
      src/App.vue
  2. BIN
      src/assets/arrow.png
  3. BIN
      src/assets/know.png
  4. 9 0
      src/assets/main.css
  5. 2 1
      src/main.js
  6. 6 0
      src/router/index.js
  7. 13 3
      src/views/PC.vue
  8. 0 13
      src/views/iOS.vue
  9. 215 0
      src/views/ios.vue

+ 6 - 2
src/App.vue

@ -12,7 +12,8 @@
12 12
        // window.location.replace('/android-mobile.html')
13 13
        this.$router.push('/Android');
14 14
      } else if (!this.isPC() && this.isIos()) {
15
        window.location.replace('/ios-mobile.html')
15
        //window.location.replace('/ios-mobile.html')
16
        this.$router.push('/ios');
16 17
      }
17 18
    },
18 19
    methods: {
@ -51,11 +52,14 @@
51 52
52 53
<style>
53 54
  #app {
55
    height: 100%;
54 56
    font-family: 'Avenir', Helvetica, Arial, sans-serif;
55 57
    -webkit-font-smoothing: antialiased;
56 58
    -moz-osx-font-smoothing: grayscale;
57 59
    text-align: center;
58 60
    color: #2c3e50;
59
    margin-top: 60px;
61
    /*margin-top: 60px;*/
62
    margin: 0;
63
    padding: 0;
60 64
  }
61 65
</style>

BIN
src/assets/arrow.png


BIN
src/assets/know.png


+ 9 - 0
src/assets/main.css

@ -0,0 +1,9 @@
1
* {
2
  margin: 0;
3
  padding: 0;
4
}
5
6
html,
7
body {
8
  height: 100%;
9
}

+ 2 - 1
src/main.js

@ -1,10 +1,11 @@
1 1
import Vue from 'vue'
2 2
import App from './App'
3 3
import router from './router'
4
import './assets/main.css'
4 5
5 6
Vue.config.productionTip = false
6 7
7 8
new Vue({
8 9
    router,
9 10
    render: h => h(App)
10
}).$mount('#app')
11
}).$mount('#app')

+ 6 - 0
src/router/index.js

@ -2,6 +2,7 @@ import Vue from 'vue'
2 2
import Router from 'vue-router'
3 3
import PC from '@/views/PC.vue'
4 4
import Android from '@/views/Android.vue'
5
import ios from '@/views/ios.vue'
5 6
6 7
Vue.use(Router)
7 8
@ -24,6 +25,11 @@ export default new Router({
24 25
      path: '/Android',
25 26
      name: 'Android',
26 27
      component: Android
28
    },
29
    {
30
      path: '/ios',
31
      name: 'ios',
32
      component: ios
27 33
    }
28 34
     ]
29 35
})

+ 13 - 3
src/views/PC.vue

@ -10,11 +10,13 @@
10 10
        <div class="noti">
11 11
          <font>旅游生活娱乐 就在开心0元购</font>
12 12
        </div>
13
        <div class="btnP" @click="download()">
13
        <div class="btnP" @click="jump()">
14
          <img class="btnImg" src="~@/assets/apple.png">
15
          <font class="btnFont">iOS系统下载</font>
16
        </div>
17
        <div class="btnP" @click="download()" style="margin-top: 20px">
14 18
          <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 19
          <font class="btnFont">Android系统下载</font>
17
          <!-- </a> -->
18 20
        </div>
19 21
      </div>
20 22
      <img id="shouji" src="~@/assets/shouji2.png">
@ -207,6 +209,14 @@
207 209
208 210
    },
209 211
    methods: {
212
      jump() {
213
        var isMac = /macintosh|mac os x/i.test(navigator.userAgent);
214
        if(isMac){
215
          window.location.href = 'itms-apps://itunes.apple.com/app/id1531655695';
216
          return
217
        }
218
        alert('请在iOS手机safari浏览器中打卡此页面!');
219
      },
210 220
      download() {
211 221
        console.log('点击下载按钮了')
212 222
        window.open(downUrl, "_blank");

+ 0 - 13
src/views/iOS.vue

@ -1,13 +0,0 @@
1
<template>
2
  <div>
3
4
  </div>
5
</template>
6
7
<style scoped>
8
9
</style>
10
<script>
11
12
</script>
13

+ 215 - 0
src/views/ios.vue

@ -0,0 +1,215 @@
1
<template>
2
  <div>
3
    <div ref="ios_mask" class="mask">
4
      <img src="~@/assets/arrow.png" style="margin: 1rem 0 0 2.5rem;">
5
      <p style="color: #ffffff;font-size: 23px;margin:.5rem 0 .9rem 0;">请在浏览器中打开</p>
6
      <img src="~@/assets/know.png"  style="CURSOR: pointer">
7
    </div>
8
    <!--上半部分-->
9
    <div>
10
      <img class="topbg" src="../assets/topbg_mobile.png">
11
12
      <div class="top_content">
13
        <img class="app_icon" src="../assets/icon.png"/>
14
        <font class="app_name">开心0元购</font>
15
      </div>
16
17
      <font class="des">连续打卡全额返 就在开心0元购</font>
18
19
      <div class="btnP">
20
        <div @click="jump()">
21
          <img class="btnImg" src="~@/assets/bot.png">
22
          <!-- <a href="https://s3.cn-northwest-1.amazonaws.com.cn/s3.jianos.com/Zero.apk" download="" traget="_blank"> -->
23
          <font class="btnFont">iOS系统下载</font>
24
          <!-- </a> -->
25
        </div>
26
      </div>
27
28
    </div>
29
30
    <!--下半部分-->
31
    <div>
32
      <img class="img1" src="~@/assets/right_top.png">
33
      <div class="WordP">
34
        <div>
35
          <h1>打卡简单 全额返购自主提现</h1>
36
          <h2>只要坚持完成连续打卡任务 即全额返现</h2>
37
          <h3>• 进入指定京东或天猫店铺购买想要的指定商品</h3>
38
          <h3>• 进入开心0元购注册账号,关联商品 </h3>
39
          <h3>• 每日打卡,完成阶段任务自主提现,直至全额</h3>
40
        </div>
41
      </div>
42
43
      <img class="img1" src="~@/assets/left_bottom.png">
44
      <div class="WordP">
45
        <div>
46
          <h1>提现便捷 拒绝意外翻车</h1>
47
          <h2>分阶段返现,完成阶段任务即可直接提现</h2>
48
          <h3>• 在开心0元购打卡至阶段任务完成</h3>
49
          <h3>• 进入领奖处,填写收款账户直接申请提现</h3>
50
          <h3>• 全部现金到账,更有神秘福利免费领取</h3>
51
        </div>
52
      </div>
53
    </div>
54
  </div>
55
</template>
56
<!--(1920 px 1082 px)-->
57
<!-- Add "scoped" attribute to limit CSS to this component only -->
58
<style scoped>
59
  .mask {
60
    position: fixed;
61
    left: 0;
62
    right: 0;
63
    bottom: 0;
64
    top: 0;
65
    width: 100%;
66
    min-height: 100vh;
67
    background-color: #555555f0;
68
    display: block;
69
    z-index: 10;
70
  }
71
72
  .topbg {
73
    width: 100%;
74
    height: auto;
75
  }
76
77
  .top_content {
78
    width: auto;
79
    left: 18%;
80
    top: 25%;
81
    position: absolute;
82
    text-align: left;
83
    display: flex;
84
    align-items: center
85
  }
86
87
  .app_icon {
88
    width: 60px;
89
    height: 60px;
90
  }
91
92
  .app_name {
93
    font-size: 30px;
94
    font-weight: bold;
95
    margin-left: 25px;
96
  }
97
98
  .des {
99
    color: #FB4644;
100
    font-weight: bold;
101
    font-size: 16px;
102
    left: 18%;
103
    top: 36%;
104
    position: absolute;
105
  }
106
107
  .btnP {
108
    position: absolute;
109
    bottom: 6%;
110
    display: flex;
111
    justify-content: center;
112
    width: 100%;
113
    height: auto;
114
  }
115
116
  .btnP div {
117
    background-color: #FB4644;
118
    display: flex;
119
    align-items: center;
120
    width: auto;
121
    height: auto;
122
    border-radius: 20px;
123
    padding: 5px;
124
    padding-left: 10px;
125
    padding-right: 20px;
126
127
  }
128
129
  .btnP:active {
130
    /*transform: scale(10);*/
131
  }
132
133
  .btnImg {
134
    width: 30px;
135
    height: 30px;
136
  }
137
138
  .btnFont {
139
    color: white;
140
    font-size: 20px;
141
    font-weight: bold;
142
    margin-left: 10px;
143
  }
144
145
  .btnFont:active {
146
    font-size: 18px;
147
  }
148
149
  .img1 {
150
    width: 80%;
151
    height: auto;
152
    margin-top: 20px;
153
  }
154
155
  .WordP {
156
    width: 100%;
157
    height: auto;
158
    display: flex;
159
    align-items: center;
160
    justify-content: center;
161
  }
162
163
  .WordP div {
164
    text-align: center;
165
    margin-top: 10px;
166
  }
167
168
  .WordP h1 {
169
    font-size: 17px;
170
  }
171
172
  .WordP h2 {
173
    font-size: 15px;
174
  }
175
176
  .WordP h3 {
177
    font-size: 13px;
178
  }
179
180
</style>
181
<script>
182
  export default {
183
    name: 'ios',
184
    data() {
185
      return {
186
        msg: 'Welcome to Your Vue.js App',
187
      }
188
    },
189
    mounted() {
190
      this.initV();
191
    },
192
    methods: {
193
      initV() {
194
        document.documentElement.style.fontSize = document.documentElement.clientWidth / 7.5 + 'px';
195
196
        var ua = window.navigator.userAgent.toLowerCase();
197
198
        if (ua.match(/MicroMessenger/i) == 'micromessenger') {
199
          //是微信环境,弹出遮罩
200
          //document.getElementById('ios-mask').style.display='block';
201
          this.$refs.ios_mask.style.display='block';
202
        } else {
203
          //document.getElementById('ios-mask').style.display='none';
204
          this.$refs.ios_mask.style.display='none';
205
        }
206
207
      },
208
      jump() {
209
        window.location.href = 'itms-apps://itunes.apple.com/app/id1531655695';
210
      }
211
    }
212
  }
213
214
</script>
215
<!--本地网络地址:   http://192.168.31.101:8082-->