地图页面 及页面加语言编译

This commit is contained in:
浅念
2025-03-19 15:39:21 +08:00
parent 1faedd2fd5
commit bfd28be350
9 changed files with 779 additions and 273 deletions
+43 -8
View File
@@ -6,7 +6,7 @@
<view class="navbar">{{$t('customer.title')}}</view>
<view class="topSearch">
<view class="left">
<u-search v-model="value5" bgColor="#fff" search-icon=" " :show-action="false" :placeholder="$t('customer.inputhd')"></u-search>
<u-search v-model="keyword" bgColor="#fff" search-icon=" " :show-action="false" :placeholder="$t('customer.inputhd')"></u-search>
<view @click="searchCli" class="search">
<image src="/static/image/customer/search1.png" mode=""></image>
</view>
@@ -56,7 +56,7 @@
</view>
<view class="cent">
<view class="btn1" @click="showts = !showts">{{$t('cancel')}}</view>
<view class="btn" @click="showts = !showts">{{$t('confirm')}}</view>
<view class="btn" @click="delfn()">{{$t('confirm')}}</view>
</view>
</u-popup>
<movable-area class="movable-area">
@@ -76,19 +76,24 @@
return {
x: 300, //x坐标
y: 550, //y坐标
value5:'',
keyword:'',
follow_last:'',
show:false,
showts:false,
del_id:'',
columns:[
[{
label: '全部',
id:''
},{
label: '当天跟进客户',
id: 1
id: 0
}, {
label: '近三天跟进客户',
id: 2
id: 1
}, {
label: '近七天跟进客户',
id: 3
id: 2
}]
],
datalist:[],
@@ -98,16 +103,20 @@
const { windowWidth, windowHeight } = uni.getSystemInfoSync();
this.x = windowWidth-70
this.y = windowHeight-55
uni.removeStorageSync('location')
},
methods: {
searchCli(){
this.queryList(1, 10)
},
close() {
this.show= false
},
confirm(e) {
console.log(e)
this.follow_last = e.value[0].id
this.show = false
this.queryList(1, 10)
},
cancel() {
this.show = false
@@ -120,7 +129,9 @@
method:'get',
data: {
page:pageNo,
per_page:10
per_page:10,
keyword:this.keyword,
follow_last:this.follow_last,
}
}).then(res => {
console.log(res.data)
@@ -167,8 +178,31 @@
});
},
delClick(item){
this.del_id = item.id
this.showts=true
},
delfn(){
this.showts=false
request({
url:'customer/delete',
method:'get',
data: {
id:this.del_id,
}
}).then(res => {
uni.showToast({
title: res.data.message,
icon: 'none'
});
if(res.data.code ==0){
setTimeout(() => {
uni.reLaunch({
url: '/pages/index/customer',// 替换为你要跳转的页面路径
});
}, 1000);
}
})
},
addcustomer(){
uni.navigateTo({
url: '/pages/customer/add'
@@ -189,6 +223,7 @@
height: calc(100vh - 50px);
}
.navbar{
padding-top: 44px;
height: 44px;
line-height: 44px;
text-align: center;