index.vue 54 KB

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