c53c5327 by joe

1

1 parent b558fe29
1 1
2 let global_wx_appid = "wx9fc8816188c0ef2a"; 2
3 let global_view_coupon_url = "https://clubwxuat.hm.liby.com.cn/integral/weixin_integral.htm?appId=wx9fc8816188c0ef2a";
4 let global_view_integral_url = "https://clubwxuat.hm.liby.com.cn/integral/weixin_integral.htm?appId=wx9fc8816188c0ef2a";
5 let global_wx_oauth_url = "http://clubwxuat.hm.liby.com.cn/api/getOpenId.htm";
6 let golbal_api_proxy = "https://ow.go.qudone.com";
7 3
8 4
9 // 生产 5 // 生产
10 // let global_wx_appid = "wxa9f5d2a32cc7494a"; 6 let global_wx_appid = "wx26be12d215d3d8cb";
11 // let global_view_coupon_url = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx26be12d215d3d8cb&redirect_uri=https://clubwx.hm.liby.com.cn/url/MRFZZf.htm&response_type=code&scope=snsapi_userinfo&state=1&component_appid=wxa9f5d2a32cc7494a#wechat_redirect"; 7 let global_view_coupon_url = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx26be12d215d3d8cb&redirect_uri=https://clubwx.hm.liby.com.cn/url/MRFZZf.htm&response_type=code&scope=snsapi_userinfo&state=1&component_appid=wxa9f5d2a32cc7494a#wechat_redirect";
12 // let global_view_integral_url = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx26be12d215d3d8cb&redirect_uri=https://clubwx.hm.liby.com.cn/url/MRFZZf.htm&response_type=code&scope=snsapi_userinfo&state=1&component_appid=wxa9f5d2a32cc7494a#wechat_redirect"; 8 let global_view_integral_url = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx26be12d215d3d8cb&redirect_uri=https://clubwx.hm.liby.com.cn/url/MRFZZf.htm&response_type=code&scope=snsapi_userinfo&state=1&component_appid=wxa9f5d2a32cc7494a#wechat_redirect";
13 // let global_wx_oauth_url = "http://clubwxuat.hm.liby.com.cn/api/getOpenId.htm"; 9 let global_wx_oauth_url = "https://clubwx.hm.liby.com.cn/api/getOpenId.htm";
14 // let golbal_api_proxy = "https://api.k.wxpai.cn/bizproxy"; 10 let golbal_api_proxy = "https://api.k.wxpai.cn/bizproxy";
11 let golbal_member_card_url = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx26be12d215d3d8cb&redirect_uri=https://clubwx.hm.liby.com.cn/me/actionMemberCardHtml.htm?codeStr=26&response_type=code&scope=snsapi_userinfo&state=1&component_appid=wxa9f5d2a32cc7494a#wechat_redirect";
12
13
14 if (location.href.indexOf("h5.demo.k.wxpai.cn") > 0) {
15 global_wx_appid = "wx9fc8816188c0ef2a";
16 global_view_coupon_url = "https://clubwxuat.hm.liby.com.cn/integral/weixin_integral.htm?appId=wx9fc8816188c0ef2a";
17 global_view_integral_url = "https://clubwxuat.hm.liby.com.cn/integral/weixin_integral.htm?appId=wx9fc8816188c0ef2a";
18 global_wx_oauth_url = "http://clubwxuat.hm.liby.com.cn/api/getOpenId.htm";
19 golbal_api_proxy = "https://ow.go.qudone.com";
20 }
21
22
23 // global_wx_appid = "wx9fc8816188c0ef2a";
24 // global_view_coupon_url = "https://clubwxuat.hm.liby.com.cn/integral/weixin_integral.htm?appId=wx9fc8816188c0ef2a";
25 // global_view_integral_url = "https://clubwxuat.hm.liby.com.cn/integral/weixin_integral.htm?appId=wx9fc8816188c0ef2a";
26 // global_wx_oauth_url = "http://clubwxuat.hm.liby.com.cn/api/getOpenId.htm";
27 // golbal_api_proxy = "https://ow.go.qudone.com";
15 28
16 29
17 // if (location.href.indexOf("//k.wxpai.cn") > 0) { 30 // if (location.href.indexOf("//k.wxpai.cn") > 0) {
......

