index.vue 53 KB

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