add-record.vue 27 KB

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