index.vue 53 KB

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