wangfei пре 6 година
родитељ
комит
6f117b52ec
10 измењених фајлова са 605 додато и 23 уклоњено
  1. 1
    1
      index.html
  2. 3
    0
      package.json
  3. 3
    2
      src/App.vue
  4. 11
    0
      src/main.js
  5. 215
    0
      src/pages/invitation/index.vue
  6. 362
    0
      src/pages/invitation/page.scss
  7. 3
    13
      src/router/index.js
  8. 4
    4
      src/store/user/index.js
  9. 1
    1
      src/util/api.js
  10. 2
    2
      src/util/share.js

+ 1
- 1
index.html Прегледај датотеку

@@ -3,7 +3,7 @@
3 3
   <head>
4 4
     <meta charset="utf-8">
5 5
     <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
6
-    <title>我的新年愿望</title>
6
+    <title>破晓·谋远·共行</title>
7 7
   </head>
8 8
   <body>
9 9
     <div id="app"></div>

+ 3
- 0
package.json Прегледај датотеку

@@ -14,11 +14,13 @@
14 14
     "build": "node build/build.js"
15 15
   },
16 16
   "dependencies": {
17
+    "animate.css": "^3.7.0",
17 18
     "axios": "^0.18.0",
18 19
     "html2canvas": "^1.0.0-alpha.12",
19 20
     "mescroll.js": "^1.3.8",
20 21
     "vant": "^1.4.5",
21 22
     "vue": "^2.5.2",
23
+    "vue-amap": "^0.5.8",
22 24
     "vue-awesome-swiper": "^3.1.3",
23 25
     "vue-router": "^3.0.1",
24 26
     "vuex": "^3.0.1"
@@ -73,6 +75,7 @@
73 75
     "selenium-server": "^3.0.1",
74 76
     "semver": "^5.3.0",
75 77
     "shelljs": "^0.7.6",
78
+    "swiper": "^4.4.6",
76 79
     "uglifyjs-webpack-plugin": "^1.1.1",
77 80
     "url-loader": "^0.5.8",
78 81
     "vue-jest": "^1.0.2",

+ 3
- 2
src/App.vue Прегледај датотеку

@@ -13,7 +13,7 @@ export default {
13 13
   name: 'App',
14 14
   data () {
15 15
     return {
16
-      showPage: true, // 不控制显示时机
16
+      showPage: false, // 不控制显示时机
17 17
       code: ''
18 18
     }
19 19
   },
@@ -29,12 +29,13 @@ export default {
29 29
   methods: {
30 30
     ...mapIndexActions(['getAppId', 'getUser', 'getShare']),
31 31
     async init () {
32
+      // this.showPage = true
32 33
       try {
33 34
         await this.getAppId()
34 35
         await this.getCode()
35 36
         await this.getUser({ code: this.code })
36 37
         this.showPage = true
37
-        this.getShare()
38
+        // this.getShare()
38 39
       } catch (err) {
39 40
         console.log(err)
40 41
       }

+ 11
- 0
src/main.js Прегледај датотеку

@@ -7,12 +7,23 @@ import store from './store'
7 7
 import Vant from 'vant'
8 8
 import 'vant/lib/index.css'
9 9
 import toolClass from './util/util'
10
+import 'swiper/dist/css/swiper.css'
11
+import AMap from 'vue-amap'
12
+import 'animate.css/animate.min.css'
10 13
 
11 14
 Vue.use(Vant)
15
+Vue.use(AMap)
12 16
 
13 17
 Vue.config.productionTip = false
14 18
 Vue.prototype.toolClass = toolClass
15 19
 
20
+AMap.initAMapApiLoader({
21
+  key: 'f0d1d4f82432504003ebf46e5e36ff03',
22
+  plugin: ['AMap.Autocomplete', 'AMap.PlaceSearch', 'AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType', 'AMap.PolyEditor', 'AMap.CircleEditor'],
23
+  // 默认高德 sdk 版本为 1.4.4
24
+  v: '1.4.4'
25
+})
26
+
16 27
 /* eslint-disable no-new */
17 28
 new Vue({
18 29
   el: '#app',

+ 215
- 0
src/pages/invitation/index.vue Прегледај датотеку

@@ -0,0 +1,215 @@
1
+<template>
2
+  <div class="swiper-container">
3
+    <div class="musicbox" @click="troggle">
4
+      <img :class="playing" :src="'https://jingcheng-h5.oss-cn-beijing.aliyuncs.com/nh/music_'+playing+'.png'" alt="">
5
+    </div>
6
+    <div class="swiper-wrapper">
7
+        <div class="swiper-slide mainPage">
8
+          <div>
9
+            <img class="main_logo" src="https://jingcheng-h5.oss-cn-beijing.aliyuncs.com/nh/19nhyqh_logo.png">
10
+            <div class="subPage">
11
+              <div>
12
+                <img :class="['main_main', (swiper || {}).activeIndex === 0 ? 'animated zoomIn': '']" src="https://jingcheng-h5.oss-cn-beijing.aliyuncs.com/nh/19nhyqh_main.png">
13
+                <img :class="['main_title', (swiper || {}).activeIndex === 0 ? 'animated fadeInUp': '']" src="https://jingcheng-h5.oss-cn-beijing.aliyuncs.com/nh/19nhyqh_maintitle1.png">
14
+                <img :class="['main_happy', (swiper || {}).activeIndex === 0 ? 'animated rotateIn': '']" src="https://jingcheng-h5.oss-cn-beijing.aliyuncs.com/nh/19nhyqh_happy.png">
15
+              </div>
16
+            </div>
17
+          </div>
18
+        </div>
19
+        <div class="swiper-slide yqhPage">
20
+          <div>
21
+            <div class="subPage">
22
+              <div class="sub_title">
23
+                <img :class="['yqh_title', (swiper || {}).activeIndex === 1 ? 'animated zoomIn': '']" src="https://jingcheng-h5.oss-cn-beijing.aliyuncs.com/nh/19nhyqh_title.png">
24
+                <img :class="['yqh_title_min', (swiper || {}).activeIndex === 1 ? 'animated fadeInLeft': '']" style="animation-delay: 0.5s;" src="https://jingcheng-h5.oss-cn-beijing.aliyuncs.com/nh/19nhyqh_title_min.png">
25
+              </div>
26
+              <div class="yqh">
27
+                <div class="div_xz">
28
+                  <div :class="[(swiper || {}).activeIndex === 1 ? 'animated fadeInUp': '']" style="animation-delay: 1s;width:100%;height:100%;opacity: 0;">
29
+                    <div>
30
+                      <a>
31
+                        <img
32
+                          v-if="userInfo !== null"
33
+                          :src="userInfo.Headimgurl.replace(/http:\/\/.+\.qlogo\.cn\//i, 'http://wx.jinchengjiaye.com/wechat-avatar/') || ''"
34
+                          class="cover"
35
+                          alt
36
+                        >
37
+                      </a>
38
+                      <span>{{userInfo !== null ? userInfo.Nickyname : ''}}:</span>
39
+                    </div>
40
+                    <img class="yqh_xz" src="https://jingcheng-h5.oss-cn-beijing.aliyuncs.com/nh/19nhyqh_xz1.png">
41
+                  </div>
42
+                </div>
43
+                <div class="div_xf_top">
44
+                  <img src="https://jingcheng-h5.oss-cn-beijing.aliyuncs.com/nh/19nhyqh_xftop.png">
45
+                </div>
46
+                <div class="div_xf_down">
47
+                  <img src="https://jingcheng-h5.oss-cn-beijing.aliyuncs.com/nh/19nhyqh_xfdown.png">
48
+                </div>
49
+                <img :class="['yqh_happy', (swiper || {}).activeIndex === 1 ? 'animated rotateIn': '']" style="animation-delay: 2s" src="https://jingcheng-h5.oss-cn-beijing.aliyuncs.com/nh/19nhyqh_happy.png">
50
+              </div>
51
+            </div>
52
+          </div>
53
+        </div>
54
+        <div class="swiper-slide hylcPage">
55
+          <div>
56
+            <div class="subPage">
57
+              <div class="sub_title">
58
+                <img :class="['hylc_title', (swiper || {}).activeIndex === 2 ? 'animated zoomIn': '']"  src="https://jingcheng-h5.oss-cn-beijing.aliyuncs.com/nh/19nhyqh_title.png">
59
+                <img :class="['hylc_title_hy', (swiper || {}).activeIndex === 2 ? 'animated fadeInLeft': '']" style="animation-delay: 0.5s;" src="https://jingcheng-h5.oss-cn-beijing.aliyuncs.com/nh/19nhyqh_title_hy.png">
60
+              </div>
61
+              <div :class="[(swiper || {}).activeIndex === 2 ? 'animated fadeIn': '']"  style="animation-delay: 1s">
62
+                <ul>
63
+                  <li v-for="(item, index) in meetings" class="flex-h" :key="index">
64
+                    <span :class="[(swiper || {}).activeIndex === 2 ? 'animated fadeInLeft': '']" style="animation-delay: 1.5s;animation-duration:0.5s">{{item.time}}</span>
65
+                    <div :class="['flex-item', (swiper || {}).activeIndex === 2 ? 'animated fadeInRight': '']" style="animation-delay: 1s;animation-duration:1s">{{item.desc}}</div>
66
+                    <span :class="[(swiper || {}).activeIndex === 2 ? 'animated fadeInRight': '']" style="animation-delay: 1.5s;animation-duration:0.5s">{{item.minutes}}</span>
67
+                  </li>
68
+                </ul>
69
+              </div>
70
+              <div class="sub_bottom">
71
+                <img src="https://jingcheng-h5.oss-cn-beijing.aliyuncs.com/nh/19nhyqh_logo.png">
72
+              </div>
73
+            </div>
74
+          </div>
75
+        </div>
76
+        <div class="swiper-slide chxzPage">
77
+          <div>
78
+            <div class="subPage">
79
+              <div class="sub_title">
80
+                <img :class="['chxz_title', (swiper || {}).activeIndex === 3 ? 'animated zoomIn': '']" src="https://jingcheng-h5.oss-cn-beijing.aliyuncs.com/nh/19nhyqh_title.png">
81
+                <img :class="['chxz_title_ch', (swiper || {}).activeIndex === 3 ? 'animated fadeInLeft': '']" style="animation-delay: 0.5s;" src="https://jingcheng-h5.oss-cn-beijing.aliyuncs.com/nh/19nhyqh_title_ch.png">
82
+                <img :class="['chxz_title_ch', (swiper || {}).activeIndex === 3 ? 'animated fadeIn': '']" style="animation-delay: 1s;" src="https://jingcheng-h5.oss-cn-beijing.aliyuncs.com/nh/19nhyqh_ch_desc.png">
83
+              </div>
84
+              <el-amap ref="map" vid="amapDemo" :center="mapCenter" :zoom="15" :class="['amap', (swiper || {}).activeIndex === 3 ? 'animated fadeIn': '']" style="animation-delay: 1s;">
85
+                <el-amap-marker :position="mapCenter" :events="events"></el-amap-marker>
86
+              </el-amap>
87
+              <div class="sub_bottom">
88
+                <img src="https://jingcheng-h5.oss-cn-beijing.aliyuncs.com/nh/19nhyqh_logo.png">
89
+              </div>
90
+            </div>
91
+          </div>
92
+        </div>
93
+    </div>
94
+  </div>
95
+</template>
96
+
97
+<script>
98
+import Swiper from 'swiper'
99
+import { createNamespacedHelpers } from 'vuex'
100
+import wx from 'weixin-jsapi'
101
+const { mapState: mapUserState } = createNamespacedHelpers('user')
102
+
103
+export default {
104
+  name: '',
105
+  data () {
106
+    return {
107
+      swiper: null,
108
+      marker: null,
109
+      events: {
110
+        click: () => {
111
+          console.log(wx)
112
+          wx.openLocation({
113
+            latitude: 31.941891, // 纬度,浮点数,范围为90 ~ -90
114
+            longitude: 118.818648, // 经度,浮点数,范围为180 ~ -180。
115
+            name: '银城皇冠假日酒店'
116
+          })
117
+        }
118
+      },
119
+      audio: null,
120
+      musicurl: 'https://jingcheng-h5.oss-cn-beijing.aliyuncs.com/nh/nh_music.mp3',
121
+      playing: 'off',
122
+      markers: [],
123
+      mapCenter: [118.818648, 31.941891],
124
+      meetings: [{
125
+        time: '13:30-13:40',
126
+        desc: '城中、江宁、合肥、大华、物色、银荔方、耘初',
127
+        minutes: '10分钟'
128
+      }, {
129
+        time: '13:40-13:55',
130
+        desc: '江北、锦城、荟盛行、海南',
131
+        minutes: '15分钟'
132
+      }, {
133
+        time: '13:55-14:10',
134
+        desc: '无锡、杭州、徐州、营销中心、荟房',
135
+        minutes: '15分钟'
136
+      }, {
137
+        time: '14:30-14:35',
138
+        desc: '视频',
139
+        minutes: '5分钟'
140
+      }, {
141
+        time: '14:35-14:55',
142
+        desc: '何总发言',
143
+        minutes: '20分钟'
144
+      }, {
145
+        time: '14:55-15:25',
146
+        desc: '案例分享2个(江宁、江北)',
147
+        minutes: '30分钟'
148
+      }, {
149
+        time: '15:25-15:50',
150
+        desc: '邀请集团领导发言',
151
+        minutes: '25分钟'
152
+      }, {
153
+        time: '15:50-17:10',
154
+        desc: '表彰优秀员工、团队',
155
+        minutes: '80分钟'
156
+      }, {
157
+        time: '17:10-17:30',
158
+        desc: '下达2019目标、誓师授旗',
159
+        minutes: '20分钟'
160
+      }, {
161
+        time: '17:30-18:30',
162
+        desc: '翻台、暖场互动',
163
+        minutes: '60分钟'
164
+      }, {
165
+        time: '18:30-20:30',
166
+        desc: '晚宴+节目+抽奖+互动',
167
+        minutes: '120分钟'
168
+      }],
169
+      trigger: 'ontouchend' in window.document ? 'touchstart' : 'click'
170
+    }
171
+  },
172
+  computed: {
173
+    ...mapUserState({
174
+      userInfo: item => item.userInfo
175
+    })
176
+  },
177
+  mounted () {
178
+    this.swiper = new Swiper('.swiper-container', {
179
+      direction: 'vertical'
180
+    })
181
+    window.setTimeout(this.play, 1000)
182
+    window.document.addEventListener(this.trigger, this.autoplay, false)
183
+  },
184
+  methods: {
185
+    play () {
186
+      if (this.musicurl) {
187
+        if (!this.audio) {
188
+          this.audio = window.document.createElement('audio')
189
+          this.audio.src = this.musicurl
190
+          this.audio.autoplay = 'autoplay'
191
+          this.audio.preload = true
192
+          this.audio.loop = true
193
+        }
194
+        this.audio.play()
195
+        this.playing = 'on'
196
+      }
197
+    },
198
+    stop () {
199
+      this.audio.pause()
200
+      this.playing = 'off'
201
+    },
202
+    troggle () {
203
+      if (this.playing === 'on') {
204
+        this.stop()
205
+      } else {
206
+        this.play()
207
+      }
208
+    }
209
+  }
210
+}
211
+</script>
212
+
213
+<style lang="scss" scoped>
214
+@import "page.scss";
215
+</style>

+ 362
- 0
src/pages/invitation/page.scss Прегледај датотеку

@@ -0,0 +1,362 @@
1
+.swiper-container {
2
+  width: 100%;
3
+  height: 100%;
4
+  margin: 0 auto;
5
+}
6
+
7
+.swiper-slide{
8
+  overflow: hidden;
9
+}
10
+
11
+@keyframes rotate{
12
+  0%{
13
+    transform: rotate(0deg);
14
+  }
15
+  100%{
16
+    transform: rotate(360deg);
17
+  }
18
+}
19
+
20
+.musicbox {
21
+  position: fixed;
22
+  top: 0.8rem;
23
+  right: 0.1rem;
24
+  width: 0.35rem;
25
+  height: 0.35rem;
26
+  border-radius: 50%;
27
+  z-index: 130;
28
+
29
+  .on {
30
+    animation: rotate 3s linear infinite;
31
+  }
32
+
33
+  img {
34
+    width: 100%;
35
+    height: 100%;
36
+  }
37
+}
38
+
39
+
40
+.mainPage{
41
+  background: url(https://jingcheng-h5.oss-cn-beijing.aliyuncs.com/nh/19nhyqh_bg.jpg);
42
+  width: 100%;
43
+  height: 100%;
44
+
45
+  .subPage{
46
+    width: 100%;
47
+    position: absolute;
48
+    left: 50%;
49
+    top: 50%;
50
+    transform: translate(-50%, -50%);
51
+    -webkit-transform: translate(-50%, -50%);
52
+    div{
53
+      padding: 0 20%;
54
+      text-align: center;
55
+      .main_main{
56
+        width: 100%;
57
+      }
58
+      .main_title{
59
+        width: 194px;
60
+        margin-top: 60px;
61
+        animation-delay: 0.5s;
62
+      }
63
+
64
+      .main_happy{
65
+        margin-top: 37px;
66
+        width: 133px;
67
+        animation-delay: 1s;
68
+      }
69
+    }
70
+  }
71
+
72
+  .main_logo{
73
+    position: absolute;
74
+    top: 3vh;
75
+    width: 100px;
76
+    right: 26px;
77
+  }
78
+}
79
+
80
+.yqhPage{
81
+  background: url(https://jingcheng-h5.oss-cn-beijing.aliyuncs.com/nh/19nhyqh_bg.jpg);
82
+  width: 100%;
83
+  height: 100%;
84
+
85
+  .subPage{
86
+    width: 100%;
87
+    position: absolute;
88
+    left: 50%;
89
+    top: 50%;
90
+    transform: translate(-50%, -50%);
91
+    -webkit-transform: translate(-50%, -50%);
92
+    .sub_title{
93
+      text-align: center;
94
+      .yqh_title{
95
+        width: 65vw;
96
+      }
97
+      .yqh_title_min{
98
+        width: 67vw;
99
+        margin-top: 8px;
100
+      }
101
+    }
102
+    text-align: center;
103
+    .yqh{
104
+      margin-top: 5vh;
105
+      text-align: center;
106
+      height: 520px;
107
+      .div_xz{
108
+        height: 500px;
109
+        z-index: 2;
110
+        position: relative;
111
+        overflow: hidden;
112
+        div{
113
+          div{
114
+            width: 100%;
115
+            top: 8%;
116
+            left: 21%;
117
+            position: absolute;
118
+            z-index: 5;
119
+            white-space: nowrap;
120
+            display: inline-block;
121
+            text-align: left;
122
+            a{
123
+              width: 34px;
124
+              height: 34px;
125
+              border-radius: 50%;
126
+              display: inline-block;
127
+              position: relative;
128
+              overflow: hidden;
129
+              vertical-align: middle;
130
+              img{
131
+                width: 100%;
132
+                height: 100%;
133
+              }
134
+            }
135
+            span{
136
+              margin-left: .1rem;
137
+              color: #9d886d;
138
+              font-size: .12rem;
139
+              vertical-align: middle;
140
+            }
141
+          }
142
+        
143
+          img{
144
+            height: 100%;
145
+            position: relative;
146
+            animation-duration: 2s;
147
+          }
148
+        }
149
+      }
150
+      .div_xf_top{
151
+        height: 150px;
152
+        bottom: 0;
153
+        z-index: 3;
154
+        position: relative;
155
+        margin-top: -130px;
156
+        img{
157
+          height: 100%;
158
+        }
159
+      }
160
+      .div_xf_down{
161
+        height: 238px;
162
+        bottom: 0;
163
+        z-index: 1;
164
+        position: relative;
165
+        margin-top: -238px;
166
+        img{
167
+          height: 100%;
168
+        }
169
+      }
170
+      .yqh_happy{
171
+        margin-top: 4vh;
172
+        width: 133px;
173
+      }
174
+    }
175
+    @media screen and(max-height:600px){
176
+      .yqh{
177
+        margin-top: 5vh;
178
+        text-align: center;
179
+        height: 420px;
180
+        .div_xz{
181
+          height: 400px;
182
+          z-index: 2;
183
+          position: relative;
184
+          overflow: hidden;
185
+          div{
186
+            img{
187
+              height: 100%;
188
+              position: relative;
189
+            }
190
+          }
191
+        }
192
+        .div_xf_top{
193
+          height: 120px;
194
+          bottom: 0;
195
+          z-index: 3;
196
+          position: relative;
197
+          margin-top: -120px;
198
+          img{
199
+            height: 100%;
200
+          }
201
+        }
202
+        .div_xf_down{
203
+          height: 191px;
204
+          bottom: 0;
205
+          z-index: 1;
206
+          position: relative;
207
+          margin-top: -191px;
208
+          img{
209
+            height: 100%;
210
+          }
211
+        }
212
+        .yqh_happy{
213
+          margin-top: 4vh;
214
+          width: 133px;
215
+        }
216
+      }
217
+    }
218
+  }
219
+}
220
+
221
+.hylcPage{
222
+  background: url(https://jingcheng-h5.oss-cn-beijing.aliyuncs.com/nh/19nhyqh_bg.jpg);
223
+  width: 100%;
224
+  height: 100%;
225
+
226
+  .subPage{
227
+    width: 100%;
228
+    position: absolute;
229
+    left: 50%;
230
+    top: 50%;
231
+    transform: translate(-50%, -50%);
232
+    -webkit-transform: translate(-50%, -50%);
233
+    .sub_title{
234
+      text-align: center;
235
+      .hylc_title_hy{
236
+        margin-top: 8px;
237
+      }
238
+    }
239
+    >div{
240
+      padding: 0 36px;
241
+      position: relative;
242
+      ul{
243
+        position: relative;
244
+        overflow: hidden;
245
+        margin-top: 50px;
246
+        &::after{
247
+          content: '';
248
+          width: 1px;
249
+          height: calc(100% - 20px);
250
+          background: #6c503b;
251
+          position: absolute;
252
+          left: 74px;
253
+          top: 10px;
254
+        }
255
+        li{
256
+          align-items: center;
257
+          &:not(:first-child){
258
+            margin-top: 20px;
259
+          }
260
+          span{
261
+            &:first-child{
262
+              width: 70px;
263
+            }
264
+            color: #fff;
265
+            font-size: 12px;
266
+          }
267
+          div{
268
+            margin-left: 12px;
269
+            color: #ddbc75;
270
+            font-size: 14px;
271
+          }
272
+          &::after{
273
+            content: '';
274
+            width: 5px;
275
+            height: 5px;
276
+            background-color: #fff;
277
+            border-radius: 50%;
278
+            left: 72px;
279
+            position: absolute;
280
+            z-index: 1;
281
+            // margin-top: 8px;
282
+          }
283
+        }
284
+      }
285
+      @media screen and(max-height:600px){
286
+        ul{
287
+          margin-top: 36px;
288
+          li {
289
+            &:not(:first-child){
290
+              margin-top: 15px;
291
+            }
292
+          }
293
+        }
294
+      }
295
+    }
296
+  }
297
+  .hylc_title{
298
+    width: 65vw;
299
+  }
300
+
301
+  .hylc_title_hy{
302
+    width: 34vw;
303
+  }
304
+
305
+  .sub_bottom{
306
+    text-align: center;
307
+    margin-top: 44px;
308
+    img{
309
+      width: 104px;
310
+    }
311
+  }
312
+  @media screen and(max-height:600px){
313
+    .sub_bottom{
314
+      margin-top: 30px;
315
+    }
316
+  }
317
+}
318
+
319
+.chxzPage{
320
+  background: url(https://jingcheng-h5.oss-cn-beijing.aliyuncs.com/nh/19nhyqh_bg.jpg);
321
+  width: 100%;
322
+  height: 100%;
323
+  .subPage{
324
+    width: 100%;
325
+    position: absolute;
326
+    left: 50%;
327
+    top: 50%;
328
+    transform: translate(-50%, -50%);
329
+    -webkit-transform: translate(-50%, -50%);
330
+    .sub_title{
331
+      text-align: center;
332
+      .chxz_title{
333
+        width: 65vw;
334
+      }
335
+      .chxz_title_ch{
336
+        width: 34vw;
337
+        margin-top: 8px;
338
+      }
339
+      .chxz_desc{
340
+        margin-top: 80px;
341
+        width: 100%;
342
+      }
343
+    }
344
+    >div{
345
+      padding: 0 38px;
346
+      position: relative;
347
+    }
348
+
349
+    .amap{
350
+      height: 210px;
351
+      margin-top: 20px;
352
+    }
353
+
354
+    .sub_bottom{
355
+      margin-top: 5vh;
356
+      text-align: center;
357
+      img{
358
+        width: 104px;
359
+      }
360
+    }
361
+  }
362
+}

+ 3
- 13
src/router/index.js Прегледај датотеку

@@ -5,6 +5,7 @@ import index from '../pages/index'
5 5
 
6 6
 import home from '../pages/home/index'
7 7
 import shareNum from '../pages/home/shareNum'
8
+import invitation from '../pages/invitation/index'
8 9
 
9 10
 Vue.use(Router)
10 11
 
@@ -12,19 +13,8 @@ let router = new Router({
12 13
   routes: [{
13 14
     path: '/',
14 15
     name: 'index',
15
-    component: index,
16
-    redirect: '/home',
17
-    children: [{
18
-      path: '/home',
19
-      name: 'home',
20
-      component: home,
21
-      children: []
22
-    }, {
23
-      path: '/shareNum',
24
-      name: 'shareNum',
25
-      component: shareNum,
26
-      children: []
27
-    }]
16
+    component: invitation,
17
+    children: []
28 18
   }]
29 19
 })
30 20
 

+ 4
- 4
src/store/user/index.js Прегледај датотеку

@@ -36,10 +36,10 @@ export default {
36 36
     getUser (context, payload) {
37 37
       return new Promise((resolve, reject) => {
38 38
         wxsdk({ link: encodeURIComponent(window.location.href.split('#')[0]), code: payload.code }, {
39
-          title: '2019,这些我都想要! ',
40
-          desc: '立下Flag,打开你的新年心愿清单',
41
-          link: `${window.location.origin}${window.location.pathname}#/home`,
42
-          thu_image: `https://jingcheng-h5temp.oss-cn-shanghai.aliyuncs.com/20181229-images/share_20181229165703.jpg?x-oss-process=style/wxicon`
39
+          title: '破晓·谋远·共行',
40
+          desc: '2019银城地产营销新春年会邀请函',
41
+          link: `${window.location.origin}${window.location.pathname}#/`,
42
+          thu_image: `https://jingcheng-h5.oss-cn-beijing.aliyuncs.com/nh/%E9%93%B6%E5%9F%8Elogo.png`
43 43
         }).then((res) => {
44 44
           context.commit('updateUserInfo', res)
45 45
           resolve(res)

+ 1
- 1
src/util/api.js Прегледај датотеку

@@ -1,5 +1,5 @@
1 1
 
2
-const baseurl = '/h52019-api'
2
+const baseurl = '/h5yqh-api'
3 3
 
4 4
 const $api = {
5 5
   getAppId: { // 获取appid

+ 2
- 2
src/util/share.js Прегледај датотеку

@@ -1,7 +1,7 @@
1 1
 import Ajax from './ajax'
2 2
 import api from './api'
3 3
 import wx from 'weixin-jsapi'
4
-import store from '../store'
4
+// import store from '../store'
5 5
 
6 6
 function wxsdk (params, config) {
7 7
   // const wx = require('weixin-js-sdk')
@@ -41,7 +41,7 @@ function wxsdk (params, config) {
41 41
       })
42 42
       wx.ready(function () {
43 43
         shareData.success = () => {
44
-          store.dispatch('user/putShare')
44
+          // store.dispatch('user/putShare')
45 45
         }
46 46
         wx.onMenuShareTimeline(shareData)
47 47
         wx.onMenuShareAppMessage(shareData)