Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
sales-assistant
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit e8bb8e9d
authored
Nov 03, 2025
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改bug
1 parent
58ee1774
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
27 additions
and
11 deletions
components/CarBrand/CarBrand.js
components/Popup/Popup.js
components/Popup/Popup.wxml
packageCustomer/components/KPIProgress/KPIProgress.scss
packageCustomer/pages/createPotential/createPotential.js
packageCustomer/pages/createPotential/createPotential.wxml
packageCustomer/pages/createVisit/createVisit.js
packageCustomer/pages/createVisit/createVisit.wxml
packageCustomer/pages/potentialDetail/potentialDetail.wxml
packageCustomer/pages/resultFeedback/resultFeedback.js
packageCustomer/pages/resultFeedback/resultFeedback.wxml
components/CarBrand/CarBrand.js
View file @
e8bb8e9
...
...
@@ -87,6 +87,9 @@ Component({
},
getBrandList
()
{
let
data
=
wx
.
$storage
.
get
(
'car_brand_list'
)
this
.
setData
({
searchKeyword
:
''
})
if
(
data
)
{
this
.
dealSelectedList
(
Util
.
deepClone
(
data
)).
then
(
brandlist
=>
{
this
.
formatData
(
brandlist
)
...
...
components/Popup/Popup.js
View file @
e8bb8e9
...
...
@@ -54,6 +54,7 @@ Component({
*/
methods
:
{
noScroll
()
{
},
noop
()
{},
hidePopup
()
{
this
.
setData
({
show
:
false
...
...
components/Popup/Popup.wxml
View file @
e8bb8e9
<view class="popup custom-class" hidden="{{!showPopup}}" catchtouchmove="noScroll">
<view class="popup-bg"
bind
tap="hidePopup"></view>
<view class="popup-bg"
catch
tap="hidePopup"></view>
<view class="popup-content {{close?'close':''}}" style="height:{{height}}">
<block wx:if="{{title}}">
<view class="popup-title text-center">{{title}}</view>
</block>
<view class="popup-slot {{(isTab || customIsTab) && (!hideTab || !customHideTab) ? '': title?'isFullSucreen':'isFullSucreen-notitle'}}" style="{{customPopupSlotStyle}}">
<view class="popup-slot {{(isTab || customIsTab) && (!hideTab || !customHideTab) ? '': title?'isFullSucreen':'isFullSucreen-notitle'}}" style="{{customPopupSlotStyle}}"
catchtap="noop"
>
<slot></slot>
</view>
<view class="popup-footer {{(isTab || customIsTab) && (!hideTab || !customHideTab) ?'':'isFullSucreen'}}" wx:if="{{only}}">
...
...
packageCustomer/components/KPIProgress/KPIProgress.scss
View file @
e8bb8e9
...
...
@@ -128,8 +128,9 @@
text-align
:
right
;;
}
.col.month
{
flex
:
0
0
56
rpx
;
flex
:
0
0
72
rpx
;
text-align
:
left
;
padding-left
:
16rpx
;
}
.col.rate
{
flex
:
0
0
100rpx
;
text-align
:
left
;
...
...
packageCustomer/pages/createPotential/createPotential.js
View file @
e8bb8e9
...
...
@@ -295,6 +295,7 @@ Page({
let tempFilesList = tempFiles.split('.')
let imgType = tempFilesList[tempFilesList.length - 1]
let type = imgType == 'unknown' ? 'jpg' : imgType
if (res?.tempFiles?.[0]?.size > 10 * 1024 * 1024) return wx.$api.showToast('图片不能大于10M')
wx.getFileSystemManager().readFile({
filePath: tempFiles, //选择图片返回的相对路径
encoding: 'base64', //编码格式
...
...
@@ -422,6 +423,9 @@ Page({
let { code, message } = res
const okText = '我知道了'
if (this.resultDialog) {
this.setData({
textareaDisabled: true
})
if (code == 0) {
this.resultDialog.open({
type: 'success',
...
...
packageCustomer/pages/createPotential/createPotential.wxml
View file @
e8bb8e9
...
...
@@ -9,7 +9,7 @@
<view class="label">{{item.label}} <text class="star">*</text></view>
<view class="value" bindtap="showPopup" data-target="{{item}}">
<block wx:if="{{item.type == 'textarea'}}">
<textarea value="{{infoData[item.key]}}" class="textarea {{item.disabled ? 'disabled': ''}}" placeholder="请输入" placeholder-class="placeholder-class" auto-height="true" maxlength="{{item.maxLength}}" disabled="{{item.disabled}}" cursor-spacing="16" bindinput="onInput" data-key="{{item.key}}"/>
<textarea value="{{infoData[item.key]}}" class="textarea {{item.disabled ? 'disabled': ''}}" placeholder="请输入" placeholder-class="placeholder-class" auto-height="true" maxlength="{{item.maxLength}}" disabled="{{item.disabled
|| showSelectPopup || textareaDisabled
}}" cursor-spacing="16" bindinput="onInput" data-key="{{item.key}}"/>
</block>
<block wx:else>
<block wx:if="{{infoData[item.key]}}">
...
...
@@ -29,7 +29,7 @@
<view class="label">{{item.label}} <text class="star">*</text></view>
<view class="value" bindtap="showArea" data-type="{{item.type}}">
<block wx:if="{{item.type == 'textarea'}}">
<textarea value="{{infoData[item.key]}}" class="textarea" placeholder="请输入" placeholder-class="placeholder-class" auto-height="true" maxlength="{{item.maxLength}}" cursor-spacing="16" bindinput="onInput" data-key="{{item.key}}"/>
<textarea value="{{infoData[item.key]}}" class="textarea" placeholder="请输入" placeholder-class="placeholder-class" auto-height="true" maxlength="{{item.maxLength}}"
disabled="{{showSelectPopup || textareaDisabled}}"
cursor-spacing="16" bindinput="onInput" data-key="{{item.key}}"/>
</block>
<block wx:else>
<block wx:if="{{infoData[item.key]}}">
...
...
@@ -62,7 +62,7 @@
<view class="label">备注信息</view>
</view>
<view class="textarea-wrap">
<textarea class="textarea" maxlength="200" auto-height placeholder="请输入" placeholder-class="input-ph" value="{{infoData.remark}}" bindinput="onRemarkInput" />
<textarea class="textarea" maxlength="200"
disabled="{{showSelectPopup || textareaDisabled}}"
auto-height placeholder="请输入" placeholder-class="input-ph" value="{{infoData.remark}}" bindinput="onRemarkInput" />
<view class="counter">{{remarkLength}}/200</view>
</view>
</view>
...
...
@@ -101,7 +101,7 @@
<popup show="{{carBrandPopupShow}}" title="选择品牌" bind:hidePopup="hideBrandPopup" customPopupSlotStyle="{{'height: calc(100% - 282rpx)'}}" bindconfirm="brandConfirm" height="90%">
<car-brand id="car-brand" popupShow="{{carBrandPopupShow}}" multiple selectedList="{{selectedMainBrand}}"></car-brand>
</popup>
<select-popup show="{{showSelectPopup}}" options="{{selectOptions}}" multiple="{{selectMultiple}}" values="{{selectValues}}" value="{{selectValue}}" bindconfirm="handlePopupConfirm" title="{{selectTitle}}"></select-popup>
<select-popup show="{{showSelectPopup}}" options="{{selectOptions}}" multiple="{{selectMultiple}}" values="{{selectValues}}" value="{{selectValue}}" bindconfirm="handlePopupConfirm"
bindcancel="hideSelectPopup"
title="{{selectTitle}}"></select-popup>
<select-area show="{{showSelectArea}}" areaList="{{areaList}}" bindconfirm="areaConfirm" bindcancel="areaCancel" value="{{infoData.districtId || ''}}"></select-area>
<!-- 结果弹窗组件:统一反馈弹窗 -->
<result-dialog id="resultDialog" bind:ok="onDialogOk" bind:close="onDialogClose" />
\ No newline at end of file
packageCustomer/pages/createVisit/createVisit.js
View file @
e8bb8e9
...
...
@@ -149,6 +149,7 @@ Page({
let
tempFilesList
=
tempFiles
.
split
(
'.'
)
let
imgType
=
tempFilesList
[
tempFilesList
.
length
-
1
]
let
type
=
imgType
==
'unknown'
?
'jpg'
:
imgType
if
(
res
?.
tempFiles
?.[
0
]?.
size
>
10
*
1024
*
1024
)
return
wx
.
$api
.
showToast
(
'图片不能大于10M'
)
wx
.
getFileSystemManager
().
readFile
({
filePath
:
tempFiles
,
//选择图片返回的相对路径
encoding
:
'base64'
,
//编码格式
...
...
@@ -231,6 +232,9 @@ Page({
const
okText
=
'我知道了'
let
{
code
,
message
}
=
res
if
(
this
.
resultDialog
)
{
this
.
setData
({
textareaDisabled
:
true
})
if
(
code
==
0
)
{
this
.
resultDialog
.
open
({
type
:
'success'
,
...
...
packageCustomer/pages/createVisit/createVisit.wxml
View file @
e8bb8e9
...
...
@@ -24,7 +24,7 @@
<view class="label">拜访内容 <text class="star">*</text></view>
</view>
<view class="textarea-wrap">
<textarea class="textarea" placeholder="请输入" placeholder-class="input-ph" value="{{infoData.content}}" bindinput="onContentInput" />
<textarea class="textarea" placeholder="请输入"
disabled="{{timeVisible || textareaDisabled}}"
placeholder-class="input-ph" value="{{infoData.content}}" bindinput="onContentInput" />
<view class="counter">{{contentLength}}/100</view>
</view>
<view class="row no-border">
...
...
packageCustomer/pages/potentialDetail/potentialDetail.wxml
View file @
e8bb8e9
...
...
@@ -59,7 +59,7 @@
</view>
</scroll-view>
<!-- 底部固定操作条:新增拜访 -->
<view class="bottom-bar" wx:if="{{tabIndex != 1 && userInfo.loginRole != 1 && infoDetail.potentialCustomersStatus == 1}}">
<view class="bottom-bar" wx:if="{{tabIndex != 1 && userInfo.loginRole != 1 && infoDetail.potentialCustomersStatus == 1
&& pageQuery.isSelf == 1
}}">
<view class="inner safe-area-bottom">
<view class="btn" bind:tap="onCreateVisit">新增拜访</view>
</view>
...
...
packageCustomer/pages/resultFeedback/resultFeedback.js
View file @
e8bb8e9
...
...
@@ -186,6 +186,9 @@ Page({
const
okText
=
'我知道了'
let
{
code
,
message
}
=
res
if
(
this
.
resultDialog
)
{
this
.
setData
({
textareaDisabled
:
true
})
if
(
code
==
0
)
{
this
.
resultDialog
.
open
({
type
:
'success'
,
...
...
packageCustomer/pages/resultFeedback/resultFeedback.wxml
View file @
e8bb8e9
...
...
@@ -34,14 +34,14 @@
<view class="label">分润规则<text class="star">*</text></view>
</view>
<view class="textarea-wrap">
<textarea class="textarea" maxlength="50" placeholder="请输入" placeholder-class="input-ph" value="{{infoData.profitRule}}" bindinput="onProfitInput" />
<textarea class="textarea" maxlength="50"
disabled="{{timeVisible || textareaDisabled}}"
placeholder="请输入" placeholder-class="input-ph" value="{{infoData.profitRule}}" bindinput="onProfitInput" />
<view class="counter">{{profitLength}}/50</view>
</view>
<view class="row no-border">
<view class="label">上架产品信息 <text class="star">*</text></view>
</view>
<view class="textarea-wrap">
<textarea class="textarea" maxlength="50" placeholder="请输入" placeholder-class="input-ph" value="{{infoData.productShelfInfo}}" bindinput="onProductInput" />
<textarea class="textarea" maxlength="50"
disabled="{{timeVisible || textareaDisabled}}"
placeholder="请输入" placeholder-class="input-ph" value="{{infoData.productShelfInfo}}" bindinput="onProductInput" />
<view class="counter">{{productLength}}/50</view>
</view>
</block>
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment