index.vue 51 KB

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