mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-11-16 23:53:48 +08:00
Banner update
This commit is contained in:
@@ -36,15 +36,15 @@
|
||||
</a>
|
||||
</swiper-slide>
|
||||
|
||||
<!-- <swiper-slide>
|
||||
<a href="/" target="_blank">
|
||||
<picture>
|
||||
<source media="(max-width: 768px)" srcset="/images/banner/four.jpg">
|
||||
<source media="(min-width: 769px)" srcset="/images/banner/pc-banner4.png">
|
||||
<img src="/images/banner/four.jpg">
|
||||
</picture>
|
||||
</a>
|
||||
</swiper-slide> -->
|
||||
<swiper-slide>
|
||||
<a href="#">
|
||||
<picture>
|
||||
<source media="(max-width: 768px)" srcset="/images/banner/38.jpg">
|
||||
<source media="(min-width: 769px)" srcset="/images/banner/pc-38.png">
|
||||
<img src="/images/banner/four.jpg">
|
||||
</picture>
|
||||
</a>
|
||||
</swiper-slide>
|
||||
</swiper>
|
||||
<div
|
||||
id="homeBannerSwiperPagnation"
|
||||
|
||||
@@ -424,7 +424,7 @@ export default {
|
||||
if(myCoupon.udf2!='H5') {
|
||||
dateChecked=false;
|
||||
}
|
||||
|
||||
//TODO add more checking
|
||||
if(dateChecked && myCoupon.activityId != 10 && myCoupon.status == 0 && (!myCoupon.productCodes || myCoupon.productCodes.indexOf(itemInCart.productCode)>-1)) {
|
||||
data.data.splice(tmpIndex,1);
|
||||
_self.drawlist.push(myCoupon);
|
||||
@@ -635,21 +635,25 @@ export default {
|
||||
this.goldmedal = JSON.parse(this.$route.query.list);
|
||||
this.getAddressList();
|
||||
this.checkIsLogin();
|
||||
let user = this.$store.state.userInfo;
|
||||
let memberId = '';
|
||||
if(user)
|
||||
memberId = user.data.id;
|
||||
this.finalAmount = this.sumPrice;
|
||||
this.goldmedal.forEach((item) => {
|
||||
_hmt.push([
|
||||
"_trackCustomEvent",
|
||||
"placing_order",
|
||||
{
|
||||
//TODO order id add here
|
||||
"product_id":item.productCode,
|
||||
"member_id": memberId,
|
||||
"product_id": item.productCode,
|
||||
"product_name": item.productName,
|
||||
"product_quantity" : item.buyCount,
|
||||
"product_amount" : item.buyCount*item.productPrice,
|
||||
}
|
||||
])
|
||||
});
|
||||
let user = this.$store.state.userInfo;
|
||||
|
||||
if(user) {
|
||||
this.userdraw(user.data.mobile);
|
||||
}
|
||||
|
||||
@@ -107,7 +107,7 @@
|
||||
import Myheader from "~/components/header.vue";
|
||||
import tabs from "@/components/tabs.vue";
|
||||
import vueQr from 'vue-qr'
|
||||
|
||||
import { mapMutations } from "vuex";
|
||||
|
||||
import { generateOrderAlipay, updateOrderWX, monitorOrderNotify,repayOrde } from "../../ajax/getData";
|
||||
import util from "@/ajax/util";
|
||||
@@ -158,6 +158,7 @@ export default {
|
||||
this.defaultHandlePayment();
|
||||
},
|
||||
methods: {
|
||||
...mapMutations(["checkIsLogin"]),
|
||||
detectQrcodeDisplay(){
|
||||
let payType = this.util.pickPaytype();
|
||||
switch(payType) {
|
||||
@@ -192,10 +193,16 @@ export default {
|
||||
//TODO raise WX jsapi pay
|
||||
break;
|
||||
}
|
||||
this.checkIsLogin();
|
||||
let user = this.$store.state.userInfo;
|
||||
let memberId = '';
|
||||
if(user)
|
||||
memberId = user.data.id;
|
||||
_hmt.push([
|
||||
"_trackCustomEvent",
|
||||
"payment",
|
||||
{
|
||||
"member_id": memberId,
|
||||
"payType" : payType,
|
||||
"product_amount" : this.userPayData.userprice,
|
||||
}
|
||||
@@ -268,10 +275,15 @@ export default {
|
||||
if (res.success) {
|
||||
this.qrtext = '成功加入群的二维码';
|
||||
this.dialogSuccess = true;
|
||||
let user = this.$store.state.userInfo;
|
||||
let memberId = '';
|
||||
if(user)
|
||||
memberId = user.data.id;
|
||||
_hmt.push([
|
||||
"_trackCustomEvent",
|
||||
"payment_finished",
|
||||
{
|
||||
"member_id" : memberId,
|
||||
"payType" : 'native',
|
||||
"product_amount" : this.userPayData.userprice,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user