add.vue 24 KB

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