index.vue 49 KB

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