index.vue 50 KB

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