修改功能
This commit is contained in:
+3
-10
@@ -3,7 +3,7 @@
|
||||
<uni-nav-bar leftText=" " :fixed="true" :border="false" leftIcon="back" @clickLeft="leftClick" color="#000000" backgroundColor="#fff" :statusBar="true" :title="$t('navbar.customerinfo')"></uni-nav-bar>
|
||||
<view class="content">
|
||||
<view class="cell">
|
||||
<view class="item">{{$t('customer.CustomerChannel')}}</view>
|
||||
<view class="item">{{$t('customer.CustomerChannel')}} <text class="red">*</text></view>
|
||||
<view class="right select" @click="showchannel = true">
|
||||
<view class="" :class="['content2', { placeholder: !channel_name }]">{{channel_name || $t('customer.CustomerChannelinput')}}</view>
|
||||
<!-- <input :placeholder="$t('customer.CustomerChannelinput')" disabled v-model="channel_name" /> -->
|
||||
@@ -60,7 +60,7 @@
|
||||
</view>
|
||||
<u-line></u-line>
|
||||
<view class="cell">
|
||||
<view class="item">{{$t('customer.Customerph')}}</view>
|
||||
<view class="item">{{$t('customer.Customerph')}} <text class="red">*</text></view>
|
||||
<view class="right select" @click="showcartype = true">
|
||||
<view class="" :class="['content2', { placeholder: !car_type_name }]">{{car_type_name || $t('customer.Customerphinput')}}</view>
|
||||
<!-- <input :placeholder="$t('customer.Customerphinput')" disabled v-model="car_type_name" /> -->
|
||||
@@ -312,14 +312,7 @@
|
||||
saveFn(){
|
||||
if(this.form.contacts==''){
|
||||
uni.showToast({
|
||||
title:'客户名称不能为空',
|
||||
icon: 'none'
|
||||
});
|
||||
return false
|
||||
}
|
||||
if(this.form.phone==''){
|
||||
uni.showToast({
|
||||
title:'联系方式不能为空',
|
||||
title:this.$t('customer.CustomerNameinput'),
|
||||
icon: 'none'
|
||||
});
|
||||
return false
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<uni-nav-bar leftText=" " :fixed="true" :border="false" leftIcon="back" @clickLeft="leftClick" color="#000000" backgroundColor="#fff" :statusBar="true" :title="$t('navbar.customerinfo')"></uni-nav-bar>
|
||||
<view class="content">
|
||||
<view class="cell">
|
||||
<view class="item">{{$t('customer.CustomerChannel')}}</view>
|
||||
<view class="item">{{$t('customer.CustomerChannel')}} <text class="red">*</text></view>
|
||||
<view class="right select" @click="showchannel = true">
|
||||
<!-- <input :placeholder="$t('customer.CustomerChannelinput')" disabled v-model="channel_name" /> -->
|
||||
<view class="" :class="['content2', { placeholder: !channel_name }]">{{channel_name || $t('customer.CustomerChannelinput')}}</view>
|
||||
@@ -60,7 +60,7 @@
|
||||
</view>
|
||||
<u-line></u-line>
|
||||
<view class="cell">
|
||||
<view class="item">{{$t('customer.Customerph')}}</view>
|
||||
<view class="item">{{$t('customer.Customerph')}} <text class="red">*</text></view>
|
||||
<view class="right select" @click="showcartype = true">
|
||||
<!-- <input :placeholder="$t('customer.Customerphinput')" disabled v-model="car_type_name" /> -->
|
||||
<view class="" :class="['content2', { placeholder: !car_type_name }]">{{car_type_name || $t('customer.Customerphinput')}}</view>
|
||||
|
||||
@@ -435,7 +435,7 @@
|
||||
url: 'http://219.157.255.213:9007/upload/uploadImage',
|
||||
filePath: imgUrl,
|
||||
name: 'files',
|
||||
// header:{'content-type': 'application/x-www-form-urlencoded','Authorization': 'Bearer ' + uni.getStorageSync('token')},
|
||||
header:{'Authorization': 'Bearer ' + uni.getStorageSync('token')},
|
||||
success: (uploadFileRes) => {
|
||||
const path=JSON.parse(uploadFileRes.data)
|
||||
if(path.code==-1){
|
||||
|
||||
Reference in New Issue
Block a user