名片部分页面。地图定位。国家下拉搜索 回收站
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)
|
||||
},
|
||||
//客户列表数据
|
||||
|
||||
+12
-3
@@ -35,15 +35,15 @@
|
||||
<text class="grid-num">{{statisticsdata.follow}}</text>
|
||||
<text class="grid-text">{{$t('home.addgj')}}</text>
|
||||
</u-grid-item>
|
||||
<u-grid-item>
|
||||
<u-grid-item @click="custormerfn(1)">
|
||||
<text class="grid-num">{{statisticsdata.customer_init}}</text>
|
||||
<text class="grid-text">{{$t('followup')}}</text>
|
||||
</u-grid-item>
|
||||
<u-grid-item>
|
||||
<u-grid-item @click="custormerfn(2)">
|
||||
<text class="grid-num">{{statisticsdata.customero_fllow}}</text>
|
||||
<text class="grid-text">{{$t('deal')}}</text>
|
||||
</u-grid-item>
|
||||
<u-grid-item>
|
||||
<u-grid-item @click="custormerfn(3)">
|
||||
<text class="grid-num">{{statisticsdata.customer_deal}}</text>
|
||||
<text class="grid-text">{{$t('lost')}}</text>
|
||||
</u-grid-item>
|
||||
@@ -91,6 +91,9 @@
|
||||
onLoad() {
|
||||
uni.removeStorageSync('location')
|
||||
// this.getcustomerlist()
|
||||
|
||||
},
|
||||
onShow() {
|
||||
uni.setTabBarItem({
|
||||
index: 0,
|
||||
text: this.$t('tabbar.home')
|
||||
@@ -125,6 +128,12 @@
|
||||
cancellang() {
|
||||
this.showlang = false
|
||||
},
|
||||
//数据简报点击事件
|
||||
custormerfn(item){
|
||||
uni.reLaunch({
|
||||
url: '/pages/index/customer?tab='+item,// 替换为你要跳转的页面路径
|
||||
});
|
||||
},
|
||||
//语言切换事件
|
||||
confirmlang(e) {
|
||||
uni.setLocale(e.value[0].id)
|
||||
|
||||
+23
-10
@@ -18,7 +18,7 @@
|
||||
</view>
|
||||
<view class="minemp">
|
||||
<view class="mineid">ID:{{userinfo.sn}}</view>
|
||||
<!-- <view class="mp" @click="gomymp">{{$t('auth')}}</view> -->
|
||||
<view class="mp" @click="gomymp">{{$t('navbar.businesscard')}}</view>
|
||||
<!-- <view v-if="!isopenid" class="mp" @click="gomyauth">{{$t('auth')}}</view> -->
|
||||
</view>
|
||||
</view>
|
||||
@@ -50,7 +50,7 @@
|
||||
<uni-icons type="right" class="icon" size="18"></uni-icons>
|
||||
</view> -->
|
||||
<view class="sonContent" v-if="!isopenid" @click="gomyauth">
|
||||
<image class="son-img-bg" style="width: 30px; height: 30px;" src="/static/image/login/fenshu.png"></image>
|
||||
<image class="son-img-bg" src="/static/image/mine/icon9.png"></image>
|
||||
<span>{{$t('auth')}}</span>
|
||||
<uni-icons type="right" class="icon" size="18"></uni-icons>
|
||||
</view>
|
||||
@@ -64,11 +64,11 @@
|
||||
<span>{{$t('mine.logoff')}}</span>
|
||||
<uni-icons type="right" class="icon" size="18"></uni-icons>
|
||||
</view> -->
|
||||
<!-- <view class="sonContent" @click="navTo('/pages/mine/recyclebin')">
|
||||
<view class="sonContent" @click="navTo('/pages/mine/recyclebin')">
|
||||
<image class="son-img-bg" src="/static/image/mine/icon8.png"></image>
|
||||
<span>{{$t('mine.recyclebin')}}</span>
|
||||
<uni-icons type="right" class="icon" size="18"></uni-icons>
|
||||
</view> -->
|
||||
</view>
|
||||
|
||||
<view class="sonContent" @click="logout">
|
||||
<image class="son-img-bg" src="/static/image/mine/icon7.png"></image>
|
||||
@@ -109,7 +109,20 @@
|
||||
|
||||
},
|
||||
onShow() {
|
||||
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')
|
||||
})
|
||||
this.getuserinfo()
|
||||
|
||||
},
|
||||
methods: {
|
||||
getuserinfo(){
|
||||
@@ -127,7 +140,7 @@
|
||||
},
|
||||
gomymp(){
|
||||
uni.navigateTo({
|
||||
url: '/pages/mine/webview'
|
||||
url: '/pages/mine/businesscard'
|
||||
})
|
||||
},
|
||||
gomyauth(){
|
||||
@@ -215,14 +228,14 @@
|
||||
/* #ifdef APP-PLUS */
|
||||
height:44px;
|
||||
/* #endif */
|
||||
height:30px;
|
||||
height:34px;
|
||||
}
|
||||
.content{
|
||||
padding:10px 15px 15px;
|
||||
.contop{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin: 0px 0px 30px;
|
||||
// margin: 0px 0px 30px;
|
||||
font-size: 34rpx;
|
||||
color: white;
|
||||
.right{
|
||||
@@ -244,7 +257,7 @@
|
||||
font-size: 28rpx;
|
||||
background: #fff;
|
||||
color: #3471FF;
|
||||
padding: 1px 15px;
|
||||
padding: 0px 12px;
|
||||
border-radius: 5px 15px 15px 15px;
|
||||
}
|
||||
}
|
||||
@@ -283,7 +296,7 @@
|
||||
display: flex;
|
||||
box-sizing: border-box;
|
||||
flex-direction: column;
|
||||
|
||||
margin-top: 13%;
|
||||
.sonTitle {
|
||||
height: 80rpx;
|
||||
line-height: 80rpx;
|
||||
@@ -316,7 +329,7 @@
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
position: absolute;
|
||||
top: 45%;
|
||||
top: 50%;
|
||||
margin-top: -20rpx;
|
||||
left: 12px;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user