add-record.vue 27 KB

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