index.vue 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843
  1. <template>
  2. <div class="user-content mobile-content">
  3. <user-header @updateLoad="updateEnterpriseInfo"></user-header>
  4. <ul class="switch-list">
  5. <li :class="{active: activeType === 'store'}" @click="swtichTab('store')">店铺管理</li>
  6. <li :class="{active: activeType === 'Account'}" @click="swtichTab('Account')">账户管理</li>
  7. </ul>
  8. <!-- 店铺管理 -->
  9. <template v-if="activeType === 'store'">
  10. <template v-if="storeInfo.storeName">
  11. <div class="topinfo clearfix">
  12. <div class="pull-left">
  13. 店铺信息
  14. </div>
  15. <div class="pull-right" @click="updateInfo()" v-show="storeState === 'look'">
  16. <img src="/images/vendor/edit.png"/>
  17. 编辑
  18. </div>
  19. </div>
  20. <ul class="infoul">
  21. <li class="clearfix" :class="{border: storeState !== 'look'}">
  22. <div class="name pull-left" :class="{update: storeState !== 'look'}">店铺名称:</div>
  23. <div class="text pull-left" v-if="storeState === 'look'">
  24. {{storeInfo.storeName || '-'}}
  25. </div>
  26. <div v-else class="text pull-left">
  27. <input v-model="storeInfo.storeName" type="text"/>
  28. </div>
  29. </li>
  30. <li class="clearfix" :class="{border: storeState !== 'look'}">
  31. <div class="name pull-left" :class="{update: storeState !== 'look'}">简介:</div>
  32. <div class="text pull-left clearfix" v-if="storeState === 'look'">
  33. {{Islook ? dealWithText(storeInfo.description) : dealWithText()}}
  34. <a class="pull-right" @click="dealWithText()" v-show="Islook">全部<img src="/images/store/default/openblack.png"/></a>
  35. </div>
  36. <div class="text pull-left" v-else>
  37. <textarea v-model="storeInfo.description">
  38. </textarea>
  39. </div>
  40. </li>
  41. <li class="clearfix" :class="{border: storeState !== 'look'}">
  42. <div class="name pull-left" :class="{update: storeState !== 'look'}">企业地址:</div>
  43. <div class="text pull-left" v-if="storeState === 'look'">
  44. {{storeInfo.enterprise.address || '-'}}
  45. </div>
  46. <div v-else class="text pull-left">
  47. <input v-model="storeInfo.enterprise.address" type="text"/>
  48. </div>
  49. </li>
  50. <li class="clearfix" :class="{border: storeState !== 'look'}">
  51. <div class="name pull-left" :class="{update: storeState !== 'look'}">电话:</div>
  52. <div class="text pull-left" v-if="storeState === 'look'">
  53. {{storeInfo.enterprise.enTel || '暂无信息'}}
  54. </div>
  55. <div v-else class="text pull-left">
  56. <input v-model="storeInfo.enterprise.enTel" type="text"/>
  57. </div>
  58. </li>
  59. <li class="clearfix" :class="{border: storeState !== 'look'}">
  60. <div class="name pull-left" :class="{update: storeState !== 'look'}">传真:</div>
  61. <div class="text pull-left" v-if="storeState === 'look'">
  62. {{storeInfo.enterprise.enFax || '暂无信息'}}
  63. </div>
  64. <div v-else class="text pull-left">
  65. <input v-model="storeInfo.enterprise.enFax" type="text"/>
  66. </div>
  67. </li>
  68. <li class="clearfix" :class="{border: storeState !== 'look'}">
  69. <div class="name pull-left" :class="{update: storeState !== 'look'}">手机:</div>
  70. <div class="text pull-left" v-if="storeState === 'look'">
  71. {{storeInfo.enterprise.enPhone || '暂无信息'}}
  72. </div>
  73. <div v-else class="text pull-left">
  74. <input v-model="storeInfo.enterprise.enPhone" type="text"/>
  75. </div>
  76. </li>
  77. <li class="clearfix" :class="{border: storeState !== 'look'}">
  78. <div class="name pull-left" :class="{update: storeState !== 'look'}">微信:</div>
  79. <div class="text pull-left" v-if="storeState === 'look'">
  80. {{storeInfo.enterprise.enWeixin || '暂无信息'}}
  81. </div>
  82. <div v-else class="text pull-left">
  83. <input v-model="storeInfo.enterprise.enWeixin" type="text"/>
  84. </div>
  85. </li>
  86. <li class="clearfix" :class="{border: storeState !== 'look'}">
  87. <div class="name pull-left" :class="{update: storeState !== 'look'}">QQ:</div>
  88. <div class="text pull-left" v-if="storeState === 'look'">
  89. {{storeInfo.enterprise.enQQ || '暂无信息'}}
  90. </div>
  91. <div v-else class="text pull-left">
  92. <input v-model="storeInfo.enterprise.enQQ" type="text"/>
  93. </div>
  94. </li>
  95. </ul>
  96. <div class="save" @click="storeInfosave()" v-if="storeState !== 'look'">保存</div>
  97. </template>
  98. <template v-else>
  99. <div class="none-state">
  100. <img src="/images/mobile/@2x/empty-collect.png">
  101. <p v-text="getRemindText"></p>
  102. <nuxt-link to="/">返回首页</nuxt-link>
  103. </div>
  104. </template>
  105. </template>
  106. <!-- /end 店铺管理 -->
  107. <!-- 账户管理 -->
  108. <template v-else>
  109. <div class="topinfo clearfix">
  110. <div class="pull-left">
  111. 企业信息
  112. </div>
  113. <div class="pull-right" @click="updateInfo()" v-show="storeState === 'look' && enterpriseInfo.enName">
  114. <img src="/images/vendor/edit.png"/>
  115. 编辑
  116. </div>
  117. </div>
  118. <ul class="infoul infoul2">
  119. <li class="clearfix" :class="{noupdate: storeState !== 'look'}">
  120. <div class="name pull-left" :class="{update: storeState !== 'look'}">企业名称:</div>
  121. <div class="text pull-left" :class="{update: storeState !== 'look'}">
  122. {{enterpriseInfo.enName || '-'}}
  123. </div>
  124. </li>
  125. <li class="clearfix" :class="{noupdate: storeState !== 'look', border: storeState !== 'look'}">
  126. <div class="name pull-left" :class="{update: storeState !== 'look'}">营业执照号:</div>
  127. <div class="text pull-left" :class="{update: storeState !== 'look'}">
  128. {{enterpriseInfo.enBussinessCode || '-'}}
  129. </div>
  130. </li>
  131. <li class="clearfix" :class="{border: storeState !== 'look'}">
  132. <div class="name pull-left" :class="{update: storeState !== 'look'}">注册地址:</div>
  133. <div class="text pull-left" v-if="storeState === 'look'">
  134. {{enterpriseInfo.enAddress || '-'}}
  135. </div>
  136. <div v-else class="text pull-left">
  137. <input v-model="enterpriseInfo.enAddress" type="text"/>
  138. </div>
  139. </li>
  140. <li class="clearfix" :class="{border: storeState !== 'look'}">
  141. <div class="name pull-left" :class="{update: storeState !== 'look'}">官网地址:</div>
  142. <div class="text pull-left" v-if="storeState === 'look'">
  143. {{enterpriseInfo.enUrl || '-'}}
  144. </div>
  145. <div v-else class="text pull-left">
  146. <input v-model="enterpriseInfo.enUrl" type="text"/>
  147. </div>
  148. </li>
  149. <li class="clearfix" :class="{border: storeState !== 'look'}">
  150. <div class="name pull-left" :class="{update: storeState !== 'look'}">所属行业:</div>
  151. <div class="text pull-left" v-if="storeState === 'look'">
  152. {{enterpriseInfo.enIndustry || '-'}}
  153. </div>
  154. <div v-else class="text pull-left clearfix">
  155. <input v-model="enterpriseInfo.enIndustry" type="text" style="width: 4.5rem"/>
  156. <div class="moreIcon pull-right" @click="isShowTypeAlert = true">
  157. <img src="/images/store/default/openblackR.png" @click="isShowTypeAlert = true"/>
  158. </div>
  159. </div>
  160. </li>
  161. <li class="clearfix" :class="{border: storeState !== 'look'}">
  162. <div class="name pull-left" :class="{update: storeState !== 'look'}">经营范围:</div>
  163. <div class="text pull-left" v-if="storeState === 'look'" >
  164. <span v-for="item in scopeLabel" class="label">
  165. {{item}}
  166. </span>
  167. <span class="text pull-left nolabel" v-if="scopeLabel.length == 0">
  168. 无标签信息
  169. </span>
  170. </div>
  171. <div v-else class="text pull-left">
  172. <label v-for="item in scopeLabel" class="labelKuang" v-show="AddBtnShow">
  173. <span class="Updatelabel">
  174. {{item}}
  175. </span>
  176. <span class="updatespan"@click="addBtn(item)">编辑</span>
  177. </label>
  178. <span class="addBtn" v-show="AddBtnShow" @click="addBtn()"></span>
  179. <div class="commit" v-show="!AddBtnShow">
  180. <input type="text" placeholder="请输入不大于10个字符" class="inputText" v-model="labelText"/>
  181. <button @click="saveLabel()">确定</button>
  182. </div>
  183. </div>
  184. </li>
  185. </ul>
  186. <template v-if="storeState === 'look'">
  187. <div class="topinfo clearfix" style="color: #999;border-top: 1px solid #b4b4b4">
  188. 个人信息
  189. </div>
  190. <ul class="infoul infoul2" style="color: #999">
  191. <li class="clearfix">
  192. <div class="name pull-left">用户名:</div>
  193. <div class="text pull-left">
  194. {{userInfo.userName || '-'}}
  195. </div>
  196. </li>
  197. <li class="clearfix">
  198. <div class="name pull-left">邮箱:</div>
  199. <div class="text pull-left">
  200. {{userInfo.userEmail || '-'}}
  201. </div>
  202. </li>
  203. <li class="clearfix">
  204. <div class="name pull-left">手机:</div>
  205. <div class="text pull-left">
  206. {{userInfo.userTel || '-'}}
  207. </div>
  208. </li>
  209. </ul>
  210. <div class="topinfo clearfix" style="color: #999;border-top: 1px solid #b4b4b4">
  211. 管理员信息
  212. </div>
  213. <ul class="infoul infoul2" style="color: #999">
  214. <li class="clearfix">
  215. <div class="name pull-left">姓名:</div>
  216. <div class="text pull-left">
  217. {{admininfo.userName || '-'}}
  218. </div>
  219. </li>
  220. <li class="clearfix">
  221. <div class="name pull-left">手机号:</div>
  222. <div class="text pull-left">
  223. {{admininfo.userTel || '-'}}
  224. </div>
  225. </li>
  226. <li class="clearfix">
  227. <div class="name pull-left">邮箱:</div>
  228. <div class="text pull-left">
  229. {{admininfo.userEmail || '-'}}
  230. </div>
  231. </li>
  232. </ul>
  233. </template>
  234. <div class="save" @click="storeInfosave()" v-if="storeState !== 'look'">保存</div>
  235. </template>
  236. <!-- /end 账户管理 -->
  237. <!-- 选择行业弹窗 -->
  238. <div class="mobile-modal" v-show="isShowTypeAlert">
  239. <div class="modal-content">
  240. <div class="content-title">
  241. 所属行业
  242. <i class="el-icon-close" @click="isShowTypeAlert = false"></i>
  243. </div>
  244. <div class="content-title-label clearfix" >
  245. <div v-for="(item, index) in ContentTitleArray" @click="chooseTitle(index)">
  246. <a>{{item}}</a>
  247. </div>
  248. </div>
  249. <div class="content-info" v-if="TypeListShow.firstListShow">
  250. <div v-for="(item, index) in TypeList.firstList" class="content-info-item" :class="{active: index === TypeListActive.firstListActive}" @click="chooseItem('firstList', item, index)" >
  251. {{item}}<img src="/images/mobile/@2x/getlabel_icon.png" v-show="index === TypeListActive.firstListActive"/>
  252. </div>
  253. </div>
  254. <div class="content-info" v-if="TypeListShow.secondsListShow">
  255. <div v-for="(item, index) in TypeList.secondsList" class="content-info-item" :class="{active: index === TypeListActive.secondsListActive}" @click="chooseItem('secondsList', item, index)" >
  256. {{item}}
  257. <img src="/images/mobile/@2x/getlabel_icon.png" v-show="index === TypeListActive.secondsListActive"/>
  258. </div>
  259. </div>
  260. <div class="content-info" v-if="TypeListShow.threetListShow">
  261. <div v-for="(item, index) in TypeList.threetList" class="content-info-item" :class="{active: index === TypeListActive.threetListActive}" @click="chooseItem('threetList', item, index)" >
  262. {{item}}
  263. <img src="/images/mobile/@2x/getlabel_icon.png" v-show="index === TypeListActive.threetListActive"/>
  264. </div>
  265. </div>
  266. </div>
  267. </div>
  268. <!-- /end 选择行业弹窗 -->
  269. <remind-box :title="collectResult" :timeoutCount="timeoutCount"></remind-box>
  270. <!--<loading v-show="isSearchSearchingMore"></loading>-->
  271. </div>
  272. </template>
  273. <script>
  274. import { userHeader, RemindBox, Loading } from '~components/mobile/common'
  275. export default {
  276. layout: 'mobile',
  277. middleware: 'authenticated',
  278. data () {
  279. return {
  280. activeType: 'store',
  281. splitText: '', // 省略号文本
  282. normalText: '', // 原来文本
  283. Islook: true,
  284. storeState: 'look',
  285. admininfo: {}, // 管理员信息
  286. AddBtnShow: true,
  287. labelText: '',
  288. scopeLabel: [],
  289. ContentTitleArray: [], // 行业数组
  290. isSearchSearchingMore: false,
  291. collectResult: '',
  292. timeoutCount: 0,
  293. isShowTypeAlert: false, // 是否现在所属行业弹窗
  294. TypeList: {
  295. firstList: [],
  296. secondsList: [],
  297. threetList: []
  298. },
  299. TypeListActive: {
  300. firstListActive: '',
  301. secondsListActive: '',
  302. threetListActive: ''
  303. },
  304. TypeListShow: {
  305. firstListShow: true,
  306. secondsListShow: false,
  307. threetListShow: false
  308. },
  309. TypeObj: {}
  310. }
  311. },
  312. components: {
  313. userHeader,
  314. RemindBox,
  315. Loading
  316. },
  317. fetch ({ store, route }) {
  318. return Promise.all([
  319. store.dispatch('loadStoreStatus', { op: 'check' })
  320. ])
  321. // let user = store.state.option.user.data
  322. },
  323. mounted: function () {
  324. this.$nextTick(() => {
  325. this.$http.get('/data/profession.json').then(response => {
  326. this.TypeObj = response.data
  327. for (let i of Object.keys(response.data)) {
  328. this.TypeList.firstList.push(i)
  329. }
  330. })
  331. })
  332. },
  333. computed: {
  334. getRemindText: function () {
  335. return '您的账户暂未开通卖家中心,请前往pc端申请开通!'
  336. },
  337. storeInfo() {
  338. console.log(this.$store.state.option.storeStatus.data)
  339. let str = JSON.stringify(this.$store.state.option.storeStatus.data)
  340. return JSON.parse(str)
  341. },
  342. enterpriseInfo() {
  343. // return this.$store.state.supplier.material.enUser.data
  344. let str = JSON.stringify(this.$store.state.supplier.material.enUser.data)
  345. return JSON.parse(str)
  346. },
  347. userInfo() {
  348. return this.$store.state.option.user.data
  349. }
  350. },
  351. methods: {
  352. chooseTitle(key) {
  353. if (key === 0) {
  354. this.TypeListShow = {
  355. firstListShow: true,
  356. secondsListShow: false,
  357. threetListShow: false
  358. }
  359. } else if (key === 1) {
  360. this.TypeListShow = {
  361. firstListShow: false,
  362. secondsListShow: true,
  363. threetListShow: false
  364. }
  365. } else if (key === 2) {
  366. this.TypeListShow = {
  367. firstListShow: false,
  368. secondsListShow: true,
  369. threetListShow: false
  370. }
  371. }
  372. },
  373. chooseItem(listIndex, key, index) {
  374. if (listIndex === 'firstList') {
  375. this.TypeListActive.firstListActive = index
  376. this.ContentTitleArray[0] = key
  377. this.TypeList.secondsList = []
  378. if (this.TypeObj[key] instanceof Array) {
  379. this.TypeList.secondsList = this.TypeObj[key]
  380. } else {
  381. for (let i of Object.keys(this.TypeObj[key])) {
  382. this.TypeList.secondsList.push(i)
  383. }
  384. }
  385. this.TypeListShow = {
  386. firstListShow: false,
  387. secondsListShow: true,
  388. threetListShow: false
  389. }
  390. this.TypeListActive.secondsListActive = ''
  391. this.TypeListActive.threetListActive = ''
  392. for (let i = 1; i < this.ContentTitleArray.length; i++) {
  393. this.ContentTitleArray.splice(i, 1)
  394. }
  395. } else if (listIndex === 'secondsList') {
  396. this.TypeList.threetList = []
  397. this.TypeListActive.secondsListActive = index
  398. this.TypeListActive.threetListActive = ''
  399. this.ContentTitleArray[1] = key
  400. if (this.TypeObj[this.ContentTitleArray[0]][key] instanceof Array) {
  401. this.TypeList.threetList = this.TypeObj[this.ContentTitleArray[0]][key] ? this.TypeObj[this.ContentTitleArray[0]][key] : []
  402. }
  403. for (let i = 2; i < this.ContentTitleArray.length; i++) {
  404. this.ContentTitleArray.splice(i, 1)
  405. }
  406. if (this.TypeList.threetList.length > 0) {
  407. this.TypeListShow = {
  408. firstListShow: false,
  409. secondsListShow: false,
  410. threetListShow: true
  411. }
  412. } else {
  413. this.enterpriseInfo.enIndustry = key
  414. this.isShowTypeAlert = false
  415. this.TypeListShow = {
  416. firstListShow: true,
  417. secondsListShow: false,
  418. threetListShow: false
  419. }
  420. }
  421. } else if (listIndex === 'threetList') {
  422. this.TypeListActive.threetListActive = index
  423. this.ContentTitleArray[2] = key
  424. this.enterpriseInfo.enIndustry = key
  425. this.isShowTypeAlert = false
  426. this.TypeListShow = {
  427. firstListShow: true,
  428. secondsListShow: false,
  429. threetListShow: false
  430. }
  431. }
  432. },
  433. addBtn(text) {
  434. if (text !== undefined) {
  435. this.labelText = text
  436. }
  437. this.AddBtnShow = false
  438. },
  439. saveLabel() {
  440. this.AddBtnShow = true
  441. if (this.labelText === '') {
  442. return false
  443. }
  444. if (this.enterpriseInfo.enBusinessScope.trim() === '') {
  445. this.enterpriseInfo.enBusinessScope += this.labelText
  446. } else {
  447. this.enterpriseInfo.enBusinessScope += ',' + this.labelText
  448. }
  449. this.labelText = ''
  450. this.scopeLabel = this.enterpriseInfo.enBusinessScope.split(',')
  451. // this.enterpriseInfo.enBusinessScope.push(this.labelText)
  452. },
  453. swtichTab(_tp) {
  454. this.activeType = _tp
  455. this.storeState = 'look'
  456. this.isSearchSearchingMore = true
  457. this.updateEnterpriseInfo()
  458. },
  459. updateEnterpriseInfo() {
  460. this.admininfo = {}
  461. this.$store.dispatch('supplier/loadEnUser', {enUU: this.storeInfo.enUU, filter: 'enUU'}).then(() => {
  462. this.scopeLabel = this.enterpriseInfo.enBusinessScope ? this.enterpriseInfo.enBusinessScope.split(',') : []
  463. this.$http.get(`/basic/user/getUserByUU?uu=${this.enterpriseInfo.enAdminuu}`).then(res => {
  464. this.admininfo = res.data
  465. this.isSearchSearchingMore = false
  466. })
  467. })
  468. },
  469. updateInfo() {
  470. this.storeState = 'update'
  471. },
  472. dealWithText(_T) {
  473. if (_T) {
  474. // 文本处理
  475. this.normalText = _T
  476. if (_T.length > 140) {
  477. return _T
  478. } else {
  479. return _T.substr(0, 140) + '...'
  480. }
  481. } else {
  482. this.Islook = false
  483. return this.normalText
  484. }
  485. },
  486. scroll: function () {
  487. // let scrolled = document.documentElement.scrollTop || window.pageYOffset || document.body.scrollTop
  488. if (this.$refs.searchSeekInput && this.$store.state.mobile.InputGetFocus) {
  489. this.$refs.searchSeekInput.blur()
  490. }
  491. },
  492. blur: function() {
  493. setTimeout(() => {
  494. this.$store.dispatch('mobile/SetInputGetFocus', false)
  495. }, 300)
  496. },
  497. inputGetFocus: function() {
  498. setTimeout(() => {
  499. this.$store.dispatch('mobile/SetInputGetFocus', true)
  500. }, 300)
  501. },
  502. storeInfosave() {
  503. if (this.activeType === 'store') {
  504. let kay = {
  505. description: this.storeInfo.description,
  506. enterprise: this.storeInfo.enterprise,
  507. storeName: this.storeInfo.storeName,
  508. storeShortName: this.storeInfo.storeShortName
  509. }
  510. this.$http.put(`/store-service/stores/${this.storeInfo.uuid}?kind=BASIC_INFO`, kay).then(res => {
  511. this.collectResult = '删除成功'
  512. this.timeoutCount++
  513. this.storeState = 'look'
  514. })
  515. } else {
  516. this.$http.post(`/basic/enterprise/${this.storeInfo.enUU}/info`, this.enterpriseInfo).then(res => {
  517. this.collectResult = '删除成功'
  518. this.timeoutCount++
  519. this.storeState = 'look'
  520. })
  521. }
  522. }
  523. }
  524. }
  525. </script>
  526. <style scoped lang="scss">
  527. .user-content{
  528. margin-bottom: 0rem;
  529. padding-bottom: 1.4rem;
  530. ul.switch-list {
  531. li {
  532. display: inline-block;
  533. width: 50%;
  534. height: .63rem;
  535. line-height: .63rem;
  536. text-align: center;
  537. font-size: .28rem;
  538. color: #666;
  539. background: #fff;
  540. border: 1px solid #b4b4b4;
  541. border-right: none;
  542. &.active {
  543. background: #0067e7;
  544. border: 1px solid #0067e7;
  545. color: #fff;
  546. }
  547. &:first-child {
  548. border-left: none;
  549. }
  550. &:last-child {
  551. border-right: none;
  552. }
  553. }
  554. &.vendor-switch {
  555. li {
  556. width: 50%;
  557. }
  558. }
  559. }
  560. .topinfo {
  561. color: #333;
  562. font-size: 0.28rem;
  563. height: 0.8rem;
  564. line-height: 0.8rem;
  565. padding: 0 0.24rem;
  566. border-bottom: 1px solid #b4b4b4;
  567. .pull-right {
  568. color: #999;
  569. font-size: 0.26rem;
  570. img {
  571. width: 0.34rem;
  572. height: 0.34rem;
  573. }
  574. }
  575. }
  576. .infoul {
  577. color: #666;
  578. font-size: 0.28rem;
  579. li {
  580. padding: 0.15rem 0.24rem;
  581. line-height: 1.3;
  582. &.border {
  583. border-bottom: 1px solid #b4b4b4;
  584. }
  585. &.noupdate {
  586. background: #fafafa;
  587. }
  588. }
  589. .name {
  590. width: 1.6rem;
  591. text-align: right;
  592. }
  593. .text {
  594. width: 5.4rem;
  595. }
  596. .update {
  597. padding: 0.06rem 0 0.06rem 0rem;
  598. }
  599. input {
  600. width: 5.4rem;
  601. border: 0px solid #b4b4b4;
  602. padding: 0.06rem 0 0.06rem 0.12rem;
  603. }
  604. textarea{
  605. width: 5.4rem;
  606. padding: 0.06rem 0 0.06rem 0.12rem;
  607. min-height: 5rem;
  608. resize: none;
  609. border: 0px solid #b4b4b4;
  610. }
  611. }
  612. .save {
  613. border-radius: 3px;
  614. width: 90%;
  615. color: #fff;
  616. text-align: center;
  617. height: .77rem;
  618. line-height: 0.77rem;
  619. background: #3e82f5;
  620. margin: 0.15rem auto 0.4rem;
  621. }
  622. .infoul2 {
  623. .name {
  624. width: 1.7rem;
  625. }
  626. .text {
  627. width: 5.3rem;
  628. }
  629. input {
  630. width: 5.3rem;
  631. }
  632. .nolabel {
  633. position: relative;
  634. width: auto;
  635. padding: 0 3px;
  636. margin: 0 3px;
  637. background: #f2f3f7;
  638. border-radius: 5px;
  639. text-align: center;
  640. color: #666;
  641. font-size: 0.12rem;
  642. }
  643. .label {
  644. width: auto;
  645. padding: 2px 4px;
  646. margin: 0.06rem 3px 0 3px;
  647. background: #5078cb;
  648. border-radius: 5px;
  649. text-align: center;
  650. color: #fff;
  651. font-size: 0.2rem;
  652. display: inline-block;
  653. vertical-align: top;
  654. }
  655. .labelKuang {
  656. background: #fff;
  657. border: 1px solid #b4b4b4;
  658. border-radius: 3px;
  659. overflow: hidden;
  660. height: 0.53rem;
  661. line-height: 0.53rem;
  662. display: inline-block;
  663. vertical-align: top;
  664. margin: 0px 3px 3px 3px;
  665. }
  666. .Updatelabel {
  667. padding: 0 4px;
  668. color: #666;
  669. font-size: 0.26rem;
  670. height: 100%;
  671. display: inline-block;
  672. }
  673. .updatespan {
  674. background: #353535;
  675. color: #fff;
  676. font-size: 0.26rem;
  677. padding:0 2px;
  678. height: 100%;
  679. display: inline-block;
  680. }
  681. .addBtn {
  682. background-image: url('/images/mobile/@2x/addBtn.png');
  683. background-size: 100% 100%;
  684. width: 1.4rem;
  685. height: 0.54rem;
  686. display: inline-block;
  687. }
  688. .commit {
  689. }
  690. .inputText {
  691. width: 4.4rem;
  692. border-top-left-radius: 3px;
  693. border-bottom-left-radius: 3px;
  694. border: 1px solid #b4b4b4;
  695. height: 0.62rem;
  696. line-height: 0.62rem;
  697. vertical-align: top;
  698. display: inline-block;
  699. }
  700. button {
  701. display: inline-block;
  702. height: 0.62rem;
  703. width: 0.8rem;
  704. line-height: 0.62rem;
  705. font-size: 14px;
  706. font-weight: 400;
  707. text-align: center;
  708. background-color: #3f84f6;
  709. border: 1px solid #3f84f6;
  710. color: #fff;
  711. border-top-right-radius: 3px;
  712. border-bottom-right-radius: 3px;
  713. vertical-align: top;
  714. margin-left: -0.1rem;
  715. }
  716. .moreIcon {
  717. width: 0.18rem;
  718. height: 0.3rem;
  719. margin-top: 0.06rem;
  720. position: relative;
  721. &:after {
  722. position: absolute;
  723. left: -10px;
  724. right: -10px;
  725. top: -10px;
  726. bottom: -10px;
  727. content: ' '
  728. }
  729. }
  730. }
  731. .modal-content {
  732. position: absolute;
  733. height: 10rem;
  734. bottom: 0px;
  735. left: 0px;
  736. background: #fff;
  737. width: 100%;
  738. border-radius: 0px;
  739. box-shadow: 0 -9px 9px rgba(0,0,0,.5);
  740. .content-title {
  741. color: #666;
  742. font-size: .3rem;
  743. text-align: center;
  744. height: 1rem;
  745. line-height: 1rem;
  746. position: relative;
  747. i {
  748. font-size: 0.3rem;
  749. color: #999;
  750. position: absolute;
  751. right: 0.3rem;
  752. top: 50%;
  753. margin-top: -0.15rem;
  754. }
  755. }
  756. .content-title-label {
  757. color: #3f84f6;
  758. font-size: 0.28rem;
  759. height: 0.5rem;
  760. line-height: 0.5rem;
  761. border-bottom: 1px solid #999;
  762. div {
  763. width: 33.3%;
  764. float: left;
  765. text-align: center;
  766. a {
  767. height: 0.5rem;
  768. line-height: 0.5rem;
  769. color: #3f84f6 !important;
  770. border-bottom: 1px solid #3f84f6;
  771. display: inline-block;
  772. width: 80%;
  773. overflow: hidden;
  774. text-overflow: ellipsis;
  775. white-space: nowrap;
  776. }
  777. }
  778. }
  779. .content-info {
  780. overflow-y: auto;
  781. height: 8.5rem;
  782. width: 100%;
  783. .content-info-item {
  784. height: 0.86rem;
  785. line-height: 0.86rem;
  786. color: #333;
  787. font-size: 0.28rem;
  788. padding-left: 0.3rem;
  789. &.active {
  790. color: #3f84f6 !important
  791. }
  792. img {
  793. width: 0.3rem;
  794. height: 0.18rem;
  795. margin-left: 0.3rem;
  796. }
  797. }
  798. }
  799. }
  800. .none-state{
  801. text-align: center;
  802. padding:1.5rem 0;
  803. background: #fff;
  804. margin-top:.1rem;
  805. width:100%;
  806. img{
  807. margin:0 auto;
  808. width: 4.08rem;
  809. height: 2.62rem;
  810. }
  811. p {
  812. font-size: .32rem;
  813. color: #999;
  814. margin: 1.19rem 0 0 0;
  815. }
  816. a {
  817. display: block;
  818. font-size: .28rem;
  819. color: #fff;
  820. width: 1.88rem;
  821. height: .54rem;
  822. line-height: .54rem;
  823. background: #418bf6;
  824. margin: .7rem auto 0;
  825. border-radius: .05rem;
  826. }
  827. }
  828. }
  829. </style>