|
|
@@ -10,49 +10,76 @@
|
|
|
<i :class="activeType=='shops'?'iconfont icon-dianpu':'iconfont icon-dianpu1'"></i><p>店铺</p>
|
|
|
</nuxt-link>
|
|
|
</span>-->
|
|
|
- <span class="seek" @click="goSayPrice">
|
|
|
+ <!--<span class="seek" @click="goSayPrice">
|
|
|
<a>
|
|
|
<img src="/images/mobile/@2x/applyPurchase/home/seek-footer.png" alt="">
|
|
|
<p>发布求购</p>
|
|
|
</a>
|
|
|
+ </span>-->
|
|
|
+ <span :class="{'active': activeType == 'userCenter'}">
|
|
|
+ <a @click="goWithLogin('/mobile/center?type=buyer')">
|
|
|
+ <img :src="`/images/mobile/@2x/home/userCenter${activeType === 'userCenter' ? '-active' : ''}.png`" alt="">
|
|
|
+ <p>买家中心</p>
|
|
|
+ </a>
|
|
|
+ </span>
|
|
|
+ <span :class="{'active': activeType == 'vendorCenter'}">
|
|
|
+ <a @click="goWithLogin('/mobile/center?type=saler')">
|
|
|
+ <img :src="`/images/mobile/@2x/home/vendorCenter${activeType === 'vendorCenter' ? '-active' : ''}.png`" alt="">
|
|
|
+ <p>卖家中心</p>
|
|
|
+ </a>
|
|
|
</span>
|
|
|
<span :class="activeType=='user'?'active':''">
|
|
|
- <a @click="goCollect">
|
|
|
+ <a @click="goWithLogin('/mobile/user?type=buyer')">
|
|
|
<i :class="activeType=='user'?'iconfont icon-icon':'iconfont icon-wo'"></i><p>我</p>
|
|
|
</a>
|
|
|
</span>
|
|
|
<a @click="toTop" v-show="!hideToTop"><i class="iconfont icon-arrow-up icon-xlg"></i></a>
|
|
|
<login-box @onLoginBoxClose="showLoginBox = false" v-if="showLoginBox"></login-box>
|
|
|
- <publish-seek :showSayPriceBox="showSayPriceBox" @cancelAction="showSayPriceBox = false" @reloadAction="onReload" @remindAction="onRemind"></publish-seek>
|
|
|
- <remind-box :title="remindText" :timeoutCount="timeoutCount"></remind-box>
|
|
|
+ <!--<publish-seek :showSayPriceBox="showSayPriceBox" @cancelAction="showSayPriceBox = false" @reloadAction="onReload" @remindAction="onRemind"></publish-seek>-->
|
|
|
+ <!--<remind-box :title="remindText" :timeoutCount="timeoutCount"></remind-box>-->
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
import { scrollTo } from '~utils/scroll'
|
|
|
- import {LoginBox, RemindBox} from '~components/mobile/common'
|
|
|
- import PublishSeek from './applyPurchase/PublishSeek.vue'
|
|
|
+ import {LoginBox} from '~components/mobile/common'
|
|
|
+// import PublishSeek from './applyPurchase/PublishSeek.vue'
|
|
|
export default{
|
|
|
name: 'MobileFooter',
|
|
|
data () {
|
|
|
return {
|
|
|
hideToTop: true,
|
|
|
- showLoginBox: false,
|
|
|
- showSayPriceBox: false,
|
|
|
- remindText: '',
|
|
|
- timeoutCount: 0
|
|
|
+ showLoginBox: false
|
|
|
+// showSayPriceBox: false,
|
|
|
+// remindText: '',
|
|
|
+// timeoutCount: 0
|
|
|
}
|
|
|
},
|
|
|
components: {
|
|
|
- LoginBox,
|
|
|
- PublishSeek,
|
|
|
- RemindBox
|
|
|
+ LoginBox
|
|
|
+// PublishSeek,
|
|
|
+// RemindBox
|
|
|
},
|
|
|
computed: {
|
|
|
InputGetFocus() {
|
|
|
return this.$store.state.mobile.InputGetFocus
|
|
|
},
|
|
|
activeType () {
|
|
|
- return this.$route.path === '/' ? 'home' : this.$route.path === '/mobile/shop' ? 'shops' : this.$route.path === '/mobile/user' ? 'user' : ''
|
|
|
+ let path = this.$route.path
|
|
|
+ if (path === '/') {
|
|
|
+ return 'home'
|
|
|
+ } else if (path === '/mobile/shop') {
|
|
|
+ return 'shops'
|
|
|
+ } else if (path === '/mobile/user') {
|
|
|
+ return 'user'
|
|
|
+ } else if (path === '/mobile/center') {
|
|
|
+ if (this.$route.query.type === 'saler') {
|
|
|
+ return 'vendorCenter'
|
|
|
+ } else {
|
|
|
+ return 'userCenter'
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ return 'home'
|
|
|
+ }
|
|
|
},
|
|
|
user () {
|
|
|
return this.$store.state.option.user
|
|
|
@@ -75,32 +102,32 @@
|
|
|
toTop () {
|
|
|
scrollTo('body', 300)
|
|
|
},
|
|
|
- goCollect: function () {
|
|
|
+ goWithLogin: function (url) {
|
|
|
if (this.user.logged) {
|
|
|
- this.$router.push('/mobile/user?type=buyer')
|
|
|
+ this.$router.push(url)
|
|
|
} else {
|
|
|
this.showLoginBox = true
|
|
|
}
|
|
|
},
|
|
|
- onReload: function () {
|
|
|
- const path = this.$route.path
|
|
|
- if (path === '/') {
|
|
|
- this.$store.dispatch('applyPurchase/loadMobileHomeList', {pageNumber: 1, pageSize: 5, enUU: this.user.data.enterprise ? this.user.data.enterprise.uu : null})
|
|
|
- } else if (path === '/mobile/applyPurchase/list') {
|
|
|
- this.$store.dispatch('applyPurchase/loadPurchaseManList', {pageNumber: 1, pageSize: 10, enUU: this.user.data.enterprise ? this.user.data.enterprise.uu : null})
|
|
|
- }
|
|
|
- },
|
|
|
+// onReload: function () {
|
|
|
+// const path = this.$route.path
|
|
|
+// if (path === '/') {
|
|
|
+// this.$store.dispatch('applyPurchase/loadMobileHomeList', {pageNumber: 1, pageSize: 5, enUU: this.user.data.enterprise ? this.user.data.enterprise.uu : null})
|
|
|
+// } else if (path === '/mobile/applyPurchase/list') {
|
|
|
+// this.$store.dispatch('applyPurchase/loadPurchaseManList', {pageNumber: 1, pageSize: 10, enUU: this.user.data.enterprise ? this.user.data.enterprise.uu : null})
|
|
|
+// }
|
|
|
+// },
|
|
|
goSayPrice: function () {
|
|
|
if (this.user.logged) {
|
|
|
this.showSayPriceBox = true
|
|
|
} else {
|
|
|
this.showLoginBox = true
|
|
|
}
|
|
|
- },
|
|
|
- onRemind: function (str) {
|
|
|
- this.remindText = str
|
|
|
- this.timeoutCount ++
|
|
|
}
|
|
|
+// onRemind: function (str) {
|
|
|
+// this.remindText = str
|
|
|
+// this.timeoutCount ++
|
|
|
+// }
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
|
@@ -120,7 +147,7 @@
|
|
|
}
|
|
|
.mobile-footer > span{
|
|
|
display: inline-block;
|
|
|
- width: 2rem;
|
|
|
+ width: 25%;
|
|
|
font-size:.32rem;
|
|
|
color:#b0b0b0;
|
|
|
padding-top:.1rem;
|
|
|
@@ -136,6 +163,9 @@
|
|
|
.mobile-footer > span a p{
|
|
|
font-size:.22rem;
|
|
|
}
|
|
|
+ .mobile-footer > span a img{
|
|
|
+ width: .46rem;
|
|
|
+ }
|
|
|
|
|
|
.mobile-footer > span.active a{
|
|
|
color:#3976f4;
|