添加页面及部分多语言切换
This commit is contained in:
+44
-18
@@ -1,10 +1,10 @@
|
||||
<template>
|
||||
<view class="conts">
|
||||
<view class="top">
|
||||
<view class="navbar">客户管理</view>
|
||||
<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="请输入客户名称或手机号"></u-search>
|
||||
<u-search v-model="value5" 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>
|
||||
@@ -20,7 +20,7 @@
|
||||
<view class="" @click="godetile(item)">
|
||||
<view class="top">
|
||||
<view class="">2025.03.11 12:00</view>
|
||||
<view class="tag">跟进中</view>
|
||||
<view class="tag">{{$t('followup')}}</view>
|
||||
</view>
|
||||
<u-divider text="" :hairline="true"></u-divider>
|
||||
<view class="cont">
|
||||
@@ -33,28 +33,28 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="desc1">
|
||||
<view class="" @click="phoneClick(item)"><image src="/static/image/customer/phone.png" mode=""></image> 呼叫</view>
|
||||
<view class="" @click="editClick(item)"><image src="/static/image/customer/edit.png" mode=""></image> 跟进</view>
|
||||
<view class="" @click="delClick(item)"><image src="/static/image/customer/trash.png" mode=""></image> 删除</view>
|
||||
<view class="" @click="callPhone(item)"><image src="/static/image/customer/phone.png" mode=""></image> {{$t('call')}}</view>
|
||||
<view class="" @click="editClick(item)"><image src="/static/image/customer/edit.png" mode=""></image> {{$t('followup')}}</view>
|
||||
<view class="" @click="delClick(item)"><image src="/static/image/customer/trash.png" mode=""></image> {{$t('delete')}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<u-picker :show="show" :columns="columns" @cancel="cancel" @confirm="confirm" title="客户筛选" keyName="label"></u-picker>
|
||||
<u-popup :show="showts" :closeOnClickOverlay="false" :round="20" mode="center">
|
||||
<view class="popupcontent">
|
||||
<view class="title">提示</view>
|
||||
<view class="title">{{$t('prompt')}}</view>
|
||||
<view class="text">
|
||||
确定要删除此客户吗?
|
||||
{{$t('deletemsg')}}
|
||||
</view>
|
||||
</view>
|
||||
<view class="cent">
|
||||
<view class="btn1" @click="showts = !showts">取消</view>
|
||||
<view class="btn" @click="showts = !showts">确定</view>
|
||||
<view class="btn1" @click="showts = !showts">{{$t('cancel')}}</view>
|
||||
<view class="btn" @click="showts = !showts">{{$t('confirm')}}</view>
|
||||
</view>
|
||||
</u-popup>
|
||||
<movable-area class="movable-area">
|
||||
<movable-view class="movable-view" :x="x" :y="y" direction="all">
|
||||
<view class="index" @tap="addcustomer" >
|
||||
<view class="index" @tap="addcustomer">
|
||||
<image src="/static/image/customer/add.png" mode="widthFix">
|
||||
</view>
|
||||
</movable-view>
|
||||
@@ -85,14 +85,22 @@
|
||||
}]
|
||||
],
|
||||
datalist:[
|
||||
{id:1},
|
||||
{id:2},
|
||||
{id:3},
|
||||
{id:4}
|
||||
{id:1,phone:'17839087603'},
|
||||
{id:2,phone:'18437931136'},
|
||||
{id:3,phone:'18339827479'},
|
||||
{id:4,phone:'17839087603'}
|
||||
],
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
const { windowWidth, windowHeight } = uni.getSystemInfoSync();
|
||||
this.x = windowWidth-70
|
||||
this.y = windowHeight-25
|
||||
},
|
||||
methods: {
|
||||
searchCli(){
|
||||
|
||||
},
|
||||
close() {
|
||||
// console.log('close');
|
||||
this.show= false
|
||||
@@ -111,8 +119,26 @@
|
||||
url: '/pages/customer/detile'
|
||||
});
|
||||
},
|
||||
phoneClick(item){
|
||||
console.log(item)
|
||||
// 拨打电话
|
||||
callPhone(item) {
|
||||
var phoneNumber= item.phone
|
||||
if (!phoneNumber) {
|
||||
uni.showToast({
|
||||
title: '请输入电话号码',
|
||||
icon: 'none',
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
uni.makePhoneCall({
|
||||
phoneNumber: phoneNumber,
|
||||
success: () => {
|
||||
console.log('拨打电话成功');
|
||||
},
|
||||
fail: (err) => {
|
||||
console.log('拨打电话失败', err);
|
||||
},
|
||||
});
|
||||
},
|
||||
editClick(item){
|
||||
uni.navigateTo({
|
||||
@@ -199,7 +225,7 @@
|
||||
background: #3471FF;
|
||||
color: white;
|
||||
border-radius: 10px 0px 0px 10px;
|
||||
padding: 0px 10px;
|
||||
padding: 3px 10px;
|
||||
margin-right: -15px;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user