index.vue 50 KB

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