名片部分页面。地图定位。国家下拉搜索 回收站
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="tabsbg">
|
||||
<u-tabs :list="list1" lineColor="#fff" :scrollable="false" @click="tabclick" :inactiveStyle="{color: '#fff'}" :activeStyle="{color: '#fff',fontWeight: 'bold',transform: 'scale(1.05)'}"></u-tabs>
|
||||
<u-tabs :list="list1" :current="current" lineColor="#fff" :scrollable="false" @click="tabclick" :inactiveStyle="{color: '#fff'}" :activeStyle="{color: '#fff',fontWeight: '500',transform: 'scale(1.05)'}"></u-tabs>
|
||||
</view>
|
||||
</template>
|
||||
<view class="list">
|
||||
@@ -31,7 +31,7 @@
|
||||
<view class="">{{item.created_at}}</view>
|
||||
<view class="right">
|
||||
<text class="medal" :style="{color:(item.magnitude == 0 ?'#F5AB00' : item.magnitude == 1 ?'#8495B8': '#9B7200')}">{{item.magnitude_txt}}</text>
|
||||
<text class="tag" :style="{background:(item.follow == 0 ?'#3471FF' : item.follow == 1 ?'#27C89C': '#FF4040')}">{{item.follow_txt}}</text>
|
||||
<text class="tag" :style="{background:(item.follow == 0 ?'#3471FF' : item.follow == 1 ?'#27C89C': '#FF4040')}">{{item.follow==0?$t('followup'):item.follow==1?$t('deal'):$t('lost')}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<u-line margin="20rpx 0px"></u-line>
|
||||
@@ -82,6 +82,7 @@
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
current:0,
|
||||
options1: [],
|
||||
x: 300, //x坐标
|
||||
y: 550, //y坐标
|
||||
@@ -96,7 +97,14 @@
|
||||
datalist:[],
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
onLoad(e) {
|
||||
console.log(e)
|
||||
if(e.tab){
|
||||
this.follow=e.tab - 1
|
||||
this.current = e.tab
|
||||
this.datalist=[]
|
||||
this.queryList(1, 10)
|
||||
}
|
||||
const { windowWidth, windowHeight } = uni.getSystemInfoSync();
|
||||
this.x = windowWidth-70
|
||||
this.y = windowHeight-55
|
||||
@@ -138,6 +146,18 @@
|
||||
id: 2
|
||||
}]
|
||||
]
|
||||
uni.setTabBarItem({
|
||||
index: 0,
|
||||
text: this.$t('tabbar.home')
|
||||
})
|
||||
uni.setTabBarItem({
|
||||
index: 1,
|
||||
text: this.$t('tabbar.customer')
|
||||
})
|
||||
uni.setTabBarItem({
|
||||
index: 2,
|
||||
text: this.$t('tabbar.mine')
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
searchCli(){
|
||||
@@ -163,6 +183,7 @@
|
||||
}else{
|
||||
this.follow=e.index - 1
|
||||
}
|
||||
this.datalist=[]
|
||||
this.queryList(1, 10)
|
||||
},
|
||||
//客户列表数据
|
||||
|
||||
Reference in New Issue
Block a user