add-record.vue 21 KB

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