addressAdd.vue 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802
  1. <template>
  2. <view>
  3. <view class="add-address">
  4. <view class="add-form">
  5. <view class="form-item">
  6. <view class="label">联系人</view>
  7. <view class="content">
  8. <input class="input" @input="bindinputName" placeholder="姓名" :value="address.name" auto-focus />
  9. </view>
  10. </view>
  11. <view class="form-item">
  12. <view class="label">电 话</view>
  13. <view class="content">
  14. <input class="input" @input="bindinputMobile" :value="address.tel" type="number" placeholder="手机号码" maxlength="11" />
  15. </view>
  16. </view>
  17. <!-- bindtap="chooseRegion" -->
  18. <view class="form-item" @tap="goMap">
  19. <view class="label">省市区</view>
  20. <view class="content">
  21. <image src="/static/images/address/dingwei.png" style="width: 28rpx; height: 35rpx; margin-right: 10rpx"></image>
  22. <input class="input" :value="address.province + address.city + address.county" :disabled="true" placeholder="省份、城市、区县" />
  23. <image src="/static/images/arrow.png" style="width: 12rpx; height: 20rpx; margin-right: 10rpx"></image>
  24. </view>
  25. </view>
  26. <view class="form-item">
  27. <view class="label">地址</view>
  28. <view class="content">
  29. <input class="input" :value="address.address" placeholder="请选择地址" disabled />
  30. </view>
  31. </view>
  32. <view class="form-item">
  33. <view class="label">门牌号</view>
  34. <view class="content">
  35. <input class="input" @input="bindinputAddress" :value="address.detail" placeholder="例:9号楼1505室" />
  36. </view>
  37. </view>
  38. </view>
  39. <view class="form-default">
  40. <view style="display: flex; flex-direction: column">
  41. <text class="title">设为默认地址</text>
  42. <text class="des">提醒:每次下单会默认推荐使用该地址</text>
  43. </view>
  44. <switch style="margin-right: 10rpx" :checked="address.isDefault == 1" @change="bindIsDefault" />
  45. </view>
  46. <view class="form-item" v-if="address.id > 0">
  47. <button style="background: #d77958; color: white" :data-address-id="address.id" @tap="deleteAddress">删除地址</button>
  48. </view>
  49. <view class="btns">
  50. <view class="save" @tap="saveAddress">保存</view>
  51. <view class="cannel" @tap="cancelAddress">取消</view>
  52. </view>
  53. <view class="region-select" v-if="openSelectRegion">
  54. <view class="hd">
  55. <view class="region-selected">
  56. <view
  57. :class="'item ' + (item.code == 0 ? 'disabled' : '') + ' ' + (regionType - 1 === index ? 'selected' : '')"
  58. @tap="selectRegionType"
  59. :data-region-type-index="index"
  60. v-for="(item, index) in selectRegionList"
  61. :key="index"
  62. >
  63. {{ item.name }}
  64. </view>
  65. </view>
  66. <view :class="'done ' + (selectRegionDone ? '' : 'disabled')" style="color: #d77958;" @tap="doneSelectRegion">确定</view>
  67. </view>
  68. <view class="bd">
  69. <scroll-view scroll-y class="region-list">
  70. <view :class="'item ' + (item.selected ? 'selected' : '')" @tap="selectRegion" :data-region-index="index" v-for="(item, index) in regionList" :key="index">
  71. {{ item.name }}
  72. </view>
  73. </scroll-view>
  74. </view>
  75. </view>
  76. </view>
  77. <view class="bg-mask" @tap="cancelSelectRegion" v-if="openSelectRegion"></view>
  78. </view>
  79. </template>
  80. <script>
  81. var util = require('../../../utils/util.js');
  82. var api = require('../../../config/api.js');
  83. var check = require('../../../utils/check.js');
  84. var area = require('../../../utils/area.js');
  85. var map = require('../../../utils/map.js');
  86. const chooseLocation = requirePlugin('chooseLocation');
  87. var app = getApp();
  88. import {Dialog} from "@vant/weapp/lib/dialog/index.js"
  89. export default {
  90. data() {
  91. return {
  92. address: {
  93. id: 0,
  94. areaCode: 0,
  95. address: '',
  96. name: '',
  97. tel: '',
  98. isDefault: 0,
  99. province: '',
  100. city: '',
  101. county: '',
  102. lat: '',
  103. lng: '',
  104. addressDetail: '',
  105. detail: '',
  106. addressName: ''
  107. },
  108. addressId: 0,
  109. openSelectRegion: false,
  110. selectRegionList: [
  111. {
  112. code: 0,
  113. name: '省份'
  114. },
  115. {
  116. code: 0,
  117. name: '城市'
  118. },
  119. {
  120. code: 0,
  121. name: '区县'
  122. }
  123. ],
  124. regionType: 1,
  125. regionList: [],
  126. selectRegionDone: false,
  127. selectAddress: '',
  128. showDeleteDialog:false,
  129. addressIId:0
  130. };
  131. },
  132. onLoad: function (options) {
  133. // 页面初始化 options为页面跳转所带来的参数
  134. //console.log(options)
  135. if (options.id && options.id != 0) {
  136. this.setData({
  137. addressId: options.id
  138. });
  139. this.getAddressDetail();
  140. }
  141. //初始化area
  142. //area.init();
  143. },
  144. onShow: function () {
  145. let that = this;
  146. if (app.globalData.mapSelectFinish) {
  147. let poi = app.globalData.mapSelectPoi;
  148. let location = poi.location;
  149. let address = that.address;
  150. address.lng = location.split(',')[0];
  151. address.lat = location.split(',')[1];
  152. address.addressName = poi.name;
  153. address.address = poi.address;
  154. address.areaCode = poi.areaCode;
  155. address.province = poi.province;
  156. address.city = poi.city;
  157. address.county = poi.county;
  158. if (!address.city) {
  159. that.getAreaCode(address.lat, address.lng)
  160. .then((res) => {
  161. address.areaCode = res.areaCode;
  162. address.province = res.province;
  163. address.city = res.city;
  164. address.county = res.county;
  165. that.setData({
  166. address: address,
  167. selectAddress: poi.address
  168. });
  169. })
  170. .catch(() => {
  171. uni.showToast({
  172. title: '获取地区码失败',
  173. icon: 'none',
  174. duration: 3000
  175. });
  176. });
  177. } else {
  178. that.setData({
  179. address: address,
  180. selectAddress: poi.address
  181. });
  182. }
  183. } else {
  184. //这里分2种情况 1,有城市 标识选中原有地址进来 保持不变
  185. //2,新增地址 初始化进入此页面时 需要调用getlocation2
  186. if (that.addressId) {
  187. return;
  188. } //从已有地址进入
  189. map.getLocation2().then(() => {
  190. that.getAreaCode(app.globalData.lat, app.globalData.lng)
  191. .then((res) => {
  192. res.isDefault = that.address.isDefault;
  193. // console.log('globalData',app.globalData.lat,app.globalData.lng)
  194. // console.log('areaCode',res)
  195. that.setData({
  196. address: res,
  197. selectAddress: res
  198. });
  199. })
  200. .catch((err) => {
  201. uni.showToast({
  202. title: '获取地区码失败',
  203. icon: 'none',
  204. duration: 3000
  205. });
  206. });
  207. });
  208. }
  209. },
  210. onHide: function () {
  211. // 页面隐藏
  212. },
  213. onUnload: function () {
  214. // 页面关闭
  215. chooseLocation.setLocation(null);
  216. },
  217. methods: {
  218. bindinputMobile(event) {
  219. let address = this.address;
  220. address.tel = event.detail.value;
  221. this.setData({
  222. address: address
  223. });
  224. },
  225. bindinputName(event) {
  226. let address = this.address;
  227. address.name = event.detail.value;
  228. this.setData({
  229. address: address
  230. });
  231. },
  232. bindinputAddress(event) {
  233. let address = this.address;
  234. address.detail = event.detail.value.replace(/[,,]/g, '');
  235. this.setData({
  236. address: address
  237. });
  238. },
  239. bindIsDefault() {
  240. let address = this.address;
  241. address.isDefault = !address.isDefault;
  242. this.setData({
  243. address: address
  244. });
  245. },
  246. getAddressDetail() {
  247. let that = this;
  248. util.request(api.AddressDetail, {
  249. id: that.addressId
  250. }).then(function (res) {
  251. if (res.errno === 0) {
  252. if (res.data) {
  253. that.setData({
  254. address: res.data
  255. });
  256. let addressDetailList = res.data.addressDetail.split(',');
  257. let address = that.address;
  258. address.address = addressDetailList[0];
  259. address.detail = addressDetailList.length > 1 ? addressDetailList[1] : '';
  260. that.setData({
  261. address: address
  262. });
  263. }
  264. }
  265. });
  266. },
  267. setRegionDoneStatus() {
  268. let that = this;
  269. let doneStatus = that.selectRegionList.every((item) => {
  270. return item.code != 0;
  271. });
  272. that.setData({
  273. selectRegionDone: doneStatus
  274. });
  275. },
  276. cancelAddress() {
  277. uni.navigateBack();
  278. },
  279. saveAddress() {
  280. console.log(this.address);
  281. let address = this.address;
  282. if (address.name == '') {
  283. util.showErrorToast('请输入姓名');
  284. return false;
  285. }
  286. if (address.tel == '') {
  287. util.showErrorToast('请输入手机号码');
  288. return false;
  289. }
  290. if (address.areaCode == 0) {
  291. util.showErrorToast('请输入省市区');
  292. return false;
  293. }
  294. if (address.address == '') {
  295. util.showErrorToast('请选择地址');
  296. return false;
  297. }
  298. if (!check.isValidPhone(address.tel)) {
  299. util.showErrorToast('手机号不正确');
  300. return false;
  301. }
  302. let that = this;
  303. let addressString = address.detail == '' ? address.address : address.address + ',' + address.detail;
  304. util.request(
  305. api.AddressSave,
  306. {
  307. shopId: app.globalData.shopId ? app.globalData.shopId : '',
  308. id: address.id,
  309. name: address.name,
  310. tel: address.tel,
  311. province: address.province,
  312. city: address.city,
  313. county: address.county,
  314. areaCode: address.areaCode,
  315. addressDetail: addressString,
  316. addressName: address.addressName,
  317. isDefault: address.isDefault,
  318. lat: Number(address.lat).toFixed(5),
  319. lng: Number(address.lng).toFixed(5)
  320. },
  321. 'POST'
  322. ).then(function (res) {
  323. if (res.errno === 0) {
  324. //返回之前,先取出上一页对象,并设置addressId
  325. var pages = getCurrentPages();
  326. var prevPage = pages[pages.length - 2];
  327. console.log(prevPage);
  328. if (prevPage.route == 'pages/index/index') {
  329. var city = address.city.indexOf('市') < 0 ? address.province : address.city;
  330. var addresInfo = {
  331. city: city,
  332. lng: res.data.lng,
  333. lat: res.data.lat,
  334. shopId: res.data.shopId,
  335. address: res.data.addressDetail
  336. };
  337. uni.setStorageSync('addressInfo', address);
  338. } else if (prevPage.route == 'pages/ucenter/serviceDetail/serviceDetail') {
  339. uni.setStorageSync('addressInfo', addresInfo);
  340. } else if (prevPage.route == 'pages/checkout/checkout') {
  341. prevPage.setData({
  342. addressId: res.data.id
  343. });
  344. try {
  345. uni.setStorageSync('addressId', res.data);
  346. } catch (e) {
  347. console.log('CatchClause', e);
  348. }
  349. console.log('set address');
  350. }
  351. uni.navigateBack();
  352. } else {
  353. uni.showModal({
  354. title: '提醒',
  355. confirmColor:"#d77958",
  356. showCancel: false,
  357. content: res.errmsg
  358. });
  359. }
  360. });
  361. },
  362. deleteAddress(event) {
  363. console.log(event.target);
  364. let that = this;
  365. uni.showModal({
  366. title: '',
  367. content: '确定要删除地址?',
  368. confirmColor: '#d77958',
  369. success: function (res) {
  370. if (res.confirm) {
  371. let addressId = event.target.dataset.addressId;
  372. util.request(
  373. api.AddressDelete,
  374. {
  375. id: addressId
  376. },
  377. 'POST'
  378. ).then(function (res) {
  379. if (res.errno === 0) {
  380. uni.navigateBack({
  381. delta: 1,
  382. success: function () {}
  383. });
  384. }
  385. });
  386. console.log('用户点击确定');
  387. }
  388. }
  389. });
  390. return false;
  391. this.setData({
  392. // showDeleteDialog:true,
  393. addressIId:event.target.dataset.addressId
  394. });
  395. },
  396. cancelDelete(){
  397. this.setData({
  398. showDeleteDialog:false
  399. });
  400. },
  401. confirmDelete(){
  402. util.request(
  403. api.AddressDelete,
  404. {
  405. id: this.addressIId
  406. },
  407. 'POST'
  408. ).then(function (res) {
  409. if (res.errno === 0) {
  410. uni.navigateBack({
  411. delta: 1,
  412. success: function () {}
  413. });
  414. console.log("shanchuchenggong");
  415. }
  416. });
  417. },
  418. goMapOld() {
  419. // const key = "JA2BZ-XGOEU-UNZVD-46G64-S6MYJ-6BBF4";
  420. //使用在腾讯位置服务申请的key
  421. const key = '6TRBZ-XXC6F-BWWJB-N75ME-BQNOF-YKFQY';
  422. const referer = '鲸致生活LifePlus'; //调用插件的app的名称
  423. const category = '小区,生活服务,娱乐休闲';
  424. if (this.address.lat) {
  425. const location = JSON.stringify({
  426. latitude: Number(this.address.lat),
  427. longitude: Number(this.address.lng)
  428. });
  429. uni.navigateTo({
  430. url: 'plugin://chooseLocation/index?key=' + key + '&referer=' + referer + '&category=' + category + '&location=' + location
  431. });
  432. } else {
  433. uni.navigateTo({
  434. url: 'plugin://chooseLocation/index?key=' + key + '&referer=' + referer + '&category=' + category
  435. });
  436. }
  437. },
  438. goMap() {
  439. app.globalData.mapSelectFinish = false;
  440. if (this.address.lng && this.address.lat) {
  441. let city = this.address.city == '市辖区' ? this.address.province : this.address.city;
  442. uni.navigateTo({
  443. url: '/pages/map/mapContent/mapContent?lng=' + this.address.lng + '&lat=' + this.address.lat + '&addressname=' + this.address.address + '&city=' + city
  444. });
  445. } else {
  446. uni.navigateTo({
  447. url: '/pages/map/mapContent/mapContent'
  448. });
  449. }
  450. },
  451. getAreaCodeOld() {
  452. let param = {
  453. location: this.address.lng + ',' + this.address.lat,
  454. extensions: 'all',
  455. key: api.gdKey,
  456. radius: 3000
  457. };
  458. uni.request({
  459. url: api.gdUrl,
  460. data: param,
  461. method: 'GET',
  462. header: {
  463. 'Content-Type': 'application/json'
  464. },
  465. success: (res) => {
  466. console.log(res);
  467. if (res.data.infocode == '10000') {
  468. if (res.data.info == 'OK') {
  469. // let ad_info = res.data.result.ad_info;
  470. // let areaCode = res.data.result.ad_info.adcode;
  471. // this.setData({
  472. // ['address.areaCode']: areaCode,
  473. // ['address.province']: ad_info.province,
  474. // ['address.city']: ad_info.city,
  475. // ['address.county']: ad_info.district,
  476. // });
  477. let regeocode = res.data.regeocode.addressComponent;
  478. let cityName = regeocode.city == null || regeocode.city.length == 0 ? regeocode.province : regeocode.city;
  479. let district = regeocode.district == null || regeocode.district.length == 0 ? '' : regeocode.district;
  480. this.setData({
  481. ['address.areaCode']: regeocode.adcode,
  482. ['address.province']: regeocode.province,
  483. ['address.city']: cityName,
  484. ['address.county']: district
  485. });
  486. } else {
  487. uni.showToast({
  488. title: '获取地区码失败',
  489. icon: 'none',
  490. duration: 3000
  491. });
  492. }
  493. } else {
  494. uni.showToast({
  495. title: '获取地区码失败',
  496. icon: 'none',
  497. duration: 3000
  498. });
  499. }
  500. },
  501. fail: function (err) {
  502. reject(err);
  503. }
  504. });
  505. },
  506. getAreaCode(lat, lng) {
  507. return new Promise(function (resolve, reject) {
  508. let param = {
  509. location: lng + ',' + lat,
  510. extensions: 'all',
  511. key: api.gdKey,
  512. radius: 3000
  513. };
  514. uni.request({
  515. url: api.gdUrl,
  516. data: param,
  517. method: 'GET',
  518. header: {
  519. 'Content-Type': 'application/json'
  520. },
  521. success: (res) => {
  522. console.log(res);
  523. if (res.data.infocode == '10000') {
  524. if (res.data.info == 'OK') {
  525. // console.info(res.data)
  526. let regeocode = res.data.regeocode.addressComponent;
  527. let cityName = regeocode.city == null || regeocode.city.length == 0 ? regeocode.province : regeocode.city;
  528. let district = regeocode.district == null || regeocode.district.length == 0 ? '' : regeocode.district;
  529. let address = {
  530. lat: lat,
  531. lng: lng,
  532. areaCode: regeocode.adcode,
  533. province: regeocode.province,
  534. city: cityName,
  535. county: district,
  536. address: res.data.regeocode.formatted_address,
  537. addressName: regeocode.township //纯粹做显示
  538. };
  539. console.log(address);
  540. resolve(address);
  541. } else {
  542. reject(false);
  543. }
  544. } else {
  545. reject(false);
  546. }
  547. },
  548. fail: function (err) {
  549. reject(false);
  550. }
  551. });
  552. });
  553. },
  554. selectRegionType() {
  555. console.log('占位:函数 selectRegionType 未声明');
  556. },
  557. doneSelectRegion() {
  558. console.log('占位:函数 doneSelectRegion 未声明');
  559. },
  560. selectRegion() {
  561. console.log('占位:函数 selectRegion 未声明');
  562. },
  563. cancelSelectRegion() {
  564. console.log('占位:函数 cancelSelectRegion 未声明');
  565. }
  566. }
  567. };
  568. </script>
  569. <style>
  570. page {
  571. height: 100%;
  572. background: #f4f4f4;
  573. }
  574. .add-address .add-form {
  575. background: #fff;
  576. width: 100%;
  577. height: auto;
  578. overflow: hidden;
  579. }
  580. .add-address .form-item {
  581. height: 116rpx;
  582. padding-left: 31.25rpx;
  583. /* border-bottom: 1px solid #d9d9d9; */
  584. display: flex;
  585. align-items: center;
  586. padding-right: 31.25rpx;
  587. }
  588. .add-address .input {
  589. flex: 1;
  590. height: 44rpx;
  591. line-height: 44rpx;
  592. overflow: hidden;
  593. margin-top: 10rpx;
  594. }
  595. .add-address .label {
  596. font-size: 32rpx;
  597. font-weight: bold;
  598. margin-right: 50rpx;
  599. width: 136rpx;
  600. text-align: center;
  601. }
  602. .add-address .content {
  603. border-bottom: 1px solid #d9d9d9;
  604. height: 116rpx;
  605. line-height: 116rpx;
  606. align-content: center;
  607. /* padding: 40rpx 0 0; */
  608. width: 100%;
  609. display: flex;
  610. align-items: center;
  611. }
  612. .add-address .form-default {
  613. border-bottom: 1px solid #d9d9d9;
  614. height: 136rpx;
  615. background: #fff;
  616. padding-top: 28rpx;
  617. font-size: 28rpx;
  618. padding-left: 31.25rpx;
  619. margin-top: 30rpx;
  620. display: flex;
  621. justify-content: space-between;
  622. }
  623. .add-address .form-default .title {
  624. font-size: 32rpx;
  625. font-weight: bold;
  626. }
  627. .add-address .form-default .des {
  628. color: #b2b2b2;
  629. line-height: 46rpx;
  630. height: 40rpx;
  631. }
  632. .add-address .form-default .van-checkbox .van-icon {
  633. color: #fff;
  634. }
  635. .add-address .btns {
  636. position: fixed;
  637. bottom: 0rpx;
  638. left: 0;
  639. overflow: hidden;
  640. /* display: flex; */
  641. /* height: 100rpx; */
  642. width: 100%;
  643. margin-bottom: 25rpx;
  644. }
  645. .add-address .cannel,
  646. .add-address .save {
  647. width: 650rpx;
  648. height: 81rpx;
  649. text-align: center;
  650. line-height: 81rpx;
  651. font-size: 36rpx;
  652. color: #fff;
  653. border: none;
  654. border-radius: 60rpx;
  655. margin-left: 50rpx;
  656. }
  657. .add-address .cannel {
  658. margin-top: 20rpx;
  659. background: #EAD2C1;
  660. color: #999;
  661. }
  662. .add-address .save {
  663. background: #d77958;
  664. }
  665. .region-select {
  666. width: 100%;
  667. height: 600rpx;
  668. background: #fff;
  669. position: fixed;
  670. z-index: 10;
  671. left: 0;
  672. bottom: 0;
  673. }
  674. .region-select .hd {
  675. height: 108rpx;
  676. width: 100%;
  677. border-bottom: 1px solid #f4f4f4;
  678. padding: 46rpx 30rpx 0 30rpx;
  679. }
  680. .region-select .region-selected {
  681. float: left;
  682. height: 60rpx;
  683. display: flex;
  684. }
  685. .region-select .region-selected .item {
  686. max-width: 140rpx;
  687. margin-right: 30rpx;
  688. text-align: left;
  689. line-height: 60rpx;
  690. height: 100%;
  691. color: #333;
  692. font-size: 28rpx;
  693. overflow: hidden;
  694. text-overflow: ellipsis;
  695. white-space: nowrap;
  696. }
  697. .region-select .region-selected .item.disabled {
  698. color: #999;
  699. }
  700. .region-select .region-selected .item.selected {
  701. color: #b4282d;
  702. }
  703. .region-select .done {
  704. float: right;
  705. height: 60rpx;
  706. width: 60rpx;
  707. border: none;
  708. background: #fff;
  709. line-height: 60rpx;
  710. text-align: center;
  711. color: #333;
  712. font-size: 28rpx;
  713. }
  714. .region-select .done.disabled {
  715. color: #999;
  716. }
  717. .region-select .bd {
  718. height: 492rpx;
  719. width: 100%;
  720. padding: 0 30rpx;
  721. }
  722. .region-select .region-list {
  723. height: 492rpx;
  724. }
  725. .region-select .region-list .item {
  726. width: 100%;
  727. height: 104rpx;
  728. line-height: 104rpx;
  729. text-align: left;
  730. color: #333;
  731. font-size: 28rpx;
  732. }
  733. .region-select .region-list .item.selected {
  734. color: #b4282d;
  735. }
  736. .bg-mask {
  737. height: 100%;
  738. width: 100%;
  739. background: rgba(0, 0, 0, 0.4);
  740. position: fixed;
  741. top: 0;
  742. left: 0;
  743. z-index: 8;
  744. }
  745. </style>