index.vue 50 KB

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