index.vue 53 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649
  1. <template>
  2. <div class="user-content mobile-content">
  3. <user-header @switchEnAction="onSwitchEn" :isShow="false"></user-header>
  4. <div class="seek-area" v-if="userType != 'saler'">
  5. <img src="/images/mobile/@2x/banner.jpg" alt="">
  6. <p class="sa-title inline-block">我要求购&nbsp;&nbsp;<span>满足你所需</span>
  7. <br/>
  8. <span class="sa-text">让订单飞起来</span>
  9. </p>
  10. <a class="sa-pub" @click="goSayPrice">发布求购</a>
  11. </div>
  12. <ul class="switch-list" v-if="userType !== 'saler'">
  13. <li :class="{active: activeType == 'seek'}" @click="activeType = 'seek'" v-text="userType === 'saler' ? '求购询价' : '我的求购'"></li>
  14. <li :class="{active: activeType == 'comp'}" @click="activeType = 'comp'">器件收藏</li>
  15. <li :class="{active: activeType == 'store'}" @click="activeType = 'store'">店铺关注</li>
  16. </ul>
  17. <ul class="switch-list" v-if="userType !== 'buyer'">
  18. <li :class="{active: activeType == 'oppor', noshop: !shopuuid.uuid}" @click="activeType = 'oppor'">我的商机</li>
  19. <li :class="{active: activeType == 'provider', noshop: !shopuuid.uuid}" @click="activeType = 'provider'">产品管理</li>
  20. <li :class="{active: activeType == 'mystore'}" @click="activeType = 'mystore'" v-if="shopuuid.uuid">我的店铺</li>
  21. </ul>
  22. <!-- 买家中心 我的求购 -->
  23. <div v-if="activeType == 'seek' || activeType == 'oppor'">
  24. <div class="seek">
  25. <ul class="seek-type" v-if="userType !== 'saler'">
  26. <li :class="{active: seekType == 'wait'}" @click="switchSeek('wait')"><div>待报价</div></li>
  27. <li :class="{active: seekType == 'done'}" @click="switchSeek('done')"><div>已报价</div></li>
  28. <!--<li :class="{active: seekType == 'accept'}" @click="switchSeek('accept')"><div>已采纳</div></li>-->
  29. </ul>
  30. <ul class="seek-type" v-if="userType === 'saler'">
  31. <li :class="{active: seekType == 'wait'}" style="border-top: 0px" @click="switchSeek('wait')"><div>全部</div></li>
  32. <li :class="{active: seekType == 'done'}" style="border-top: 0px" @click="switchSeek('done')"><div>已报价</div></li>
  33. </ul>
  34. </div>
  35. <div class="search-content">
  36. <input type="text" placeholder="请输入您要查找的型号或品牌" v-model="seekKeyword" @keyup.13="searchSeek" ref="searchSeekInput" @focus="inputGetFocus()" @blur="blur()">
  37. <span @click="searchSeek" >
  38. <i class="iconfont icon-sousuo"></i>
  39. </span>
  40. </div>
  41. <seek-list v-if="!(userType == 'saler' && seekType == 'wait' && !purchaseManListData.length)" :userType="userType" :seekType="seekType" :purchaseManList="purchaseManListData" :isDataChange="isDataChange"></seek-list>
  42. <div class="com-none-state" v-else>
  43. <img src="/images/mobile/@2x/car@2x.png">
  44. <p>上传物料至个人物料库,可获得更多的商机哦!</p>
  45. </div>
  46. </div>
  47. <!-- /end 买家中心 我的求购 -->
  48. <!-- 买家中心 店铺关注 -->
  49. <div class="shop-list" v-bind:key="item.id" v-if="activeType == 'store'" v-for="item in focusPage.content" @click="goStoreDetail(item.storeInfo.uuid)">
  50. <h3>{{item.storeName}}</h3>
  51. <div class="list-item">
  52. <div class="item-img">
  53. <img :src="getBackground(item.storeInfo.type)" />
  54. <img :src="item.storeInfo.logoUrl || '/images/component/default.png'">
  55. </div>
  56. <div class="list-item-phone">
  57. <p>电话:<span>{{item.storeInfo.enterprise ? item.storeInfo.enterprise.enTel : '-'}}</span></p>
  58. <p>传真:<span>{{item.storeInfo.enterprise ? item.storeInfo.enterprise.enFax : '-'}}</span></p>
  59. <p>联系商家:<a @click="selectStoreInfo(item, $event)">点击查看</a></p>
  60. <i class="iconfont icon-shoucang" @click="cancelFocus('store', item, $event)"></i>
  61. </div>
  62. </div>
  63. </div>
  64. <!-- /end 买家中心 店铺关注 -->
  65. <!-- 买家中心 器件收藏 -->
  66. <div class="detail-brand" v-bind:key="index" v-for="(item, index) in collectSave.content" v-if="activeType == 'comp'" @click="goComponentDetail(item.componentinfo.uuid)">
  67. <a>
  68. <div class="brand-item">
  69. <p>型号:<span>{{item.componentinfo.code}}</span></p>
  70. <p>品牌:<span>{{item.componentinfo.brand.nameCn}}</span></p>
  71. <p>产品描述:<span>{{item.componentinfo.kind.nameCn}}</span></p>
  72. <i class="iconfont icon-shoucang" @click="cancelFocus('product', item, $event)"></i>
  73. <a class="sa-pub" @click="compInquiry(item, $event)">立即询价</a>
  74. </div>
  75. </a>
  76. </div>
  77. <!--/end 买家中心 器件收藏 -->
  78. <!-- 卖家中心 我的店铺 -->
  79. <div v-if="activeType == 'mystore'" class="mystore">
  80. <div ></div>
  81. </div>
  82. <!-- /end 卖家中心 我的店铺 -->
  83. <!-- 卖家中心 产品管理 -->
  84. <div v-if="activeType == 'provider'" class="provider">
  85. <div class="seek">
  86. <ul class="seek-type" >
  87. <li :class="{active: providerType == 'enterprise'}" style="width: 33.3%" @click="switchprovide('enterprise')"><div>企业产品库</div></li>
  88. <li :class="{active: providerType == 'person'}" style="width: 33.3%" @click="switchprovide('person')"><div>个人产品库</div></li>
  89. <li :class="{active: providerType == 'onLine'}" style="width: 33.3%" @click="switchprovide('onLine')"><div>在售产品</div></li>
  90. </ul>
  91. </div>
  92. <div class="search-content" style="border-bottom: 1px solid #f5f5f5;padding-bottom: 0.25rem">
  93. <input type="text" placeholder="请输入您要查找的型号或品牌" v-model="seekKeyword" @keyup.13="searchSeek" ref="searchSeekInput" @focus="inputGetFocus()" @blur="blur()">
  94. <span @click="searchSeek" >
  95. <i class="iconfont icon-sousuo"></i>
  96. </span>
  97. </div>
  98. <div v-bind:key="item.id" v-for="(item, index) in GetEnterpriseListData" class="providerList">
  99. <div v-if="providerType !== 'onLine'">
  100. <div class="top">
  101. <div class="icon" :class="item.standard ? 'standed' : 'istanded'"></div>
  102. <div class="text">
  103. {{item.pcmpcode}}
  104. </div>
  105. <img v-if="item.addProductPerson" class="person-flag" src="/images/mobile/product/personalMaterial.png" alt="">
  106. </div>
  107. <div class="content">
  108. <div class="fl">
  109. <div class="linetext">类目(产品名称):
  110. <template v-if="!item.kind">
  111. {{item.kinden || '-'}}
  112. </template>
  113. <template v-else>
  114. {{item.kind || '-'}}
  115. </template>
  116. </div>
  117. <div class="linetext">品牌:{{item.pbranden}}</div>
  118. <div class="linetext">单位:PCS</div>
  119. </div>
  120. <div class="fr" :class="providerType == 'enterprise' && item.batchCount > 0 ? '' : 'addtop'" >
  121. <div class="look" v-if="item.batchCount && providerType == 'enterprise'" @click="lookProductitem(item.id, item)" >查看产品</div>
  122. <div class="add" v-if="providerType == 'enterprise'" @click="addProtoperson(item)" :class="{noadd: item.addProductPerson}">加入个人产品</div>
  123. <div class="delete" v-if="providerType == 'person'" @click="deleteProvider(item.id, index)">删除</div>
  124. </div>
  125. </div>
  126. </div>
  127. <div v-else>
  128. <div class="top top2">
  129. <div class="icon" :class="item.standard ? 'standed' : 'istanded'"></div>
  130. <div class="text">
  131. {{item.code}}
  132. </div>
  133. <div class="pms">
  134. <!--{{(storeInfo.uuid != 'undefind' && item.storeid == storeInfo.uuid && storeInfo.storeName.indexOf('优软测试二') < 0 && storeInfo.storeName.indexOf('优软商城') < 0) ? '自营' : '寄售'}}-->
  135. {{(shopuuid.uuid != 'undefind' && item.storeid == shopuuid.uuid && shopuuid.storeName.indexOf('优软测试二') < 0 && shopuuid.storeName.indexOf('优软商城') < 0) ? '自营' : '寄售'}}
  136. </div>
  137. </div>
  138. <div class="middle">
  139. <div class="list">
  140. <div class="fl">
  141. <div class="name">类目(产品名称):</div>
  142. <div class="text">{{item.kindNameCn || '-'}}</div>
  143. </div>
  144. <div class="fr">
  145. <div class="textinfo" v-if="item.breakUp">可拆卖</div>
  146. </div>
  147. </div>
  148. <div class="list">
  149. <div class="fl">
  150. <div class="name">品牌:</div>
  151. <div class="text">{{item.brandNameEn}}</div>
  152. </div>
  153. <div class="fr">
  154. <div class="name">交期(天):</div>
  155. <div class="text" v-if="item.b2cMaxDelivery && (item.b2cMaxDelivery != item.b2cMinDelivery)" v-text="item.b2cMinDelivery + '-'+ item.b2cMaxDelivery"></div>
  156. <div class="text" v-if="item.b2cMaxDelivery && (item.b2cMaxDelivery == item.b2cMinDelivery)" v-text="item.b2cMinDelivery"></div>
  157. </div>
  158. </div>
  159. <div class="list">
  160. <div class="fl">
  161. <div class="name">包装数量:</div>
  162. <div class="text">{{item.minPackQty}}</div>
  163. </div>
  164. <div class="fr">
  165. <div class="name">库存:</div>
  166. <div class="text">{{item.reserve}}</div>
  167. </div>
  168. </div>
  169. <div class="list">
  170. <div class="fl">
  171. <div class="name">包装方式:</div>
  172. <div class="text">{{item.packaging || '无包装信息'}}</div>
  173. </div>
  174. <div class="fr">
  175. <div class="name">起订量:</div>
  176. <div class="text" style="color: #f31919">{{item.minBuyQty}}</div>
  177. </div>
  178. </div>
  179. <div class="list">
  180. <div class="name">生产日期:</div>
  181. <div class="text" :title="item.produceDate">{{item.produceDate || '-'}}</div>
  182. </div>
  183. <div class="list">
  184. <div class="name left">价格梯度:</div>
  185. <div class="table left">
  186. <ul>
  187. <li class="title">
  188. <div>分段数量/PCS</div>
  189. <div>分段单价</div>
  190. </li>
  191. <li v-for="price in item.prices">
  192. <div>{{price.start}}+</div>
  193. <div v-if="item.currencyName == 'RMB'">¥{{price.rMBPrice}}</div>
  194. <div v-else>${{price.rMBPrice}}</div>
  195. </li>
  196. </ul>
  197. </div>
  198. </div>
  199. </div>
  200. <div class="labelinfo">
  201. <div class="labelicon">标签</div>
  202. <div class="labeltext">{{item.tag}}</div>
  203. </div>
  204. </div>
  205. </div>
  206. <!--<div v-else v-bind:key="index" v-for="(item, index) in GetEnterpriseListData" class="providerList">-->
  207. <!---->
  208. <!--</div>-->
  209. </div>
  210. <!-- /end 卖家中心 产品管理 -->
  211. <div class="none-state" v-if="StateNone">
  212. <img src="/images/mobile/@2x/empty-collect.png">
  213. <p v-text="getRemindText()"></p>
  214. <nuxt-link to="/">返回首页</nuxt-link>
  215. </div>
  216. <remind-box :title="collectResult" :timeoutCount="timeoutCount"></remind-box>
  217. <div class="mobile-modal" v-if="showStoreInfo">
  218. <div class="mobile-modal-box">
  219. <div class="mobile-modal-header">联系方式<i @click="showStoreInfo = false" class="icon-guanbi iconfont"></i></div>
  220. <div class="mobile-modal-content">
  221. <div v-if="checkInfo(storeInfo.enAddress || storeInfo.address)">商家地址:{{storeInfo.enAddress || storeInfo.address}}</div>
  222. <!--<div class="content-line link-url">在线咨询</div>-->
  223. <div v-if="checkInfo(storeInfo.enTel)">致电:<a :href="'tel:' + storeInfo.enTel" target="_blank" class="content-line link-url">{{storeInfo.enTel}}</a></div>
  224. <div v-if="checkInfo(storeInfo.enEmail)">邮件:<a :href="'mailto:' + storeInfo.enEmail" target="_blank" class="content-line link-url">{{storeInfo.enEmail}}</a></div>
  225. </div>
  226. </div>
  227. </div>
  228. <page-loading v-show="showLoading"></page-loading>
  229. <loading v-show="isSearchSearchingMore"></loading>
  230. <div v-if="purchaseManList && false"></div>
  231. <div v-if="purchaseManListFetching && false"></div>
  232. <!--<div v-if="EnterpriseList && false"></div>-->
  233. <!-- 删除提示框 -->
  234. <div class="deleteKuang" v-show="showDelete">
  235. <div class="kuangContent">
  236. <div class="title">删除信息</div>
  237. <div class="titleinfo">是否删除此信息</div>
  238. <!--<div class="info" v-show="isUploadpro">*存在已上架信息</div>-->
  239. <div class="K_btn">
  240. <div class="cancelBtn" @click="cancelFn()">取消</div>
  241. <div class="answerBtn" @click="deleteFn()">确定</div>
  242. </div>
  243. </div>
  244. </div>
  245. <div class="deleteKuang" v-if="showLogout">
  246. <div class="kuangContent">
  247. <div class="title">系统提示</div>
  248. <div class="titleinfo">是否退出登录</div>
  249. <!--<div class="info" v-show="isUploadpro">*存在已上架信息</div>-->
  250. <div class="K_btn">
  251. <div class="cancelBtn" @click="showLogout = false">取消</div>
  252. <div class="answerBtn" @click="logout()">确定</div>
  253. </div>
  254. </div>
  255. </div>
  256. <!-- /end 删除提示框 -->
  257. <!-- 企业产品库 查看信息 -->
  258. <div class="deleteKuang" v-show="showMoreinfn">
  259. <div class="Kuang">
  260. <div class="title">产品信息<i data-v-4faa6b2d="" @click="closeMoreinfo()" class="icon-guanbi iconfont"></i></div>
  261. <div class="content">
  262. <div class="infob">
  263. <div class="info"><div class="name">型号:</div><div>{{cnmpCode}}</div></div>
  264. <div class="info"><div class="name">类目(产品名称):</div><div>{{cnmpType || '-'}}</div></div>
  265. <div class="info"><div class="name">品牌:</div><div>{{cnmpBand}}</div></div>
  266. </div>
  267. <div class="content_sq" v-bind:key="item.id" v-for="(item, index) in vendorlist" >
  268. <div class="labelBg">
  269. <div class="labelinfo" style="margin-left: -0.1rem">
  270. <div class="labelicon" style="vertical-align:top;margin-top: 0.09rem">标签</div>
  271. <div class="labeltext">{{item.tag}}</div>
  272. </div>
  273. <div class="middle">
  274. <div class="list">
  275. <div class="fl">
  276. <div class="name">
  277. <div class="pms">
  278. {{(shopuuid.uuid != 'undefind' && item.storeid == shopuuid.uuid && shopuuid.storeName.indexOf('优软测试二') < 0 && shopuuid.storeName.indexOf('优软商城') < 0) ? '自营' : '寄售'}}</div>
  279. </div>
  280. </div>
  281. <div class="fr">
  282. <div class="textinfo" v-if="item.breakUp">可拆卖</div>
  283. </div>
  284. </div>
  285. <div class="list">
  286. <div class="fl">
  287. <div class="name">包装数量:</div>
  288. <div class="text">{{item.minPackQty}}</div>
  289. </div>
  290. <div class="fr">
  291. <div class="name">交期(天):</div>
  292. <div class="text" v-if="item.b2cMaxDelivery && (item.b2cMaxDelivery != item.b2cMinDelivery)" v-text="item.b2cMinDelivery + '-'+ item.b2cMaxDelivery"></div>
  293. <div class="text" v-if="item.b2cMaxDelivery && (item.b2cMaxDelivery == item.b2cMinDelivery)" v-text="item.b2cMinDelivery"></div>
  294. </div>
  295. </div>
  296. <div class="list">
  297. <div class="fl">
  298. <div class="name">包装方式:</div>
  299. <div class="text">{{item.packaging || '无包装信息'}}</div>
  300. </div>
  301. <div class="fr">
  302. <div class="name">库存:</div>
  303. <div class="text">{{item.reserve}}</div>
  304. </div>
  305. </div>
  306. <div class="list">
  307. <div class="fl">
  308. <div class="name">生产日期:</div>
  309. <div class="text" :title="item.produceDate">{{item.produceDate || '-'}}</div>
  310. </div>
  311. <div class="fr">
  312. <div class="name">起订量:</div>
  313. <div class="text" style="color: #f31919">{{item.minBuyQty}}</div>
  314. </div>
  315. </div>
  316. <div class="list">
  317. <div class="name left">价格梯度:</div>
  318. <div class="table left">
  319. <ul>
  320. <li class="title">
  321. <div>分段数量/PCS</div>
  322. <div>分段单价</div>
  323. </li>
  324. <li v-for="price in item.prices">
  325. <div>{{price.start}}+</div>
  326. <div v-if="item.currencyName == 'RMB'">¥{{price.rMBPrice}}</div>
  327. <div v-else>${{price.rMBPrice}}</div>
  328. </li>
  329. </ul>
  330. </div>
  331. </div>
  332. </div>
  333. </div>
  334. </div>
  335. </div>
  336. </div>
  337. </div>
  338. <!-- /end 企业产品库 查看信息 -->
  339. <publish-seek :showSayPriceBox="showSayPriceBox" @cancelAction="showSayPriceBox = false" @reloadAction="onPublishFinish" @remindAction="onRemind"></publish-seek>
  340. <publish-supplier-seek :product="componentSeekObj" :showPublishBox="showPublishBox" @cancelAction="showPublishBox = false" @remindAction="onRemind"></publish-supplier-seek>
  341. </div>
  342. </template>
  343. <script>
  344. import SeekList from '~components/mobile/applyPurchase/SeekList.vue'
  345. import {RemindBox, Loading, userHeader} from '~components/mobile/common'
  346. import PageLoading from '~components/common/loading/PageLoading.vue'
  347. import { PublishSeek, PublishSupplierSeek } from '~components/mobile/applyPurchase'
  348. export default {
  349. layout: 'mobile',
  350. middleware: 'authenticated',
  351. data () {
  352. return {
  353. userName: '',
  354. count: '',
  355. page: '',
  356. type: '',
  357. activeType: 'seek',
  358. collectResult: '取消成功',
  359. timeoutCount: 0,
  360. showStoreInfo: false,
  361. storeInfo: {},
  362. seekType: 'wait',
  363. showLoading: false,
  364. seekKeyword: '',
  365. isSearchSearchingMore: false,
  366. isChange: false,
  367. seekPage: 1,
  368. seekSize: 10,
  369. purchaseManListData: [],
  370. isDataChange: false,
  371. providerType: 'enterprise',
  372. GetEnterpriseListData: [],
  373. isUploadpro: 1, // 是否存在已上架信息
  374. showDelete: false, // 显示删除提示框
  375. EnterprisePage: 1,
  376. vendorlist: [], // 查看更多信息
  377. showMoreinfn: false, // 是否打开更多信息
  378. chooseItem: {},
  379. showLogout: false, // 退出登录提示框,
  380. showSayPriceBox: false, // 发布求购框
  381. componentSeekObj: {
  382. standard: 1,
  383. cmpCode: '',
  384. pbranden: '',
  385. spec: null,
  386. kind: ''
  387. },
  388. showPublishBox: false
  389. }
  390. },
  391. components: {
  392. RemindBox,
  393. SeekList,
  394. PageLoading,
  395. Loading,
  396. userHeader,
  397. PublishSeek,
  398. PublishSupplierSeek
  399. },
  400. fetch ({ store, route }) {
  401. let user = store.state.option.user.data
  402. let isSaler = route.query.type === 'saler'
  403. let params = {
  404. pageNumber: 1,
  405. pageSize: 10,
  406. state: !isSaler ? 'todo' : null
  407. }
  408. if (!isSaler) {
  409. if (user.enterprise.uu) {
  410. params.enUU = user.enterprise.uu
  411. } else {
  412. params.userUU = user.userUU
  413. }
  414. } else {
  415. params.enuu = user.enterprise.uu
  416. params.useruu = user.userUU
  417. }
  418. return Promise.all([
  419. store.dispatch('product/saveStores', { count: 100, page: 1, type: 'component' }),
  420. store.dispatch('shop/StoreFocusPage', { count: 100, page: 1 }),
  421. store.dispatch(route.query.type === 'saler' ? 'applyPurchase/loadVendorPushList' : 'applyPurchase/loadBuyerUnSayPricePurchaseManList', params)
  422. ])
  423. },
  424. watch: {
  425. '$route.query': {
  426. handler: function (val, old) {
  427. this.switchSeek('wait')
  428. if (val.type === 'saler' && !this.shopuuid.uuid) {
  429. this.$store.dispatch('loadStoreStatus', { op: 'check' })
  430. }
  431. },
  432. immediate: false
  433. },
  434. 'activeType': {
  435. handler: function (val, old) {
  436. if (val === 'provider') {
  437. this.GetEnterpriseList().then(res => {
  438. this.GetEnterpriseListData = res.data.content
  439. this.EnterprisePage = res.data.totalPages
  440. })
  441. } else if (val === 'mystore') {
  442. // alert(1)
  443. this.$router.push(`/mobile/shop/${this.shopuuid.uuid}`)
  444. }
  445. }
  446. }
  447. },
  448. mounted: function () {
  449. this.$nextTick(() => {
  450. window.addEventListener('scroll', this.scroll, false)
  451. })
  452. },
  453. methods: {
  454. onSwitchEn: function () {
  455. if (this.$route.query.type === 'saler' && !this.user.data.enterprise.uu) {
  456. this.$router.push('/')
  457. } else {
  458. this.isChange = true
  459. this.reloadData()
  460. this.$store.dispatch('loadStoreStatus', { op: 'check' })
  461. }
  462. },
  463. cancelFocus: function (type, item, event) {
  464. event.stopPropagation()
  465. if (type === 'store') {
  466. this.$http.post('/trade/storeFocus/delete/storeId', [item.storeid])
  467. .then(response => {
  468. this.$store.dispatch('shop/StoreFocusPage', { count: 100, page: 1 })
  469. this.timeoutCount++
  470. })
  471. } else {
  472. // /trade/collection/
  473. this.$http.delete('/trade/collection/' + item.id)
  474. .then(response => {
  475. this.$store.dispatch('product/saveStores', { count: 100, page: 1, type: 'component' })
  476. this.timeoutCount++
  477. })
  478. }
  479. },
  480. getBackground: function (type) {
  481. let url = ''
  482. if (type === 'AGENCY') {
  483. url += '/images/mobile/@2x/shop/agency.png'
  484. } else if (type === 'DISTRIBUTION') {
  485. url += '/images/mobile/@2x/shop/distribution.png'
  486. } else if (type === 'ORIGINAL_FACTORY') {
  487. url += '/images/mobile/@2x/shop/original_factory.png'
  488. } else if (type === 'CONSIGNMENT') {
  489. url = '/images/mobile/@2x/shop/consignment.png'
  490. }
  491. return url
  492. },
  493. goStoreDetail: function (uuid) {
  494. this.$router.push('/mobile/shop/' + uuid)
  495. },
  496. goComponentDetail: function (uuid) {
  497. this.$router.push('/mobile/brand/componentDetail/' + uuid)
  498. },
  499. getRemindText: function () {
  500. if (this.activeType === 'comp') {
  501. return '抱歉,暂无器件收藏'
  502. } else if (this.activeType === 'store') {
  503. return '抱歉,暂无店铺关注'
  504. }
  505. },
  506. selectStoreInfo: function (store, event) {
  507. event.stopPropagation()
  508. this.storeInfo = store.storeInfo.enterprise || {}
  509. this.showStoreInfo = true
  510. },
  511. checkInfo: function (str) {
  512. return str && str.trim() !== ''
  513. },
  514. switchSeek: function (type) {
  515. this.seekType = type
  516. this.showLoading = true
  517. this.seekKeyword = ''
  518. this.isChange = true
  519. this.seekPage = 1
  520. this.reloadData()
  521. },
  522. switchType: function () {
  523. if (this.userType === 'buyer') {
  524. this.activeType = 'oppor'
  525. } else {
  526. this.activeType = 'seek'
  527. }
  528. this.seekKeyword = ''
  529. this.$router.push('/mobile/user' + (this.userType === 'saler' ? '?type=buyer' : '?type=saler'))
  530. },
  531. searchSeek: function () {
  532. this.isChange = true
  533. if (this.activeType === 'provider') {
  534. this.GetEnterpriseListData.splice(0, this.GetEnterpriseListData.length)
  535. this.GetEnterpriseListData = null
  536. this.GetEnterpriseListData = []
  537. this.seekPage = 1
  538. }
  539. this.reloadData()
  540. },
  541. reloadData: function () {
  542. let type = this.seekType
  543. let user = this.$store.state.option.user.data
  544. let params = {
  545. pageNumber: this.seekPage,
  546. pageSize: this.seekSize,
  547. keyword: this.seekKeyword || null
  548. }
  549. if (user.enterprise.uu) {
  550. params.enUU = user.enterprise.uu
  551. } else {
  552. params.userUU = user.userUU
  553. }
  554. if (this.userType !== 'saler') {
  555. if (type === 'wait') {
  556. params.state = 'todo'
  557. this.$store.dispatch('applyPurchase/loadBuyerUnSayPricePurchaseManList', params)
  558. } else if (type === 'done') {
  559. params._state = 'done'
  560. this.$store.dispatch('applyPurchase/loadBuyerPurchaseManList', params)
  561. } else {
  562. params._state = 'done'
  563. this.$store.dispatch('applyPurchase/loadBuyerPurchaseManList', params)
  564. }
  565. } else {
  566. if (this.activeType === 'provider') {
  567. this.getResourceProvidor()
  568. } else {
  569. if (type === 'wait') {
  570. this.$store.dispatch('applyPurchase/loadVendorPushList', {pageNumber: this.seekPage, pageSize: this.seekSize, enuu: this.user.data.enterprise.uu, useruu: this.user.data.userUU, keyword: this.seekKeyword})
  571. } else if (type === 'done') {
  572. this.$store.dispatch('applyPurchase/loadVendorPurchaseManList', {pageNumber: this.seekPage, pageSize: this.seekSize, _state: 'done', filter: {vendUU: this.$store.state.option.user.data.enterprise.uu, fromDate: null, endDate: null, keyword: this.seekKeyword}, overdue: 1})
  573. } else {
  574. this.$store.dispatch('applyPurchase/loadVendorPurchaseManList', {pageNumber: this.seekPage, pageSize: this.seekSize, _state: 'done', filter: {vendUU: this.$store.state.option.user.data.enterprise.uu, fromDate: null, endDate: null, keyword: this.seekKeyword}, overdue: 1})
  575. }
  576. }
  577. }
  578. },
  579. scroll: function () {
  580. let scrolled = document.documentElement.scrollTop || window.pageYOffset || document.body.scrollTop
  581. if (this.$refs.searchSeekInput && this.$store.state.mobile.InputGetFocus) {
  582. this.$refs.searchSeekInput.blur()
  583. }
  584. if (Math.ceil(scrolled + window.screen.availHeight) >= document.body.scrollHeight && this.activeType === 'provider' && !this.isSearchSearchingMore && this.seekPage < this.EnterprisePage) {
  585. this.getMoreSearch()
  586. } else if (Math.ceil(scrolled + window.screen.availHeight) >= document.body.scrollHeight && this.activeType !== 'provider' && !this.isSearchSearchingMore && this.seekPage < this.allPage) {
  587. this.getMoreSearch()
  588. }
  589. },
  590. blur: function() {
  591. setTimeout(() => {
  592. this.$store.dispatch('mobile/SetInputGetFocus', false)
  593. }, 300)
  594. },
  595. inputGetFocus: function() {
  596. setTimeout(() => {
  597. this.$store.dispatch('mobile/SetInputGetFocus', true)
  598. }, 300)
  599. },
  600. getMoreSearch: function () {
  601. this.seekPage++
  602. this.isSearchSearchingMore = true
  603. this.reloadData()
  604. },
  605. // 获取当前企业产品库
  606. GetEnterpriseList: function() {
  607. let params = {
  608. _status: 'all',
  609. count: 20,
  610. isStandard: true,
  611. keyword: this.seekKeyword || '',
  612. page: this.seekPage,
  613. sorting: { id: 'DESC' },
  614. type: 'all'
  615. }
  616. return this.$http.get('/trade/products', { params })
  617. },
  618. // 获取当前个人产品库
  619. GetPersonList: function(cb) {
  620. let params = {
  621. _status: 'all',
  622. count: 20,
  623. isStandard: true,
  624. keyword: this.seekKeyword || '',
  625. page: this.seekPage,
  626. sorting: { id: 'DESC' },
  627. type: 'all'
  628. }
  629. return this.$http.get('/trade/products/person', { params })
  630. },
  631. // 获取当前在售产品
  632. GetOnlineList: function() {
  633. let params = {
  634. count: 10,
  635. keyword: this.seekKeyword || '',
  636. page: this.seekPage,
  637. sorting: { 'createdDate': 'DESC' },
  638. status: '601-602'
  639. }
  640. return this.$http.get('/trade/goods/store/status', { params })
  641. },
  642. // 产品管理切换
  643. switchprovide: function(type) {
  644. this.providerType = type
  645. this.seekPage = 1
  646. this.GetEnterpriseListData.splice(0, this.GetEnterpriseListData.length)
  647. this.GetEnterpriseListData = null
  648. this.GetEnterpriseListData = []
  649. this.getResourceProvidor()
  650. },
  651. // 删除个人产品库
  652. deleteProvider: function(id, index) {
  653. this.showDelete = true
  654. this.deleteId = id
  655. // this.deleteItemIndex = index
  656. // this.$http.get(`/trade/goods/${id}/deleteMessage`).then(response => {
  657. // this.isUploadpro = response.data.code
  658. // })
  659. },
  660. deleteFn: function() {
  661. this.$http.delete(`/trade/products/${this.deleteId}?isPerson=1`).then(response => {
  662. this.showDelete = false
  663. this.collectResult = '删除成功'
  664. this.timeoutCount++
  665. this.seekPage = 1
  666. this.GetEnterpriseListData.splice(0, this.GetEnterpriseListData.length)
  667. this.isChange2 = true
  668. this.reloadData()
  669. // this.GetEnterpriseListData.splice(this.deleteItemIndex, 1)
  670. }, () => {
  671. this.showDelete = false
  672. this.collectResult = '删除失败'
  673. this.timeoutCount++
  674. })
  675. },
  676. cancelFn: function() {
  677. this.showDelete = false
  678. },
  679. addProtoperson: function(item) {
  680. if (item.addProductPerson) {
  681. this.collectResult = '已在个人产品库'
  682. this.timeoutCount++
  683. return false
  684. }
  685. this.$http.post('/trade/products/person', [item.id])
  686. .then(response => {
  687. this.collectResult = '绑定成功'
  688. this.timeoutCount++
  689. this.seekPage = 1
  690. this.GetEnterpriseListData.splice(0, this.GetEnterpriseListData.length)
  691. this.GetEnterpriseListData = null
  692. this.GetEnterpriseListData = []
  693. this.reloadData()
  694. }, () => {
  695. this.collectResult = '绑定失败'
  696. this.timeoutCount++
  697. })
  698. },
  699. // 获取相对应的信息
  700. getResourceProvidor: function() {
  701. if (this.providerType === 'enterprise') {
  702. this.GetEnterpriseList().then(res => {
  703. this.GetEnterpriseListData = this.GetEnterpriseListData.concat(res.data.content)
  704. this.EnterprisePage = res.data.totalPages
  705. this.isSearchSearchingMore = false
  706. })
  707. } else if (this.providerType === 'person') {
  708. this.GetPersonList().then(res => {
  709. this.GetEnterpriseListData = this.GetEnterpriseListData.concat(res.data.content)
  710. this.EnterprisePage = res.data.totalPages
  711. this.isSearchSearchingMore = false
  712. })
  713. } else if (this.providerType === 'onLine') {
  714. this.GetOnlineList().then(res => {
  715. this.GetEnterpriseListData = this.GetEnterpriseListData.concat(res.data.content)
  716. this.EnterprisePage = res.data.totalPages
  717. this.isSearchSearchingMore = false
  718. })
  719. }
  720. },
  721. // 查看企业产品库更多信息
  722. lookProductitem: function(id, item) {
  723. this.chooseItem = item
  724. this.$http.get(`/trade/products/goods/productid/${id}`).then(res => {
  725. this.showMoreinfn = true
  726. this.vendorlist = res.data
  727. })
  728. },
  729. closeMoreinfo: function() {
  730. this.showMoreinfn = false
  731. },
  732. logout () {
  733. this.$http.get('/logout/crossBefore', {params: {returnUrl: window.location.protocol + '//' + window.location.host}}).then(response => {
  734. if (response.data) {
  735. window.location.href = response.data.logoutUrl + '&baseUrl=' + encodeURIComponent(window.location.protocol + '//' + window.location.host + response.data.baseUrl)
  736. }
  737. })
  738. },
  739. goSayPrice: function () {
  740. if (this.user.logged) {
  741. this.showSayPriceBox = true
  742. } else {
  743. this.showLoginBox = true
  744. }
  745. },
  746. onRemind: function (str) {
  747. this.collectResult = str
  748. this.timeoutCount ++
  749. },
  750. onPublishFinish: function () {
  751. this.isChange = true
  752. this.seekPage = 1
  753. this.reloadData()
  754. },
  755. compInquiry: function (item, e) {
  756. if (e) {
  757. e.stopPropagation()
  758. }
  759. this.componentSeekObj.cmpCode = item.componentinfo.code
  760. this.componentSeekObj.pbranden = item.componentinfo.brand.nameCn
  761. this.componentSeekObj.spec = null
  762. this.componentSeekObj.kind = item.componentinfo.kind.nameCn
  763. this.componentSeekObj = JSON.parse(JSON.stringify(this.componentSeekObj))
  764. this.showPublishBox = true
  765. }
  766. },
  767. computed: {
  768. collectSave () {
  769. return this.$store.state.product.common.collectList.data
  770. },
  771. userInfo () {
  772. return this.$store.state.option.user
  773. },
  774. enterpriseInfo () {
  775. if (this.userInfo.data.enterprises) {
  776. let ens = this.userInfo.data.enterprises.slice()
  777. if (ens && ens.length) {
  778. for (let i = 0; i < ens.length; i++) {
  779. if (ens[i].current) {
  780. return ens[i]
  781. }
  782. }
  783. }
  784. return {enName: this.userInfo.data.userName + '(个人账户)'}
  785. } else {
  786. return ''
  787. }
  788. },
  789. isVendor () {
  790. return this.enterpriseInfo.isVendor === 313
  791. },
  792. userType () {
  793. this.activeType = this.$route.query.type === 'saler' ? 'oppor' : 'seek'
  794. return this.$route.query.type
  795. },
  796. focusPage () {
  797. return this.$store.state.shop.storeInfo.focusPage.data
  798. },
  799. purchase () {
  800. return this.$store.state.applyPurchase.purchaseManList.purchaseManList
  801. },
  802. purchaseManList () {
  803. let list = this.purchase.data.content ? this.purchase.data.content.slice() : []
  804. if (this.isChange) {
  805. this.purchaseManListData = []
  806. this.seekPage = 1
  807. this.isChange = false
  808. this.isDataChange = true
  809. } else {
  810. this.purchaseManListData = this.purchaseManListData.concat(list)
  811. this.isSearchSearchingMore = false
  812. this.isDataChange = false
  813. }
  814. return this.purchase.data.content
  815. },
  816. allPage () {
  817. return Math.floor(this.purchase.data.totalElements / this.purchase.data.size) + Math.floor(this.purchase.data.totalElements % this.purchase.data.size > 0 ? 1 : 0)
  818. },
  819. purchaseManListFetching () {
  820. this.showLoading = false
  821. return this.purchase.fetching
  822. },
  823. cnmpCode() { // 型号
  824. if (this.chooseItem.pcmpcode) {
  825. return this.chooseItem.pcmpcode
  826. }
  827. return ''
  828. },
  829. cnmpType() { // 类目
  830. if (this.chooseItem.kinden) {
  831. return this.chooseItem.kinden
  832. }
  833. return ''
  834. },
  835. cnmpBand() { // 品牌
  836. if (this.chooseItem.pbranden) {
  837. return this.chooseItem.pbranden
  838. }
  839. return ''
  840. },
  841. // 是否展示空数据
  842. StateNone() {
  843. if (this.activeType === 'provider') {
  844. return this.GetEnterpriseListData.length === 0 && this.EnterprisePage === 0
  845. } else if (this.activeType === 'oppor' || this.activeType === 'mystore') {
  846. return false
  847. } else {
  848. return (this.activeType !== 'seek') && ((this.collectSave.totalElements === 0 && this.activeType === 'comp') || (this.focusPage.totalElements === 0 && this.activeType === 'store') || (this.collectSave.totalElements === 0 && this.focusPage.totalElements === 0) || this.GetEnterpriseListData.totalElements === 0)
  849. }
  850. },
  851. shopuuid() {
  852. return this.$store.state.option.storeStatus.data
  853. }
  854. }
  855. }
  856. </script>
  857. <style scoped lang="scss">
  858. .user-content{
  859. margin-bottom: .98rem;
  860. .sa-pub {
  861. display: inline-block;
  862. width: 1.41rem;
  863. height: .47rem;
  864. line-height: .47rem;
  865. text-align: center;
  866. color: #fff;
  867. background: #3f84f6;
  868. border-radius: .14rem;
  869. }
  870. .none-state{
  871. text-align: center;
  872. padding:1.5rem 0;
  873. background: #fff;
  874. margin-top:.1rem;
  875. width:100%;
  876. img{
  877. margin:0 auto;
  878. width: 4.08rem;
  879. height: 2.62rem;
  880. }
  881. p {
  882. font-size: .32rem;
  883. color: #999;
  884. margin: 1.19rem 0 0 0;
  885. }
  886. a {
  887. display: block;
  888. font-size: .28rem;
  889. color: #fff;
  890. width: 1.88rem;
  891. height: .54rem;
  892. line-height: .54rem;
  893. background: #418bf6;
  894. margin: .7rem auto 0;
  895. border-radius: .05rem;
  896. }
  897. }
  898. .user-name{
  899. height: 1.8rem;
  900. padding: .28rem 0 .28rem .34rem;
  901. background: #fff;
  902. width: 100%;
  903. position: relative;
  904. img{
  905. display: inline-block;
  906. width: 1.25rem;
  907. height: 1.25rem;
  908. border: 1px solid #c5dbfc;
  909. border-radius: .05rem;
  910. vertical-align: middle;
  911. }
  912. .user-info {
  913. margin-left:.25rem;
  914. display: inline-block;
  915. vertical-align: middle;
  916. position: relative;
  917. p{
  918. font-size:.3rem;
  919. margin:0;
  920. display: block;
  921. overflow: hidden;
  922. text-overflow: ellipsis;
  923. white-space: nowrap;
  924. max-width: 3.92rem;
  925. &:nth-child(2) {
  926. position: relative;
  927. margin-top: .2rem;
  928. padding-right: .7rem;
  929. overflow: unset;
  930. max-width: unset;
  931. .en-name {
  932. overflow: hidden;
  933. text-overflow: ellipsis;
  934. white-space: nowrap;
  935. max-width: 3.22rem;
  936. display: inline-block;
  937. }
  938. a {
  939. position: absolute;
  940. right: 0;
  941. }
  942. .exit {
  943. right: -.8rem;
  944. }
  945. .vir {
  946. position: absolute;
  947. right: -.14rem;
  948. }
  949. }
  950. }
  951. .en-list {
  952. position: absolute;
  953. max-width: 5rem;
  954. max-height: 3rem;
  955. overflow-y: auto;
  956. border-radius: .05rem;
  957. background: rgba(0, 0, 0, .6);
  958. z-index: 10;
  959. .menu-item {
  960. height: .6rem;
  961. line-height: .6rem;
  962. font-size: .3rem;
  963. padding: 0 .2rem;
  964. overflow: hidden;
  965. white-space: nowrap;
  966. text-overflow: ellipsis;
  967. &:active, &:focus, &:hover {
  968. background: #7d7d7d;
  969. }
  970. a {
  971. color: #fff;
  972. }
  973. }
  974. }
  975. }
  976. > a {
  977. font-size: .24rem;
  978. position: absolute;
  979. top: .45rem;
  980. right: .1rem;
  981. color: #3f84f6;
  982. border: 1px solid #3f84f6;
  983. border-radius: .2rem;
  984. padding: .06rem .12rem;
  985. }
  986. }
  987. .shop-list {
  988. background:#fff;
  989. border-bottom: .1rem solid #dfe2e4;
  990. padding: .14rem 0 .14rem 0;
  991. h3{
  992. font-size: .32rem;
  993. line-height: .4rem;
  994. margin: 0 0 0 .27rem;
  995. overflow: hidden;
  996. text-overflow: ellipsis;
  997. white-space: nowrap;
  998. padding-top: .1rem;
  999. position: relative;
  1000. top: .1rem;
  1001. }
  1002. .list-item{
  1003. width:6.77rem;
  1004. margin-left:.39rem;
  1005. .item-img{
  1006. width:2.4rem;
  1007. vertical-align: middle;
  1008. display: inline-block;
  1009. img{
  1010. &:nth-child(2) {
  1011. width:2.4rem;
  1012. height:1.69rem;
  1013. border: 1px solid #eee;
  1014. }
  1015. &:nth-child(1) {
  1016. position:absolute;
  1017. width:.65rem;
  1018. height:.33rem;
  1019. }
  1020. }
  1021. }
  1022. .list-item-phone{
  1023. width:3.95rem;
  1024. padding:.18rem 0;
  1025. position:relative;
  1026. display: inline-block;
  1027. vertical-align: middle;
  1028. margin-left: .26rem;
  1029. p{
  1030. font-size:.28rem;
  1031. line-height: .67rem;
  1032. margin:0;
  1033. overflow: hidden;
  1034. text-overflow: ellipsis;
  1035. white-space: nowrap;
  1036. width: 3.2rem;
  1037. }
  1038. i{
  1039. display:block;
  1040. position:absolute;
  1041. top: -.06rem;
  1042. right: -.18rem;
  1043. font-size:.5rem;
  1044. color:#ff7800;
  1045. width: .6rem;
  1046. height: .6rem;
  1047. text-align: center;
  1048. line-height: .6rem;
  1049. }
  1050. }
  1051. }
  1052. &:active {
  1053. background: #e1e1e1;
  1054. }
  1055. }
  1056. .detail-brand{
  1057. background: #fff;
  1058. width:100%;
  1059. min-height:1.5rem;
  1060. padding:.2rem 0;
  1061. border-bottom: .1rem solid #dfe2e4;
  1062. &:nth-child(1) {
  1063. margin-top:.1rem;
  1064. }
  1065. .brand-item{
  1066. width:7rem;
  1067. margin:0 auto;
  1068. border-radius:.1rem;
  1069. background: #fff;
  1070. padding:.2rem;
  1071. position:relative;
  1072. &:active{
  1073. background: #e1e1e1;
  1074. }
  1075. p{
  1076. font-size:.28rem;
  1077. line-height:.4rem;
  1078. color:#333;
  1079. margin:0;
  1080. }
  1081. i{
  1082. display:block;
  1083. position:absolute;
  1084. top:.2rem;
  1085. right:.4rem;
  1086. font-size:.5rem;
  1087. color:#ff7800;
  1088. width: .6rem;
  1089. height: .6rem;
  1090. line-height: .6rem;
  1091. text-align: center;
  1092. }
  1093. .sa-pub {
  1094. position: absolute;
  1095. right: 0;
  1096. bottom: .2rem;
  1097. }
  1098. }
  1099. div.active{
  1100. background: #d4d;
  1101. }
  1102. }
  1103. .collect-list-type {
  1104. background: #fff;
  1105. border-bottom: 1px solid #acacac;
  1106. p {
  1107. font-size: .32rem;
  1108. margin: 0 0 0 .13rem;
  1109. width: .92rem;
  1110. text-align: center;
  1111. line-height: .5rem;
  1112. border-bottom: .06rem solid #418bf6;
  1113. }
  1114. }
  1115. ul.switch-list {
  1116. .noshop {
  1117. width: 50%;
  1118. }
  1119. li {
  1120. display: inline-block;
  1121. width: 2.5rem;
  1122. height: .63rem;
  1123. line-height: .63rem;
  1124. text-align: center;
  1125. font-size: .28rem;
  1126. color: #666;
  1127. background: #fff;
  1128. border: 1px solid #b4b4b4;
  1129. border-right: none;
  1130. &.active {
  1131. background: #0067e7;
  1132. border: 1px solid #0067e7;
  1133. color: #fff;
  1134. }
  1135. &:first-child {
  1136. border-left: none;
  1137. }
  1138. &:last-child {
  1139. border-right: none;
  1140. }
  1141. }
  1142. &.vendor-switch {
  1143. li {
  1144. width: 50%;
  1145. }
  1146. }
  1147. }
  1148. .seek {
  1149. .seek-type {
  1150. margin-top: .15rem;
  1151. li {
  1152. font-size: .28rem;
  1153. color: #666;
  1154. display: inline-block;
  1155. width: 50%;
  1156. text-align: center;
  1157. div {
  1158. border-bottom: 1px solid #c1c4c9;
  1159. margin: 0 auto;
  1160. height: .46rem;
  1161. line-height: .46rem;
  1162. }
  1163. &.active {
  1164. color: #3f84f6;
  1165. div {
  1166. border-color: #3f84f6;
  1167. }
  1168. }
  1169. }
  1170. }
  1171. }
  1172. .search-content {
  1173. text-align: center;
  1174. padding: .25rem 0 0 0;
  1175. input {
  1176. border: 1px solid #376ff3;
  1177. }
  1178. span {
  1179. height: .46rem;
  1180. line-height: .46rem;
  1181. }
  1182. }
  1183. .seek-area {
  1184. height: 1.26rem;
  1185. line-height: 1.26rem;
  1186. border-top: .19rem solid #f6f5f5;
  1187. border-bottom: .19rem solid #f6f5f5;
  1188. overflow: hidden;
  1189. /*padding: .32rem 0;*/
  1190. img {
  1191. height: .78rem;
  1192. margin-right: .2rem;
  1193. vertical-align: top;
  1194. margin-top: .1rem;
  1195. }
  1196. .sa-title {
  1197. font-size: .38rem;
  1198. color: #3f84f6;
  1199. line-height: .32rem;
  1200. vertical-align: top;
  1201. margin-top: .1rem;
  1202. span {
  1203. color: #494949;
  1204. }
  1205. .sa-text {
  1206. font-size: .26rem;
  1207. color: #999;
  1208. }
  1209. }
  1210. .sa-pub {
  1211. margin-left: .86rem;
  1212. vertical-align: top;
  1213. margin-top: .23rem;
  1214. }
  1215. }
  1216. }
  1217. .providerList {
  1218. border-top: 1px solid #e0e0e4;
  1219. border-bottom: 1px solid #e0e0e4;
  1220. margin-bottom: 0.24rem;
  1221. .top {
  1222. &.top2 {
  1223. .text {
  1224. width: 5.4rem;
  1225. }
  1226. .pms {
  1227. color: #f57710;
  1228. border: 1px solid #f57710;
  1229. border-radius: 0.4rem;
  1230. background: #fff;
  1231. font-size: 0.24rem;
  1232. height: 0.4rem;
  1233. line-height: 0.4rem;
  1234. width: 0.8rem;
  1235. text-align: center;
  1236. float: right;
  1237. margin-top: 0.25rem;
  1238. }
  1239. }
  1240. .icon {
  1241. width: 0.6rem;
  1242. height: 0.36rem;
  1243. line-height: 0.36rem;
  1244. margin-top: 0.27rem;
  1245. float: left;
  1246. background-size: 100%;
  1247. background-repeat: no-repeat;
  1248. margin-right: 0.12rem;
  1249. text-align: center;
  1250. &.istanded{
  1251. background-image: url('/images/mobile/@2x/istanded.png')
  1252. }
  1253. &.standed{
  1254. background-image: url('/images/mobile/@2x/standed.png')
  1255. }
  1256. }
  1257. .person-flag {
  1258. width: .75rem;
  1259. position: absolute;
  1260. right: 0;
  1261. }
  1262. .text {
  1263. float: left;
  1264. width: 6.3rem;
  1265. overflow: hidden;
  1266. text-overflow: ellipsis;
  1267. white-space: nowrap;
  1268. }
  1269. padding: 0 0.24rem;
  1270. background: #f5f9fd;
  1271. height: 0.9rem;
  1272. line-height: 0.9rem;
  1273. color: #0067e7;
  1274. font-size: 0.3rem;
  1275. &::after{
  1276. clear: both;
  1277. display: block;
  1278. content: ' ';
  1279. visibility: hidden;
  1280. zoom: 1;
  1281. }
  1282. }
  1283. .content {
  1284. padding: 0.24rem 0.24rem;
  1285. background: #fff;
  1286. .linetext {
  1287. margin-bottom: 0.24rem;
  1288. overflow: hidden;
  1289. text-overflow: ellipsis;
  1290. white-space: nowrap;
  1291. &:nth-last-of-type(1){
  1292. margin-bottom: 0rem;
  1293. }
  1294. }
  1295. .fl {
  1296. float: left;
  1297. border-right: 1px dashed #e0e0e4;
  1298. width: 4.68rem;
  1299. }
  1300. .fr {
  1301. float: right;
  1302. margin: 0.18rem 0.24rem;
  1303. margin-right: 0rem;
  1304. font-size: 0.3rem;
  1305. &.addtop {
  1306. margin-top: 0.6rem;
  1307. .add {
  1308. background: #0067e7;
  1309. color: #fff;
  1310. &.noadd{
  1311. background: #cccbcb;
  1312. color: #fff;
  1313. border:1px solid #cccbcb;
  1314. }
  1315. }
  1316. }
  1317. div {
  1318. width: 2.1rem;
  1319. height: 0.6rem;
  1320. text-align: center;
  1321. line-height: 0.6rem;
  1322. border-radius: 3px;
  1323. &.look{
  1324. background: #0067e7;
  1325. color: #fff;
  1326. }
  1327. &.add{
  1328. background: #fff;
  1329. color: #0067e7;
  1330. border: 1px solid #0067e7;
  1331. }
  1332. &.delete{
  1333. background: #fff;
  1334. color: #f70415;
  1335. border: 1px solid #f70415;
  1336. }
  1337. &.noadd{
  1338. background: #cccbcb;
  1339. color: #fff;
  1340. border:1px solid #cccbcb;
  1341. }
  1342. }
  1343. div:nth-child(1){
  1344. margin-bottom: 0.26rem
  1345. }
  1346. }
  1347. &::after{
  1348. clear: both;
  1349. display: block;
  1350. content: ' ';
  1351. visibility: hidden;
  1352. zoom: 1;
  1353. }
  1354. }
  1355. }
  1356. .middle {
  1357. padding: 0.24rem 0.24rem 0px;
  1358. background: #fff;
  1359. .pms {
  1360. color: #f57710;
  1361. border: 1px solid #f57710;
  1362. border-radius: 0.4rem;
  1363. background: #fff;
  1364. font-size: 0.24rem;
  1365. height: 0.4rem;
  1366. line-height: 0.4rem;
  1367. width: 0.8rem;
  1368. text-align: center;
  1369. }
  1370. .list {
  1371. .left {
  1372. float: left;
  1373. overflow: hidden;
  1374. text-overflow: ellipsis;
  1375. white-space: nowrap;
  1376. }
  1377. .textinfo {
  1378. color: #0067e7;
  1379. font-size: 0.3rem
  1380. }
  1381. margin-bottom: 0.18rem;
  1382. &::after{
  1383. clear: both;
  1384. display: block;
  1385. content: ' ';
  1386. visibility: hidden;
  1387. zoom: 1;
  1388. }
  1389. .fl {
  1390. width: 4.4rem;
  1391. float: left;
  1392. overflow: hidden;
  1393. text-overflow: ellipsis;
  1394. white-space: nowrap;
  1395. }
  1396. .fr {
  1397. text-align: left;
  1398. width: 2.6rem;
  1399. overflow: hidden;
  1400. text-overflow: ellipsis;
  1401. white-space: nowrap;
  1402. }
  1403. .name {
  1404. color: #666;
  1405. font-size: 0.3rem;
  1406. display: inline-block;
  1407. }
  1408. .text {
  1409. display: inline-block;
  1410. color: #333;
  1411. font-size: 0.3rem
  1412. }
  1413. .table {
  1414. width: 5.5rem;
  1415. margin-bottom: 0px;
  1416. margin-top: -.1rem;
  1417. li {
  1418. height: 0.6rem;
  1419. line-height: 0.6rem;
  1420. &::after {
  1421. clear: both;
  1422. display: block;
  1423. content: ' ';
  1424. visibility: hidden;
  1425. zoom: 1;
  1426. }
  1427. div {
  1428. text-align: center;
  1429. width: 50%;
  1430. float: left
  1431. }
  1432. &:nth-child(odd) {
  1433. background: #f7f7f7;
  1434. color: #666;
  1435. font-size: 0.28rem;
  1436. }
  1437. &:nth-child(even) {
  1438. background: #fcfcfc;
  1439. color: #666;
  1440. font-size: 0.28rem;
  1441. }
  1442. &:nth-last-of-type(1){
  1443. color: #f31919;
  1444. }
  1445. &.title {
  1446. font-size: 0.3rem;
  1447. color: #666;
  1448. }
  1449. }
  1450. }
  1451. }
  1452. }
  1453. .labelinfo {
  1454. padding: 0 .24rem;
  1455. background: #e6e6e6;
  1456. height: 0.6rem;
  1457. line-height: 0.6rem;
  1458. width: 100%;
  1459. color: #666;
  1460. font-size: 0.26rem;
  1461. overflow: hidden;
  1462. text-overflow: ellipsis;
  1463. white-space: nowrap;
  1464. .labelicon {
  1465. background-image: url('/images/mobile/@2x/label_icon.png');
  1466. background-repeat: no-repeat;
  1467. width: 0.61rem;
  1468. height: 0.38rem;
  1469. line-height: 0.38rem;
  1470. background-size: 100%;
  1471. color: #fff;
  1472. margin-right: 0.1rem;
  1473. display: inline-block;
  1474. font-size: 0.22rem;
  1475. text-align: center;
  1476. /*vertical-align: middle;*/
  1477. }
  1478. .labeltext{
  1479. display: inline-block;
  1480. /*vertical-align: middle;*/
  1481. }
  1482. }
  1483. .deleteKuang {
  1484. position: fixed;
  1485. background: rgba(0,0,0,0.5);
  1486. top: 0;
  1487. left: 0;
  1488. right: 0;
  1489. bottom: 0;
  1490. z-index: 9999;
  1491. .kuangContent {
  1492. border-radius: 5px;
  1493. background: #fff;
  1494. width: 5rem;
  1495. position: absolute;
  1496. left: 50%;
  1497. top: 50%;
  1498. transform: translate3d(-50%, -50%, 0);
  1499. overflow: hidden;
  1500. .titleinfo {
  1501. font-size: .3rem;
  1502. color: #666;
  1503. text-align: center;
  1504. margin-top: 0.5rem;
  1505. margin-bottom: 0.1rem;
  1506. }
  1507. .title {
  1508. background: #5078cb;
  1509. height: .7rem;
  1510. line-height: .7rem;
  1511. font-size: .3rem;
  1512. color: #fff;
  1513. text-align: center;
  1514. }
  1515. .info {
  1516. color: #f00;
  1517. text-align: center;
  1518. }
  1519. .K_btn {
  1520. margin-top: 0.4rem;
  1521. line-height: 0.7rem;
  1522. height: 0.7rem;
  1523. &::after{
  1524. clear: both;
  1525. display: block;
  1526. content: ' ';
  1527. visibility: hidden;
  1528. zoom: 1;
  1529. }
  1530. div {
  1531. float: left;
  1532. width: 50%;
  1533. font-size: 0.3rem;
  1534. text-align: center;
  1535. &.cancelBtn {
  1536. background: #b4b5b9;
  1537. color: #333;
  1538. }
  1539. &.answerBtn {
  1540. background: #5078cb;
  1541. color: #fff;
  1542. }
  1543. }
  1544. }
  1545. }
  1546. i {
  1547. font-size: .6rem;
  1548. position: absolute;
  1549. right: -0.3rem;
  1550. top: -0.35rem;
  1551. color: #fff;
  1552. &::after{
  1553. position: absolute;
  1554. top: -0.1rem;
  1555. left: -0.1rem;
  1556. right: -0.1rem;
  1557. bottom: -0.1rem;
  1558. content: ' '
  1559. }
  1560. }
  1561. .title {
  1562. background: #3f84f6;
  1563. height: 0.7rem;
  1564. line-height: 0.7rem;
  1565. color: #fff;
  1566. text-align: center;
  1567. font-size: 0.3rem;
  1568. position: relative;
  1569. }
  1570. .Kuang {
  1571. max-height: 10rem;
  1572. width: 6.7rem;
  1573. position: absolute;
  1574. left: 50%;
  1575. top: 50%;
  1576. transform: translate3d(-50%, -50%, 0);
  1577. background: #ececec;
  1578. border-radius: 5px;
  1579. }
  1580. .content {
  1581. overflow-y: scroll;
  1582. max-height: 9.3rem;
  1583. .infob {
  1584. background: #e3edfd;
  1585. padding: 0.2rem;
  1586. .info {
  1587. color: #333;
  1588. font-size: 0.3rem;
  1589. overflow: hidden;
  1590. text-overflow: ellipsis;
  1591. white-space: nowrap;
  1592. margin-bottom: 0.18rem;
  1593. .name {
  1594. color: #666;
  1595. }
  1596. div {
  1597. display: inline-block;
  1598. }
  1599. }
  1600. }
  1601. .content_sq {
  1602. width: 6.4rem;
  1603. margin: 0.1rem auto;
  1604. background: #fff;
  1605. padding: 0.2rem 0rem;
  1606. .list {
  1607. margin-bottom: 0.18rem;
  1608. }
  1609. .fl {
  1610. width: 3.2rem;
  1611. }
  1612. .table {
  1613. width: 4.2rem;
  1614. margin-top: -0.1rem;
  1615. }
  1616. .labelinfo {
  1617. background-image: url('/images/mobile/@2x/labelTop.png');
  1618. background-repeat: no-repeat;
  1619. width: 6.29rem;
  1620. height: 0.64rem;
  1621. line-height: 0.64rem;
  1622. background-size: 100%;
  1623. margin-top: 0rem;
  1624. margin-right: 0rem;
  1625. background-color: rgba(0, 0, 0, 0);
  1626. color: #666;
  1627. }
  1628. }
  1629. }
  1630. }
  1631. </style>