index.vue 48 KB

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