index.vue 51 KB

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