index.vue 53 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658
  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="userType == 'saler' ? '型号/品牌/类目/规格/公司' : '型号/品牌'" 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. store.dispatch('loadStoreStatus', { op: 'check' })
  423. ])
  424. },
  425. watch: {
  426. '$route.query': {
  427. handler: function (val, old) {
  428. this.switchSeek('wait')
  429. if (val.type === 'saler' && !this.shopuuid.uuid) {
  430. this.$store.dispatch('loadStoreStatus', { op: 'check' })
  431. }
  432. this.showSayPriceBox = false
  433. },
  434. immediate: false
  435. },
  436. 'activeType': {
  437. handler: function (val, old) {
  438. if (val === 'provider') {
  439. this.GetEnterpriseList().then(res => {
  440. this.GetEnterpriseListData = res.data.content
  441. this.EnterprisePage = res.data.totalPages
  442. })
  443. } else if (val === 'mystore') {
  444. // alert(1)
  445. this.$router.push(`/mobile/shop/${this.shopuuid.uuid}`)
  446. }
  447. }
  448. }
  449. },
  450. mounted: function () {
  451. this.$nextTick(() => {
  452. window.addEventListener('scroll', this.scroll, false)
  453. })
  454. },
  455. methods: {
  456. onSwitchEn: function () {
  457. if (this.$route.query.type === 'saler' && !this.user.data.enterprise.uu) {
  458. this.$router.push('/')
  459. } else {
  460. this.isChange = true
  461. this.reloadData()
  462. this.$store.dispatch('loadStoreStatus', { op: 'check' })
  463. }
  464. },
  465. cancelFocus: function (type, item, event) {
  466. event.stopPropagation()
  467. if (type === 'store') {
  468. this.$http.post('/trade/storeFocus/delete/storeId', [item.storeid])
  469. .then(response => {
  470. this.$store.dispatch('shop/StoreFocusPage', { count: 100, page: 1 })
  471. this.timeoutCount++
  472. })
  473. } else {
  474. // /trade/collection/
  475. this.$http.delete('/trade/collection/' + item.id)
  476. .then(response => {
  477. this.$store.dispatch('product/saveStores', { count: 100, page: 1, type: 'component' })
  478. this.timeoutCount++
  479. })
  480. }
  481. },
  482. getBackground: function (type) {
  483. let url = ''
  484. if (type === 'AGENCY') {
  485. url += '/images/mobile/@2x/shop/agency.png'
  486. } else if (type === 'DISTRIBUTION') {
  487. url += '/images/mobile/@2x/shop/distribution.png'
  488. } else if (type === 'ORIGINAL_FACTORY') {
  489. url += '/images/mobile/@2x/shop/original_factory.png'
  490. } else if (type === 'CONSIGNMENT') {
  491. url = '/images/mobile/@2x/shop/consignment.png'
  492. }
  493. return url
  494. },
  495. goStoreDetail: function (uuid) {
  496. this.$router.push('/mobile/shop/' + uuid)
  497. },
  498. goComponentDetail: function (uuid) {
  499. this.$router.push('/mobile/brand/componentDetail/' + uuid)
  500. },
  501. getRemindText: function () {
  502. if (this.activeType === 'comp') {
  503. return '抱歉,暂无器件收藏'
  504. } else if (this.activeType === 'store') {
  505. return '抱歉,暂无店铺关注'
  506. }
  507. },
  508. selectStoreInfo: function (store, event) {
  509. event.stopPropagation()
  510. this.storeInfo = store.storeInfo.enterprise || {}
  511. this.showStoreInfo = true
  512. },
  513. checkInfo: function (str) {
  514. return str && str.trim() !== ''
  515. },
  516. switchSeek: function (type) {
  517. this.seekType = type
  518. this.showLoading = true
  519. this.seekKeyword = ''
  520. this.isChange = true
  521. this.seekPage = 1
  522. this.reloadData()
  523. },
  524. switchType: function () {
  525. if (this.userType === 'buyer') {
  526. this.activeType = 'oppor'
  527. } else {
  528. this.activeType = 'seek'
  529. }
  530. this.seekKeyword = ''
  531. this.$router.push('/mobile/user' + (this.userType === 'saler' ? '?type=buyer' : '?type=saler'))
  532. },
  533. searchSeek: function () {
  534. this.isChange = true
  535. if (this.activeType === 'provider') {
  536. this.GetEnterpriseListData.splice(0, this.GetEnterpriseListData.length)
  537. this.GetEnterpriseListData = null
  538. this.GetEnterpriseListData = []
  539. this.seekPage = 1
  540. }
  541. this.reloadData()
  542. if (this.$refs.searchSeekInput instanceof Array) {
  543. for (let i = 0; i < this.$refs.searchSeekInput.length; i++) {
  544. this.$refs.searchSeekInput[i].blur()
  545. }
  546. } else {
  547. this.$refs.searchSeekInput.blur()
  548. }
  549. },
  550. reloadData: function () {
  551. let type = this.seekType
  552. let user = this.$store.state.option.user.data
  553. let params = {
  554. pageNumber: this.seekPage,
  555. pageSize: this.seekSize,
  556. keyword: this.seekKeyword || null
  557. }
  558. if (user.enterprise.uu) {
  559. params.enUU = user.enterprise.uu
  560. } else {
  561. params.userUU = user.userUU
  562. }
  563. if (this.userType !== 'saler') {
  564. if (type === 'wait') {
  565. params.state = 'todo'
  566. this.$store.dispatch('applyPurchase/loadBuyerUnSayPricePurchaseManList', params)
  567. } else if (type === 'done') {
  568. params._state = 'done'
  569. this.$store.dispatch('applyPurchase/loadBuyerPurchaseManList', params)
  570. } else {
  571. params._state = 'done'
  572. this.$store.dispatch('applyPurchase/loadBuyerPurchaseManList', params)
  573. }
  574. } else {
  575. if (this.activeType === 'provider') {
  576. this.getResourceProvidor()
  577. } else {
  578. if (type === 'wait') {
  579. 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})
  580. } else if (type === 'done') {
  581. 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})
  582. } else {
  583. 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})
  584. }
  585. }
  586. }
  587. },
  588. scroll: function () {
  589. let scrolled = document.documentElement.scrollTop || window.pageYOffset || document.body.scrollTop
  590. if (this.$refs.searchSeekInput && this.$store.state.mobile.InputGetFocus) {
  591. this.$refs.searchSeekInput.blur()
  592. }
  593. if (Math.ceil(scrolled + window.screen.availHeight) >= document.body.scrollHeight && this.activeType === 'provider' && !this.isSearchSearchingMore && this.seekPage < this.EnterprisePage) {
  594. this.getMoreSearch()
  595. } else if (Math.ceil(scrolled + window.screen.availHeight) >= document.body.scrollHeight && this.activeType !== 'provider' && !this.isSearchSearchingMore && this.seekPage < this.allPage) {
  596. this.getMoreSearch()
  597. }
  598. },
  599. blur: function() {
  600. setTimeout(() => {
  601. this.$store.dispatch('mobile/SetInputGetFocus', false)
  602. }, 300)
  603. },
  604. inputGetFocus: function() {
  605. setTimeout(() => {
  606. this.$store.dispatch('mobile/SetInputGetFocus', true)
  607. }, 300)
  608. },
  609. getMoreSearch: function () {
  610. this.seekPage++
  611. this.isSearchSearchingMore = true
  612. this.reloadData()
  613. },
  614. // 获取当前企业产品库
  615. GetEnterpriseList: function() {
  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', { params })
  626. },
  627. // 获取当前个人产品库
  628. GetPersonList: function(cb) {
  629. let params = {
  630. _status: 'all',
  631. count: 20,
  632. isStandard: true,
  633. keyword: this.seekKeyword || '',
  634. page: this.seekPage,
  635. sorting: { id: 'DESC' },
  636. type: 'all'
  637. }
  638. return this.$http.get('/trade/products/person', { params })
  639. },
  640. // 获取当前在售产品
  641. GetOnlineList: function() {
  642. let params = {
  643. count: 10,
  644. keyword: this.seekKeyword || '',
  645. page: this.seekPage,
  646. sorting: { 'createdDate': 'DESC' },
  647. status: '601-602'
  648. }
  649. return this.$http.get('/trade/goods/store/status', { params })
  650. },
  651. // 产品管理切换
  652. switchprovide: function(type) {
  653. this.providerType = type
  654. this.seekPage = 1
  655. this.GetEnterpriseListData.splice(0, this.GetEnterpriseListData.length)
  656. this.GetEnterpriseListData = null
  657. this.GetEnterpriseListData = []
  658. this.getResourceProvidor()
  659. },
  660. // 删除个人产品库
  661. deleteProvider: function(id, index) {
  662. this.showDelete = true
  663. this.deleteId = id
  664. // this.deleteItemIndex = index
  665. // this.$http.get(`/trade/goods/${id}/deleteMessage`).then(response => {
  666. // this.isUploadpro = response.data.code
  667. // })
  668. },
  669. deleteFn: function() {
  670. this.$http.delete(`/trade/products/${this.deleteId}?isPerson=1`).then(response => {
  671. this.showDelete = false
  672. this.collectResult = '删除成功'
  673. this.timeoutCount++
  674. this.seekPage = 1
  675. this.GetEnterpriseListData.splice(0, this.GetEnterpriseListData.length)
  676. this.isChange2 = true
  677. this.reloadData()
  678. // this.GetEnterpriseListData.splice(this.deleteItemIndex, 1)
  679. }, () => {
  680. this.showDelete = false
  681. this.collectResult = '删除失败'
  682. this.timeoutCount++
  683. })
  684. },
  685. cancelFn: function() {
  686. this.showDelete = false
  687. },
  688. addProtoperson: function(item) {
  689. if (item.addProductPerson) {
  690. this.collectResult = '已在个人产品库'
  691. this.timeoutCount++
  692. return false
  693. }
  694. this.$http.post('/trade/products/person', [item.id])
  695. .then(response => {
  696. this.collectResult = '绑定成功'
  697. this.timeoutCount++
  698. this.seekPage = 1
  699. this.GetEnterpriseListData.splice(0, this.GetEnterpriseListData.length)
  700. this.GetEnterpriseListData = null
  701. this.GetEnterpriseListData = []
  702. this.reloadData()
  703. }, () => {
  704. this.collectResult = '绑定失败'
  705. this.timeoutCount++
  706. })
  707. },
  708. // 获取相对应的信息
  709. getResourceProvidor: function() {
  710. if (this.providerType === 'enterprise') {
  711. this.GetEnterpriseList().then(res => {
  712. this.GetEnterpriseListData = this.GetEnterpriseListData.concat(res.data.content)
  713. this.EnterprisePage = res.data.totalPages
  714. this.isSearchSearchingMore = false
  715. })
  716. } else if (this.providerType === 'person') {
  717. this.GetPersonList().then(res => {
  718. this.GetEnterpriseListData = this.GetEnterpriseListData.concat(res.data.content)
  719. this.EnterprisePage = res.data.totalPages
  720. this.isSearchSearchingMore = false
  721. })
  722. } else if (this.providerType === 'onLine') {
  723. this.GetOnlineList().then(res => {
  724. this.GetEnterpriseListData = this.GetEnterpriseListData.concat(res.data.content)
  725. this.EnterprisePage = res.data.totalPages
  726. this.isSearchSearchingMore = false
  727. })
  728. }
  729. },
  730. // 查看企业产品库更多信息
  731. lookProductitem: function(id, item) {
  732. this.chooseItem = item
  733. this.$http.get(`/trade/products/goods/productid/${id}`).then(res => {
  734. this.showMoreinfn = true
  735. this.vendorlist = res.data
  736. })
  737. },
  738. closeMoreinfo: function() {
  739. this.showMoreinfn = false
  740. },
  741. logout () {
  742. this.$http.get('/logout/crossBefore', {params: {returnUrl: window.location.protocol + '//' + window.location.host}}).then(response => {
  743. if (response.data) {
  744. window.location.href = response.data.logoutUrl + '&baseUrl=' + encodeURIComponent(window.location.protocol + '//' + window.location.host + response.data.baseUrl)
  745. }
  746. })
  747. },
  748. goSayPrice: function () {
  749. if (this.user.logged) {
  750. this.showSayPriceBox = true
  751. } else {
  752. this.showLoginBox = true
  753. }
  754. },
  755. onRemind: function (str) {
  756. this.collectResult = str
  757. this.timeoutCount ++
  758. },
  759. onPublishFinish: function () {
  760. this.isChange = true
  761. this.seekPage = 1
  762. this.reloadData()
  763. },
  764. compInquiry: function (item, e) {
  765. if (e) {
  766. e.stopPropagation()
  767. }
  768. this.componentSeekObj.cmpCode = item.componentinfo.code
  769. this.componentSeekObj.pbranden = item.componentinfo.brand.nameCn
  770. this.componentSeekObj.spec = null
  771. this.componentSeekObj.kind = item.componentinfo.kind.nameCn
  772. this.componentSeekObj = JSON.parse(JSON.stringify(this.componentSeekObj))
  773. this.showPublishBox = true
  774. }
  775. },
  776. computed: {
  777. collectSave () {
  778. return this.$store.state.product.common.collectList.data
  779. },
  780. userInfo () {
  781. return this.$store.state.option.user
  782. },
  783. enterpriseInfo () {
  784. if (this.userInfo.data.enterprises) {
  785. let ens = this.userInfo.data.enterprises.slice()
  786. if (ens && ens.length) {
  787. for (let i = 0; i < ens.length; i++) {
  788. if (ens[i].current) {
  789. return ens[i]
  790. }
  791. }
  792. }
  793. return {enName: this.userInfo.data.userName + '(个人账户)'}
  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>