add.vue 24 KB

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