index.vue 53 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651
  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">
  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. },
  543. reloadData: function () {
  544. let type = this.seekType
  545. let user = this.$store.state.option.user.data
  546. let params = {
  547. pageNumber: this.seekPage,
  548. pageSize: this.seekSize,
  549. keyword: this.seekKeyword || null
  550. }
  551. if (user.enterprise.uu) {
  552. params.enUU = user.enterprise.uu
  553. } else {
  554. params.userUU = user.userUU
  555. }
  556. if (this.userType !== 'saler') {
  557. if (type === 'wait') {
  558. params.state = 'todo'
  559. this.$store.dispatch('applyPurchase/loadBuyerUnSayPricePurchaseManList', params)
  560. } else if (type === 'done') {
  561. params._state = 'done'
  562. this.$store.dispatch('applyPurchase/loadBuyerPurchaseManList', params)
  563. } else {
  564. params._state = 'done'
  565. this.$store.dispatch('applyPurchase/loadBuyerPurchaseManList', params)
  566. }
  567. } else {
  568. if (this.activeType === 'provider') {
  569. this.getResourceProvidor()
  570. } else {
  571. if (type === 'wait') {
  572. 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})
  573. } else if (type === 'done') {
  574. this.$store.dispatch('applyPurchase/loadVendorPurchaseManList', {pageNumber: this.seekPage, pageSize: this.seekSize, _state: 'done', filter: {vendUU: this.$store.state.option.user.data.enterprise.uu, fromDate: null, endDate: null, keyword: this.seekKeyword}, overdue: 1})
  575. } else {
  576. 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})
  577. }
  578. }
  579. }
  580. },
  581. scroll: function () {
  582. let scrolled = document.documentElement.scrollTop || window.pageYOffset || document.body.scrollTop
  583. if (this.$refs.searchSeekInput && this.$store.state.mobile.InputGetFocus) {
  584. this.$refs.searchSeekInput.blur()
  585. }
  586. if (Math.ceil(scrolled + window.screen.availHeight) >= document.body.scrollHeight && this.activeType === 'provider' && !this.isSearchSearchingMore && this.seekPage < this.EnterprisePage) {
  587. this.getMoreSearch()
  588. } else if (Math.ceil(scrolled + window.screen.availHeight) >= document.body.scrollHeight && this.activeType !== 'provider' && !this.isSearchSearchingMore && this.seekPage < this.allPage) {
  589. this.getMoreSearch()
  590. }
  591. },
  592. blur: function() {
  593. setTimeout(() => {
  594. this.$store.dispatch('mobile/SetInputGetFocus', false)
  595. }, 300)
  596. },
  597. inputGetFocus: function() {
  598. setTimeout(() => {
  599. this.$store.dispatch('mobile/SetInputGetFocus', true)
  600. }, 300)
  601. },
  602. getMoreSearch: function () {
  603. this.seekPage++
  604. this.isSearchSearchingMore = true
  605. this.reloadData()
  606. },
  607. // 获取当前企业产品库
  608. GetEnterpriseList: function() {
  609. let params = {
  610. _status: 'all',
  611. count: 20,
  612. isStandard: true,
  613. keyword: this.seekKeyword || '',
  614. page: this.seekPage,
  615. sorting: { id: 'DESC' },
  616. type: 'all'
  617. }
  618. return this.$http.get('/trade/products', { params })
  619. },
  620. // 获取当前个人产品库
  621. GetPersonList: function(cb) {
  622. let params = {
  623. _status: 'all',
  624. count: 20,
  625. isStandard: true,
  626. keyword: this.seekKeyword || '',
  627. page: this.seekPage,
  628. sorting: { id: 'DESC' },
  629. type: 'all'
  630. }
  631. return this.$http.get('/trade/products/person', { params })
  632. },
  633. // 获取当前在售产品
  634. GetOnlineList: function() {
  635. let params = {
  636. count: 10,
  637. keyword: this.seekKeyword || '',
  638. page: this.seekPage,
  639. sorting: { 'createdDate': 'DESC' },
  640. status: '601-602'
  641. }
  642. return this.$http.get('/trade/goods/store/status', { params })
  643. },
  644. // 产品管理切换
  645. switchprovide: function(type) {
  646. this.providerType = type
  647. this.seekPage = 1
  648. this.GetEnterpriseListData.splice(0, this.GetEnterpriseListData.length)
  649. this.GetEnterpriseListData = null
  650. this.GetEnterpriseListData = []
  651. this.getResourceProvidor()
  652. },
  653. // 删除个人产品库
  654. deleteProvider: function(id, index) {
  655. this.showDelete = true
  656. this.deleteId = id
  657. // this.deleteItemIndex = index
  658. // this.$http.get(`/trade/goods/${id}/deleteMessage`).then(response => {
  659. // this.isUploadpro = response.data.code
  660. // })
  661. },
  662. deleteFn: function() {
  663. this.$http.delete(`/trade/products/${this.deleteId}?isPerson=1`).then(response => {
  664. this.showDelete = false
  665. this.collectResult = '删除成功'
  666. this.timeoutCount++
  667. this.seekPage = 1
  668. this.GetEnterpriseListData.splice(0, this.GetEnterpriseListData.length)
  669. this.isChange2 = true
  670. this.reloadData()
  671. // this.GetEnterpriseListData.splice(this.deleteItemIndex, 1)
  672. }, () => {
  673. this.showDelete = false
  674. this.collectResult = '删除失败'
  675. this.timeoutCount++
  676. })
  677. },
  678. cancelFn: function() {
  679. this.showDelete = false
  680. },
  681. addProtoperson: function(item) {
  682. if (item.addProductPerson) {
  683. this.collectResult = '已在个人产品库'
  684. this.timeoutCount++
  685. return false
  686. }
  687. this.$http.post('/trade/products/person', [item.id])
  688. .then(response => {
  689. this.collectResult = '绑定成功'
  690. this.timeoutCount++
  691. this.seekPage = 1
  692. this.GetEnterpriseListData.splice(0, this.GetEnterpriseListData.length)
  693. this.GetEnterpriseListData = null
  694. this.GetEnterpriseListData = []
  695. this.reloadData()
  696. }, () => {
  697. this.collectResult = '绑定失败'
  698. this.timeoutCount++
  699. })
  700. },
  701. // 获取相对应的信息
  702. getResourceProvidor: function() {
  703. if (this.providerType === 'enterprise') {
  704. this.GetEnterpriseList().then(res => {
  705. this.GetEnterpriseListData = this.GetEnterpriseListData.concat(res.data.content)
  706. this.EnterprisePage = res.data.totalPages
  707. this.isSearchSearchingMore = false
  708. })
  709. } else if (this.providerType === 'person') {
  710. this.GetPersonList().then(res => {
  711. this.GetEnterpriseListData = this.GetEnterpriseListData.concat(res.data.content)
  712. this.EnterprisePage = res.data.totalPages
  713. this.isSearchSearchingMore = false
  714. })
  715. } else if (this.providerType === 'onLine') {
  716. this.GetOnlineList().then(res => {
  717. this.GetEnterpriseListData = this.GetEnterpriseListData.concat(res.data.content)
  718. this.EnterprisePage = res.data.totalPages
  719. this.isSearchSearchingMore = false
  720. })
  721. }
  722. },
  723. // 查看企业产品库更多信息
  724. lookProductitem: function(id, item) {
  725. this.chooseItem = item
  726. this.$http.get(`/trade/products/goods/productid/${id}`).then(res => {
  727. this.showMoreinfn = true
  728. this.vendorlist = res.data
  729. })
  730. },
  731. closeMoreinfo: function() {
  732. this.showMoreinfn = false
  733. },
  734. logout () {
  735. this.$http.get('/logout/crossBefore', {params: {returnUrl: window.location.protocol + '//' + window.location.host}}).then(response => {
  736. if (response.data) {
  737. window.location.href = response.data.logoutUrl + '&baseUrl=' + encodeURIComponent(window.location.protocol + '//' + window.location.host + response.data.baseUrl)
  738. }
  739. })
  740. },
  741. goSayPrice: function () {
  742. if (this.user.logged) {
  743. this.showSayPriceBox = true
  744. } else {
  745. this.showLoginBox = true
  746. }
  747. },
  748. onRemind: function (str) {
  749. this.collectResult = str
  750. this.timeoutCount ++
  751. },
  752. onPublishFinish: function () {
  753. this.isChange = true
  754. this.seekPage = 1
  755. this.reloadData()
  756. },
  757. compInquiry: function (item, e) {
  758. if (e) {
  759. e.stopPropagation()
  760. }
  761. this.componentSeekObj.cmpCode = item.componentinfo.code
  762. this.componentSeekObj.pbranden = item.componentinfo.brand.nameCn
  763. this.componentSeekObj.spec = null
  764. this.componentSeekObj.kind = item.componentinfo.kind.nameCn
  765. this.componentSeekObj = JSON.parse(JSON.stringify(this.componentSeekObj))
  766. this.showPublishBox = true
  767. }
  768. },
  769. computed: {
  770. collectSave () {
  771. return this.$store.state.product.common.collectList.data
  772. },
  773. userInfo () {
  774. return this.$store.state.option.user
  775. },
  776. enterpriseInfo () {
  777. if (this.userInfo.data.enterprises) {
  778. let ens = this.userInfo.data.enterprises.slice()
  779. if (ens && ens.length) {
  780. for (let i = 0; i < ens.length; i++) {
  781. if (ens[i].current) {
  782. return ens[i]
  783. }
  784. }
  785. }
  786. return {enName: this.userInfo.data.userName + '(个人账户)'}
  787. } else {
  788. return ''
  789. }
  790. },
  791. isVendor () {
  792. return this.enterpriseInfo.isVendor === 313
  793. },
  794. userType () {
  795. this.activeType = this.$route.query.type === 'saler' ? 'oppor' : 'seek'
  796. return this.$route.query.type
  797. },
  798. focusPage () {
  799. return this.$store.state.shop.storeInfo.focusPage.data
  800. },
  801. purchase () {
  802. return this.$store.state.applyPurchase.purchaseManList.purchaseManList
  803. },
  804. purchaseManList () {
  805. let list = this.purchase.data.content ? this.purchase.data.content.slice() : []
  806. if (this.isChange) {
  807. this.purchaseManListData = []
  808. this.seekPage = 1
  809. this.isChange = false
  810. this.isDataChange = true
  811. } else {
  812. this.purchaseManListData = this.purchaseManListData.concat(list)
  813. this.isSearchSearchingMore = false
  814. this.isDataChange = false
  815. }
  816. return this.purchase.data.content
  817. },
  818. allPage () {
  819. return Math.floor(this.purchase.data.totalElements / this.purchase.data.size) + Math.floor(this.purchase.data.totalElements % this.purchase.data.size > 0 ? 1 : 0)
  820. },
  821. purchaseManListFetching () {
  822. this.showLoading = false
  823. return this.purchase.fetching
  824. },
  825. cnmpCode() { // 型号
  826. if (this.chooseItem.pcmpcode) {
  827. return this.chooseItem.pcmpcode
  828. }
  829. return ''
  830. },
  831. cnmpType() { // 类目
  832. if (this.chooseItem.kinden) {
  833. return this.chooseItem.kinden
  834. }
  835. return ''
  836. },
  837. cnmpBand() { // 品牌
  838. if (this.chooseItem.pbranden) {
  839. return this.chooseItem.pbranden
  840. }
  841. return ''
  842. },
  843. // 是否展示空数据
  844. StateNone() {
  845. if (this.activeType === 'provider') {
  846. return this.GetEnterpriseListData.length === 0 && this.EnterprisePage === 0
  847. } else if (this.activeType === 'oppor' || this.activeType === 'mystore') {
  848. return false
  849. } else {
  850. 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)
  851. }
  852. },
  853. shopuuid() {
  854. return this.$store.state.option.storeStatus.data
  855. }
  856. }
  857. }
  858. </script>
  859. <style scoped lang="scss">
  860. .user-content{
  861. margin-bottom: .98rem;
  862. .sa-pub {
  863. display: inline-block;
  864. width: 1.41rem;
  865. height: .47rem;
  866. line-height: .47rem;
  867. text-align: center;
  868. color: #fff;
  869. background: #3f84f6;
  870. border-radius: .14rem;
  871. }
  872. .none-state{
  873. text-align: center;
  874. padding:1.5rem 0;
  875. background: #fff;
  876. margin-top:.1rem;
  877. width:100%;
  878. img{
  879. margin:0 auto;
  880. width: 4.08rem;
  881. height: 2.62rem;
  882. }
  883. p {
  884. font-size: .32rem;
  885. color: #999;
  886. margin: 1.19rem 0 0 0;
  887. }
  888. a {
  889. display: block;
  890. font-size: .28rem;
  891. color: #fff;
  892. width: 1.88rem;
  893. height: .54rem;
  894. line-height: .54rem;
  895. background: #418bf6;
  896. margin: .7rem auto 0;
  897. border-radius: .05rem;
  898. }
  899. }
  900. .user-name{
  901. height: 1.8rem;
  902. padding: .28rem 0 .28rem .34rem;
  903. background: #fff;
  904. width: 100%;
  905. position: relative;
  906. img{
  907. display: inline-block;
  908. width: 1.25rem;
  909. height: 1.25rem;
  910. border: 1px solid #c5dbfc;
  911. border-radius: .05rem;
  912. vertical-align: middle;
  913. }
  914. .user-info {
  915. margin-left:.25rem;
  916. display: inline-block;
  917. vertical-align: middle;
  918. position: relative;
  919. p{
  920. font-size:.3rem;
  921. margin:0;
  922. display: block;
  923. overflow: hidden;
  924. text-overflow: ellipsis;
  925. white-space: nowrap;
  926. max-width: 3.92rem;
  927. &:nth-child(2) {
  928. position: relative;
  929. margin-top: .2rem;
  930. padding-right: .7rem;
  931. overflow: unset;
  932. max-width: unset;
  933. .en-name {
  934. overflow: hidden;
  935. text-overflow: ellipsis;
  936. white-space: nowrap;
  937. max-width: 3.22rem;
  938. display: inline-block;
  939. }
  940. a {
  941. position: absolute;
  942. right: 0;
  943. }
  944. .exit {
  945. right: -.8rem;
  946. }
  947. .vir {
  948. position: absolute;
  949. right: -.14rem;
  950. }
  951. }
  952. }
  953. .en-list {
  954. position: absolute;
  955. max-width: 5rem;
  956. max-height: 3rem;
  957. overflow-y: auto;
  958. border-radius: .05rem;
  959. background: rgba(0, 0, 0, .6);
  960. z-index: 10;
  961. .menu-item {
  962. height: .6rem;
  963. line-height: .6rem;
  964. font-size: .3rem;
  965. padding: 0 .2rem;
  966. overflow: hidden;
  967. white-space: nowrap;
  968. text-overflow: ellipsis;
  969. &:active, &:focus, &:hover {
  970. background: #7d7d7d;
  971. }
  972. a {
  973. color: #fff;
  974. }
  975. }
  976. }
  977. }
  978. > a {
  979. font-size: .24rem;
  980. position: absolute;
  981. top: .45rem;
  982. right: .1rem;
  983. color: #3f84f6;
  984. border: 1px solid #3f84f6;
  985. border-radius: .2rem;
  986. padding: .06rem .12rem;
  987. }
  988. }
  989. .shop-list {
  990. background:#fff;
  991. border-bottom: .1rem solid #dfe2e4;
  992. padding: .14rem 0 .14rem 0;
  993. h3{
  994. font-size: .32rem;
  995. line-height: .4rem;
  996. margin: 0 0 0 .27rem;
  997. overflow: hidden;
  998. text-overflow: ellipsis;
  999. white-space: nowrap;
  1000. padding-top: .1rem;
  1001. position: relative;
  1002. top: .1rem;
  1003. }
  1004. .list-item{
  1005. width:6.77rem;
  1006. margin-left:.39rem;
  1007. .item-img{
  1008. width:2.4rem;
  1009. vertical-align: middle;
  1010. display: inline-block;
  1011. img{
  1012. &:nth-child(2) {
  1013. width:2.4rem;
  1014. height:1.69rem;
  1015. border: 1px solid #eee;
  1016. }
  1017. &:nth-child(1) {
  1018. position:absolute;
  1019. width:.65rem;
  1020. height:.33rem;
  1021. }
  1022. }
  1023. }
  1024. .list-item-phone{
  1025. width:3.95rem;
  1026. padding:.18rem 0;
  1027. position:relative;
  1028. display: inline-block;
  1029. vertical-align: middle;
  1030. margin-left: .26rem;
  1031. p{
  1032. font-size:.28rem;
  1033. line-height: .67rem;
  1034. margin:0;
  1035. overflow: hidden;
  1036. text-overflow: ellipsis;
  1037. white-space: nowrap;
  1038. width: 3.2rem;
  1039. }
  1040. i{
  1041. display:block;
  1042. position:absolute;
  1043. top: -.06rem;
  1044. right: -.18rem;
  1045. font-size:.5rem;
  1046. color:#ff7800;
  1047. width: .6rem;
  1048. height: .6rem;
  1049. text-align: center;
  1050. line-height: .6rem;
  1051. }
  1052. }
  1053. }
  1054. &:active {
  1055. background: #e1e1e1;
  1056. }
  1057. }
  1058. .detail-brand{
  1059. background: #fff;
  1060. width:100%;
  1061. min-height:1.5rem;
  1062. padding:.2rem 0;
  1063. border-bottom: .1rem solid #dfe2e4;
  1064. &:nth-child(1) {
  1065. margin-top:.1rem;
  1066. }
  1067. .brand-item{
  1068. width:7rem;
  1069. margin:0 auto;
  1070. border-radius:.1rem;
  1071. background: #fff;
  1072. padding:.2rem;
  1073. position:relative;
  1074. &:active{
  1075. background: #e1e1e1;
  1076. }
  1077. p{
  1078. font-size:.28rem;
  1079. line-height:.4rem;
  1080. color:#333;
  1081. margin:0;
  1082. }
  1083. i{
  1084. display:block;
  1085. position:absolute;
  1086. top:.2rem;
  1087. right:.4rem;
  1088. font-size:.5rem;
  1089. color:#ff7800;
  1090. width: .6rem;
  1091. height: .6rem;
  1092. line-height: .6rem;
  1093. text-align: center;
  1094. }
  1095. .sa-pub {
  1096. position: absolute;
  1097. right: 0;
  1098. bottom: .2rem;
  1099. }
  1100. }
  1101. div.active{
  1102. background: #d4d;
  1103. }
  1104. }
  1105. .collect-list-type {
  1106. background: #fff;
  1107. border-bottom: 1px solid #acacac;
  1108. p {
  1109. font-size: .32rem;
  1110. margin: 0 0 0 .13rem;
  1111. width: .92rem;
  1112. text-align: center;
  1113. line-height: .5rem;
  1114. border-bottom: .06rem solid #418bf6;
  1115. }
  1116. }
  1117. ul.switch-list {
  1118. .noshop {
  1119. width: 50%;
  1120. }
  1121. li {
  1122. display: inline-block;
  1123. width: 2.5rem;
  1124. height: .63rem;
  1125. line-height: .63rem;
  1126. text-align: center;
  1127. font-size: .28rem;
  1128. color: #666;
  1129. background: #fff;
  1130. border: 1px solid #b4b4b4;
  1131. border-right: none;
  1132. &.active {
  1133. background: #0067e7;
  1134. border: 1px solid #0067e7;
  1135. color: #fff;
  1136. }
  1137. &:first-child {
  1138. border-left: none;
  1139. }
  1140. &:last-child {
  1141. border-right: none;
  1142. }
  1143. }
  1144. &.vendor-switch {
  1145. li {
  1146. width: 50%;
  1147. }
  1148. }
  1149. }
  1150. .seek {
  1151. .seek-type {
  1152. margin-top: .15rem;
  1153. li {
  1154. font-size: .28rem;
  1155. color: #666;
  1156. display: inline-block;
  1157. width: 50%;
  1158. text-align: center;
  1159. div {
  1160. border-bottom: 1px solid #c1c4c9;
  1161. margin: 0 auto;
  1162. height: .46rem;
  1163. line-height: .46rem;
  1164. }
  1165. &.active {
  1166. color: #3f84f6;
  1167. div {
  1168. border-color: #3f84f6;
  1169. }
  1170. }
  1171. }
  1172. }
  1173. }
  1174. .search-content {
  1175. text-align: center;
  1176. padding: .25rem 0 0 0;
  1177. input {
  1178. border: 1px solid #376ff3;
  1179. }
  1180. span {
  1181. height: .46rem;
  1182. line-height: .46rem;
  1183. }
  1184. }
  1185. .seek-area {
  1186. height: 1.26rem;
  1187. line-height: 1.26rem;
  1188. border-top: .19rem solid #f6f5f5;
  1189. border-bottom: .19rem solid #f6f5f5;
  1190. overflow: hidden;
  1191. /*padding: .32rem 0;*/
  1192. img {
  1193. height: .78rem;
  1194. margin-right: .2rem;
  1195. vertical-align: top;
  1196. margin-top: .1rem;
  1197. }
  1198. .sa-title {
  1199. font-size: .38rem;
  1200. color: #3f84f6;
  1201. line-height: .32rem;
  1202. vertical-align: top;
  1203. margin-top: .1rem;
  1204. span {
  1205. color: #494949;
  1206. }
  1207. .sa-text {
  1208. font-size: .26rem;
  1209. color: #999;
  1210. }
  1211. }
  1212. .sa-pub {
  1213. margin-left: .86rem;
  1214. vertical-align: top;
  1215. margin-top: .23rem;
  1216. }
  1217. }
  1218. }
  1219. .providerList {
  1220. border-top: 1px solid #e0e0e4;
  1221. border-bottom: 1px solid #e0e0e4;
  1222. margin-bottom: 0.24rem;
  1223. .top {
  1224. &.top2 {
  1225. .text {
  1226. width: 5.4rem;
  1227. }
  1228. .pms {
  1229. color: #f57710;
  1230. border: 1px solid #f57710;
  1231. border-radius: 0.4rem;
  1232. background: #fff;
  1233. font-size: 0.24rem;
  1234. height: 0.4rem;
  1235. line-height: 0.4rem;
  1236. width: 0.8rem;
  1237. text-align: center;
  1238. float: right;
  1239. margin-top: 0.25rem;
  1240. }
  1241. }
  1242. .icon {
  1243. width: 0.6rem;
  1244. height: 0.36rem;
  1245. line-height: 0.36rem;
  1246. margin-top: 0.27rem;
  1247. float: left;
  1248. background-size: 100%;
  1249. background-repeat: no-repeat;
  1250. margin-right: 0.12rem;
  1251. text-align: center;
  1252. &.istanded{
  1253. background-image: url('/images/mobile/@2x/istanded.png')
  1254. }
  1255. &.standed{
  1256. background-image: url('/images/mobile/@2x/standed.png')
  1257. }
  1258. }
  1259. .person-flag {
  1260. width: .75rem;
  1261. position: absolute;
  1262. right: 0;
  1263. }
  1264. .text {
  1265. float: left;
  1266. width: 6.3rem;
  1267. overflow: hidden;
  1268. text-overflow: ellipsis;
  1269. white-space: nowrap;
  1270. }
  1271. padding: 0 0.24rem;
  1272. background: #f5f9fd;
  1273. height: 0.9rem;
  1274. line-height: 0.9rem;
  1275. color: #0067e7;
  1276. font-size: 0.3rem;
  1277. &::after{
  1278. clear: both;
  1279. display: block;
  1280. content: ' ';
  1281. visibility: hidden;
  1282. zoom: 1;
  1283. }
  1284. }
  1285. .content {
  1286. padding: 0.24rem 0.24rem;
  1287. background: #fff;
  1288. .linetext {
  1289. margin-bottom: 0.24rem;
  1290. overflow: hidden;
  1291. text-overflow: ellipsis;
  1292. white-space: nowrap;
  1293. &:nth-last-of-type(1){
  1294. margin-bottom: 0rem;
  1295. }
  1296. }
  1297. .fl {
  1298. float: left;
  1299. border-right: 1px dashed #e0e0e4;
  1300. width: 4.68rem;
  1301. }
  1302. .fr {
  1303. float: right;
  1304. margin: 0.18rem 0.24rem;
  1305. margin-right: 0rem;
  1306. font-size: 0.3rem;
  1307. &.addtop {
  1308. margin-top: 0.6rem;
  1309. .add {
  1310. background: #0067e7;
  1311. color: #fff;
  1312. &.noadd{
  1313. background: #cccbcb;
  1314. color: #fff;
  1315. border:1px solid #cccbcb;
  1316. }
  1317. }
  1318. }
  1319. div {
  1320. width: 2.1rem;
  1321. height: 0.6rem;
  1322. text-align: center;
  1323. line-height: 0.6rem;
  1324. border-radius: 3px;
  1325. &.look{
  1326. background: #0067e7;
  1327. color: #fff;
  1328. }
  1329. &.add{
  1330. background: #fff;
  1331. color: #0067e7;
  1332. border: 1px solid #0067e7;
  1333. }
  1334. &.delete{
  1335. background: #fff;
  1336. color: #f70415;
  1337. border: 1px solid #f70415;
  1338. }
  1339. &.noadd{
  1340. background: #cccbcb;
  1341. color: #fff;
  1342. border:1px solid #cccbcb;
  1343. }
  1344. }
  1345. div:nth-child(1){
  1346. margin-bottom: 0.26rem
  1347. }
  1348. }
  1349. &::after{
  1350. clear: both;
  1351. display: block;
  1352. content: ' ';
  1353. visibility: hidden;
  1354. zoom: 1;
  1355. }
  1356. }
  1357. }
  1358. .middle {
  1359. padding: 0.24rem 0.24rem 0px;
  1360. background: #fff;
  1361. .pms {
  1362. color: #f57710;
  1363. border: 1px solid #f57710;
  1364. border-radius: 0.4rem;
  1365. background: #fff;
  1366. font-size: 0.24rem;
  1367. height: 0.4rem;
  1368. line-height: 0.4rem;
  1369. width: 0.8rem;
  1370. text-align: center;
  1371. }
  1372. .list {
  1373. .left {
  1374. float: left;
  1375. overflow: hidden;
  1376. text-overflow: ellipsis;
  1377. white-space: nowrap;
  1378. }
  1379. .textinfo {
  1380. color: #0067e7;
  1381. font-size: 0.3rem
  1382. }
  1383. margin-bottom: 0.18rem;
  1384. &::after{
  1385. clear: both;
  1386. display: block;
  1387. content: ' ';
  1388. visibility: hidden;
  1389. zoom: 1;
  1390. }
  1391. .fl {
  1392. width: 4.4rem;
  1393. float: left;
  1394. overflow: hidden;
  1395. text-overflow: ellipsis;
  1396. white-space: nowrap;
  1397. }
  1398. .fr {
  1399. text-align: left;
  1400. width: 2.6rem;
  1401. overflow: hidden;
  1402. text-overflow: ellipsis;
  1403. white-space: nowrap;
  1404. }
  1405. .name {
  1406. color: #666;
  1407. font-size: 0.3rem;
  1408. display: inline-block;
  1409. }
  1410. .text {
  1411. display: inline-block;
  1412. color: #333;
  1413. font-size: 0.3rem
  1414. }
  1415. .table {
  1416. width: 5.5rem;
  1417. margin-bottom: 0px;
  1418. margin-top: -.1rem;
  1419. li {
  1420. height: 0.6rem;
  1421. line-height: 0.6rem;
  1422. &::after {
  1423. clear: both;
  1424. display: block;
  1425. content: ' ';
  1426. visibility: hidden;
  1427. zoom: 1;
  1428. }
  1429. div {
  1430. text-align: center;
  1431. width: 50%;
  1432. float: left
  1433. }
  1434. &:nth-child(odd) {
  1435. background: #f7f7f7;
  1436. color: #666;
  1437. font-size: 0.28rem;
  1438. }
  1439. &:nth-child(even) {
  1440. background: #fcfcfc;
  1441. color: #666;
  1442. font-size: 0.28rem;
  1443. }
  1444. &:nth-last-of-type(1){
  1445. color: #f31919;
  1446. }
  1447. &.title {
  1448. font-size: 0.3rem;
  1449. color: #666;
  1450. }
  1451. }
  1452. }
  1453. }
  1454. }
  1455. .labelinfo {
  1456. padding: 0 .24rem;
  1457. background: #e6e6e6;
  1458. height: 0.6rem;
  1459. line-height: 0.6rem;
  1460. width: 100%;
  1461. color: #666;
  1462. font-size: 0.26rem;
  1463. overflow: hidden;
  1464. text-overflow: ellipsis;
  1465. white-space: nowrap;
  1466. .labelicon {
  1467. background-image: url('/images/mobile/@2x/label_icon.png');
  1468. background-repeat: no-repeat;
  1469. width: 0.61rem;
  1470. height: 0.38rem;
  1471. line-height: 0.38rem;
  1472. background-size: 100%;
  1473. color: #fff;
  1474. margin-right: 0.1rem;
  1475. display: inline-block;
  1476. font-size: 0.22rem;
  1477. text-align: center;
  1478. /*vertical-align: middle;*/
  1479. }
  1480. .labeltext{
  1481. display: inline-block;
  1482. /*vertical-align: middle;*/
  1483. }
  1484. }
  1485. .deleteKuang {
  1486. position: fixed;
  1487. background: rgba(0,0,0,0.5);
  1488. top: 0;
  1489. left: 0;
  1490. right: 0;
  1491. bottom: 0;
  1492. z-index: 9999;
  1493. .kuangContent {
  1494. border-radius: 5px;
  1495. background: #fff;
  1496. width: 5rem;
  1497. position: absolute;
  1498. left: 50%;
  1499. top: 50%;
  1500. transform: translate3d(-50%, -50%, 0);
  1501. overflow: hidden;
  1502. .titleinfo {
  1503. font-size: .3rem;
  1504. color: #666;
  1505. text-align: center;
  1506. margin-top: 0.5rem;
  1507. margin-bottom: 0.1rem;
  1508. }
  1509. .title {
  1510. background: #5078cb;
  1511. height: .7rem;
  1512. line-height: .7rem;
  1513. font-size: .3rem;
  1514. color: #fff;
  1515. text-align: center;
  1516. }
  1517. .info {
  1518. color: #f00;
  1519. text-align: center;
  1520. }
  1521. .K_btn {
  1522. margin-top: 0.4rem;
  1523. line-height: 0.7rem;
  1524. height: 0.7rem;
  1525. &::after{
  1526. clear: both;
  1527. display: block;
  1528. content: ' ';
  1529. visibility: hidden;
  1530. zoom: 1;
  1531. }
  1532. div {
  1533. float: left;
  1534. width: 50%;
  1535. font-size: 0.3rem;
  1536. text-align: center;
  1537. &.cancelBtn {
  1538. background: #b4b5b9;
  1539. color: #333;
  1540. }
  1541. &.answerBtn {
  1542. background: #5078cb;
  1543. color: #fff;
  1544. }
  1545. }
  1546. }
  1547. }
  1548. i {
  1549. font-size: .6rem;
  1550. position: absolute;
  1551. right: -0.3rem;
  1552. top: -0.35rem;
  1553. color: #fff;
  1554. &::after{
  1555. position: absolute;
  1556. top: -0.1rem;
  1557. left: -0.1rem;
  1558. right: -0.1rem;
  1559. bottom: -0.1rem;
  1560. content: ' '
  1561. }
  1562. }
  1563. .title {
  1564. background: #3f84f6;
  1565. height: 0.7rem;
  1566. line-height: 0.7rem;
  1567. color: #fff;
  1568. text-align: center;
  1569. font-size: 0.3rem;
  1570. position: relative;
  1571. }
  1572. .Kuang {
  1573. max-height: 10rem;
  1574. width: 6.7rem;
  1575. position: absolute;
  1576. left: 50%;
  1577. top: 50%;
  1578. transform: translate3d(-50%, -50%, 0);
  1579. background: #ececec;
  1580. border-radius: 5px;
  1581. }
  1582. .content {
  1583. overflow-y: scroll;
  1584. max-height: 9.3rem;
  1585. .infob {
  1586. background: #e3edfd;
  1587. padding: 0.2rem;
  1588. .info {
  1589. color: #333;
  1590. font-size: 0.3rem;
  1591. overflow: hidden;
  1592. text-overflow: ellipsis;
  1593. white-space: nowrap;
  1594. margin-bottom: 0.18rem;
  1595. .name {
  1596. color: #666;
  1597. }
  1598. div {
  1599. display: inline-block;
  1600. }
  1601. }
  1602. }
  1603. .content_sq {
  1604. width: 6.4rem;
  1605. margin: 0.1rem auto;
  1606. background: #fff;
  1607. padding: 0.2rem 0rem;
  1608. .list {
  1609. margin-bottom: 0.18rem;
  1610. }
  1611. .fl {
  1612. width: 3.2rem;
  1613. }
  1614. .table {
  1615. width: 4.2rem;
  1616. margin-top: -0.1rem;
  1617. }
  1618. .labelinfo {
  1619. background-image: url('/images/mobile/@2x/labelTop.png');
  1620. background-repeat: no-repeat;
  1621. width: 6.29rem;
  1622. height: 0.64rem;
  1623. line-height: 0.64rem;
  1624. background-size: 100%;
  1625. margin-top: 0rem;
  1626. margin-right: 0rem;
  1627. background-color: rgba(0, 0, 0, 0);
  1628. color: #666;
  1629. }
  1630. }
  1631. }
  1632. }
  1633. </style>