product.vue 39 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343
  1. <template>
  2. <div class="user-content">
  3. <div class="provider">
  4. <!--<div class="seek">
  5. <ul class="seek-type" >
  6. <li :class="{active: providerType == 'enterprise'}" style="width: 33.3%" @click="switchprovide('enterprise')"><div>企业产品库</div></li>
  7. <li :class="{active: providerType == 'person'}" style="width: 33.3%" @click="switchprovide('person')"><div>个人产品库</div></li>
  8. <li :class="{active: providerType == 'onLine'}" style="width: 33.3%" @click="switchprovide('onLine')"><div>在售产品</div></li>
  9. </ul>
  10. </div>-->
  11. <div class="search-content" style="border-bottom: 1px solid #f5f5f5;padding-bottom: 0.25rem">
  12. <input type="text" placeholder="请输入您要查找的品牌或型号" v-model="seekKeyword" @keyup.13="searchSeek">
  13. <span @click="searchSeek" >
  14. <i class="iconfont icon-sousuo"></i>
  15. </span>
  16. </div>
  17. <div v-bind:key="index" v-for="(item, index) in GetEnterpriseListData" class="providerList">
  18. <div v-if="providerType !== 'onLine'">
  19. <div class="top">
  20. <div class="icon" :class="item.standard ? 'standed' : 'istanded'"></div>
  21. <div class="text">
  22. {{item.pcmpcode}}
  23. </div>
  24. <img v-if="item.addProductPerson" class="person-flag" src="/images/mobile/product/personalMaterial.png" alt="">
  25. </div>
  26. <div class="content">
  27. <div class="fl">
  28. <div class="linetext">品牌:{{item.pbranden}}</div>
  29. <div class="linetext">类目(产品名称):
  30. <template v-if="!item.kind">
  31. {{item.kinden || '-'}}
  32. </template>
  33. <template v-else>
  34. {{item.kind || '-'}}
  35. </template>
  36. </div>
  37. <div class="linetext">规格:{{item.spec}}</div>
  38. <div class="linetext">单位:PCS</div>
  39. </div>
  40. <div class="fr" :class="providerType == 'enterprise' && item.batchCount > 0 ? '' : 'addtop'" >
  41. <div class="look" v-if="item.batchCount && providerType == 'enterprise'" @click="lookProductitem(item.id, item)" >查看产品</div>
  42. <div class="add" v-if="providerType == 'enterprise'" @click="addProtoperson(item)" :class="{noadd: item.addProductPerson}">加入个人产品</div>
  43. <div class="delete" v-if="providerType == 'person'" @click="deleteProvider(item.id, index)">删除</div>
  44. </div>
  45. </div>
  46. </div>
  47. <div v-else>
  48. <div class="top top2">
  49. <div class="icon" :class="item.standard ? 'standed' : 'istanded'"></div>
  50. <div class="text">
  51. {{item.code}}
  52. </div>
  53. <!-- <div class="pms">
  54. {{item.storeid === '33069557578d44e69bd91ad12d28a8d4' ? '寄售' : '自营'}}
  55. </div>-->
  56. <img class="store-type" v-if="item.storeid === '33069557578d44e69bd91ad12d28a8d4'" src="/images/mobile/product/consignment.png" alt="">
  57. <img class="store-type" src="/images/mobile/product/self.png" alt="" v-else >
  58. </div>
  59. <div class="middle">
  60. <div class="list">
  61. <div class="fl">
  62. <div class="name">品牌:</div>
  63. <div class="text">{{item.brandNameEn}}</div>
  64. </div>
  65. <div class="fr">
  66. <div class="button" @click="update(item)">编辑</div>
  67. <div class="button" @click="offProduct(item, index)">下架</div>
  68. </div>
  69. </div>
  70. <div class="list">
  71. <div class="fl">
  72. <div class="name">类目(产品名称):</div>
  73. <div class="text">{{item.kindNameCn || '-'}}</div>
  74. </div>
  75. <div class="fr">
  76. <div class="textinfo" v-if="item.breakUp">可拆卖</div>
  77. </div>
  78. </div>
  79. <div class="list">
  80. <div class="fl">
  81. <div class="name">规格:</div>
  82. <div class="text">{{item.spec || '-'}}</div>
  83. </div>
  84. <div class="fr">
  85. <div class="name">交期(天):</div>
  86. <div class="text" v-if="item.b2cMaxDelivery && (item.b2cMaxDelivery != item.b2cMinDelivery)" v-text="item.b2cMinDelivery + '-'+ item.b2cMaxDelivery"></div>
  87. <div class="text" v-if="item.b2cMaxDelivery && (item.b2cMaxDelivery == item.b2cMinDelivery)" v-text="item.b2cMinDelivery"></div>
  88. </div>
  89. </div>
  90. <div class="list">
  91. <div class="fl">
  92. <div class="name">最小包装数:</div>
  93. <div class="text">{{item.minPackQty}}</div>
  94. </div>
  95. <div class="fr">
  96. <div class="name">库存:</div>
  97. <div class="text">{{item.reserve}}</div>
  98. </div>
  99. </div>
  100. <div class="list">
  101. <div class="fl">
  102. <div class="name">包装方式:</div>
  103. <div class="text">{{item.packaging || '无包装信息'}}</div>
  104. </div>
  105. <div class="fr">
  106. <div class="name">最小起订量:</div>
  107. <div class="text" style="color: #f31919">{{item.minBuyQty}}</div>
  108. </div>
  109. </div>
  110. <div class="list">
  111. <div class="name">生产日期:</div>
  112. <div class="text" :title="item.produceDate">{{item.produceDate || '-'}}</div>
  113. </div>
  114. <div class="list">
  115. <div class="name left">价格梯度:</div>
  116. <div class="table left">
  117. <ul>
  118. <li class="title">
  119. <div>分段数量/PCS</div>
  120. <div>分段单价</div>
  121. </li>
  122. <li v-for="price in item.prices">
  123. <div>{{price.start}}+</div>
  124. <div v-if="item.currencyName == 'RMB'">¥{{price.rMBPrice}}</div>
  125. <div v-else>${{price.rMBPrice}}</div>
  126. </li>
  127. </ul>
  128. </div>
  129. </div>
  130. </div>
  131. <!--<div class="labelinfo">
  132. <div class="labelicon">标签</div>
  133. <div class="labeltext">{{item.tag}}</div>
  134. </div>-->
  135. <div class="label-text">{{item.tag || '暂无标签信息'}}</div>
  136. </div>
  137. </div>
  138. </div>
  139. <!-- 企业产品库 查看信息 -->
  140. <div class="deleteKuang" v-show="showMoreinfn" @touchmove="preventTouchMove($event)">
  141. <div class="Kuang">
  142. <div class="title">产品信息<i @click="closeMoreinfo()" class="icon-guanbi iconfont"></i></div>
  143. <div class="overflow-hidden" ref="mobileModalBox" style="max-height: 9.3rem">
  144. <div class="content">
  145. <div class="infob">
  146. <div class="info"><div class="name">品牌:</div><div>{{cnmpBand}}</div></div>
  147. <div class="info"><div class="name">类目(产品名称):</div><div>{{cnmpType || '-'}}</div></div>
  148. <div class="info"><div class="name">型号:</div><div>{{cnmpCode}}</div></div>
  149. </div>
  150. <div class="content_sq" v-bind:key="item.id" v-for="(item, index) in vendorlist" >
  151. <div class="labelBg">
  152. <div class="labelinfo" style="margin-left: -0.1rem">
  153. <div class="labelicon" style="vertical-align:top;margin-top: 0.09rem">标签</div>
  154. <div class="labeltext">{{item.tag}}</div>
  155. </div>
  156. <div class="middle">
  157. <div class="list" style="height: auto">
  158. <div class="fl">
  159. <div class="name">
  160. <div class="pms">
  161. {{item.storeid === '33069557578d44e69bd91ad12d28a8d4' ? '寄售' : '自营'}}
  162. </div>
  163. </div>
  164. </div>
  165. <div class="fr">
  166. <div class="textinfo" v-if="item.breakUp">可拆卖</div>
  167. </div>
  168. </div>
  169. <div class="list list-long" style="height: auto">
  170. <div class="fl">
  171. <div class="name">规格:</div>
  172. <div class="text">{{item.spec || '-'}}</div>
  173. </div>
  174. </div>
  175. <div class="list" style="height: auto">
  176. <div class="fl">
  177. <div class="name">最小包装数:</div>
  178. <div class="text">{{item.minPackQty}}</div>
  179. </div>
  180. <div class="fr">
  181. <div class="name">交期(天):</div>
  182. <div class="text" v-if="item.b2cMaxDelivery && (item.b2cMaxDelivery != item.b2cMinDelivery)" v-text="item.b2cMinDelivery + '-'+ item.b2cMaxDelivery"></div>
  183. <div class="text" v-if="item.b2cMaxDelivery && (item.b2cMaxDelivery == item.b2cMinDelivery)" v-text="item.b2cMinDelivery"></div>
  184. </div>
  185. </div>
  186. <div class="list" style="height: auto">
  187. <div class="fl">
  188. <div class="name">包装方式:</div>
  189. <div class="text">{{item.packaging || '无包装信息'}}</div>
  190. </div>
  191. <div class="fr">
  192. <div class="name">库存:</div>
  193. <div class="text">{{item.reserve}}</div>
  194. </div>
  195. </div>
  196. <div class="list" style="height: auto">
  197. <div class="fl">
  198. <div class="name">生产日期:</div>
  199. <div class="text" :title="item.produceDate">{{item.produceDate || '-'}}</div>
  200. </div>
  201. <div class="fr">
  202. <div class="name">最小起订量:</div>
  203. <div class="text" style="color: #f31919">{{item.minBuyQty}}</div>
  204. </div>
  205. </div>
  206. <div class="list" style="height: auto">
  207. <div class="name left">价格梯度:</div>
  208. <div class="table left">
  209. <ul>
  210. <li class="title">
  211. <div>分段数量/PCS</div>
  212. <div>分段单价</div>
  213. </li>
  214. <li v-for="price in item.prices">
  215. <div>{{price.start}}+</div>
  216. <div v-if="item.currencyName == 'RMB'">¥{{price.rMBPrice}}</div>
  217. <div v-else>${{price.rMBPrice}}</div>
  218. </li>
  219. </ul>
  220. </div>
  221. </div>
  222. </div>
  223. </div>
  224. </div>
  225. </div>
  226. </div>
  227. </div>
  228. </div>
  229. <div class="deleteKuang" v-show="showDelete">
  230. <div class="kuangContent">
  231. <div class="title">删除信息</div>
  232. <div class="titleinfo">是否删除该产品</div>
  233. <!--<div class="info" v-show="isUploadpro">*存在已上架信息</div>-->
  234. <div class="K_btn">
  235. <div class="cancelBtn" @click="cancelFn()">取消</div>
  236. <div class="answerBtn" @click="deleteFn()">确定</div>
  237. </div>
  238. </div>
  239. </div>
  240. <div class="deleteKuang" v-show="showoffshelf">
  241. <div class="kuangContent">
  242. <div class="title">系统信息</div>
  243. <div class="titleinfo">是否下架该产品?</div>
  244. <!--<div class="info" v-show="isUploadpro">*存在已上架信息</div>-->
  245. <div class="K_btn">
  246. <div class="cancelBtn" @click="cancelFn()">取消</div>
  247. <div class="answerBtn" @click="offshelfFn()">确定</div>
  248. </div>
  249. </div>
  250. </div>
  251. <div class="none-state" v-show="StateNone">
  252. <img src="/images/mobile/@2x/search-empty.png">
  253. <p>暂无数据</p>
  254. <nuxt-link to="/">返回首页</nuxt-link>
  255. </div>
  256. <remind-box :title="collectResult" :timeoutCount="timeoutCount"></remind-box>
  257. <pull-up :searchMore="isSearchSearchingMore" :allPage="EnterprisePage" :page="seekPage" @pullUpAction="getMoreSearch"></pull-up>
  258. <!-- 在售产品编辑框 -->
  259. </div>
  260. </template>
  261. <script>
  262. import { RemindBox, PullUp } from '~components/mobile/common'
  263. export default {
  264. layout: 'mobile',
  265. middleware: 'authenticated',
  266. name: 'mobileProduct',
  267. data() {
  268. return {
  269. GetEnterpriseListData: [],
  270. seekPage: 1,
  271. providerType: this.$route.query.providerType,
  272. showMoreinfn: false,
  273. showDelete: false,
  274. isSearchSearchingMore: false,
  275. seekKeyword: '',
  276. collectResult: '',
  277. timeoutCount: 0,
  278. EnterprisePage: 1,
  279. chooseItem: {},
  280. vendorlist: [], // 查看更多信息
  281. showoffshelf: false
  282. }
  283. },
  284. methods: {
  285. update(item) {
  286. this.$store.commit('product/brand/GET_ONSALE_DETAILS_SUCCESS', item)
  287. this.$router.push('/mobile/center/vendor/productdetails')
  288. },
  289. offProduct(item) {
  290. this.showoffshelf = true
  291. this.shelfItem = item
  292. },
  293. offshelfFn() {
  294. let item = this.shelfItem
  295. this.$http.put(`/trade/goods/provider/off/shelf?batchCodes=${item.batchCode}`).then(res => {
  296. if (res.data.success) {
  297. this.timeoutCount++
  298. this.collectResult = '下架成功'
  299. this.showoffshelf = false
  300. this.seekPage = 1
  301. this.GetEnterpriseListData.splice(0, this.GetEnterpriseListData.length)
  302. this.GetEnterpriseListData = null
  303. this.GetEnterpriseListData = []
  304. this.reloadData()
  305. } else {
  306. this.timeoutCount++
  307. this.collectResult = res.data.message
  308. }
  309. }, err => {
  310. this.timeoutCount++
  311. this.collectResult = err.response.data
  312. })
  313. },
  314. // scroll: function () {
  315. // let scrolled = document.documentElement.scrollTop || window.pageYOffset || document.body.scrollTop
  316. // if (Math.ceil(scrolled + window.screen.availHeight) >= document.body.scrollHeight && !this.isSearchSearchingMore && this.seekPage < this.EnterprisePage) {
  317. // this.getMoreSearch()
  318. // }
  319. // },
  320. searchSeek: function () {
  321. this.GetEnterpriseListData.splice(0, this.GetEnterpriseListData.length)
  322. this.GetEnterpriseListData = null
  323. this.GetEnterpriseListData = []
  324. this.seekPage = 1
  325. this.reloadData()
  326. },
  327. reloadData: function () {
  328. this.getResourceProvidor()
  329. },
  330. // blur: function() {
  331. // setTimeout(() => {
  332. // this.$store.dispatch('mobile/SetInputGetFocus', false)
  333. // }, 300)
  334. // },
  335. // inputGetFocus: function() {
  336. // setTimeout(() => {
  337. // this.$store.dispatch('mobile/SetInputGetFocus', true)
  338. // }, 300)
  339. // },
  340. getMoreSearch: function () {
  341. this.seekPage++
  342. this.isSearchSearchingMore = true
  343. this.reloadData()
  344. },
  345. // 获取当前企业产品库
  346. GetEnterpriseList: function() {
  347. let params = {
  348. _status: 'all',
  349. count: 20,
  350. isStandard: true,
  351. keyword: this.seekKeyword || '',
  352. page: this.seekPage,
  353. sorting: { id: 'DESC' },
  354. type: 'all'
  355. }
  356. return this.$http.get('/trade/products', { params })
  357. },
  358. // 获取当前个人产品库
  359. GetPersonList: function(cb) {
  360. let params = {
  361. _status: 'all',
  362. count: 20,
  363. isStandard: true,
  364. keyword: this.seekKeyword || '',
  365. page: this.seekPage,
  366. sorting: { id: 'DESC' },
  367. type: 'all'
  368. }
  369. return this.$http.get('/trade/products/person', { params })
  370. },
  371. // 获取当前在售产品
  372. GetOnlineList: function() {
  373. let params = {
  374. count: 10,
  375. keyword: this.seekKeyword || '',
  376. page: this.seekPage,
  377. sorting: { 'createdDate': 'DESC' },
  378. status: '601-602'
  379. }
  380. return this.$http.get('/trade/goods/store/status', { params })
  381. },
  382. // 产品管理切换
  383. switchprovide: function(type) {
  384. this.providerType = type
  385. this.seekPage = 1
  386. this.GetEnterpriseListData.splice(0, this.GetEnterpriseListData.length)
  387. this.GetEnterpriseListData = null
  388. this.GetEnterpriseListData = []
  389. this.getResourceProvidor()
  390. },
  391. // 删除个人产品库
  392. deleteProvider: function(id, index) {
  393. this.showDelete = true
  394. this.deleteId = id
  395. // this.deleteItemIndex = index
  396. // this.$http.get(`/trade/goods/${id}/deleteMessage`).then(response => {
  397. // this.isUploadpro = response.data.code
  398. // })
  399. },
  400. deleteFn: function() {
  401. this.$http.delete(`/trade/products/${this.deleteId}?isPerson=1`).then(response => {
  402. this.showDelete = false
  403. this.collectResult = '删除成功'
  404. this.timeoutCount++
  405. this.seekPage = 1
  406. this.GetEnterpriseListData.splice(0, this.GetEnterpriseListData.length)
  407. this.isChange2 = true
  408. this.reloadData()
  409. // this.GetEnterpriseListData.splice(this.deleteItemIndex, 1)
  410. }, () => {
  411. this.showDelete = false
  412. this.collectResult = '删除失败'
  413. this.timeoutCount++
  414. })
  415. },
  416. cancelFn: function() {
  417. this.showDelete = false
  418. this.showoffshelf = false
  419. },
  420. // 获取相对应的信息
  421. getResourceProvidor: function() {
  422. if (this.providerType === 'enterprise') {
  423. this.GetEnterpriseList().then(res => {
  424. this.GetEnterpriseListData = this.GetEnterpriseListData.concat(res.data.content)
  425. this.EnterprisePage = res.data.totalPages
  426. this.isSearchSearchingMore = false
  427. })
  428. } else if (this.providerType === 'person') {
  429. this.GetPersonList().then(res => {
  430. this.GetEnterpriseListData = this.GetEnterpriseListData.concat(res.data.content)
  431. this.EnterprisePage = res.data.totalPages
  432. this.isSearchSearchingMore = false
  433. })
  434. } else if (this.providerType === 'onLine') {
  435. this.GetOnlineList().then(res => {
  436. this.GetEnterpriseListData = this.GetEnterpriseListData.concat(res.data.content)
  437. this.EnterprisePage = res.data.totalPages
  438. this.isSearchSearchingMore = false
  439. })
  440. }
  441. },
  442. // 查看企业产品库更多信息
  443. lookProductitem: function(id, item) {
  444. this.chooseItem = item
  445. this.$http.get(`/trade/products/goods/productid/${id}`).then(res => {
  446. this._initscroll()
  447. this.showMoreinfn = true
  448. this.vendorlist = res.data
  449. })
  450. },
  451. closeMoreinfo: function() {
  452. this.showMoreinfn = false
  453. },
  454. addProtoperson: function(item) {
  455. if (item.addProductPerson) {
  456. this.collectResult = '已在个人产品库'
  457. this.timeoutCount++
  458. return false
  459. }
  460. this.$http.post('/trade/products/person', [item.id])
  461. .then(response => {
  462. this.collectResult = '绑定成功'
  463. this.timeoutCount++
  464. this.seekPage = 1
  465. this.GetEnterpriseListData.splice(0, this.GetEnterpriseListData.length)
  466. this.GetEnterpriseListData = null
  467. this.GetEnterpriseListData = []
  468. this.reloadData()
  469. }, () => {
  470. this.collectResult = '绑定失败'
  471. this.timeoutCount++
  472. })
  473. }
  474. },
  475. computed: {
  476. // 是否展示空数据
  477. StateNone() {
  478. return this.GetEnterpriseListData.length === 0 && this.EnterprisePage === 0
  479. },
  480. cnmpCode() { // 型号
  481. if (this.chooseItem.pcmpcode) {
  482. return this.chooseItem.pcmpcode
  483. }
  484. return '-'
  485. },
  486. cnmpType() { // 类目
  487. return this.chooseItem.kind || this.chooseItem.kinden || '-'
  488. },
  489. cnmpBand() { // 品牌
  490. if (this.chooseItem.pbranden) {
  491. return this.chooseItem.pbranden
  492. }
  493. return '-'
  494. },
  495. cnmpSpec() { // 规格
  496. if (this.chooseItem.spec) {
  497. return this.chooseItem.spec
  498. }
  499. return '-'
  500. },
  501. shopuuid() {
  502. return this.$store.state.option.storeStatus.data
  503. }
  504. },
  505. mounted: function () {
  506. this.$nextTick(() => {
  507. // window.addEventListener('scroll', this.scroll, false)
  508. this._initscroll()
  509. })
  510. },
  511. created() {
  512. this.getResourceProvidor()
  513. },
  514. components: {
  515. RemindBox,
  516. PullUp
  517. }
  518. }
  519. </script>
  520. <style scoped lang="scss">
  521. .user-content{
  522. margin-bottom: .98rem;
  523. margin-top: 1.26rem;
  524. .sa-pub {
  525. display: inline-block;
  526. width: 1.41rem;
  527. height: .47rem;
  528. line-height: .47rem;
  529. text-align: center;
  530. color: #fff;
  531. background: #3f84f6;
  532. border-radius: .14rem;
  533. }
  534. .none-state{
  535. text-align: center;
  536. padding:1.5rem 0;
  537. background: #fff;
  538. margin-top:.1rem;
  539. width:100%;
  540. img{
  541. margin:0 auto;
  542. width: 4.08rem;
  543. height: 2.62rem;
  544. }
  545. p {
  546. font-size: .32rem;
  547. color: #999;
  548. margin: 1.19rem 0 0 0;
  549. }
  550. a {
  551. display: block;
  552. font-size: .28rem;
  553. color: #fff;
  554. width: 1.88rem;
  555. height: .54rem;
  556. line-height: .54rem;
  557. background: #418bf6;
  558. margin: .7rem auto 0;
  559. border-radius: .05rem;
  560. }
  561. }
  562. .user-name{
  563. height: 1.8rem;
  564. padding: .28rem 0 .28rem .34rem;
  565. background: #fff;
  566. width: 100%;
  567. position: relative;
  568. img{
  569. display: inline-block;
  570. width: 1.25rem;
  571. height: 1.25rem;
  572. border: 1px solid #c5dbfc;
  573. border-radius: .05rem;
  574. vertical-align: middle;
  575. }
  576. .user-info {
  577. margin-left:.25rem;
  578. display: inline-block;
  579. vertical-align: middle;
  580. position: relative;
  581. p{
  582. font-size:.3rem;
  583. margin:0;
  584. display: block;
  585. overflow: hidden;
  586. text-overflow: ellipsis;
  587. white-space: nowrap;
  588. max-width: 3.92rem;
  589. &:nth-child(2) {
  590. position: relative;
  591. margin-top: .2rem;
  592. padding-right: .7rem;
  593. overflow: unset;
  594. max-width: unset;
  595. .en-name {
  596. overflow: hidden;
  597. text-overflow: ellipsis;
  598. white-space: nowrap;
  599. max-width: 3.22rem;
  600. display: inline-block;
  601. }
  602. a {
  603. position: absolute;
  604. right: 0;
  605. }
  606. .exit {
  607. right: -.8rem;
  608. }
  609. .vir {
  610. position: absolute;
  611. right: -.14rem;
  612. }
  613. }
  614. }
  615. .en-list {
  616. position: absolute;
  617. max-width: 5rem;
  618. max-height: 3rem;
  619. overflow-y: auto;
  620. border-radius: .05rem;
  621. background: rgba(0, 0, 0, .6);
  622. z-index: 10;
  623. .menu-item {
  624. height: .6rem;
  625. line-height: .6rem;
  626. font-size: .3rem;
  627. padding: 0 .2rem;
  628. overflow: hidden;
  629. white-space: nowrap;
  630. text-overflow: ellipsis;
  631. &:active, &:focus, &:hover {
  632. background: #7d7d7d;
  633. }
  634. a {
  635. color: #fff;
  636. }
  637. }
  638. }
  639. }
  640. > a {
  641. font-size: .24rem;
  642. position: absolute;
  643. top: .45rem;
  644. right: .1rem;
  645. color: #3f84f6;
  646. border: 1px solid #3f84f6;
  647. border-radius: .2rem;
  648. padding: .06rem .12rem;
  649. }
  650. }
  651. .shop-list {
  652. background:#fff;
  653. border-bottom: .1rem solid #dfe2e4;
  654. padding: .14rem 0 .14rem 0;
  655. h3{
  656. font-size: .32rem;
  657. line-height: .4rem;
  658. margin: 0 0 0 .27rem;
  659. overflow: hidden;
  660. text-overflow: ellipsis;
  661. white-space: nowrap;
  662. padding-top: .1rem;
  663. position: relative;
  664. top: .1rem;
  665. }
  666. .list-item{
  667. width:6.77rem;
  668. margin-left:.39rem;
  669. .item-img{
  670. width:2.4rem;
  671. vertical-align: middle;
  672. display: inline-block;
  673. img{
  674. &:nth-child(2) {
  675. width:2.4rem;
  676. height:1.69rem;
  677. border: 1px solid #eee;
  678. }
  679. &:nth-child(1) {
  680. position:absolute;
  681. width:.65rem;
  682. height:.33rem;
  683. }
  684. }
  685. }
  686. .list-item-phone{
  687. width:3.95rem;
  688. padding:.18rem 0;
  689. position:relative;
  690. display: inline-block;
  691. vertical-align: middle;
  692. margin-left: .26rem;
  693. p{
  694. font-size:.28rem;
  695. line-height: .67rem;
  696. margin:0;
  697. overflow: hidden;
  698. text-overflow: ellipsis;
  699. white-space: nowrap;
  700. width: 3.2rem;
  701. }
  702. i{
  703. display:block;
  704. position:absolute;
  705. top: -.06rem;
  706. right: -.18rem;
  707. font-size:.5rem;
  708. color:#ff7800;
  709. width: .6rem;
  710. height: .6rem;
  711. text-align: center;
  712. line-height: .6rem;
  713. }
  714. }
  715. }
  716. &:active {
  717. background: #e1e1e1;
  718. }
  719. }
  720. .detail-brand{
  721. background: #fff;
  722. width:100%;
  723. min-height:1.5rem;
  724. padding:.2rem 0;
  725. border-bottom: .1rem solid #dfe2e4;
  726. &:nth-child(1) {
  727. margin-top:.1rem;
  728. }
  729. .brand-item{
  730. width:7rem;
  731. margin:0 auto;
  732. border-radius:.1rem;
  733. background: #fff;
  734. padding:.2rem;
  735. position:relative;
  736. &:active{
  737. background: #e1e1e1;
  738. }
  739. p{
  740. font-size:.28rem;
  741. line-height:.4rem;
  742. color:#333;
  743. margin:0;
  744. }
  745. i{
  746. display:block;
  747. position:absolute;
  748. top:.2rem;
  749. right:.4rem;
  750. font-size:.5rem;
  751. color:#ff7800;
  752. width: .6rem;
  753. height: .6rem;
  754. line-height: .6rem;
  755. text-align: center;
  756. }
  757. .sa-pub {
  758. position: absolute;
  759. right: 0;
  760. bottom: .2rem;
  761. }
  762. }
  763. div.active{
  764. background: #d4d;
  765. }
  766. }
  767. .collect-list-type {
  768. background: #fff;
  769. border-bottom: 1px solid #acacac;
  770. p {
  771. font-size: .32rem;
  772. margin: 0 0 0 .13rem;
  773. width: .92rem;
  774. text-align: center;
  775. line-height: .5rem;
  776. border-bottom: .06rem solid #418bf6;
  777. }
  778. }
  779. ul.switch-list {
  780. .noshop {
  781. width: 50%;
  782. }
  783. li {
  784. display: inline-block;
  785. width: 2.5rem;
  786. height: .63rem;
  787. line-height: .63rem;
  788. text-align: center;
  789. font-size: .28rem;
  790. color: #666;
  791. background: #fff;
  792. border: 1px solid #b4b4b4;
  793. border-right: none;
  794. &.active {
  795. background: #0067e7;
  796. border: 1px solid #0067e7;
  797. color: #fff;
  798. }
  799. &:first-child {
  800. border-left: none;
  801. }
  802. &:last-child {
  803. border-right: none;
  804. }
  805. }
  806. &.vendor-switch {
  807. li {
  808. width: 50%;
  809. }
  810. }
  811. }
  812. .seek {
  813. .seek-type {
  814. margin-top: .15rem;
  815. li {
  816. font-size: .28rem;
  817. color: #666;
  818. display: inline-block;
  819. width: 50%;
  820. text-align: center;
  821. div {
  822. border-bottom: 1px solid #c1c4c9;
  823. margin: 0 auto;
  824. height: .46rem;
  825. line-height: .46rem;
  826. }
  827. &.active {
  828. color: #3f84f6;
  829. div {
  830. border-color: #3f84f6;
  831. }
  832. }
  833. }
  834. }
  835. }
  836. .search-content {
  837. text-align: center;
  838. padding: .25rem 0 0 0;
  839. input {
  840. border: 1px solid #376ff3;
  841. }
  842. span {
  843. height: .46rem;
  844. line-height: .46rem;
  845. }
  846. }
  847. .seek-area {
  848. height: 1.26rem;
  849. line-height: 1.26rem;
  850. border-top: .19rem solid #f6f5f5;
  851. border-bottom: .19rem solid #f6f5f5;
  852. overflow: hidden;
  853. /*padding: .32rem 0;*/
  854. img {
  855. height: .78rem;
  856. margin-right: .2rem;
  857. vertical-align: top;
  858. margin-top: .1rem;
  859. }
  860. .sa-title {
  861. font-size: .38rem;
  862. color: #3f84f6;
  863. line-height: .32rem;
  864. vertical-align: top;
  865. margin-top: .1rem;
  866. span {
  867. color: #494949;
  868. }
  869. .sa-text {
  870. font-size: .26rem;
  871. color: #999;
  872. }
  873. }
  874. .sa-pub {
  875. margin-left: .86rem;
  876. vertical-align: top;
  877. margin-top: .23rem;
  878. }
  879. }
  880. }
  881. .providerList {
  882. border-top: .31rem solid #f1f3f7;
  883. .top {
  884. position: relative;
  885. &.top2 {
  886. .text {
  887. width: 5.4rem;
  888. }
  889. .pms {
  890. color: #f57710;
  891. border: 1px solid #f57710;
  892. border-radius: 0.4rem;
  893. background: #fff;
  894. font-size: 0.24rem;
  895. height: 0.4rem;
  896. line-height: 0.4rem;
  897. width: 0.8rem;
  898. text-align: center;
  899. float: right;
  900. margin-top: 0.25rem;
  901. }
  902. .store-type {
  903. width: .77rem;
  904. height: .77rem;
  905. position: absolute;
  906. right: 0;
  907. top: 0;
  908. }
  909. }
  910. .icon {
  911. width: 0.6rem;
  912. height: 0.36rem;
  913. line-height: 0.36rem;
  914. margin-top: 0.27rem;
  915. float: left;
  916. background-size: 100%;
  917. background-repeat: no-repeat;
  918. margin-right: 0.12rem;
  919. text-align: center;
  920. &.istanded{
  921. background-image: url('/images/mobile/@2x/istanded.png')
  922. }
  923. &.standed{
  924. background-image: url('/images/mobile/@2x/standed.png')
  925. }
  926. }
  927. .person-flag {
  928. width: .75rem;
  929. position: absolute;
  930. right: 0;
  931. }
  932. .text {
  933. float: left;
  934. width: 6.3rem;
  935. overflow: hidden;
  936. text-overflow: ellipsis;
  937. white-space: nowrap;
  938. }
  939. padding: 0 0.24rem;
  940. /*background: #f5f9fd;*/
  941. border-bottom: 1px solid #d3d3d3;
  942. height: 0.9rem;
  943. line-height: 0.9rem;
  944. color: #0067e7;
  945. font-size: 0.3rem;
  946. &::after{
  947. clear: both;
  948. display: block;
  949. content: ' ';
  950. visibility: hidden;
  951. zoom: 1;
  952. }
  953. }
  954. .content {
  955. padding: 0.24rem 0.24rem;
  956. background: #fff;
  957. .linetext {
  958. margin-bottom: 0.24rem;
  959. overflow: hidden;
  960. text-overflow: ellipsis;
  961. white-space: nowrap;
  962. &:nth-last-of-type(1){
  963. margin-bottom: 0rem;
  964. }
  965. }
  966. .fl {
  967. float: left;
  968. border-right: 1px dashed #e0e0e4;
  969. width: 4.68rem;
  970. }
  971. .fr {
  972. float: right;
  973. margin: 0.18rem 0.24rem;
  974. margin-right: 0rem;
  975. font-size: 0.3rem;
  976. &.addtop {
  977. margin-top: 0.6rem;
  978. .add {
  979. background: #0067e7;
  980. color: #fff;
  981. &.noadd{
  982. background: #cccbcb;
  983. color: #fff;
  984. border:1px solid #cccbcb;
  985. }
  986. }
  987. }
  988. div {
  989. width: 2.1rem;
  990. height: 0.6rem;
  991. text-align: center;
  992. line-height: 0.6rem;
  993. border-radius: 3px;
  994. &.look{
  995. background: #0067e7;
  996. color: #fff;
  997. }
  998. &.add{
  999. background: #fff;
  1000. color: #0067e7;
  1001. border: 1px solid #0067e7;
  1002. }
  1003. &.delete{
  1004. background: #fff;
  1005. color: #f70415;
  1006. border: 1px solid #f70415;
  1007. }
  1008. &.noadd{
  1009. background: #cccbcb;
  1010. color: #fff;
  1011. border:1px solid #cccbcb;
  1012. }
  1013. }
  1014. div:nth-child(1){
  1015. margin-bottom: 0.26rem
  1016. }
  1017. }
  1018. &::after{
  1019. clear: both;
  1020. display: block;
  1021. content: ' ';
  1022. visibility: hidden;
  1023. zoom: 1;
  1024. }
  1025. }
  1026. }
  1027. .middle {
  1028. padding: 0.24rem 0.24rem 0px;
  1029. background: #fff;
  1030. .pms {
  1031. color: #f57710;
  1032. border: 1px solid #f57710;
  1033. border-radius: 0.4rem;
  1034. background: #fff;
  1035. font-size: 0.24rem;
  1036. height: 0.4rem;
  1037. line-height: 0.4rem;
  1038. width: 0.8rem;
  1039. text-align: center;
  1040. }
  1041. .list {
  1042. /*height: 0.46rem;*/
  1043. .left {
  1044. float: left;
  1045. overflow: hidden;
  1046. text-overflow: ellipsis;
  1047. white-space: nowrap;
  1048. }
  1049. .textinfo {
  1050. color: #0067e7;
  1051. font-size: 0.3rem;
  1052. }
  1053. .button {
  1054. font-size: 0.26rem;
  1055. color: #1a58dd;
  1056. width: 0.92rem;
  1057. text-align: center;
  1058. border-radius: 5px;
  1059. border:1px solid #1a58dd;
  1060. display: inline-block;
  1061. margin-right: 0.2rem;
  1062. line-height: 0.4rem;
  1063. height: 0.4rem;
  1064. }
  1065. margin-bottom: 0.18rem;
  1066. &::after{
  1067. clear: both;
  1068. display: block;
  1069. content: ' ';
  1070. visibility: hidden;
  1071. zoom: 1;
  1072. }
  1073. .fl {
  1074. width: 4.3rem;
  1075. float: left;
  1076. overflow: hidden;
  1077. text-overflow: ellipsis;
  1078. white-space: nowrap;
  1079. }
  1080. .fr {
  1081. text-align: left;
  1082. width: 2.6rem;
  1083. overflow: hidden;
  1084. text-overflow: ellipsis;
  1085. white-space: nowrap;
  1086. }
  1087. &.list-long {
  1088. .fl {
  1089. width: 100% !important;
  1090. }
  1091. }
  1092. .name {
  1093. color: #666;
  1094. font-size: 0.3rem;
  1095. display: inline-block;
  1096. }
  1097. .text {
  1098. display: inline-block;
  1099. color: #333;
  1100. font-size: 0.3rem
  1101. }
  1102. .table {
  1103. width: 5.5rem;
  1104. margin-bottom: 0;
  1105. margin-top: 0;
  1106. li {
  1107. height: 0.43rem;
  1108. line-height: 0.43rem;
  1109. border-left: .01rem solid #c5c5c5;
  1110. font-size: .28rem;
  1111. &::after {
  1112. clear: both;
  1113. display: block;
  1114. content: ' ';
  1115. visibility: hidden;
  1116. zoom: 1;
  1117. }
  1118. div {
  1119. text-align: center;
  1120. width: 50%;
  1121. float: left;
  1122. border-right: .01rem solid #c5c5c5;
  1123. border-bottom: .01rem solid #c5c5c5;
  1124. }
  1125. &:nth-child(odd) {
  1126. background: #ddd;
  1127. color: #666;
  1128. font-size: 0.28rem;
  1129. }
  1130. &:nth-child(even) {
  1131. background: #fcfcfc;
  1132. color: #666;
  1133. font-size: 0.28rem;
  1134. }
  1135. &:nth-last-of-type(1){
  1136. color: #f31919;
  1137. }
  1138. &.title {
  1139. font-size: 0.28rem;
  1140. color: #333;
  1141. }
  1142. }
  1143. }
  1144. }
  1145. }
  1146. .labelinfo {
  1147. padding: 0 .24rem;
  1148. background: #e6e6e6;
  1149. height: 0.6rem;
  1150. line-height: 0.6rem;
  1151. width: 100%;
  1152. color: #666;
  1153. font-size: 0.26rem;
  1154. overflow: hidden;
  1155. text-overflow: ellipsis;
  1156. white-space: nowrap;
  1157. .labelicon {
  1158. background-image: url('/images/mobile/@2x/label_icon.png');
  1159. background-repeat: no-repeat;
  1160. width: 0.61rem;
  1161. height: 0.38rem;
  1162. line-height: 0.38rem;
  1163. background-size: 100%;
  1164. color: #fff;
  1165. margin-right: 0.1rem;
  1166. display: inline-block;
  1167. font-size: 0.22rem;
  1168. text-align: center;
  1169. /*vertical-align: middle;*/
  1170. }
  1171. .labeltext{
  1172. display: inline-block;
  1173. /*vertical-align: middle;*/
  1174. }
  1175. }
  1176. .label-text {
  1177. padding: .09rem .21rem;
  1178. border-radius: .22rem;
  1179. background: #ddd;
  1180. font-size: .26rem;
  1181. color: #666;
  1182. display: inline-block;
  1183. margin-left: .22rem;
  1184. margin-bottom: .25rem;
  1185. }
  1186. .deleteKuang {
  1187. position: fixed;
  1188. background: rgba(0,0,0,0.5);
  1189. top: 0;
  1190. left: 0;
  1191. right: 0;
  1192. bottom: 0;
  1193. z-index: 9999;
  1194. .kuangContent {
  1195. border-radius: 5px;
  1196. background: #fff;
  1197. width: 5rem;
  1198. position: absolute;
  1199. left: 50%;
  1200. top: 50%;
  1201. transform: translate3d(-50%, -50%, 0);
  1202. overflow: hidden;
  1203. .titleinfo {
  1204. font-size: .3rem;
  1205. color: #666;
  1206. text-align: center;
  1207. margin-top: 0.5rem;
  1208. margin-bottom: 0.1rem;
  1209. }
  1210. .title {
  1211. background: #5078cb;
  1212. height: .7rem;
  1213. line-height: .7rem;
  1214. font-size: .3rem;
  1215. color: #fff;
  1216. text-align: center;
  1217. }
  1218. .info {
  1219. color: #f00;
  1220. text-align: center;
  1221. }
  1222. .K_btn {
  1223. margin-top: 0.4rem;
  1224. line-height: 0.7rem;
  1225. height: 0.7rem;
  1226. &::after{
  1227. clear: both;
  1228. display: block;
  1229. content: ' ';
  1230. visibility: hidden;
  1231. zoom: 1;
  1232. }
  1233. div {
  1234. float: left;
  1235. width: 50%;
  1236. font-size: 0.3rem;
  1237. text-align: center;
  1238. &.cancelBtn {
  1239. background: #b4b5b9;
  1240. color: #333;
  1241. }
  1242. &.answerBtn {
  1243. background: #5078cb;
  1244. color: #fff;
  1245. }
  1246. }
  1247. }
  1248. }
  1249. i {
  1250. font-size: .6rem;
  1251. position: absolute;
  1252. right: -0.3rem;
  1253. top: -0.35rem;
  1254. color: #fff;
  1255. &::after{
  1256. position: absolute;
  1257. top: -0.1rem;
  1258. left: -0.1rem;
  1259. right: -0.1rem;
  1260. bottom: -0.1rem;
  1261. content: ' '
  1262. }
  1263. }
  1264. .title {
  1265. background: #3f84f6;
  1266. height: 0.7rem;
  1267. line-height: 0.7rem;
  1268. color: #fff;
  1269. text-align: center;
  1270. font-size: 0.3rem;
  1271. position: relative;
  1272. }
  1273. .Kuang {
  1274. max-height: 10rem;
  1275. width: 6.7rem;
  1276. position: absolute;
  1277. left: 50%;
  1278. top: 50%;
  1279. transform: translate3d(-50%, -50%, 0);
  1280. background: #ececec;
  1281. border-radius: 5px;
  1282. }
  1283. .content {
  1284. .infob {
  1285. background: #e3edfd;
  1286. padding: 0.2rem;
  1287. .info {
  1288. color: #333;
  1289. font-size: 0.3rem;
  1290. overflow: hidden;
  1291. text-overflow: ellipsis;
  1292. white-space: nowrap;
  1293. margin-bottom: 0.18rem;
  1294. .name {
  1295. color: #666;
  1296. }
  1297. div {
  1298. display: inline-block;
  1299. }
  1300. }
  1301. }
  1302. .content_sq {
  1303. width: 6.4rem;
  1304. margin: 0.1rem auto;
  1305. background: #fff;
  1306. padding: 0.2rem 0;
  1307. .list {
  1308. margin-bottom: 0.18rem;
  1309. }
  1310. .fl {
  1311. width: 3.2rem;
  1312. }
  1313. .table {
  1314. width: 4.2rem;
  1315. margin-top: -0.1rem;
  1316. }
  1317. .labelinfo {
  1318. background-image: url('/images/mobile/@2x/labelTop.png');
  1319. background-repeat: no-repeat;
  1320. width: 6.29rem;
  1321. height: 0.64rem;
  1322. line-height: 0.64rem;
  1323. background-size: 100%;
  1324. margin-top: 0rem;
  1325. margin-right: 0rem;
  1326. background-color: rgba(0, 0, 0, 0);
  1327. color: #666;
  1328. }
  1329. }
  1330. }
  1331. }
  1332. </style>