index.vue 50 KB

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