c53c5327 by joe

1

1 parent b558fe29
let global_wx_appid = "wx9fc8816188c0ef2a";
let global_view_coupon_url = "https://clubwxuat.hm.liby.com.cn/integral/weixin_integral.htm?appId=wx9fc8816188c0ef2a";
let global_view_integral_url = "https://clubwxuat.hm.liby.com.cn/integral/weixin_integral.htm?appId=wx9fc8816188c0ef2a";
let global_wx_oauth_url = "http://clubwxuat.hm.liby.com.cn/api/getOpenId.htm";
let golbal_api_proxy = "https://ow.go.qudone.com";
// 生产
// let global_wx_appid = "wxa9f5d2a32cc7494a";
// 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";
// 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";
// let global_wx_oauth_url = "http://clubwxuat.hm.liby.com.cn/api/getOpenId.htm";
// let golbal_api_proxy = "https://api.k.wxpai.cn/bizproxy";
let global_wx_appid = "wx26be12d215d3d8cb";
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";
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";
let global_wx_oauth_url = "https://clubwx.hm.liby.com.cn/api/getOpenId.htm";
let golbal_api_proxy = "https://api.k.wxpai.cn/bizproxy";
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";
if (location.href.indexOf("h5.demo.k.wxpai.cn") > 0) {
global_wx_appid = "wx9fc8816188c0ef2a";
global_view_coupon_url = "https://clubwxuat.hm.liby.com.cn/integral/weixin_integral.htm?appId=wx9fc8816188c0ef2a";
global_view_integral_url = "https://clubwxuat.hm.liby.com.cn/integral/weixin_integral.htm?appId=wx9fc8816188c0ef2a";
global_wx_oauth_url = "http://clubwxuat.hm.liby.com.cn/api/getOpenId.htm";
golbal_api_proxy = "https://ow.go.qudone.com";
}
// global_wx_appid = "wx9fc8816188c0ef2a";
// global_view_coupon_url = "https://clubwxuat.hm.liby.com.cn/integral/weixin_integral.htm?appId=wx9fc8816188c0ef2a";
// global_view_integral_url = "https://clubwxuat.hm.liby.com.cn/integral/weixin_integral.htm?appId=wx9fc8816188c0ef2a";
// global_wx_oauth_url = "http://clubwxuat.hm.liby.com.cn/api/getOpenId.htm";
// golbal_api_proxy = "https://ow.go.qudone.com";
// 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 @@
<div class="successModel">
<div class="model-data">
扫码关注
长按识别关注
<br />及时了解最新赛况及结果哦!
</div>
<div class="qrcode">
......@@ -64,7 +64,7 @@
<div class="successModel">
<div class="model-data">
为防刷票
<br />扫码关注后获得投票链接哦
<br />长按识别关注后获得投票链接哦
</div>
<div class="qrcode">
<img src="../../assets/imgs/walfare-qrcode.png" />
......
......@@ -17,10 +17,10 @@
></div>
<div class="prize-name">{{data.drawResult.prizeName}}</div>
<div
<!-- <div
v-if="data.drawResult.prizeType == 'coupon'"
class="prize-sn"
>{{data.drawResult.prizeSn}}</div>
>{{data.drawResult.prizeSn}}</div> -->
<div class="tip-container">
<span class="use-tip">奖品说明</span>
</div>
......@@ -147,7 +147,8 @@ export default {
location.href = global_view_integral_url;
},
toViewCouponHandler() {
location.href = global_view_coupon_url;
// location.href = global_view_coupon_url;
location.href = this.data.drawResult.prizeRemark;
},
submitContactHandler() {
if (!this.submitForm.contactName) {
......
......@@ -114,13 +114,16 @@ export default {
};
},
methods: {
initActivity() {
initActivity(showToast) {
httpGet({ url: urls.remainTime, data: null }).then(res => {
this.init = true;
let remainDrawTime = res.times;
remainDrawTime = !remainDrawTime ? 0 : remainDrawTime;
this.remainDrawTime = remainDrawTime;
this.rotate.target = "";
if (showToast && this.remainDrawTime == 0) {
Toast("明天投票可以继续抽奖");
}
});
},
drawHandler(ref) {
......@@ -133,6 +136,7 @@ export default {
message: "加载中..."
});
httpGet({ url: urls.draw, data: null }).then(res => {
console.log(res);
Toast.clear();
let that = this;
setTimeout(function() {
......@@ -149,14 +153,14 @@ export default {
this.model.confirmHandler = function() {
that.init = false;
setTimeout(function() {
that.initActivity();
that.initActivity(true);
}, 500);
};
},
backHandler(){
backHandler() {
window.history.go(-1);
},
prizeListHandler(){
prizeListHandler() {
this.$router.push("/prize");
}
},
......@@ -348,7 +352,7 @@ export default {
top: 30px;
z-index: 100;
}
.btn-prize-list{
.btn-prize-list {
width: 166px;
height: 52px;
background: url(../../assets/imgs/draw-btn-prizelist.png) no-repeat;
......
......@@ -6,9 +6,9 @@
<div class="container-title">人气评选</div>
<div class="head-line"></div>
<div class="self-container">
<div class="self-container" @click="praiseHandler">
<div class="leap"></div>
<div class="self-content" @click="praiseHandler">
<div class="self-content" >
<div class="swipe">
<van-swipe :autoplay="5000">
<van-swipe-item v-for="(item, index) in formData.worksList" :key="index">
......@@ -186,6 +186,7 @@ export default {
background-color: #71c634;
margin: 0px auto 0 auto;
position: relative;
z-index: 100;
padding-top: 5px;
.self-content {
......@@ -221,7 +222,7 @@ export default {
// width: 235px;
width: 293px;
height: 196px;
background-size: cover;
background-size: 293px 196px;
}
video {
......
......@@ -213,9 +213,10 @@ export default {
.then(res => {
this.loading = false;
Toast.clear();
let isFirst = !this.formData.worksCode ? true : false;
let data = {
isFirst : !this.formData.worksCode ? 1 : 0,
worksCode : res
isFirst: isFirst,
worksCode: res
};
this.formData.worksCode = res;
this.$emit("submit", data);
......@@ -379,7 +380,7 @@ export default {
background-size: 100%;
}
.base-margin-top{
.base-margin-top {
margin-top: 40px;
}
......
......@@ -95,7 +95,6 @@ export default {
});
httpGet({ url: urls.myWork }).then(res => {
// this.model.index = "submit";
// this.model.show = true;
......@@ -111,9 +110,15 @@ export default {
});
},
submitSuccessHandler(data) {
console.log("submitSuccessHandler", data);
if (data.isFirst) {
this.model.index = "submit";
this.model.btnShow = true;
this.model.show = true;
let that = this;
this.model.confirmHandler = function() {
that.$router.push("/draw");
};
} else {
this.model.title = "温馨提示";
this.model.content = "作品信息修改成功!";
......
......@@ -3,9 +3,10 @@
<div class="header"></div>
<div class="qy">
<div class="qrcode">
<div class="sys-btn-02 btn-register" @click="crmRegisterHandler">一键领取</div>
<!-- <div class="qrcode">
<img src="../../assets/imgs/walfare-qrcode-02.png" />
</div>
</div>-->
</div>
<div class="cj">
<div class="sys-btn-02 btn-position" @click="toDraw">马上抽奖</div>
......@@ -29,6 +30,9 @@ export default {
methods: {
toDraw() {
this.$router.push("/draw");
},
crmRegisterHandler() {
location.href = golbal_member_card_url;
}
},
components: {
......@@ -70,6 +74,12 @@ export default {
width: 100%;
}
}
.btn-register {
position: absolute;
bottom: 160px;
left: 183px;
}
}
.cj {
......
......@@ -38,8 +38,8 @@ module.exports = {
// 它支持webPack-dev-server的所有选项
devServer: {
// host: "192.168.0.101",
host: "localhost",
host: "192.168.0.101",
// host: "localhost",
port: 9001, // 端口号
https: false, // https:{type:Boolean}
open: true, //配置自动启动浏览器
......