Commit 7a9bf667 by 李伟康

commit 提交

1 parent 0fb17c6b
...@@ -139,7 +139,7 @@ export default { ...@@ -139,7 +139,7 @@ export default {
}, },
clearHistory () { clearHistory () {
// this.$store.dispatch("clearCustomerInfo"); // this.$store.dispatch("clearCustomerInfo");
// this.$store.dispatch("clearHistory"); this.$store.dispatch("clearHistory");
}, },
openStep () { openStep () {
this.$refs.home.finishRef.close(); this.$refs.home.finishRef.close();
......
...@@ -17,13 +17,29 @@ ...@@ -17,13 +17,29 @@
<view class="wrapper"> <view class="wrapper">
<view class="wrapper-content"> <view class="wrapper-content">
<view class="first-tab"> <view class="first-tab">
<view class="tab-item" v-for="(i, index) in firstNav" :key="index" @click="changeIndex(index, 'firstIndex')"> <view
<view class="sprite-icon" :class="[firstIndex == index ? `icon-${i.class} active` : '']" :style="{left: i.left}"></view> class="tab-item"
{{i.name}}</view> v-for="(i, index) in firstNav"
:key="index"
@click="changeIndex(index, 'firstIndex')"
>
<view
class="sprite-icon"
:class="[firstIndex == index ? `icon-${i.class} active` : '']"
:style="{left: i.left}"
></view>
{{i.name}}
</view>
</view> </view>
<view class="content"> <view class="content">
<view class="second-tab"> <view class="second-tab">
<view v-for="(item, ind) in secondNav" :key="ind" class="tab-item" :class="[secondIndex == ind ? 'active':'']" @click="changeIndex(ind, 'secondIndex')">{{item}}</view> <view
v-for="(item, ind) in secondNav"
:key="ind"
class="tab-item"
:class="[secondIndex == ind ? 'active':'']"
@click="changeIndex(ind, 'secondIndex')"
>{{item}}</view>
</view> </view>
</view> </view>
</view> </view>
...@@ -66,19 +82,29 @@ export default { ...@@ -66,19 +82,29 @@ export default {
animationList: [require('@/assets/images/boutique/animation-m5.png'), require('@/assets/images/boutique/animation-m7.png'), require('@/assets/images/boutique/animation-m9.png')] animationList: [require('@/assets/images/boutique/animation-m5.png'), require('@/assets/images/boutique/animation-m7.png'), require('@/assets/images/boutique/animation-m9.png')]
} }
}, },
mounted() { computed: {
watchStatus () {
return this.$store.state.user.historyStatus
},
},
watch: {
watchStatus () {
this.firstIndex = 0
}
},
mounted () {
}, },
methods: { methods: {
changeIndex(index, name) { changeIndex (index, name) {
this[name] = index this[name] = index
}, },
async findSoureList() { async findSoureList () {
console.log(1111) console.log(1111)
const data = await uni.$api.boutiqueApi.findSoureList({}) const data = await uni.$api.boutiqueApi.findSoureList({})
console.log(data) console.log(data)
}, },
back() { back () {
console.log('back') console.log('back')
} }
} }
...@@ -161,7 +187,7 @@ export default { ...@@ -161,7 +187,7 @@ export default {
border-radius: 48rpx; border-radius: 48rpx;
.second-tab { .second-tab {
display: inline-flex; display: inline-flex;
background: #F2F2F2; background: #f2f2f2;
border-radius: 16rpx; border-radius: 16rpx;
height: 100%; height: 100%;
align-items: center; align-items: center;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!