mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-11-20 17:36:53 +08:00
修改
1.修改购物车数量超出或者乱输入的问题 2.修改领取优惠券报错问题 3.修改订单页面订单列表数据错乱问题 4.修复真机手机模式的购买页面样式对齐和二维码对齐 5.修改支付二维码接口错误问题 6.修复苹果端立即购买按钮没反应问题
This commit is contained in:
@@ -255,7 +255,7 @@ import tabs from '@/components/tabs.vue';
|
||||
import FixRight from '~/components/fixed-right.vue';
|
||||
import unlogin from '~/components/unlogin.vue';
|
||||
import Myfooter from '~/components/rc-footer.vue';
|
||||
import { mapMutations,mapState } from 'vuex';
|
||||
import { mapMutations, mapState } from 'vuex';
|
||||
import util from '@/ajax/util';
|
||||
const settings = require('@/config');
|
||||
import { goodsmessage, getConfig, postCourseId, getdraw, alldiscount, oncequery, biaomessage, productQuery } from '../../ajax/getData';
|
||||
@@ -359,22 +359,22 @@ export default {
|
||||
|
||||
productAttachmentList: [],
|
||||
usernewlist: [
|
||||
{
|
||||
price: '30',
|
||||
pricestype: '新客优惠券',
|
||||
special: '全场每满299-30',
|
||||
period: '有效期',
|
||||
starttime: '2021.11.29-2022.01.28',
|
||||
catimage: require('../../assets/image/unused.png')
|
||||
},
|
||||
{
|
||||
price: '30',
|
||||
pricestype: '新客优惠券',
|
||||
special: '全场每满299-30',
|
||||
period: '有效期',
|
||||
starttime: '2021.11.29-2022.01.28',
|
||||
catimage: require('../../assets/image/unused.png')
|
||||
}
|
||||
// {
|
||||
// price: '30',
|
||||
// pricestype: '新客优惠券',
|
||||
// special: '全场每满299-30',
|
||||
// period: '有效期',
|
||||
// starttime: '2021.11.29-2022.01.28',
|
||||
// catimage: require('../../assets/image/unused.png')
|
||||
// },
|
||||
// {
|
||||
// price: '30',
|
||||
// pricestype: '新客优惠券',
|
||||
// special: '全场每满299-30',
|
||||
// period: '有效期',
|
||||
// starttime: '2021.11.29-2022.01.28',
|
||||
// catimage: require('../../assets/image/unused.png')
|
||||
// }
|
||||
],
|
||||
|
||||
newlist: [
|
||||
@@ -475,8 +475,20 @@ export default {
|
||||
}
|
||||
]);
|
||||
|
||||
var u = navigator.userAgent,
|
||||
app = navigator.appVersion;
|
||||
var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Linux') > -1; //g
|
||||
var isIOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
|
||||
|
||||
setTimeout(function() {
|
||||
window.open(_self.curItem.curGoodUrl, '_blank');
|
||||
if (isAndroid) {
|
||||
console.log('安卓手机');
|
||||
window.open(_self.curItem.curGoodUrl, '_blank');
|
||||
}
|
||||
if (isIOS) {
|
||||
location.href = _self.curItem.curGoodUrl
|
||||
}
|
||||
|
||||
}, 1000);
|
||||
},
|
||||
//获取用户领取的优惠券
|
||||
@@ -543,11 +555,13 @@ export default {
|
||||
let paramsToAPI = {
|
||||
productCode: this.curItem.productCode
|
||||
};
|
||||
if (storeCode) paramsToAPI.stroeCode = stroeCode;
|
||||
if (storeCode) {
|
||||
paramsToAPI.storeCode = storeCode;
|
||||
}
|
||||
let data = await alldiscount(paramsToAPI);
|
||||
let userlist = [];
|
||||
let menulsit = [];
|
||||
if (data) {
|
||||
if (data.data) {
|
||||
this.alldraw = data;
|
||||
// console.log(this.alldraw.data);
|
||||
let alllist = [];
|
||||
@@ -728,8 +742,8 @@ export default {
|
||||
path: '/personal/settlement',
|
||||
query: {
|
||||
list: JSON.stringify(list),
|
||||
type : 'product',
|
||||
pathQuery : JSON.stringify(this.$route.query),
|
||||
type: 'product',
|
||||
pathQuery: JSON.stringify(this.$route.query)
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -755,16 +769,15 @@ export default {
|
||||
this.crumbs.push({ title: item.productName });
|
||||
}
|
||||
},
|
||||
computed:{
|
||||
computed: {
|
||||
...mapState({
|
||||
userInfo : state => state.user.userInfo,
|
||||
userInfo: state => state.user.userInfo
|
||||
})
|
||||
}
|
||||
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
@import url("../../assets/css/global.less");
|
||||
@import url('../../assets/css/global.less');
|
||||
@import url('../../assets/css/producted.less');
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user