add-record.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876
  1. <template>
  2. <view class="container qualifications" :style="{ paddingBottom: isIphoneX ? '68rpx' : '0' }">
  3. <view class="remarks-content">
  4. <view class="list-view-title">
  5. <view class="list-view-h1">咨询人:</view>
  6. </view>
  7. <view class="remarks-input">{{ questionMan }}</view>
  8. <view class="list-view-title">
  9. <view class="list-view-h1"><text>*</text>咨询类别:</view>
  10. </view>
  11. <view class="remarks-category">
  12. <view
  13. class="checkbox-list"
  14. :class="category.isChecked ? 'checked' : ''"
  15. v-for="(category, index) in categorys"
  16. :key="index"
  17. @click="choiceCategorys(category, index)"
  18. >
  19. <text class="iconfont" :class="category.isChecked ? 'icon-yixuanze' : 'icon-weixuanze'"></text>
  20. {{ category.className }}
  21. </view>
  22. </view>
  23. <view class="list-view-title"> <view class="list-view-h1">机构类型:</view> </view>
  24. <view class="remarks-input">
  25. <input
  26. class="input"
  27. type="text"
  28. v-model="remarksParams.clubType"
  29. value=""
  30. placeholder="如美甲店,医院"
  31. maxlength="15"
  32. />
  33. </view>
  34. <view class="list-view-title">
  35. <view class="list-view-h1"><text>*</text>关键词记录:</view>
  36. <view class="list-view-p"
  37. >(请总结客户的咨询内容,以商品或者服务的关键词形式填写,不需要填口语化的内容。)</view
  38. >
  39. </view>
  40. <view class="list-view-list-main">
  41. <view class="list-view-list" v-for="(item, index) in remarksList" :key="index">
  42. <view class="list-view-input">
  43. <input
  44. class="input"
  45. type="text"
  46. v-model="item.label"
  47. placeholder="请输入关键词,不超过10个汉字"
  48. maxlength="10"
  49. @focus="hideAssAction(item, $event)"
  50. @blur="hideAssAction(item, $event)"
  51. @input="bindRemarkAction(index, $event)"
  52. />
  53. <view class="list-view-assAction" v-if="item.isAssociation">
  54. <scroll-view class="tui-popup-scroll train" scroll-y="true">
  55. <view
  56. class="ass-list"
  57. v-for="(ass, assIndex) in assActionList"
  58. :key="assIndex"
  59. @click="SelectAssociationFn(ass.remarks,item)"
  60. >{{ ass.remarks }}</view
  61. >
  62. </scroll-view>
  63. </view>
  64. </view>
  65. <view class="list-view-btn">
  66. <text
  67. class="iconfont icon-zengjia"
  68. v-if="remarksList.length < 9 && index === remarksList.length - 1"
  69. @click="addListFn(item, index)"
  70. ></text>
  71. <text
  72. class="iconfont icon-shanchu4"
  73. v-if="remarksList.length > 1 && index != remarksList.length - 1"
  74. @click="deleteLogistItemFn(item, index)"
  75. ></text>
  76. </view>
  77. </view>
  78. </view>
  79. <view class="list-view-title">
  80. <view class="list-view-h1"><text>*</text>价格敏感度:</view>
  81. </view>
  82. <view class="list-view-radio">
  83. <picker @change="bindPickerChange(1, $event)" :value="index" :range="priceActions" range-key="name">
  84. <input
  85. class="input"
  86. type="text"
  87. disabled="false"
  88. v-model="priceFlagText"
  89. value=""
  90. placeholder="请选择"
  91. />
  92. <text class="iconfont icon-xiangyou"></text>
  93. </picker>
  94. </view>
  95. <view class="list-view-title">
  96. <view class="list-view-h1"><text>*</text>意向程度:</view>
  97. </view>
  98. <view class="list-view-radio">
  99. <picker @change="bindPickerChange(2, $event)" :value="index" :range="intenActions" range-key="name">
  100. <input
  101. class="input"
  102. type="text"
  103. disabled="false"
  104. v-model="intenFlagText"
  105. value=""
  106. placeholder="请选择"
  107. />
  108. <text class="iconfont icon-xiangyou"></text>
  109. </picker>
  110. </view>
  111. <view class="list-view-title">
  112. <view class="list-view-h1"><text>*</text>跟进状态:</view>
  113. </view>
  114. <view class="list-view-radio">
  115. <picker @change="bindPickerChange(3, $event)" :value="index" :range="stateActions" range-key="name">
  116. <input
  117. class="input"
  118. type="text"
  119. disabled="false"
  120. v-model="followStateText"
  121. value=""
  122. placeholder="请选择"
  123. />
  124. <text class="iconfont icon-xiangyou"></text>
  125. </picker>
  126. </view>
  127. <view class="list-view-title"> <view class="list-view-h1">额外说明:</view> </view>
  128. <view class="remarks-textarea">
  129. <textarea
  130. class="textarea"
  131. v-model="remarksParams.extra"
  132. value=""
  133. placeholder="请输入其他需要说明的内容"
  134. maxlength="200"
  135. @input="conInput"
  136. />
  137. <text class="limit-text">{{ min }}/{{ max }}</text>
  138. </view>
  139. <view class="list-view-title">
  140. <view class="list-view-h1">上传图片</view>
  141. <view class="list-view-p">(可上传与客户的聊天截图或其他重要图片资料,最多10张)</view>
  142. </view>
  143. <view class="list-view-upload clearfix">
  144. <view class="photo-item" v-for="(image, imageIndex) in remarksParams.imageList" :key="imageIndex">
  145. <image
  146. :src="image"
  147. mode="aspectFill"
  148. @click.stop="previewImg(remarksParams.imageList, imageIndex)"
  149. ></image>
  150. <text
  151. class="iconfont icon-iconfontguanbi"
  152. @click.stop="deletePhotoFn(remarksParams.imageList, imageIndex)"
  153. ></text>
  154. </view>
  155. <view
  156. class="photo-item add"
  157. @click.stop="uploadPhotoFn(remarksParams.imageList)"
  158. v-if="remarksParams.imageList.length < 10 || remarksParams.imageList.length == 0"
  159. >
  160. <text class="iconfont icon-jiahao"></text>
  161. </view>
  162. </view>
  163. <view class="list-view-title">
  164. <view class="list-view-h1">上传文件</view>
  165. <view class="list-view-p">(可上传与客户相关的文件资料,最多10份,支持word,excel,ppt和pdf格式文件)</view>
  166. </view>
  167. <view class="list-view" v-for="(file, fileIndex) in remarksParams.fileList" :key="fileIndex">
  168. <view class="list-view-text">
  169. <view class="input">{{ file.fileName }}</view>
  170. <view class="delbtn" @click.stop="deleteFileFn(remarksParams.fileList, fileIndex)">删除</view>
  171. </view>
  172. </view>
  173. <view class="list-view">
  174. <view class="list-view-file" @click="uploadFile(remarksParams.fileList)">选择文件</view>
  175. </view>
  176. </view>
  177. <view class="remarks-btn" :style="{ paddingBottom: isIphoneX ? '68rpx' : '34rpx' }">
  178. <view class="edit-button" @click="editButtonConfim">确定</view>
  179. </view>
  180. </view>
  181. </template>
  182. <script>
  183. import { mapState, mapMutations } from 'vuex'
  184. import authorize from '@/common/config/authorize.js'
  185. import { uploadFileImage, uploadFilePdfDocDocxXlsx } from '@/services/public.js'
  186. var isPreviewImg
  187. export default {
  188. data() {
  189. return {
  190. isIphoneX: this.$store.state.isIphoneX,
  191. shopOrderId: 0,
  192. logisticsBatchId: 0,
  193. productActions: [],
  194. remarksParams: {
  195. clubType:'', //机构类型
  196. remarks:[], // 关键词
  197. extra: '',//额外说明
  198. fileList: [],
  199. imageList: [],
  200. questionManId: 0,
  201. serviceProviderId: 0,
  202. consult:'',
  203. pinceSensitve:0,//价格敏感度
  204. satisfied:0,// 意向程度
  205. followup:0,// 跟进状态
  206. },
  207. min: 0,
  208. max: 200,
  209. handleType:'',
  210. questionMan:'',
  211. clubUserId:0,
  212. clubInfo:{},
  213. userInfo:{},
  214. checkedCategorysList:[],
  215. categorys:[],
  216. priceFlagText: '',
  217. intenFlagText: '',
  218. followStateText: '',
  219. priceActions: [
  220. { name: '敏感', value: 1 },
  221. { name: '适中', value: 2 },
  222. { name: '不敏感', value: 3 },
  223. { name: '不明确', value: 4 }
  224. ],
  225. intenActions: [
  226. { name: '意向强烈', value: 1 },
  227. { name: '意向一般', value: 2 },
  228. { name: '意向平淡', value: 3 },
  229. { name: '随便看看', value: 4 }
  230. ],
  231. stateActions: [{ name: '跟进中', value: 1 }, { name: '跟进完成', value: 2 }, { name: '已放弃', value: 3 }],
  232. remarksList: [
  233. {
  234. label: '',
  235. isAssociation:false
  236. }
  237. ],
  238. checkRemarkIndex:0,
  239. assActionList: []
  240. }
  241. },
  242. onLoad(option) {
  243. console.log(option)
  244. if (option.type == 'edit') {
  245. this.handleType = option.type
  246. this.getUserClubConsults()
  247. this.getUserRemarksVisitDetail(option.remarksId)
  248. uni.setNavigationBarTitle({title:'修改记录'})
  249. } else {
  250. this.questionMan = option.questionMan
  251. this.remarksParams.questionManId = option.questionManId
  252. this.initGetStotage(option)
  253. this.getUserClubConsults()
  254. }
  255. },
  256. methods: {
  257. ...mapMutations(['login']),
  258. async initGetStotage(option) {
  259. const userInfo = await this.$api.getStorage()
  260. this.remarksParams.serviceProviderId = userInfo.serviceProviderId ? userInfo.serviceProviderId : 0
  261. },
  262. getUserRemarksVisitDetail(remarksId) {
  263. //修改回显资料备注信息
  264. this.UserService.getUserRemarksVisitDetail({
  265. remarksId : remarksId
  266. })
  267. .then(response => {
  268. let data = response.data
  269. this.questionMan = data.questionMan
  270. this.remarksList = data.remarks.map((el, index) => {
  271. el.isAssociation = false
  272. return el
  273. })
  274. this.remarksParams.questionManId = data.questionManId
  275. this.remarksParams.remarksId = data.remarksId
  276. this.remarksParams.extra = data.extra
  277. this.remarksParams.clubType = data.clubType
  278. this.remarksParams.pinceSensitve = data.pinceSensitve
  279. this.remarksParams.satisfied = data.satisfied
  280. this.remarksParams.followup = data.followup
  281. this.remarksParams.fileList = data.fileList
  282. this.remarksParams.imageList = data.imageList
  283. this.remarksParams.consult = data.consult
  284. this.checkedCategorysList = data.consult.split(',').map(i => parseInt(i, 0))
  285. this.categorys = this.categorys.map((el, index) => {
  286. if(data.consult.includes(el.id)){
  287. el.isChecked = true
  288. }else{
  289. el.isChecked = false
  290. }
  291. return el
  292. })
  293. this.priceFlagText = this.pinceFilters(data.pinceSensitve)
  294. this.intenFlagText = this.intenActionsFilters(data.satisfied)
  295. this.followStateText = this.followupFilters(data.followup)
  296. this.initGetStotage()
  297. })
  298. .catch(error => {
  299. this.$util.msg(error.msg, 2000)
  300. })
  301. },
  302. getUserClubConsults() {
  303. //查询咨询类别
  304. this.UserService.getUserClubConsults()
  305. .then(response => {
  306. this.categorys = response.data.map((el, index) => {
  307. el.isChecked = false
  308. return el
  309. })
  310. })
  311. .catch(error => {
  312. console.log('=========>获取咨询类别列表失败')
  313. })
  314. },
  315. bindRemarkAction(index, event) {
  316. this.checkRemarkIndex = index
  317. this.assActionList = []
  318. if (event.detail.value != '') {
  319. this.UserService.getCmremarkslist({remarks : event.detail.value}).then(response => {
  320. if(response.data&&response.data.length>0){
  321. this.assActionList = response.data
  322. this.remarksList[index].isAssociation = true
  323. }else{
  324. this.assActionList = []
  325. this.remarksList[index].isAssociation = false
  326. }
  327. })
  328. .catch(error => {
  329. console.log('=========>获取关键词联想失败')
  330. })
  331. } else {
  332. this.remarksList[index].isAssociation = false
  333. }
  334. },
  335. hideAssAction(item, event){//隐藏对应的联想弹窗
  336. item.isAssociation = false
  337. },
  338. SelectAssociationFn(ass,item) {
  339. //选择关键词
  340. item.isAssociation = false
  341. item.label = ass
  342. },
  343. addListFn(item,index) {
  344. //添加
  345. let obj = { label: '',isAssociation:false}
  346. item.isAssociation = false
  347. this.remarksList.push(obj)
  348. },
  349. deleteLogistItemFn(item, index) {
  350. this.remarksList.splice(index, 1)
  351. },
  352. bindPickerChange(type, e) {
  353. //选择筛选条件
  354. switch (type) {
  355. case 1:
  356. this.priceFlagText = this.priceActions[e.target.value].name
  357. this.remarksParams.pinceSensitve = this.priceActions[e.target.value].value
  358. break
  359. case 2:
  360. this.intenFlagText = this.intenActions[e.target.value].name
  361. this.remarksParams.satisfied = this.intenActions[e.target.value].value
  362. break
  363. case 3:
  364. this.followStateText = this.stateActions[e.target.value].name
  365. this.remarksParams.followup = this.stateActions[e.target.value].value
  366. break
  367. }
  368. },
  369. editButtonConfim() {
  370. //保存资料备注
  371. if (this.remarksParams.consult == '') {
  372. this.$util.msg('请选择咨询类别', 2000)
  373. return
  374. }
  375. //统一处理关键词
  376. let remarksList = []
  377. for (const el of this.remarksList) {
  378. if(el.label!=''){
  379. remarksList.push(el.label)
  380. }
  381. }
  382. if (remarksList.length == 0) {
  383. this.$util.msg('请输入关键词记录', 2000)
  384. return
  385. }
  386. if (!this.remarksParams.pinceSensitve) {
  387. this.$util.msg('请选择价格敏感度', 2000)
  388. return
  389. }
  390. if (!this.remarksParams.satisfied) {
  391. this.$util.msg('请选择意向程度', 2000)
  392. return
  393. }
  394. if (!this.remarksParams.followup) {
  395. this.$util.msg('请选择跟进状态', 2000)
  396. return
  397. }
  398. this.remarksParams.remarks = JSON.stringify(remarksList)
  399. console.log('remarksParams',this.remarksParams)
  400. this.UserService.getUserClubVisitorSaveAdd({
  401. params: JSON.stringify(this.remarksParams)
  402. })
  403. .then(response => {
  404. this.$util.msg('保存成功', 2000, true, 'success')
  405. let VisitorInfo = {
  406. questionManId: this.remarksParams.questionManId,
  407. questionMan: this.questionMan
  408. }
  409. this.$api.setStorage('VisitorInfo', VisitorInfo)
  410. setTimeout(() => {
  411. uni.navigateBack({
  412. delta: 1
  413. })
  414. }, 2000)
  415. })
  416. .catch(error => {
  417. this.$util.msg(error.msg, 2000)
  418. })
  419. },
  420. choiceCategorys(category,index){
  421. // 选择类别
  422. category.isChecked = !category.isChecked
  423. if (category.isChecked) {
  424. if(!this.contains(this.checkedCategorysList,category.id)){
  425. this.checkedCategorysList.push(category.id)
  426. }
  427. } else {
  428. this.checkedCategorysList.splice(this.checkedCategorysList.indexOf(category.id),1)
  429. }
  430. this.remarksParams.consult = this.checkedCategorysList.join(',')
  431. },
  432. contains(arr, val) {// 校验
  433. return arr.some(item => item === val)
  434. },
  435. uploadFile(array) {
  436. //上传资质文件
  437. console.log(array)
  438. uploadFilePdfDocDocxXlsx().then(res => {
  439. let data = JSON.parse(res.data).data
  440. let obj = {
  441. fileName: uni.getStorageSync('fileName'),
  442. ossName: data.ossName
  443. }
  444. array.push(obj)
  445. }).catch(err=>{
  446. console.log(err)
  447. })
  448. },
  449. uploadPhotoFn(array) {
  450. //添加图片
  451. uploadFileImage().then(res => {
  452. array.push(JSON.parse(res.data).data)
  453. })
  454. },
  455. deleteFileFn(array, index) {
  456. console.log(array)
  457. //删除文件
  458. this.UploadService.PostFileDelete({
  459. ossName: array[index].ossName
  460. })
  461. .then(res => {
  462. array.splice(index, 1)
  463. })
  464. .catch(error => {
  465. console.log('删除文件异常提示===>', error.msg)
  466. })
  467. },
  468. deletePhotoFn(array, index) {
  469. //删除图片
  470. array.splice(index, 1)
  471. },
  472. previewImg(image, index) {
  473. //顶部商品图片预览
  474. isPreviewImg = true
  475. let previewUrls = image
  476. uni.previewImage({
  477. current: index, //图片索引
  478. urls: previewUrls, //必须是http图片,本地图片无效
  479. longPressActions: ''
  480. })
  481. },
  482. conInput(e) {
  483. //备注文字字数限制
  484. let value = e.detail.value
  485. let len = parseInt(value.length)
  486. if (len > this.max) return
  487. this.min = len
  488. if (this.min == 200) {
  489. this.$util.msg('您输入的字数已达上限', 2000)
  490. }
  491. },
  492. followupFilters(value) {
  493. // 订单来源
  494. const map = {
  495. 1: '跟进中',
  496. 2: '跟进完成',
  497. 3: '已放弃'
  498. }
  499. return map[value]
  500. },
  501. pinceFilters(value) {
  502. // 意向
  503. const map = {
  504. 1: '敏感',
  505. 2: '适中',
  506. 3: '不敏感',
  507. 4: '不明确'
  508. }
  509. return map[value]
  510. },
  511. intenActionsFilters(value) {
  512. // 意向
  513. const map = {
  514. 1: '意向强烈',
  515. 2: '意向一般',
  516. 3: '意向平淡',
  517. 4: '随便看看'
  518. }
  519. return map[value]
  520. }
  521. },
  522. onShow() {}
  523. }
  524. </script>
  525. <style lang="scss">
  526. page {
  527. height: auto;
  528. background: #ffffff;
  529. }
  530. .remarks-content {
  531. width: 100%;
  532. height: auto;
  533. box-sizing: border-box;
  534. padding: 0 24rpx;
  535. padding-bottom: 160rpx;
  536. .list-view-title {
  537. width: 100%;
  538. height: auto;
  539. margin-bottom: 16rpx;
  540. margin-top: 20rpx;
  541. .list-view-h1 {
  542. line-height: 40rpx;
  543. font-size: $font-size-28;
  544. color: #333333;
  545. text-align: left;
  546. text {
  547. color: #ff2a2a;
  548. }
  549. }
  550. .list-view-p {
  551. line-height: 30rpx;
  552. color: #fea785;
  553. font-size: $font-size-20;
  554. }
  555. }
  556. .list-view-radio {
  557. width: 100%;
  558. height: 90rpx;
  559. box-sizing: border-box;
  560. padding: 0 10rpx;
  561. border: 1px solid #b2b2b2;
  562. border-radius: 6rpx;
  563. margin-bottom: 30rpx;
  564. position: relative;
  565. &.btn {
  566. border: none;
  567. margin-top: 40rpx;
  568. }
  569. .input {
  570. width: 100%;
  571. height: 90rpx;
  572. line-height: 90rpx;
  573. float: left;
  574. box-sizing: border-box;
  575. font-size: $font-size-24;
  576. color: #333333;
  577. padding: 0 10rpx;
  578. padding-right: 90rpx;
  579. }
  580. .iconfont {
  581. width: 50rpx;
  582. height: 90rpx;
  583. display: block;
  584. line-height: 90rpx;
  585. text-align: center;
  586. font-size: 30rpx;
  587. color: #999999;
  588. position: absolute;
  589. right: 0;
  590. top: 0;
  591. }
  592. }
  593. .list-view-list-main {
  594. width: 100%;
  595. height: auto;
  596. box-sizing: border-box;
  597. margin-bottom: 30rpx;
  598. position: relative;
  599. .list-view-list {
  600. width: 100%;
  601. height: 90rpx;
  602. box-sizing: border-box;
  603. margin-bottom: 30rpx;
  604. .list-view-input {
  605. width: 614rpx;
  606. height: 90rpx;
  607. float: left;
  608. position: relative;
  609. .input {
  610. width: 614rpx;
  611. height: 90rpx;
  612. box-sizing: border-box;
  613. padding: 0 20rpx;
  614. border: 1px solid #b2b2b2;
  615. border-radius: 6rpx;
  616. font-size: $font-size-24;
  617. color: #333333;
  618. }
  619. .list-view-assAction {
  620. width: 614rpx;
  621. min-height: 270rpx;
  622. box-sizing: border-box;
  623. padding: 10rpx 0;
  624. background: rgba(255, 255, 255, 1);
  625. box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.15);
  626. border-radius: 6rpx;
  627. position: absolute;
  628. top: -288rpx;
  629. left: 0;
  630. z-index: 999;
  631. overflow: hidden;
  632. .tui-popup-scroll {
  633. width: 100%;
  634. height: 270rpx;
  635. }
  636. .ass-list {
  637. width: 100%;
  638. height: 90rpx;
  639. box-sizing: border-box;
  640. padding: 0 24rpx;
  641. line-height: 90rpx;
  642. font-size: $font-size-26;
  643. color: #666666;
  644. text-align: left;
  645. border-bottom: 1px solid #e1e1e1;
  646. &:last-child{
  647. border-bottom: none;
  648. }
  649. }
  650. }
  651. }
  652. .list-view-btn {
  653. width: 88rpx;
  654. height: 90rpx;
  655. float: right;
  656. text-align: center;
  657. line-height: 90rpx;
  658. .icon-zengjia {
  659. color: #1890f9;
  660. font-size: $font-size-48;
  661. }
  662. .icon-shanchu4 {
  663. color: #e15616;
  664. font-size: $font-size-48;
  665. }
  666. }
  667. }
  668. }
  669. .remarks-category{
  670. width: 100%;
  671. float: left;
  672. .checkbox-list {
  673. height: 60rpx;
  674. font-size: $font-size-28;
  675. line-height: 60rpx;
  676. border-radius: 10rpx;
  677. margin-right: 20rpx;
  678. margin-bottom: 10rpx;
  679. box-sizing: border-box;
  680. float: left;
  681. .icon-yixuanze{
  682. margin-right: 10rpx;
  683. color: #E15616;
  684. }
  685. .icon-weixuanze{
  686. margin-right: 10rpx;
  687. color: #B2B2B2;
  688. }
  689. }
  690. .item-text {
  691. display: inline-block;
  692. font-size: 26rpx;
  693. color: #333333;
  694. border-radius: 28rpx;
  695. line-height: 50rpx;
  696. }
  697. }
  698. .remarks-input {
  699. width: 100%;
  700. height: 90rpx;
  701. line-height: 90rpx;
  702. margin: 20rpx 0 0 0;
  703. box-sizing: border-box;
  704. .input {
  705. width: 100%;
  706. height: 90rpx;
  707. line-height: 90rpx;
  708. font-size: $font-size-26;
  709. color: $text-color;
  710. z-index: 1;
  711. box-sizing: border-box;
  712. border: 1px solid #b2b2b2;
  713. padding: 0 16rpx;
  714. border-radius: 6rpx;
  715. }
  716. }
  717. .remarks-textarea {
  718. width: 100%;
  719. height: 226rpx;
  720. padding: 16rpx;
  721. margin: 20rpx 0 0 0;
  722. border-radius: 6rpx;
  723. position: relative;
  724. border: 1px solid #b2b2b2;
  725. box-sizing: border-box;
  726. .textarea {
  727. width: 100%;
  728. height: 100%;
  729. line-height: 36rpx;
  730. font-size: $font-size-26;
  731. color: $text-color;
  732. z-index: 1;
  733. }
  734. .limit-text {
  735. position: absolute;
  736. right: 20rpx;
  737. bottom: 16rpx;
  738. line-height: 44rpx;
  739. font-size: $font-size-24;
  740. color: #b2b2b2;
  741. }
  742. }
  743. .list-view {
  744. width: 100%;
  745. height: 40rpx;
  746. margin-top: 20rpx;
  747. .list-view-file {
  748. width: 132rpx;
  749. height: 44rpx;
  750. line-height: 44rpx;
  751. font-size: $font-size-20;
  752. text-align: center;
  753. color: #ffffff;
  754. background-color: $color-system;
  755. border-radius: 8rpx;
  756. float: left;
  757. margin-top: 10rpx;
  758. }
  759. .list-view-text {
  760. width: 100%;
  761. float: left;
  762. .input {
  763. width: 560rpx;
  764. height: 44rpx;
  765. box-sizing: border-box;
  766. line-height: 44rpx;
  767. color: #333333;
  768. text-overflow: ellipsis;
  769. overflow: hidden;
  770. display: -webkit-box;
  771. -webkit-line-clamp: 1;
  772. line-clamp: 1;
  773. -webkit-box-orient: vertical;
  774. float: left;
  775. }
  776. .delbtn {
  777. width: 96rpx;
  778. height: 44rpx;
  779. border-radius: 8rpx;
  780. background-color: #fff2ec;
  781. font-size: $font-size-24;
  782. color: #e15616;
  783. line-height: 44rpx;
  784. text-align: center;
  785. float: left;
  786. }
  787. }
  788. }
  789. .list-view-upload {
  790. width: 100%;
  791. height: auto;
  792. .photo-item {
  793. display: inline-block;
  794. width: 112rpx;
  795. height: 112rpx;
  796. margin: 10rpx 0;
  797. margin-right: 25rpx;
  798. border-radius: 10rpx;
  799. border: 1px solid #f5f5f5;
  800. position: relative;
  801. float: left;
  802. &.add {
  803. width: 112rpx;
  804. height: 112rpx;
  805. border-color: #b2b2b2;
  806. text-align: center;
  807. line-height: 112rpx;
  808. margin-right: 0rpx;
  809. .icon-jiahao {
  810. font-size: $font-size-44;
  811. color: #b2b2b2;
  812. font-weight: bold;
  813. }
  814. }
  815. .icon-iconfontguanbi {
  816. width: 30rpx;
  817. height: 30rpx;
  818. border-radius: 50%;
  819. display: block;
  820. position: absolute;
  821. right: -10rpx;
  822. top: -10rpx;
  823. background: #f94b4b;
  824. text-align: center;
  825. line-height: 30rpx;
  826. color: #ffffff;
  827. font-size: $font-size-22;
  828. }
  829. image {
  830. width: 112rpx;
  831. height: 112rpx;
  832. border-radius: 10rpx;
  833. }
  834. }
  835. .photo-list {
  836. width: 100%;
  837. height: 116rpx;
  838. overflow: hidden;
  839. white-space: nowrap;
  840. display: flex;
  841. align-items: flex-start;
  842. }
  843. }
  844. }
  845. .remarks-btn {
  846. width: 100%;
  847. padding-top: 20rpx;
  848. position: fixed;
  849. bottom: 0;
  850. left: 0;
  851. background-color: #ffffff;
  852. z-index: 9999;
  853. .edit-button-canel {
  854. width: 100%;
  855. height: 88rpx;
  856. line-height: 88rpx;
  857. text-align: center;
  858. color: #e15616;
  859. font-size: $font-size-24;
  860. }
  861. .edit-button {
  862. width: 600rpx;
  863. height: 90rpx;
  864. background: $btn-confirm;
  865. line-height: 90rpx;
  866. text-align: center;
  867. color: #ffffff;
  868. font-size: $font-size-30;
  869. margin: 0 auto;
  870. border-radius: 45rpx;
  871. }
  872. }
  873. </style>