add.vue 38 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442
  1. <template>
  2. <view class="container qualifications" :style="{ paddingBottom: isIphoneX ? '68rpx' : '0' }">
  3. <view class="remarks-content-club" @click="handleClickClunInfo">
  4. <view class="content-club-le">
  5. <view class="club-le-text">
  6. <text class="label">机构名称:</text> <text class="text">{{ clubInfo.name }}</text>
  7. </view>
  8. <view class="club-le-text">
  9. <text class="label">联系人:</text> <text class="text">{{ clubInfo.linkMan }}</text>
  10. <text class="label phone">手机号:</text> <text class="text">{{ clubInfo.contractMobile }}</text>
  11. </view>
  12. <view class="club-le-text">
  13. <text class="label">地址:</text>
  14. <text class="text" v-if="clubInfo.provincialAddress"
  15. >{{ clubInfo.provincialAddress }}{{ clubInfo.address }}</text
  16. >
  17. </view>
  18. </view>
  19. <view class="content-club-ri"> <text class="iconfont icon-xiayibu"></text> </view>
  20. </view>
  21. <view class="remarks-content">
  22. <view class="list-view-title">
  23. <view class="list-view-h1"><text>*</text>沟通情况:</view>
  24. </view>
  25. <view class="remarks-category">
  26. <radio-group @change="radioChange">
  27. <label class="uni-list-cell uni-list-cell-pd" v-for="(item, index) in items" :key="item.value">
  28. <radio
  29. :value="item.value"
  30. style="transform:scale(0.7)"
  31. color="#FF5B00"
  32. :checked="index === current"
  33. />
  34. <label :for="item.value" class="label">
  35. <text>{{ item.name }}</text>
  36. </label>
  37. </label>
  38. </radio-group>
  39. <checkbox-group v-if="current === 0" @change="checkboxChange" style="margin-top: 10rpx;">
  40. <label class="label" v-for="item in checkboItems" :key="item.value">
  41. <checkbox :value="item.value" :checked="item.checked" style="transform:scale(0.7)" color="#FF5B00" />
  42. {{item.name}}
  43. </label>
  44. </checkbox-group>
  45. </view>
  46. <view class="list-view-title">
  47. <view class="list-view-h1"><text>*</text>咨询人:</view>
  48. </view>
  49. <view class="remarks-input">
  50. <input
  51. class="input"
  52. type="text"
  53. v-model="remarksParams.questionMan"
  54. value=""
  55. placeholder="请输入和你聊天的客户姓名"
  56. maxlength="15"
  57. />
  58. </view>
  59. <view class="list-view-title"> <view class="list-view-h1">客户来源:</view> </view>
  60. <view class="list-view-radio">
  61. <picker @change="bindPickerChange(4, $event)" :value="index" :range="sourceActions" range-key="name">
  62. <input
  63. class="input"
  64. type="text"
  65. disabled="false"
  66. v-model="sourceStateText"
  67. value=""
  68. placeholder="请选择"
  69. />
  70. <text class="iconfont icon-xiangyou"></text>
  71. </picker>
  72. </view>
  73. <view class="list-view-title"> <view class="list-view-h1">客户性别:</view> </view>
  74. <view class="list-view-radio">
  75. <picker @change="bindPickerChange(5, $event)" :value="index" :range="genderActions" range-key="name">
  76. <input
  77. class="input"
  78. type="text"
  79. disabled="false"
  80. v-model="genderText"
  81. value=""
  82. placeholder="请选择"
  83. />
  84. <text class="iconfont icon-xiangyou"></text>
  85. </picker>
  86. </view>
  87. <view class="list-view-title"> <view class="list-view-h1">客户年龄:</view> </view>
  88. <view class="list-view-radio">
  89. <picker @change="bindPickerChange(6, $event)" :value="index" :range="ageActions" range-key="name">
  90. <input class="input" type="text" disabled="false" v-model="customerAge" value="" placeholder="请选择" />
  91. <text class="iconfont icon-xiangyou"></text>
  92. </picker>
  93. </view>
  94. <view class="list-view-title"> <view class="list-view-h1">加群情况:</view> </view>
  95. <view class="list-view-radio">
  96. <picker @change="bindPickerChange(7, $event)" :value="index" :range="additiveActions" range-key="name">
  97. <input
  98. class="input"
  99. type="text"
  100. disabled="false"
  101. v-model="additiveText"
  102. value=""
  103. placeholder="请选择"
  104. />
  105. <text class="iconfont icon-xiangyou"></text>
  106. </picker>
  107. </view>
  108. <view class="list-view-title" v-if="current === 0">
  109. <view class="list-view-h1"><text>*</text>咨询类别:</view>
  110. </view>
  111. <view class="remarks-category" v-if="current === 0">
  112. <view
  113. class="checkbox-list"
  114. :class="category.isChecked ? 'checked' : ''"
  115. v-for="(category, index) in categorys"
  116. :key="index"
  117. @click="choiceCategorys(category, index)"
  118. >
  119. <text class="iconfont" :class="category.isChecked ? 'icon-yixuanze' : 'icon-weixuanze'"></text>
  120. {{ category.className }}
  121. </view>
  122. </view>
  123. <!-- <view class="list-view-title"> <view class="list-view-h1">机构类型:</view> </view>
  124. <view class="remarks-input">
  125. <input
  126. class="input"
  127. type="text"
  128. v-model="remarksParams.clubType"
  129. value=""
  130. placeholder="如美甲店,医院"
  131. maxlength="15"
  132. />
  133. </view> -->
  134. <view class="list-view-title"> <view class="list-view-h1">咨询商品:</view> </view>
  135. <view class="tui-remarks-content">
  136. <view class="tui-remarks-goods-input" v-if="handleGoods.length === 0" @click="handleShowGoodPopup">
  137. <view class="input-add"> <text class="iconfont icon-jiahao"></text> </view>
  138. <view class="input-text"> 点击添加客户咨询的商品 </view>
  139. </view>
  140. <view class="tui-remarks-showgoods" v-else>
  141. <view class="tui-remarks-goods" v-for="(pros, index) in handleGoods" :key="index">
  142. <view class="goods-image"> <image :src="pros.image" mode=""></image> </view>
  143. <view class="goods-main">
  144. <view class="name"> {{ pros.name }} </view>
  145. <view class="shop"> 供应商:{{ pros.shopName }} </view>
  146. </view>
  147. </view>
  148. <view class="tui-remarks-btn">
  149. <view class="btn delete" @click="handleClean">删除</view>
  150. <view class="btn update" @click="handleShowGoodPopup">更换</view>
  151. </view>
  152. </view>
  153. </view>
  154. <view class="list-view-title">
  155. <view class="list-view-h1">标签记录:</view>
  156. <view class="list-view-p">
  157. 请总结客户的个人画像和咨询内容,尽量使用简短的描述性词语,杜绝口语化的词语 (优先选择以下展示的标签)
  158. </view>
  159. </view>
  160. <view class="list-view-list-main">
  161. <view class="list-label-list">
  162. <text class="list-label"
  163. :class="item.isChecked ? 'active' : ''"
  164. v-for="(item, index) in labelsList"
  165. :key="index"
  166. @click="handleCheckedLabel(item,index)"
  167. >
  168. {{ item.label }}
  169. </text>
  170. </view>
  171. </view>
  172. <view class="list-view-title">
  173. <view class="list-view-h1">机构静态标签:</view>
  174. <view class="list-view-p"> (若你对客户的静态特点有更多维度进行描述,请手动填) </view>
  175. </view>
  176. <view class="list-view-list-main">
  177. <view class="list-view-list" v-for="(item, index) in staticLabelsList" :key="index">
  178. <view class="list-view-input">
  179. <input
  180. class="input"
  181. type="text"
  182. v-model="item.label"
  183. placeholder="请输入标签,不超过10个汉字"
  184. maxlength="10"
  185. @focus="hideStaticLabelsAction(item, $event)"
  186. @blur="hideStaticLabelsAction(item, $event)"
  187. @input="handleStaticLabelsAction(index, $event)"
  188. />
  189. <view class="list-view-assAction" v-if="item.isAssociation">
  190. <scroll-view class="tui-popup-scroll train" scroll-y="true">
  191. <view
  192. class="ass-list"
  193. v-for="(ass, assIndex) in staticLabelsActionList"
  194. :key="assIndex"
  195. @click="handleSelectStaticLabels(ass.label, item)"
  196. >{{ ass.label }}</view
  197. >
  198. </scroll-view>
  199. </view>
  200. </view>
  201. <view class="list-view-btn">
  202. <text
  203. class="iconfont icon-zengjia"
  204. v-if="staticLabelsList.length < 9 && index === staticLabelsList.length - 1"
  205. @click="handleAddStaticLabels(item, index)"
  206. ></text>
  207. <text
  208. class="iconfont icon-shanchu4"
  209. v-if="staticLabelsList.length > 1 && index != staticLabelsList.length - 1"
  210. @click="handleDelStaticLabels(item, index)"
  211. ></text>
  212. </view>
  213. </view>
  214. </view>
  215. <view class="list-view-title">
  216. <view class="list-view-h1">机构动态标签:</view>
  217. <view class="list-view-p"> (若你对客户的购买诉求有更多维度进行描述,请手动填) </view>
  218. </view>
  219. <view class="list-view-list-main">
  220. <view class="list-view-list" v-for="(item, index) in trendsLabelsList" :key="index">
  221. <view class="list-view-input">
  222. <input
  223. class="input"
  224. type="text"
  225. v-model="item.label"
  226. placeholder="请输入标签,不超过10个汉字"
  227. maxlength="10"
  228. @focus="hideTrendsLabelsAction(item, $event)"
  229. @blur="hideTrendsLabelsAction(item, $event)"
  230. @input="handleTrendsLabelsAction(index, $event)"
  231. />
  232. <view class="list-view-assAction" v-if="item.isAssociation">
  233. <scroll-view class="tui-popup-scroll train" scroll-y="true">
  234. <view
  235. class="ass-list"
  236. v-for="(ass, assIndex) in trendsLabelsActionList"
  237. :key="assIndex"
  238. @click="handleSelectTrendsLabels(ass.label, item)"
  239. >{{ ass.label }}</view
  240. >
  241. </scroll-view>
  242. </view>
  243. </view>
  244. <view class="list-view-btn">
  245. <text
  246. class="iconfont icon-zengjia"
  247. v-if="trendsLabelsList.length < 9 && index === trendsLabelsList.length - 1"
  248. @click="handleAddTrendsLabels(item, index)"
  249. ></text>
  250. <text
  251. class="iconfont icon-shanchu4"
  252. v-if="trendsLabelsList.length > 1 && index != trendsLabelsList.length - 1"
  253. @click="handleDelTrendsLabels(item, index)"
  254. ></text>
  255. </view>
  256. </view>
  257. </view>
  258. <view class="list-view-title">
  259. <view class="list-view-h1">关联报备:</view>
  260. <view class="list-view-p">(若客户咨询的事项不确定采美能不能做,请创建并关联报备向上级反馈)</view>
  261. </view>
  262. <view class="list-view-radio" @click="handleShowReportPopup">
  263. <input
  264. class="input"
  265. type="text"
  266. disabled="false"
  267. v-model="reportText"
  268. value=""
  269. placeholder="请选择报备"
  270. />
  271. <text class="iconfont icon-xiangyou"></text>
  272. </view>
  273. <view class="list-view-title" v-if="current === 0">
  274. <view class="list-view-h1"><text>*</text>价格敏感度:</view>
  275. </view>
  276. <view class="list-view-radio" v-if="current === 0">
  277. <picker @change="bindPickerChange(1, $event)" :value="index" :range="priceActions" range-key="name">
  278. <input
  279. class="input"
  280. type="text"
  281. disabled="false"
  282. v-model="priceFlagText"
  283. value=""
  284. placeholder="请选择"
  285. />
  286. <text class="iconfont icon-xiangyou"></text>
  287. </picker>
  288. </view>
  289. <view class="list-view-title" v-if="current === 0">
  290. <view class="list-view-h1"><text>*</text>意向程度:</view>
  291. </view>
  292. <view class="list-view-radio" v-if="current === 0">
  293. <picker @change="bindPickerChange(2, $event)" :value="index" :range="intenActions" range-key="name">
  294. <input
  295. class="input"
  296. type="text"
  297. disabled="false"
  298. v-model="intenFlagText"
  299. value=""
  300. placeholder="请选择"
  301. />
  302. <text class="iconfont icon-xiangyou"></text>
  303. </picker>
  304. </view>
  305. <view class="list-view-title" v-if="current === 0">
  306. <view class="list-view-h1"><text>*</text>跟进状态:</view>
  307. </view>
  308. <view class="list-view-radio" v-if="current === 0">
  309. <picker @change="bindPickerChange(3, $event)" :value="index" :range="stateActions" range-key="name">
  310. <input
  311. class="input"
  312. type="text"
  313. disabled="false"
  314. v-model="followStateText"
  315. value=""
  316. placeholder="请选择"
  317. />
  318. <text class="iconfont icon-xiangyou"></text>
  319. </picker>
  320. </view>
  321. <view class="list-view-title"> <view class="list-view-h1">额外说明:</view> </view>
  322. <view class="remarks-textarea">
  323. <textarea
  324. class="textarea"
  325. v-model="remarksParams.extra"
  326. value=""
  327. placeholder="请输入其他需要说明的内容"
  328. maxlength="200"
  329. @input="conInput"
  330. />
  331. <text class="limit-text">{{ min }}/{{ max }}</text>
  332. </view>
  333. <view class="list-view-title">
  334. <view class="list-view-h1">上传图片</view>
  335. <view class="list-view-p">(可上传与客户的聊天截图或其他重要图片资料,最多10张)</view>
  336. </view>
  337. <view class="list-view-upload clearfix">
  338. <view class="photo-item" v-for="(image, imageIndex) in remarksParams.imageList" :key="imageIndex">
  339. <image
  340. :src="image"
  341. mode="aspectFill"
  342. @click.stop="previewImg(remarksParams.imageList, imageIndex)"
  343. ></image>
  344. <text
  345. class="iconfont icon-iconfontguanbi"
  346. @click.stop="deletePhotoFn(remarksParams.imageList, imageIndex)"
  347. ></text>
  348. </view>
  349. <view
  350. class="photo-item add"
  351. @click.stop="uploadPhotoFn(remarksParams.imageList)"
  352. v-if="remarksParams.imageList.length < 10 || remarksParams.imageList.length == 0"
  353. >
  354. <text class="iconfont icon-jiahao"></text>
  355. </view>
  356. </view>
  357. <view class="list-view-title">
  358. <view class="list-view-h1">上传文件</view>
  359. <view class="list-view-p">(可上传与客户相关的文件资料,最多10份,支持word,excel,ppt和pdf格式文件)</view>
  360. </view>
  361. <view class="list-view" v-for="(file, fileIndex) in remarksParams.fileList" :key="fileIndex">
  362. <view class="list-view-text">
  363. <view class="input">{{ file.fileName }}</view>
  364. <view class="delbtn" @click.stop="deleteFileFn(remarksParams.fileList, fileIndex)">删除</view>
  365. </view>
  366. </view>
  367. <view class="list-view">
  368. <view class="list-view-file" @click="uploadFile(remarksParams.fileList)">选择文件</view>
  369. </view>
  370. </view>
  371. <view class="remarks-btn" :style="{ paddingBottom: isIphoneX ? '68rpx' : '34rpx' }">
  372. <view class="edit-button" @click="editButtonConfim">确定</view>
  373. </view>
  374. <!-- 商品列表弹窗 -->
  375. <cm-goodspopup
  376. ref="cmgoodspopup"
  377. v-if="isGoodspopup"
  378. :show="isGoodspopup"
  379. @handleChoiceaGoods="handleChoiceaGoodsData"
  380. />
  381. <!-- 机构报备弹窗 -->
  382. <cm-reportpopup
  383. ref="cmreportpopup"
  384. v-if="isReportpopup"
  385. :show="isReportpopup"
  386. :popupType="1"
  387. :reportInfo="reportInfo"
  388. @handleChoiceaReport="handleChoiceaReportData"
  389. />
  390. <!-- 提示弹窗 -->
  391. <tui-modal
  392. :show="modal"
  393. @click="handleClick"
  394. :content="contentModalText"
  395. :button="modalButton"
  396. color="#333"
  397. :size="32"
  398. shape="circle"
  399. :maskClosable="false"
  400. />
  401. </view>
  402. </template>
  403. <script>
  404. import { mapState, mapMutations } from 'vuex'
  405. import authorize from '@/common/config/authorize.js'
  406. import { uploadFileImage, uploadFilePdfDocDocxXlsx } from '@/services/public.js'
  407. import cmGoodspopup from '../components/cm-goods-popup'
  408. import cmReportpopup from '../components/cm-report-popup'
  409. import addMixins from './mixins/addMixins.js'
  410. var isPreviewImg
  411. export default {
  412. mixins: [addMixins],
  413. components: {
  414. cmGoodspopup,
  415. cmReportpopup
  416. },
  417. data() {
  418. return {
  419. hideButton: true,
  420. isIphoneX: this.$store.state.isIphoneX,
  421. shopOrderId: 0,
  422. logisticsBatchId: 0,
  423. productActions: [],
  424. remarksParams: {
  425. clubId: 0,
  426. questionMan: '',
  427. clubType: '', //机构类型
  428. extra: '', //额外说明
  429. fileList: [],
  430. imageList: [],
  431. serviceProviderId: 0,
  432. consult: '', // 咨询类别
  433. pinceSensitve: 0, //价格敏感度
  434. satisfied: 0, // 意向程度
  435. followup: 0, // 跟进状态
  436. productId: 0, // 商品Id
  437. reportId: 0 ,// 报备Id
  438. communicationSituation:'', // 沟通情况 0 已沟通 1联系不上
  439. communicationMethods:'', //沟通方式 1:电话 2:微信
  440. customerSource:'',//客户来源 0 网址 1 小程序 2 公众号 3 小红书 4 微博 5 搜狐 6 其他
  441. customerGender:'',// 客户性别 0 男 1 女
  442. customerAge:'',// 客户年龄
  443. groupAddition:'' ,// 加群情况 0 以加群 1 未加群
  444. remarks: null, // 关键词
  445. trendsKeyword:null,// 动态标签
  446. stateKeyword:null // 静态标签
  447. },
  448. min: 0,
  449. max: 200,
  450. handleType: '',
  451. clubUserId: 0,
  452. clubInfo: {},
  453. userInfo: {},
  454. checkedCategorysList: [],
  455. categorys: [],
  456. isConfirmLoding: false,
  457. reportText: '',
  458. checkRemarkIndex: 0,
  459. assActionList: [],
  460. isGoodspopup: false,
  461. isReportpopup: false,
  462. isHashReport: false,
  463. handleGoods: [],
  464. reportInfo: {
  465. clubId: 0,
  466. name: '',
  467. linkMan: ''
  468. },
  469. modal: false,
  470. contentModalText: '', //操作文字提示语句
  471. modalButton: [
  472. {
  473. text: '知道了',
  474. customStyle: {
  475. color: '#fff',
  476. bgColor: 'linear-gradient(90deg, #F28F31 0%, #FF5B00 100%)'
  477. },
  478. plain: false
  479. }
  480. ],
  481. }
  482. },
  483. onLoad(option) {
  484. console.log(option)
  485. if (option.type == 'edit') {
  486. this.handleType = option.type
  487. this.getPriorKeyword()
  488. this.getUserClubConsults()
  489. this.getUserClubRemarksDetail(option.remarksId)
  490. uni.setNavigationBarTitle({ title: '修改记录' })
  491. } else {
  492. this.clubUserId = option.userId
  493. this.getCulbInfo(option.userId)
  494. this.getHistoryInfo(option.userId)
  495. this.getPriorKeyword()
  496. this.getUserClubConsults()
  497. }
  498. },
  499. methods: {
  500. ...mapMutations(['login']),
  501. async getCulbInfo(userId) {
  502. // 查询机构信息
  503. try{
  504. const userInfos = await this.$api.getStorage()
  505. const res = await this.UserService.OrganizationUpdateModifyInfo({ userId: userId })
  506. const data = res.data
  507. this.clubInfo = data.club
  508. this.userInfo = data.user
  509. this.reportInfo.name = this.clubInfo.name
  510. this.reportInfo.linkMan = this.clubInfo.linkMan
  511. this.remarksParams.clubId = this.reportInfo.clubId = this.clubInfo.clubId
  512. this.remarksParams.serviceProviderId = userInfos.serviceProviderId ? userInfos.serviceProviderId : 0
  513. if (this.handleType != 'edit') {
  514. this.remarksParams.questionMan = this.clubInfo.linkMan
  515. }
  516. }catch(error){
  517. console.log('=============>', error.msg)
  518. }
  519. },
  520. async getUserClubRemarksDetail(remarksId) {
  521. //修改回显资料备注信息
  522. try{
  523. const res = await this.UserService.getUserClubRemarksDetail({ remarksId: remarksId })
  524. const data = res.data
  525. this.clubUserId = data.userId
  526. this.remarksParams.remarksId = data.remarksId
  527. this.remarksParams.communicationSituation = this.current = data.communicationSituation
  528. this.remarksParams.communicationMethods = data.communicationMethods
  529. if(data.communicationMethods === '1,2' || data.communicationMethods === '2,1'){
  530. this.checkboItems = this.checkboItems.map(el => {
  531. el.checked = true
  532. return el
  533. })
  534. }else{
  535. this.checkboItems = this.checkboItems.map(el => {
  536. if (el.value*1 === data.communicationMethods*1) {
  537. el.checked = true
  538. }
  539. return el
  540. })
  541. }
  542. this.remarksParams.extra = data.extra
  543. this.remarksParams.clubType = data.clubType
  544. this.remarksParams.pinceSensitve = data.pinceSensitve
  545. this.remarksParams.customerSource = data.customerSource
  546. this.remarksParams.customerGender = data.customerGender
  547. this.remarksParams.customerAge = this.customerAge = data.customerAge
  548. this.remarksParams.groupAddition = data.groupAddition
  549. this.remarksParams.satisfied = data.satisfied
  550. this.remarksParams.followup = data.followup
  551. this.remarksParams.fileList = data.fileList
  552. this.remarksParams.imageList = data.imageList
  553. this.remarksParams.productId = data.productId
  554. if (this.handleType == 'edit') {
  555. if (data.reportId) {
  556. this.isHashReport = true
  557. this.remarksParams.reportId = data.reportId
  558. }
  559. this.remarksParams.questionMan = data.questionMan
  560. this.remarksParams.consult = data.consult
  561. this.checkedCategorysList = data.consult.split(',').map(i => parseInt(i, 0))
  562. this.categorys = this.categorys.map((el, index) => {
  563. if(this.contains(this.checkedCategorysList,el.id)){
  564. el.isChecked = true
  565. }else{
  566. el.isChecked = false
  567. }
  568. return el
  569. })
  570. }
  571. if (data.productId) {
  572. let pro = {
  573. image: data.mainImage,
  574. name: data.productName,
  575. shopName: data.shopName
  576. }
  577. this.handleGoods.push(pro)
  578. }
  579. if(data.remarks){
  580. this.firstLabelList = data.remarks.map((el, index) => {
  581. return el.label
  582. })
  583. this.labelsList = this.labelsList.map((el, index) => {
  584. if (this.contains(this.firstLabelList, el.label)) {
  585. el.isChecked = true
  586. }
  587. return el
  588. })
  589. }
  590. if(data.stateKeyword){
  591. this.staticLabelsList = data.stateKeyword.map((el, index) => {
  592. el.isAssociation = false
  593. return el
  594. })
  595. }
  596. if(data.trendsKeyword){
  597. this.trendsLabelsList = data.trendsKeyword.map((el, index) => {
  598. el.isAssociation = false
  599. return el
  600. })
  601. }
  602. this.reportText = data.reportText ? data.reportText : ''
  603. this.priceFlagText = this.pinceFilters(data.pinceSensitve)
  604. this.intenFlagText = this.intenActionsFilters(data.satisfied)
  605. this.followStateText = this.followupFilters(data.followup)
  606. this.sourceStateText = this.sourceActionsFilters(data.customerSource)
  607. this.genderText = this.genderActionsFilters(data.customerGender)
  608. this.additiveText = this.additiveActionsFilters(data.groupAddition)
  609. this.getCulbInfo(data.userId)
  610. }catch(error){
  611. this.$util.msg(error.msg, 2000)
  612. }
  613. },
  614. async getHistoryInfo(userId) {
  615. //查询机构历史填写信息
  616. try{
  617. const res = await this.UserService.getHistoryInfo({ userId:userId })
  618. const data = res.data
  619. this.remarksParams.customerSource = data.customerSource
  620. this.remarksParams.customerGender = data.customerGender
  621. this.remarksParams.customerAge = this.customerAge = data.customerAge
  622. this.remarksParams.groupAddition = data.groupAddition
  623. this.sourceStateText = this.sourceActionsFilters(data.customerSource)
  624. this.genderText = this.genderActionsFilters(data.customerGender)
  625. this.additiveText = this.additiveActionsFilters(data.groupAddition)
  626. }catch(error){
  627. console.log('=========>查询机构历史填写信息失败')
  628. }
  629. },
  630. async getPriorKeyword() {
  631. //查询优先展示标签
  632. try{
  633. const res = await this.UserService.getPriorKeyword()
  634. const data = res.data
  635. this.labelsList = data.map((el, index) => {
  636. el.isChecked = false
  637. return el
  638. })
  639. }catch(error){
  640. console.log('=========>获取优先展示标签列表失败')
  641. }
  642. },
  643. async getUserClubConsults() {
  644. //查询咨询类别
  645. try{
  646. const res = await this.UserService.getUserClubConsults()
  647. const data = res.data
  648. this.categorys = data.map((el, index) => {
  649. el.isChecked = false
  650. return el
  651. })
  652. }catch(error){
  653. console.log('=========>获取咨询类别列表失败')
  654. }
  655. },
  656. async editButtonConfim() {
  657. //保存资料备注
  658. if (this.isConfirmLoding) {
  659. return
  660. }
  661. if(this.current === 0){
  662. if (this.remarksParams.questionMan == '') {
  663. this.$util.msg('请输入咨询人姓名', 2000)
  664. return
  665. }
  666. if (this.remarksParams.consult == '') {
  667. this.$util.msg('请选择咨询类别', 2000)
  668. return
  669. }
  670. if (!this.remarksParams.pinceSensitve) {
  671. this.$util.msg('请选择价格敏感度', 2000)
  672. return
  673. }
  674. if (!this.remarksParams.satisfied) {
  675. this.$util.msg('请选择意向程度', 2000)
  676. return
  677. }
  678. if (!this.remarksParams.followup) {
  679. this.$util.msg('请选择跟进状态', 2000)
  680. return
  681. }
  682. }
  683. //统一处理静态标签
  684. let staticLabelsList = []
  685. this.staticLabelsList.forEach( el =>{
  686. if(el.label !== ''){
  687. staticLabelsList.push(el.label)
  688. }
  689. })
  690. console.log('staticLabelsList', staticLabelsList)
  691. //统一处理动态标签
  692. let trendsLabelsList = []
  693. this.trendsLabelsList.forEach( (el) =>{
  694. if(el.label !== ''){
  695. trendsLabelsList.push(el.label)
  696. }
  697. })
  698. console.log('trendsLabelsList', trendsLabelsList)
  699. // 标签必须有一项
  700. if(this.remarksParams.communicationSituation !== 1){
  701. if (!this.firstLabelList.length && !trendsLabelsList.length && !staticLabelsList.length) {
  702. this.modal = true
  703. this.contentModalText = '标签必须选择或者填写一项'
  704. return
  705. }
  706. }
  707. if(this.firstLabelList.length > 0){
  708. this.remarksParams.remarks = JSON.stringify(this.firstLabelList)
  709. }
  710. if(trendsLabelsList.length > 0){
  711. this.remarksParams.trendsKeyword = JSON.stringify(trendsLabelsList)
  712. }
  713. if(staticLabelsList.length > 0){
  714. this.remarksParams.stateKeyword = JSON.stringify(staticLabelsList)
  715. }
  716. console.log('remarksParams', this.remarksParams)
  717. this.isConfirmLoding = true
  718. this.getUserClubRemarksSave({ params: JSON.stringify(this.remarksParams) })
  719. },
  720. async getUserClubRemarksSave(params){
  721. try{
  722. await this.UserService.getUserClubRemarksSave(params)
  723. this.$util.msg('保存成功', 3000, true, 'success')
  724. this.isConfirmLoding = false
  725. setTimeout(() => {
  726. uni.navigateBack({
  727. delta: 1
  728. })
  729. }, 1000)
  730. }catch(error){
  731. this.$util.msg(error.msg, 2000)
  732. this.isConfirmLoding = false
  733. }
  734. },
  735. choiceCategorys(category, index) {
  736. // 选择类别
  737. category.isChecked = !category.isChecked
  738. if (category.isChecked) {
  739. if (!this.contains(this.checkedCategorysList, category.id)) {
  740. this.checkedCategorysList.push(category.id)
  741. }
  742. } else {
  743. this.checkedCategorysList.splice(this.checkedCategorysList.indexOf(category.id), 1)
  744. }
  745. this.remarksParams.consult = this.checkedCategorysList.join(',')
  746. },
  747. handleShowReportPopup() {
  748. // 显示报备弹窗
  749. if (this.isHashReport) {
  750. this.$util.msg('请取消已有关联后再重新关联报备', 2000)
  751. return
  752. }
  753. this.isReportpopup = true
  754. },
  755. handleShowGoodPopup() {
  756. // 显示添加商品弹窗
  757. this.isGoodspopup = true
  758. },
  759. handleClean() {
  760. //删除选择的商品
  761. this.remarksParams.productId === 0
  762. this.handleGoods = []
  763. },
  764. handleChoiceaGoodsData(data) {
  765. console.log('data', data)
  766. this.handleGoods = []
  767. this.remarksParams.productId = data.productId
  768. this.handleGoods.push(data)
  769. },
  770. handleChoiceaReportData(data) {
  771. console.log('data', data)
  772. this.reportText = data.reportText
  773. this.remarksParams.reportId = data.reportId
  774. },
  775. contains(arr, val) {
  776. // 校验
  777. return arr.some(item => item === val)
  778. },
  779. uploadFile(array) {
  780. //上传资质文件
  781. console.log(array)
  782. uploadFilePdfDocDocxXlsx()
  783. .then(res => {
  784. let data = JSON.parse(res.data).data
  785. let obj = {
  786. fileName: uni.getStorageSync('fileName'),
  787. ossName: data.ossName
  788. }
  789. array.push(obj)
  790. console.log('array', array)
  791. })
  792. .catch(err => {
  793. console.log(err)
  794. })
  795. },
  796. uploadPhotoFn(array) {
  797. //添加图片
  798. uploadFileImage().then(res => {
  799. array.push(JSON.parse(res.data).data)
  800. })
  801. },
  802. deleteFileFn(array, index) {
  803. console.log(array)
  804. //删除文件
  805. this.UploadService.PostFileDelete({
  806. ossName: array[index].ossName
  807. })
  808. .then(res => {
  809. array.splice(index, 1)
  810. })
  811. .catch(error => {
  812. console.log('删除文件异常提示===>', error.msg)
  813. })
  814. },
  815. deletePhotoFn(array, index) {
  816. //删除图片
  817. array.splice(index, 1)
  818. },
  819. previewImg(image, index) {
  820. //顶部商品图片预览
  821. isPreviewImg = true
  822. let previewUrls = image
  823. uni.previewImage({
  824. current: index, //图片索引
  825. urls: previewUrls, //必须是http图片,本地图片无效
  826. longPressActions: ''
  827. })
  828. },
  829. conInput(e) {
  830. //备注文字字数限制
  831. let value = e.detail.value
  832. let len = parseInt(value.length)
  833. if (len > this.max) return
  834. this.min = len
  835. if (this.min == 200) {
  836. this.$util.msg('您输入的字数已达上限', 2000)
  837. }
  838. },
  839. handleClickClunInfo() {
  840. //修改机构资料
  841. if (this.userInfo.userIdentity === 2) {
  842. this.$api.navigateTo(`/pages/seller/login/apply?userID=${this.userInfo.userId}`)
  843. } else if (this.userInfo.userIdentity === 4) {
  844. this.$api.navigateTo(`/pages/seller/login/information?userID=${this.userInfo.userId}`)
  845. }
  846. },
  847. handleClick() {
  848. this.modal = false
  849. },
  850. followupFilters(value) {
  851. // 订单来源
  852. const map = {
  853. 1: '跟进中',
  854. 2: '跟进完成',
  855. 3: '已放弃'
  856. }
  857. return map[value]
  858. },
  859. pinceFilters(value) {
  860. // 意向
  861. const map = {
  862. 1: '敏感',
  863. 2: '适中',
  864. 3: '不敏感',
  865. 4: '不明确'
  866. }
  867. return map[value]
  868. },
  869. intenActionsFilters(value) {
  870. // 意向
  871. const map = {
  872. 1: '意向强烈',
  873. 2: '意向一般',
  874. 3: '意向平淡',
  875. 4: '随便看看'
  876. }
  877. return map[value]
  878. },
  879. sourceActionsFilters(value) {
  880. // 客户来源
  881. const map = {
  882. 0: '搜素引擎',
  883. 1: '小程序',
  884. 2: '公众号',
  885. 3: '小红书',
  886. 4: '微博',
  887. 5: '搜狐',
  888. 7: '抖音',
  889. 8: '视频号',
  890. 9: '朋友推荐',
  891. 6: '其他',
  892. }
  893. return map[value]
  894. },
  895. genderActionsFilters(value) {
  896. // 客户性别
  897. const map = {
  898. 0: '男',
  899. 1: '女'
  900. }
  901. return map[value]
  902. },
  903. additiveActionsFilters(value) {
  904. // 加群情况
  905. const map = {
  906. 0: '已加群',
  907. 1: '未加群'
  908. }
  909. return map[value]
  910. },
  911. },
  912. onShow() {}
  913. }
  914. </script>
  915. <style lang="scss">
  916. page {
  917. height: auto;
  918. background: #ffffff;
  919. }
  920. .remarks-content-club {
  921. width: 100%;
  922. height: 288rpx;
  923. padding: 24rpx;
  924. box-sizing: border-box;
  925. border-bottom: 20rpx solid #f7f7f7;
  926. .content-club-le {
  927. width: 660rpx;
  928. float: left;
  929. .club-le-text {
  930. width: 100%;
  931. height: 60rpx;
  932. line-height: 60rpx;
  933. font-size: $font-size-28;
  934. color: #333333;
  935. .label {
  936. color: #999999;
  937. &.phone {
  938. margin-left: 48rpx;
  939. }
  940. }
  941. }
  942. }
  943. .content-club-ri {
  944. width: 40rpx;
  945. height: 160rpx;
  946. float: right;
  947. line-height: 160rpx;
  948. text-align: center;
  949. color: #b2b2b2;
  950. }
  951. }
  952. .remarks-content {
  953. width: 100%;
  954. height: auto;
  955. box-sizing: border-box;
  956. padding: 0 24rpx;
  957. padding-bottom: 160rpx;
  958. .list-view-title {
  959. width: 100%;
  960. height: auto;
  961. margin-bottom: 16rpx;
  962. margin-top: 40rpx;
  963. .list-view-h1 {
  964. line-height: 40rpx;
  965. font-size: $font-size-28;
  966. color: #333333;
  967. text-align: left;
  968. text {
  969. color: #ff2a2a;
  970. }
  971. }
  972. .list-view-p {
  973. line-height: 30rpx;
  974. color: #fea785;
  975. font-size: $font-size-20;
  976. }
  977. }
  978. .tui-remarks-content {
  979. width: 100%;
  980. height: auto;
  981. margin-bottom: 24rpx;
  982. .tui-remarks-goods-input {
  983. width: 100%;
  984. height: 180rpx;
  985. box-sizing: border-box;
  986. background-color: #f7f7f7;
  987. padding: 26rpx;
  988. border-radius: 6rpx;
  989. .input-add {
  990. width: 128rpx;
  991. height: 128rpx;
  992. line-height: 128rpx;
  993. float: left;
  994. text-align: center;
  995. box-sizing: border-box;
  996. border: 1px dashed #b2b2b2;
  997. border-radius: 6rpx;
  998. .iconfont {
  999. font-size: 44rpx;
  1000. color: #b2b2b2;
  1001. }
  1002. }
  1003. .input-text {
  1004. height: 128rpx;
  1005. box-sizing: border-box;
  1006. padding: 0 32rpx;
  1007. line-height: 128rpx;
  1008. text-align: left;
  1009. font-size: 26rpx;
  1010. color: #b2b2b2;
  1011. float: left;
  1012. }
  1013. }
  1014. .tui-remarks-showgoods {
  1015. width: 100%;
  1016. height: 180rpx;
  1017. box-sizing: border-box;
  1018. .tui-remarks-btn {
  1019. width: 90rpx;
  1020. height: 180rpx;
  1021. float: right;
  1022. .btn {
  1023. width: 100%;
  1024. height: 90rpx;
  1025. float: left;
  1026. line-height: 90rpx;
  1027. text-align: center;
  1028. font-size: 26rpx;
  1029. &.delete {
  1030. color: #f94b4b;
  1031. }
  1032. &.update {
  1033. color: #1890f9;
  1034. }
  1035. }
  1036. }
  1037. .tui-remarks-goods {
  1038. width: 612rpx;
  1039. height: 180rpx;
  1040. box-sizing: border-box;
  1041. background-color: #f7f7f7;
  1042. padding: 26rpx;
  1043. border-radius: 6rpx;
  1044. float: left;
  1045. .goods-image {
  1046. width: 128rpx;
  1047. height: 128rpx;
  1048. float: left;
  1049. image {
  1050. width: 128rpx;
  1051. height: 128rpx;
  1052. display: block;
  1053. border-radius: 4rpx;
  1054. }
  1055. }
  1056. .goods-main {
  1057. width: 432rpx;
  1058. height: 128rpx;
  1059. box-sizing: border-box;
  1060. padding-left: 32rpx;
  1061. float: right;
  1062. .name {
  1063. width: 100%;
  1064. height: 60rpx;
  1065. box-sizing: border-box;
  1066. line-height: 60rpx;
  1067. color: #333333;
  1068. text-overflow: ellipsis;
  1069. overflow: hidden;
  1070. display: -webkit-box;
  1071. -webkit-line-clamp: 1;
  1072. line-clamp: 1;
  1073. -webkit-box-orient: vertical;
  1074. font-size: 26rpx;
  1075. }
  1076. .shop {
  1077. line-height: 60rpx;
  1078. color: #999999;
  1079. font-size: 26rpx;
  1080. text-overflow: ellipsis;
  1081. overflow: hidden;
  1082. display: -webkit-box;
  1083. -webkit-line-clamp: 1;
  1084. line-clamp: 1;
  1085. -webkit-box-orient: vertical;
  1086. }
  1087. }
  1088. }
  1089. }
  1090. }
  1091. .list-view-radio {
  1092. width: 100%;
  1093. height: 90rpx;
  1094. box-sizing: border-box;
  1095. padding: 0 10rpx;
  1096. border: 1px solid #b2b2b2;
  1097. border-radius: 6rpx;
  1098. margin-bottom: 30rpx;
  1099. position: relative;
  1100. &.btn {
  1101. border: none;
  1102. margin-top: 40rpx;
  1103. }
  1104. .input {
  1105. width: 100%;
  1106. height: 90rpx;
  1107. line-height: 90rpx;
  1108. float: left;
  1109. box-sizing: border-box;
  1110. font-size: $font-size-24;
  1111. color: #333333;
  1112. padding: 0 10rpx;
  1113. padding-right: 90rpx;
  1114. }
  1115. .iconfont {
  1116. width: 50rpx;
  1117. height: 90rpx;
  1118. display: block;
  1119. line-height: 90rpx;
  1120. text-align: center;
  1121. font-size: 30rpx;
  1122. color: #999999;
  1123. position: absolute;
  1124. right: 0;
  1125. top: 0;
  1126. }
  1127. }
  1128. .list-view-list-main {
  1129. width: 100%;
  1130. height: auto;
  1131. box-sizing: border-box;
  1132. margin-bottom: 30rpx;
  1133. position: relative;
  1134. .list-label-list{
  1135. width: 100%;
  1136. height: auto;
  1137. box-sizing: border-box;
  1138. .list-label{
  1139. display: inline-block;
  1140. padding: 0 20rpx;
  1141. height: 48rpx;
  1142. line-height: 48rpx;
  1143. background: #F7F7F7;
  1144. text-align: center;
  1145. margin-right: 20rpx;
  1146. margin-bottom: 20rpx;
  1147. font-size: 26rpx;
  1148. color: #666666;
  1149. &.active{
  1150. background: #FEF6F3;
  1151. color: #FF5B00;
  1152. }
  1153. }
  1154. }
  1155. .list-view-list {
  1156. width: 100%;
  1157. height: 90rpx;
  1158. box-sizing: border-box;
  1159. margin-bottom: 30rpx;
  1160. .list-view-input {
  1161. width: 614rpx;
  1162. height: 90rpx;
  1163. float: left;
  1164. position: relative;
  1165. .input {
  1166. width: 614rpx;
  1167. height: 90rpx;
  1168. box-sizing: border-box;
  1169. padding: 0 20rpx;
  1170. border: 1px solid #b2b2b2;
  1171. border-radius: 6rpx;
  1172. font-size: $font-size-24;
  1173. color: #333333;
  1174. }
  1175. .list-view-assAction {
  1176. width: 614rpx;
  1177. min-height: 270rpx;
  1178. box-sizing: border-box;
  1179. padding: 10rpx 0;
  1180. background: rgba(255, 255, 255, 1);
  1181. box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.15);
  1182. border-radius: 6rpx;
  1183. position: absolute;
  1184. top: -288rpx;
  1185. left: 0;
  1186. z-index: 999;
  1187. overflow: hidden;
  1188. .tui-popup-scroll {
  1189. width: 100%;
  1190. height: 270rpx;
  1191. }
  1192. .ass-list {
  1193. width: 100%;
  1194. height: 90rpx;
  1195. box-sizing: border-box;
  1196. padding: 0 24rpx;
  1197. line-height: 90rpx;
  1198. font-size: $font-size-26;
  1199. color: #666666;
  1200. text-align: left;
  1201. border-bottom: 1px solid #e1e1e1;
  1202. &:last-child {
  1203. border-bottom: none;
  1204. }
  1205. }
  1206. }
  1207. }
  1208. .list-view-btn {
  1209. width: 88rpx;
  1210. height: 90rpx;
  1211. float: right;
  1212. text-align: center;
  1213. line-height: 90rpx;
  1214. .icon-zengjia {
  1215. color: #1890f9;
  1216. font-size: $font-size-48;
  1217. }
  1218. .icon-shanchu4 {
  1219. color: #ff5b00;
  1220. font-size: $font-size-48;
  1221. }
  1222. }
  1223. }
  1224. }
  1225. .remarks-category {
  1226. width: 100%;
  1227. float: left;
  1228. margin-bottom: 20rpx;
  1229. .label {
  1230. color: #666666;
  1231. font-size: 28rpx;
  1232. margin-right: 50rpx;
  1233. }
  1234. .checkbox-list {
  1235. height: 60rpx;
  1236. font-size: $font-size-28;
  1237. line-height: 60rpx;
  1238. border-radius: 10rpx;
  1239. margin-right: 20rpx;
  1240. margin-bottom: 10rpx;
  1241. box-sizing: border-box;
  1242. float: left;
  1243. .icon-yixuanze {
  1244. margin-right: 10rpx;
  1245. color: #ff5b00;
  1246. }
  1247. .icon-weixuanze {
  1248. margin-right: 10rpx;
  1249. color: #b2b2b2;
  1250. }
  1251. }
  1252. .item-text {
  1253. display: inline-block;
  1254. font-size: 26rpx;
  1255. color: #333333;
  1256. border-radius: 28rpx;
  1257. line-height: 50rpx;
  1258. }
  1259. }
  1260. .remarks-input {
  1261. width: 100%;
  1262. height: 90rpx;
  1263. padding: 0 16rpx;
  1264. margin: 20rpx 0 0 0;
  1265. border-radius: 6rpx;
  1266. position: relative;
  1267. border: 1px solid #b2b2b2;
  1268. box-sizing: border-box;
  1269. .input {
  1270. width: 100%;
  1271. height: 90rpx;
  1272. line-height: 90rpx;
  1273. font-size: $font-size-26;
  1274. color: $text-color;
  1275. z-index: 1;
  1276. }
  1277. }
  1278. .remarks-textarea {
  1279. width: 100%;
  1280. height: 226rpx;
  1281. padding: 16rpx;
  1282. margin: 20rpx 0 0 0;
  1283. border-radius: 6rpx;
  1284. position: relative;
  1285. border: 1px solid #b2b2b2;
  1286. box-sizing: border-box;
  1287. .textarea {
  1288. width: 100%;
  1289. height: 100%;
  1290. line-height: 36rpx;
  1291. font-size: $font-size-26;
  1292. color: $text-color;
  1293. z-index: 1;
  1294. }
  1295. .limit-text {
  1296. position: absolute;
  1297. right: 20rpx;
  1298. bottom: 16rpx;
  1299. line-height: 44rpx;
  1300. font-size: $font-size-24;
  1301. color: #b2b2b2;
  1302. }
  1303. }
  1304. .list-view {
  1305. width: 100%;
  1306. height: 40rpx;
  1307. margin-top: 20rpx;
  1308. .list-view-file {
  1309. width: 132rpx;
  1310. height: 44rpx;
  1311. line-height: 44rpx;
  1312. font-size: $font-size-20;
  1313. text-align: center;
  1314. color: #ffffff;
  1315. background-color: $color-system;
  1316. border-radius: 8rpx;
  1317. float: left;
  1318. margin-top: 10rpx;
  1319. }
  1320. .list-view-text {
  1321. width: 100%;
  1322. float: left;
  1323. .input {
  1324. width: 560rpx;
  1325. height: 44rpx;
  1326. box-sizing: border-box;
  1327. line-height: 44rpx;
  1328. color: #333333;
  1329. text-overflow: ellipsis;
  1330. overflow: hidden;
  1331. display: -webkit-box;
  1332. -webkit-line-clamp: 1;
  1333. line-clamp: 1;
  1334. -webkit-box-orient: vertical;
  1335. float: left;
  1336. }
  1337. .delbtn {
  1338. width: 96rpx;
  1339. height: 44rpx;
  1340. border-radius: 8rpx;
  1341. background-color: #fff2ec;
  1342. font-size: $font-size-24;
  1343. color: #ff5b00;
  1344. line-height: 44rpx;
  1345. text-align: center;
  1346. float: left;
  1347. }
  1348. }
  1349. }
  1350. .list-view-upload {
  1351. width: 100%;
  1352. height: auto;
  1353. .photo-item {
  1354. display: inline-block;
  1355. width: 112rpx;
  1356. height: 112rpx;
  1357. margin: 10rpx 0;
  1358. margin-right: 25rpx;
  1359. border-radius: 10rpx;
  1360. border: 1px solid #f5f5f5;
  1361. position: relative;
  1362. float: left;
  1363. &.add {
  1364. width: 112rpx;
  1365. height: 112rpx;
  1366. border-color: #b2b2b2;
  1367. text-align: center;
  1368. line-height: 112rpx;
  1369. margin-right: 0rpx;
  1370. .icon-jiahao {
  1371. font-size: $font-size-44;
  1372. color: #b2b2b2;
  1373. font-weight: bold;
  1374. }
  1375. }
  1376. .icon-iconfontguanbi {
  1377. width: 30rpx;
  1378. height: 30rpx;
  1379. border-radius: 50%;
  1380. display: block;
  1381. position: absolute;
  1382. right: -10rpx;
  1383. top: -10rpx;
  1384. background: #f94b4b;
  1385. text-align: center;
  1386. line-height: 30rpx;
  1387. color: #ffffff;
  1388. font-size: $font-size-22;
  1389. }
  1390. image {
  1391. width: 112rpx;
  1392. height: 112rpx;
  1393. border-radius: 10rpx;
  1394. }
  1395. }
  1396. .photo-list {
  1397. width: 100%;
  1398. height: 116rpx;
  1399. overflow: hidden;
  1400. white-space: nowrap;
  1401. display: flex;
  1402. align-items: flex-start;
  1403. }
  1404. }
  1405. }
  1406. .remarks-btn {
  1407. width: 100%;
  1408. padding-top: 20rpx;
  1409. position: fixed;
  1410. bottom: 0;
  1411. left: 0;
  1412. background-color: #ffffff;
  1413. z-index: 99;
  1414. .edit-button-canel {
  1415. width: 100%;
  1416. height: 88rpx;
  1417. line-height: 88rpx;
  1418. text-align: center;
  1419. color: #ff5b00;
  1420. font-size: $font-size-24;
  1421. }
  1422. .edit-button {
  1423. width: 600rpx;
  1424. height: 90rpx;
  1425. background: $btn-confirm;
  1426. line-height: 90rpx;
  1427. text-align: center;
  1428. color: #ffffff;
  1429. font-size: $font-size-30;
  1430. margin: 0 auto;
  1431. border-radius: 45rpx;
  1432. }
  1433. }
  1434. </style>