index.vue 27 KB

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