32.4 KB | W: | H:

31.4 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

9.13 KB | W: | H:

6.94 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

59.2 KB | W: | H:

68.8 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

75.1 KB | W: | H:

80.1 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
43 43
44 <div class="successModel"> 44 <div class="successModel">
45 <div class="model-data"> 45 <div class="model-data">
46 扫码关注 46 长按识别关注
47 <br />及时了解最新赛况及结果哦! 47 <br />及时了解最新赛况及结果哦!
48 </div> 48 </div>
49 <div class="qrcode"> 49 <div class="qrcode">
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
64 <div class="successModel"> 64 <div class="successModel">
65 <div class="model-data"> 65 <div class="model-data">
66 为防刷票 66 为防刷票
67 <br />扫码关注后获得投票链接哦 67 <br />长按识别关注后获得投票链接哦
68 </div> 68 </div>
69 <div class="qrcode"> 69 <div class="qrcode">
70 <img src="../../assets/imgs/walfare-qrcode.png" /> 70 <img src="../../assets/imgs/walfare-qrcode.png" />
......
...@@ -17,10 +17,10 @@ ...@@ -17,10 +17,10 @@
17 ></div> 17 ></div>
18 18
19 <div class="prize-name">{{data.drawResult.prizeName}}</div> 19 <div class="prize-name">{{data.drawResult.prizeName}}</div>
20 <div 20 <!-- <div
21 v-if="data.drawResult.prizeType == 'coupon'" 21 v-if="data.drawResult.prizeType == 'coupon'"
22 class="prize-sn" 22 class="prize-sn"
23 >{{data.drawResult.prizeSn}}</div> 23 >{{data.drawResult.prizeSn}}</div> -->
24 <div class="tip-container"> 24 <div class="tip-container">
25 <span class="use-tip">奖品说明</span> 25 <span class="use-tip">奖品说明</span>
26 </div> 26 </div>
...@@ -147,7 +147,8 @@ export default { ...@@ -147,7 +147,8 @@ export default {
147 location.href = global_view_integral_url; 147 location.href = global_view_integral_url;
148 }, 148 },
149 toViewCouponHandler() { 149 toViewCouponHandler() {
150 location.href = global_view_coupon_url; 150 // location.href = global_view_coupon_url;
151 location.href = this.data.drawResult.prizeRemark;
151 }, 152 },
152 submitContactHandler() { 153 submitContactHandler() {
153 if (!this.submitForm.contactName) { 154 if (!this.submitForm.contactName) {
......
...@@ -114,13 +114,16 @@ export default { ...@@ -114,13 +114,16 @@ export default {
114 }; 114 };
115 }, 115 },
116 methods: { 116 methods: {
117 initActivity() { 117 initActivity(showToast) {
118 httpGet({ url: urls.remainTime, data: null }).then(res => { 118 httpGet({ url: urls.remainTime, data: null }).then(res => {
119 this.init = true; 119 this.init = true;
120 let remainDrawTime = res.times; 120 let remainDrawTime = res.times;
121 remainDrawTime = !remainDrawTime ? 0 : remainDrawTime; 121 remainDrawTime = !remainDrawTime ? 0 : remainDrawTime;
122 this.remainDrawTime = remainDrawTime; 122 this.remainDrawTime = remainDrawTime;
123 this.rotate.target = ""; 123 this.rotate.target = "";
124 if (showToast && this.remainDrawTime == 0) {
125 Toast("明天投票可以继续抽奖");
126 }
124 }); 127 });
125 }, 128 },
126 drawHandler(ref) { 129 drawHandler(ref) {
...@@ -133,6 +136,7 @@ export default { ...@@ -133,6 +136,7 @@ export default {
133 message: "加载中..." 136 message: "加载中..."
134 }); 137 });
135 httpGet({ url: urls.draw, data: null }).then(res => { 138 httpGet({ url: urls.draw, data: null }).then(res => {
139 console.log(res);
136 Toast.clear(); 140 Toast.clear();
137 let that = this; 141 let that = this;
138 setTimeout(function() { 142 setTimeout(function() {
...@@ -149,14 +153,14 @@ export default { ...@@ -149,14 +153,14 @@ export default {
149 this.model.confirmHandler = function() { 153 this.model.confirmHandler = function() {
150 that.init = false; 154 that.init = false;
151 setTimeout(function() { 155 setTimeout(function() {
152 that.initActivity(); 156 that.initActivity(true);
153 }, 500); 157 }, 500);
154 }; 158 };
155 }, 159 },
156 backHandler(){ 160 backHandler() {
157 window.history.go(-1); 161 window.history.go(-1);
158 }, 162 },
159 prizeListHandler(){ 163 prizeListHandler() {
160 this.$router.push("/prize"); 164 this.$router.push("/prize");
161 } 165 }
162 }, 166 },
...@@ -348,7 +352,7 @@ export default { ...@@ -348,7 +352,7 @@ export default {
348 top: 30px; 352 top: 30px;
349 z-index: 100; 353 z-index: 100;
350 } 354 }
351 .btn-prize-list{ 355 .btn-prize-list {
352 width: 166px; 356 width: 166px;
353 height: 52px; 357 height: 52px;
354 background: url(../../assets/imgs/draw-btn-prizelist.png) no-repeat; 358 background: url(../../assets/imgs/draw-btn-prizelist.png) no-repeat;
......
...@@ -6,9 +6,9 @@ ...@@ -6,9 +6,9 @@
6 <div class="container-title">人气评选</div> 6 <div class="container-title">人气评选</div>
7 <div class="head-line"></div> 7 <div class="head-line"></div>
8 8
9 <div class="self-container"> 9 <div class="self-container" @click="praiseHandler">
10 <div class="leap"></div> 10 <div class="leap"></div>
11 <div class="self-content" @click="praiseHandler"> 11 <div class="self-content" >
12 <div class="swipe"> 12 <div class="swipe">
13 <van-swipe :autoplay="5000"> 13 <van-swipe :autoplay="5000">
14 <van-swipe-item v-for="(item, index) in formData.worksList" :key="index"> 14 <van-swipe-item v-for="(item, index) in formData.worksList" :key="index">
...@@ -186,6 +186,7 @@ export default { ...@@ -186,6 +186,7 @@ export default {
186 background-color: #71c634; 186 background-color: #71c634;
187 margin: 0px auto 0 auto; 187 margin: 0px auto 0 auto;
188 position: relative; 188 position: relative;
189 z-index: 100;
189 padding-top: 5px; 190 padding-top: 5px;
190 191
191 .self-content { 192 .self-content {
...@@ -221,7 +222,7 @@ export default { ...@@ -221,7 +222,7 @@ export default {
221 // width: 235px; 222 // width: 235px;
222 width: 293px; 223 width: 293px;
223 height: 196px; 224 height: 196px;
224 background-size: cover; 225 background-size: 293px 196px;
225 } 226 }
226 227
227 video { 228 video {
......
...@@ -213,9 +213,10 @@ export default { ...@@ -213,9 +213,10 @@ export default {
213 .then(res => { 213 .then(res => {
214 this.loading = false; 214 this.loading = false;
215 Toast.clear(); 215 Toast.clear();
216 let isFirst = !this.formData.worksCode ? true : false;
216 let data = { 217 let data = {
217 isFirst : !this.formData.worksCode ? 1 : 0, 218 isFirst: isFirst,
218 worksCode : res 219 worksCode: res
219 }; 220 };
220 this.formData.worksCode = res; 221 this.formData.worksCode = res;
221 this.$emit("submit", data); 222 this.$emit("submit", data);
...@@ -379,7 +380,7 @@ export default { ...@@ -379,7 +380,7 @@ export default {
379 background-size: 100%; 380 background-size: 100%;
380 } 381 }
381 382
382 .base-margin-top{ 383 .base-margin-top {
383 margin-top: 40px; 384 margin-top: 40px;
384 } 385 }
385 386
......
...@@ -95,7 +95,6 @@ export default { ...@@ -95,7 +95,6 @@ export default {
95 }); 95 });
96 96
97 httpGet({ url: urls.myWork }).then(res => { 97 httpGet({ url: urls.myWork }).then(res => {
98
99 // this.model.index = "submit"; 98 // this.model.index = "submit";
100 // this.model.show = true; 99 // this.model.show = true;
101 100
...@@ -111,9 +110,15 @@ export default { ...@@ -111,9 +110,15 @@ export default {
111 }); 110 });
112 }, 111 },
113 submitSuccessHandler(data) { 112 submitSuccessHandler(data) {
113 console.log("submitSuccessHandler", data);
114 if (data.isFirst) { 114 if (data.isFirst) {
115 this.model.index = "submit"; 115 this.model.index = "submit";
116 this.model.btnShow = true; 116 this.model.btnShow = true;
117 this.model.show = true;
118 let that = this;
119 this.model.confirmHandler = function() {
120 that.$router.push("/draw");
121 };
117 } else { 122 } else {
118 this.model.title = "温馨提示"; 123 this.model.title = "温馨提示";
119 this.model.content = "作品信息修改成功!"; 124 this.model.content = "作品信息修改成功!";
......
...@@ -3,9 +3,10 @@ ...@@ -3,9 +3,10 @@
3 <div class="header"></div> 3 <div class="header"></div>
4 4
5 <div class="qy"> 5 <div class="qy">
6 <div class="qrcode"> 6 <div class="sys-btn-02 btn-register" @click="crmRegisterHandler">一键领取</div>
7 <!-- <div class="qrcode">
7 <img src="../../assets/imgs/walfare-qrcode-02.png" /> 8 <img src="../../assets/imgs/walfare-qrcode-02.png" />
8 </div> 9 </div>-->
9 </div> 10 </div>
10 <div class="cj"> 11 <div class="cj">
11 <div class="sys-btn-02 btn-position" @click="toDraw">马上抽奖</div> 12 <div class="sys-btn-02 btn-position" @click="toDraw">马上抽奖</div>
...@@ -29,6 +30,9 @@ export default { ...@@ -29,6 +30,9 @@ export default {
29 methods: { 30 methods: {
30 toDraw() { 31 toDraw() {
31 this.$router.push("/draw"); 32 this.$router.push("/draw");
33 },
34 crmRegisterHandler() {
35 location.href = golbal_member_card_url;
32 } 36 }
33 }, 37 },
34 components: { 38 components: {
...@@ -70,6 +74,12 @@ export default { ...@@ -70,6 +74,12 @@ export default {
70 width: 100%; 74 width: 100%;
71 } 75 }
72 } 76 }
77
78 .btn-register {
79 position: absolute;
80 bottom: 160px;
81 left: 183px;
82 }
73 } 83 }
74 84
75 .cj { 85 .cj {
......
...@@ -38,8 +38,8 @@ module.exports = { ...@@ -38,8 +38,8 @@ module.exports = {
38 38
39 // 它支持webPack-dev-server的所有选项 39 // 它支持webPack-dev-server的所有选项
40 devServer: { 40 devServer: {
41 // host: "192.168.0.101", 41 host: "192.168.0.101",
42 host: "localhost", 42 // host: "localhost",
43 port: 9001, // 端口号 43 port: 9001, // 端口号
44 https: false, // https:{type:Boolean} 44 https: false, // https:{type:Boolean}
45 open: true, //配置自动启动浏览器 45 open: true, //配置自动启动浏览器
......