index.vue 49 KB

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