index.vue 51 KB

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