mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-10-02 02:06:38 +08:00
Banner update
This commit is contained in:
parent
63e6b94656
commit
6c60d6296d
@ -425,10 +425,13 @@ export const dogquery = (productCode,type) => {
|
|||||||
|
|
||||||
//查询商品信息
|
//查询商品信息
|
||||||
export const productQuery = (productCode) => {
|
export const productQuery = (productCode) => {
|
||||||
var data = {
|
let url = 'product/query';
|
||||||
productCode:productCode
|
if(productCode) {
|
||||||
}
|
url += '?productCode='+encodeURI(productCode);
|
||||||
return fetch('product/query', data, 'POST' )
|
}
|
||||||
|
var data = {
|
||||||
|
}
|
||||||
|
return fetch(url, data, 'POST' )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -75,6 +75,21 @@ let util = {
|
|||||||
return mapping[paytype];
|
return mapping[paytype];
|
||||||
return '';
|
return '';
|
||||||
},
|
},
|
||||||
|
getAgeMapping(tagAgeStr){
|
||||||
|
let mapping = {
|
||||||
|
"1":'<4月龄,离乳期', //奶糕
|
||||||
|
"2":'4-12月龄,幼年',//幼年
|
||||||
|
"3":'1-7岁,成年',//成年
|
||||||
|
"4":'>7岁,老年',//老年
|
||||||
|
};
|
||||||
|
for(let id in mapping) {
|
||||||
|
let item = mapping[id];
|
||||||
|
if(item.indexOf(tagAgeStr)>-1) {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
},
|
||||||
/*
|
/*
|
||||||
couponDisplayFilter(couponList,filterObj,returnRequirement){
|
couponDisplayFilter(couponList,filterObj,returnRequirement){
|
||||||
//Dictionary : filterObj {}
|
//Dictionary : filterObj {}
|
||||||
|
@ -36,15 +36,15 @@
|
|||||||
</a>
|
</a>
|
||||||
</swiper-slide>
|
</swiper-slide>
|
||||||
|
|
||||||
<!-- <swiper-slide>
|
<swiper-slide>
|
||||||
<a href="/" target="_blank">
|
<a href="#">
|
||||||
<picture>
|
<picture>
|
||||||
<source media="(max-width: 768px)" srcset="/images/banner/four.jpg">
|
<source media="(max-width: 768px)" srcset="/images/banner/38.jpg">
|
||||||
<source media="(min-width: 769px)" srcset="/images/banner/pc-banner4.png">
|
<source media="(min-width: 769px)" srcset="/images/banner/pc-38.png">
|
||||||
<img src="/images/banner/four.jpg">
|
<img src="/images/banner/four.jpg">
|
||||||
</picture>
|
</picture>
|
||||||
</a>
|
</a>
|
||||||
</swiper-slide> -->
|
</swiper-slide>
|
||||||
</swiper>
|
</swiper>
|
||||||
<div
|
<div
|
||||||
id="homeBannerSwiperPagnation"
|
id="homeBannerSwiperPagnation"
|
||||||
|
@ -424,7 +424,7 @@ export default {
|
|||||||
if(myCoupon.udf2!='H5') {
|
if(myCoupon.udf2!='H5') {
|
||||||
dateChecked=false;
|
dateChecked=false;
|
||||||
}
|
}
|
||||||
|
//TODO add more checking
|
||||||
if(dateChecked && myCoupon.activityId != 10 && myCoupon.status == 0 && (!myCoupon.productCodes || myCoupon.productCodes.indexOf(itemInCart.productCode)>-1)) {
|
if(dateChecked && myCoupon.activityId != 10 && myCoupon.status == 0 && (!myCoupon.productCodes || myCoupon.productCodes.indexOf(itemInCart.productCode)>-1)) {
|
||||||
data.data.splice(tmpIndex,1);
|
data.data.splice(tmpIndex,1);
|
||||||
_self.drawlist.push(myCoupon);
|
_self.drawlist.push(myCoupon);
|
||||||
@ -635,21 +635,25 @@ export default {
|
|||||||
this.goldmedal = JSON.parse(this.$route.query.list);
|
this.goldmedal = JSON.parse(this.$route.query.list);
|
||||||
this.getAddressList();
|
this.getAddressList();
|
||||||
this.checkIsLogin();
|
this.checkIsLogin();
|
||||||
|
let user = this.$store.state.userInfo;
|
||||||
|
let memberId = '';
|
||||||
|
if(user)
|
||||||
|
memberId = user.data.id;
|
||||||
this.finalAmount = this.sumPrice;
|
this.finalAmount = this.sumPrice;
|
||||||
this.goldmedal.forEach((item) => {
|
this.goldmedal.forEach((item) => {
|
||||||
_hmt.push([
|
_hmt.push([
|
||||||
"_trackCustomEvent",
|
"_trackCustomEvent",
|
||||||
"placing_order",
|
"placing_order",
|
||||||
{
|
{
|
||||||
//TODO order id add here
|
"member_id": memberId,
|
||||||
"product_id":item.productCode,
|
"product_id": item.productCode,
|
||||||
"product_name": item.productName,
|
"product_name": item.productName,
|
||||||
"product_quantity" : item.buyCount,
|
"product_quantity" : item.buyCount,
|
||||||
"product_amount" : item.buyCount*item.productPrice,
|
"product_amount" : item.buyCount*item.productPrice,
|
||||||
}
|
}
|
||||||
])
|
])
|
||||||
});
|
});
|
||||||
let user = this.$store.state.userInfo;
|
|
||||||
if(user) {
|
if(user) {
|
||||||
this.userdraw(user.data.mobile);
|
this.userdraw(user.data.mobile);
|
||||||
}
|
}
|
||||||
|
@ -107,7 +107,7 @@
|
|||||||
import Myheader from "~/components/header.vue";
|
import Myheader from "~/components/header.vue";
|
||||||
import tabs from "@/components/tabs.vue";
|
import tabs from "@/components/tabs.vue";
|
||||||
import vueQr from 'vue-qr'
|
import vueQr from 'vue-qr'
|
||||||
|
import { mapMutations } from "vuex";
|
||||||
|
|
||||||
import { generateOrderAlipay, updateOrderWX, monitorOrderNotify,repayOrde } from "../../ajax/getData";
|
import { generateOrderAlipay, updateOrderWX, monitorOrderNotify,repayOrde } from "../../ajax/getData";
|
||||||
import util from "@/ajax/util";
|
import util from "@/ajax/util";
|
||||||
@ -158,6 +158,7 @@ export default {
|
|||||||
this.defaultHandlePayment();
|
this.defaultHandlePayment();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
...mapMutations(["checkIsLogin"]),
|
||||||
detectQrcodeDisplay(){
|
detectQrcodeDisplay(){
|
||||||
let payType = this.util.pickPaytype();
|
let payType = this.util.pickPaytype();
|
||||||
switch(payType) {
|
switch(payType) {
|
||||||
@ -192,10 +193,16 @@ export default {
|
|||||||
//TODO raise WX jsapi pay
|
//TODO raise WX jsapi pay
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
this.checkIsLogin();
|
||||||
|
let user = this.$store.state.userInfo;
|
||||||
|
let memberId = '';
|
||||||
|
if(user)
|
||||||
|
memberId = user.data.id;
|
||||||
_hmt.push([
|
_hmt.push([
|
||||||
"_trackCustomEvent",
|
"_trackCustomEvent",
|
||||||
"payment",
|
"payment",
|
||||||
{
|
{
|
||||||
|
"member_id": memberId,
|
||||||
"payType" : payType,
|
"payType" : payType,
|
||||||
"product_amount" : this.userPayData.userprice,
|
"product_amount" : this.userPayData.userprice,
|
||||||
}
|
}
|
||||||
@ -268,10 +275,15 @@ export default {
|
|||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.qrtext = '成功加入群的二维码';
|
this.qrtext = '成功加入群的二维码';
|
||||||
this.dialogSuccess = true;
|
this.dialogSuccess = true;
|
||||||
|
let user = this.$store.state.userInfo;
|
||||||
|
let memberId = '';
|
||||||
|
if(user)
|
||||||
|
memberId = user.data.id;
|
||||||
_hmt.push([
|
_hmt.push([
|
||||||
"_trackCustomEvent",
|
"_trackCustomEvent",
|
||||||
"payment_finished",
|
"payment_finished",
|
||||||
{
|
{
|
||||||
|
"member_id" : memberId,
|
||||||
"payType" : 'native',
|
"payType" : 'native',
|
||||||
"product_amount" : this.userPayData.userprice,
|
"product_amount" : this.userPayData.userprice,
|
||||||
}
|
}
|
||||||
|
BIN
rc-busness/static/images/banner/38.jpg
Normal file
BIN
rc-busness/static/images/banner/38.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 373 KiB |
BIN
rc-busness/static/images/banner/pc-38.png
Normal file
BIN
rc-busness/static/images/banner/pc-38.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 546 KiB |
Loading…
Reference in New Issue
Block a user