b558fe29 by joe

1

1 parent 7a3ca91c
......@@ -6,6 +6,14 @@ 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";
// if (location.href.indexOf("//k.wxpai.cn") > 0) {
// base = "https://api.k.wxpai.cn/bizproxy"
// wxOauthUrl = "";
......

30.4 KB | W: | H:

32.4 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

74.4 KB | W: | H:

75.1 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
......@@ -19,11 +19,27 @@
</div>
</div>
<div class="model" v-if="data.index == 'subcribe'">
<div class="model" v-if="data.index == 'submit'">
<div class="model-close" @click="modelCloseHandler"></div>
<div class="model-content">
<div class="model-head-line"></div>
<div class="model-title">报名已成功</div>
<div class="successModel">
<div class="model-data">
获得一次抽奖机会<br>每人每天投票一次
</div>
<div class="sys-btn-02" @click="modelBtnClickHandler">前往抽奖</div>
<div class="model-bottom-line"></div>
</div>
</div>
</div>
<div class="model" v-if="data.index == 'subcribe-02'">
<div class="model-close" @click="modelCloseHandler"></div>
<div class="model-content">
<div class="model-head-line"></div>
<div class="model-title">微信提示</div>
<div class="model-title">温馨提示</div>
<div class="successModel">
<div class="model-data">
......@@ -39,6 +55,26 @@
</div>
</div>
<div class="model" v-if="data.index == 'subcribe'">
<div class="model-close" @click="modelCloseHandler"></div>
<div class="model-content">
<div class="model-head-line"></div>
<div class="model-title">温馨提示</div>
<div class="successModel">
<div class="model-data">
为防刷票
<br />请扫码关注后获得投票链接哦
</div>
<div class="qrcode">
<img src="../../assets/imgs/walfare-qrcode.png" />
</div>
<div class="model-bottom-line"></div>
</div>
</div>
</div>
<!-- 规则-->
<div class="model rule-model" v-if="data.index == 'rule'">
<div class="model-close" @click="modelCloseHandler"></div>
......@@ -410,6 +446,7 @@ export default {
margin: 50px auto 70px auto;
width: 400px;
text-align: center;
line-height: 50px;
}
.sys-btn-02 {
......@@ -494,7 +531,7 @@ export default {
}
}
.bottom-line{
.bottom-line {
height: 30px;
}
</style>
......
......@@ -57,7 +57,7 @@
<div class="prize-name">{{data.drawResult.prizeName}}</div>
<div class="form-contaner">
<div class="form-item">
<div class="form-label">收件</div>
<div class="form-label">收件姓名</div>
<div class="form-input">
<input v-model="submitForm.contactName" placeholder="请填写真实姓名" />
</div>
......
......@@ -49,7 +49,7 @@ export default {
show: false,
title: "",
content: "",
index: "subcribe",
index: "subcribe-02",
btnShow: false,
btnText: "",
confirmHandler: null,
......
......@@ -37,7 +37,7 @@ export default {
show: false,
title: "",
content: "",
index: "subcribe",
index: "subcribe-02",
btnShow: false,
btnText: "",
confirmHandler: null,
......
......@@ -225,16 +225,18 @@ export default {
.worksItem {
margin: 0 auto 30px auto;
width: 298px;
width: 296px;
height: 215px;
border: solid 1px #d1d0d0;
border: solid 2px #d1d0d0;
box-shadow: 0 0 2px #d1d0d0;
border-radius: 20px;
overflow: hidden;
text-align: center;
.worksThumb {
width: 300px;
width: 298px;
height: 168px;
margin: auto;
background-size: cover;
}
.worksDescription {
......@@ -290,4 +292,8 @@ export default {
.bottom-line {
height: 200px;
}
.van-cell:not(:last-child)::after {
border: none !important;
}
</style>
......
......@@ -63,6 +63,8 @@
<div class="btn-tips">*每用户每天仅能投票一次</div>
<div class="bottom-line"></div>
<biz-model v-model="model"></biz-model>
</div>
</template>
......@@ -309,4 +311,8 @@ export default {
top: 30px;
z-index: 100;
}
.bottom-line {
height: 100px;
}
</style>
......
......@@ -8,7 +8,7 @@
<div class="self-container">
<div class="leap"></div>
<div class="self-content">
<div class="self-content" @click="praiseHandler">
<div class="swipe">
<van-swipe :autoplay="5000">
<van-swipe-item v-for="(item, index) in formData.worksList" :key="index">
......@@ -40,7 +40,7 @@
<div class="msg">{{indexForm.rank}}</div>
</div>
<div class="text-container inline top" @click="praiseHandler">
<div class="text-container inline top" >
<div class="no-praise" :class="{praise : indexForm.isPraiseToday == '1'}"></div>
<div class="msg primay">{{indexForm.isPraiseToday == '1' ? '今日已投' : '今日未投'}}</div>
</div>
......@@ -97,6 +97,7 @@ export default {
initActvity() {
httpGet({ url: urls.index, data: {} }).then(res => {
this.indexForm = res;
this.init = true;
// this.indexForm.worksCode = "";
});
},
......@@ -104,31 +105,32 @@ export default {
if (!this.init) {
return;
}
if (this.indexForm.isPraiseToday == 1) {
return;
}
let data = {
worksCode:
(typeof code).toLowerCase() == "string"
? code
: this.indexForm.worksCode
};
Toast.loading({
mask: true,
message: "数据提交..."
});
request
.post(urls.praise, data)
.then(res => {
Toast.clear();
this.indexForm.isPraiseToday = 1;
this.emitPraiseSuccess();
})
.catch(res => {
let msg = res.data.errMsg;
Toast(msg);
});
// if (this.indexForm.isPraiseToday == 1) {
// return;
// }
this.showWorksDetail({ worksCode: this.indexForm.worksCode });
// let data = {
// worksCode:
// (typeof code).toLowerCase() == "string"
// ? code
// : this.indexForm.worksCode
// };
// Toast.loading({
// mask: true,
// message: "数据提交..."
// });
// request
// .post(urls.praise, data)
// .then(res => {
// Toast.clear();
// this.indexForm.isPraiseToday = 1;
// this.emitPraiseSuccess();
// })
// .catch(res => {
// let msg = res.data.errMsg;
// Toast(msg);
// });
},
emitPraiseSuccess() {
this.$emit("praiseSuccess");
......@@ -137,6 +139,7 @@ export default {
this.$emit("showRule");
},
showWorksDetail(params) {
// console.log("showWorksDetail(params) : ", params)
this.$emit("worksDetail", params);
}
},
......
......@@ -161,7 +161,7 @@ export default {
},
praiseSuccessHandler() {
this.model.show = true;
this.model.title = "点赞成功";
this.model.title = "投票成功";
this.model.content = "您已获得一次抽奖机会";
this.model.btnShow = true;
this.model.btnText = "前往抽奖";
......
......@@ -95,6 +95,10 @@ export default {
});
httpGet({ url: urls.myWork }).then(res => {
// this.model.index = "submit";
// this.model.show = true;
this.init = true;
Toast.clear();
this.formData = res.data || {};
......@@ -108,17 +112,8 @@ export default {
},
submitSuccessHandler(data) {
if (data.isFirst) {
this.model.title = "温馨提示";
this.model.content = "报名已成功!获得1次抽奖机会";
this.model.index = "default";
this.model.index = "submit";
this.model.btnShow = true;
this.model.btnText = "前往抽奖";
this.model.show = true;
let that = this;
this.model.confirmHandler = function() {
that.$router.push("/draw");
};
} else {
this.model.title = "温馨提示";
this.model.content = "作品信息修改成功!";
......@@ -135,7 +130,7 @@ export default {
},
showPraiseSuccessModel() {
this.model.show = true;
this.model.title = "点赞成功";
this.model.title = "投票成功";
this.model.content = "您已获得一次抽奖机会";
this.model.index = "default";
this.model.btnShow = true;
......
......@@ -4,7 +4,7 @@
<div class="qy">
<div class="qrcode">
<img src="../../assets/imgs/walfare-qrcode.png" />
<img src="../../assets/imgs/walfare-qrcode-02.png" />
</div>
</div>
<div class="cj">
......@@ -64,7 +64,7 @@ export default {
position: absolute;
width: 171px;
height: 171px;
left: 270px;
left: 269px;
bottom: 140px;
img {
width: 100%;
......