|
|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <div class="mobile-fix-content mobile-centerfix-content mobile-cart" :class="{'empty-mobile-cart': !cartList.length}" id="mobileFixContent">
|
|
|
+ <div class="mobile-cart" :class="{'empty-mobile-cart': !cartList.length}" id="mobileFixContent" @touchmove="blurEvent()">
|
|
|
<template v-if="cartList.length">
|
|
|
<ul class="store-list">
|
|
|
<li class="store-item" v-for="(item, storeIndex) in cartList">
|
|
|
@@ -176,7 +176,9 @@
|
|
|
blurEvent (type, obj) {
|
|
|
this.$refs.buyWrap.hidden = false
|
|
|
this.$store.commit('option/SET_SHOW_MOBILE_FOOTER', true)
|
|
|
- this.setGoods(type, obj)
|
|
|
+ if (type && obj) {
|
|
|
+ this.setGoods(type, obj)
|
|
|
+ }
|
|
|
},
|
|
|
// 获得焦点事件
|
|
|
focusEvent () {
|
|
|
@@ -360,7 +362,8 @@
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|
|
|
.mobile-cart {
|
|
|
- bottom: 3.02rem;
|
|
|
+ margin-bottom: 3rem;
|
|
|
+ padding-top:1.26rem;
|
|
|
&.empty-mobile-cart {
|
|
|
bottom: .98rem;
|
|
|
}
|