index.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838
  1. <template>
  2. <view :style="colorStyle">
  3. <form @submit="formSubmit">
  4. <view class='addAddress'>
  5. <view class='list'>
  6. <view class='item acea-row row-between-wrapper'>
  7. <view class='name'>主标题</view>
  8. <input type='text' placeholder='请填写主标题' name='mainTitle' :value="grouponReqData.mainTitle"
  9. placeholder-class='placeholder'></input>
  10. </view>
  11. <view class='item acea-row row-between-wrapper'>
  12. <view class='name'>副标题</view>
  13. <input type='number' placeholder='请填写副标题' name="subTitle" :value='grouponReqData.subTitle'
  14. placeholder-class='placeholder' pattern="\d*" maxlength="11"></input>
  15. </view>
  16. </view>
  17. <view class="list" style="margin-top:50rpx;">
  18. <view class="title">
  19. 团购商品
  20. </view>
  21. <view class='item acea-row row-between-wrapper'>
  22. <view class='name'>团购时间</view>
  23. <view @click="show1 = true">
  24. <uni-datetime-picker @change="confirmDate1" v-model="datetimerange1" type="datetimerange" rangeSeparator="至">
  25. <input placeholder='请选择团购时间' disabled :value='grouponDateTime'
  26. placeholder-class='placeholder'></input>
  27. </uni-datetime-picker>
  28. </view>
  29. </view>
  30. <view class='item acea-row row-between-wrapper'>
  31. <view class='name'>提货时间</view>
  32. <view @click="show2 = true">
  33. <uni-datetime-picker @change="confirmDate2" v-model="datetimerange2" type="datetimerange" rangeSeparator="至">
  34. <input placeholder='请选择提货时间' disabled :value='takeDateTime'
  35. placeholder-class='placeholder'></input>
  36. </uni-datetime-picker>
  37. </view>
  38. <!-- <u-datetime-picker @confirm="dateConfirmDate2()" :show="show2" v-model="value1"
  39. mode="datetimerange"></u-datetime-picker> -->
  40. </view>
  41. <view class='item acea-row row-between-wrapper'>
  42. <view class='name'>自提点</view>
  43. <view @click="openSelfTakeTable()">
  44. <input placeholder='请选择提自提点' name="phone" disabled :value='ztd'
  45. placeholder-class='placeholder' maxlength="11"></input>
  46. </view>
  47. <u-picker @confirm="confirmZTD()" :show="showZTD" :columns="selfTakeList" keyName="name"></u-picker>
  48. </view>
  49. </view>
  50. <view class="list select-list" v-if="selectGoodList.length > 0">
  51. <view class="title">
  52. 团购商品
  53. </view>
  54. <view class="list-item">
  55. <block v-for="(itemn, indexn) in selectGoodList" :key="indexn">
  56. <view hover-class='none' class='item acea-row-item row-column row-middle'>
  57. <view class='picture'>
  58. <image :src='itemn.goodsCover' v-if="itemn.goodsCover"></image>
  59. <image src="/static/images/sort-img.png" v-else></image>
  60. </view>
  61. <view class="p-r">
  62. <view class='name line1'>{{ $t(itemn.goodsName) }}</view>
  63. <view class="acea-row-item-bArea">
  64. <view class='jiage line1'>¥{{itemn.discountPrice}}</view>
  65. <view @click="delItem(indexn)" :class="[itemn.selected ? 'selde' : 'noselde']">删除<text
  66. :class="[itemn.selected ? 'selde-q' : 'noselde-q']"></text></view>
  67. </view>
  68. </view>
  69. </view>
  70. </block>
  71. </view>
  72. </view>
  73. <button class="button_1 flex-col" @click="addGood">
  74. <text class="text_15">添加商品</text>
  75. </button>
  76. <button class='keepBnt' form-type="submit">保存并提交</button>
  77. <!-- #ifdef MP -->
  78. <!-- <view class="wechatAddress" v-if="!id" @click="getWxAddress">{{ $t(`导入微信地址`) }}</view> -->
  79. <!-- #endif -->
  80. <!-- #ifdef H5 -->
  81. <view class="wechatAddress" v-if="this.$wechat.isWeixin() && !id" @click="getAddress">{{ $t(`导入微信地址`) }}
  82. </view>
  83. <!-- #endif -->
  84. </view>
  85. </form>
  86. <!-- #ifdef MP -->
  87. <!-- <authorize @onLoadFun="onLoadFun" :isAuto="isAuto" :isShowAuth="isShowAuth" @authColse="authColse"></authorize> -->
  88. <!-- #endif -->
  89. <!-- #ifndef MP -->
  90. <home></home>
  91. <!-- #endif -->
  92. <u-popup :show="addGoodPopupShow" @close="close" @open=" ">
  93. <view>
  94. <publish_good_list @getSelectData="getSelectData" v-if="addGoodPopupShow"></publish_good_list>
  95. </view>
  96. </u-popup>
  97. </view>
  98. </template>
  99. <script>
  100. const city_res = require('@/mock/json/city_res.json')
  101. import {publishGroupon, getAllSelfTake} from '@/api/groupon.js';
  102. import {
  103. postUserAddressSave,
  104. postUserAddressUpdate,
  105. getUserAddressDetailById
  106. } from '@/api/home.js';
  107. import {
  108. editAddress,
  109. getAddressDetail
  110. } from '@/api/user.js';
  111. import {
  112. getCity
  113. } from '@/api/api.js';
  114. import {
  115. toLogin
  116. } from '@/libs/login.js';
  117. import {
  118. mapGetters
  119. } from "vuex";
  120. // #ifdef MP
  121. import authorize from '@/components/Authorize';
  122. // #endif
  123. import home from '@/components/home';
  124. import publish_good_list from '../publish_good_list/index.vue';
  125. import colors from '@/mixins/color.js';
  126. export default {
  127. components: {
  128. // #ifdef MP
  129. authorize,
  130. // #endif
  131. home,
  132. publish_good_list
  133. },
  134. mixins: [colors],
  135. data () {
  136. return {
  137. grouponDateTime: '',
  138. takeDateTime: '',
  139. datetimerange1: '',
  140. datetimerange2: '',
  141. grouponReqData: {
  142. mainTitle: '',
  143. subTitle: '',
  144. grouponStartTime:'',
  145. grouponEndTime:'',
  146. takeStartTime:'',
  147. takeEndTime:'',
  148. selfTakeIds: [],
  149. goodsIds: []
  150. },
  151. grouponTimeRange: [],
  152. takeTimeRange: [],
  153. columns: [
  154. ['中国', '美国', '日本']
  155. ],
  156. array: [],
  157. show1: false,
  158. show2: false,
  159. showZTD: false,
  160. addGoodPopupShow: false,
  161. value1: Number(new Date()),
  162. regionDval: [this.$t(`浙江省`), this.$t(`杭州市`), this.$t(`滨江区`)],
  163. cartId: '', //购物车id
  164. pinkId: 0, //拼团id
  165. couponId: 0, //优惠券id
  166. id: 0, //地址id
  167. userAddress: {
  168. date: '',
  169. date2: '',
  170. userAddress: '',
  171. defaultState: true
  172. }, //地址详情
  173. region: [this.$t(`省`), this.$t(`市`), this.$t(`区`)],
  174. valueRegion: [0, 0, 0],
  175. isAuto: false, //没有授权的不会自动授权
  176. isShowAuth: false, //是否隐藏授权
  177. district: [],
  178. multiArray: [],
  179. multiIndex: [0, 0, 0],
  180. cityId: 0,
  181. defaultRegion: [this.$t(`广东省`), this.$t(`广州市`), this.$t(`番禺区`)],
  182. defaultRegionCode: '110101',
  183. news: '',
  184. noCoupon: 0,
  185. selectGoodList: [],
  186. selfTakeList: [],
  187. ztd: ''
  188. };
  189. },
  190. computed: mapGetters(['isLogin']),
  191. watch: {
  192. isLogin: {
  193. handler: function (newV, oldV) {
  194. if (newV) {
  195. this.getUserAddress();
  196. }
  197. },
  198. deep: true
  199. }
  200. },
  201. onLoad (options) {
  202. if (this.isLogin) {
  203. this.cartId = options.cartId || '';
  204. this.pinkId = options.pinkId || 0;
  205. this.couponId = options.couponId || 0;
  206. this.id = options.id || 0;
  207. this.noCoupon = options.noCoupon || 0;
  208. this.news = options.new || '';
  209. uni.setNavigationBarTitle({
  210. title: options.id ? this.$t(`修改地址`) : this.$t(`添加地址`)
  211. })
  212. this.getUserAddress();
  213. this.getCityList();
  214. } else {
  215. toLogin();
  216. }
  217. },
  218. methods: {
  219. confirmDate1(value) {
  220. let start = value[0];
  221. let end = value[1];
  222. this.grouponReqData.grouponStartTime = start;
  223. this.grouponReqData.grouponEndTime = end;
  224. this.grouponDateTime = start.substr(5,2) + "/" + start.substr(8,2) + " " + start.substr(11,5) + " 至 "
  225. + end.substr(5,2) + "/" + end.substr(8,2) + " " + end.substr(11,5);
  226. },
  227. confirmDate2(value) {
  228. let start = value[0];
  229. let end = value[1];
  230. this.grouponReqData.takeStartTime = start;
  231. this.grouponReqData.takeEndTime = end;
  232. this.takeDateTime = start.substr(5,2) + "/" + start.substr(8,2) + " " + start.substr(11,5) + " 至 "
  233. + end.substr(5,2) + "/" + end.substr(8,2) + " " + end.substr(11,5);
  234. },
  235. selectDatetime() {
  236. this.$refs.mySon.show();
  237. },
  238. openSelfTakeTable() {
  239. getAllSelfTake({
  240. current: 1,
  241. size: 50
  242. }).then(res => {
  243. console.log(res.data);
  244. this.selfTakeList.push(res.data.records);
  245. console.log(this.selfTakeList);
  246. this.showZTD = true;
  247. })
  248. },
  249. delItem (index) {
  250. this.selectGoodList.splice(index, 1)
  251. },
  252. getSelectData (data) {
  253. console.log("getSelectData ", data)
  254. this.selectGoodList = data
  255. console.log(this.selectGoodList);
  256. },
  257. open () {
  258. // console.log('open');
  259. },
  260. close () {
  261. this.addGoodPopupShow = false
  262. // console.log('close');
  263. },
  264. addGood () {
  265. this.addGoodPopupShow = true
  266. },
  267. bindPickerChange: function (e) {
  268. this.index = e.detail.value;
  269. },
  270. dateConfirm (value) {
  271. console.log('dateConfirm! ', value)
  272. this.userAddress.date = value.value
  273. this.show1 = false
  274. },
  275. dateConfirmDate2 (value) {
  276. this.userAddress.date2 = value.value
  277. this.show2 = false
  278. },
  279. confirmZTD (value) {
  280. console.log(value)
  281. this.ztd = value.value[0].name;
  282. this.grouponReqData.selfTakeIds.push(value.value[0].id)
  283. this.showZTD = false
  284. },
  285. // #ifdef APP-PLUS
  286. // 获取选择的地区
  287. handleGetRegion (region) {
  288. this.region = region
  289. },
  290. // #endif
  291. // 回去地址数据
  292. getCityList: function () {
  293. let that = this;
  294. // getCity().then(res => {
  295. this.district = city_res
  296. that.initialize();
  297. // })
  298. },
  299. initialize () {
  300. let that = this,
  301. province = [],
  302. city = [],
  303. area = [];
  304. let cityChildren = that.district[0].c || [];
  305. let areaChildren = cityChildren.length ? (cityChildren[0].c || []) : [];
  306. that.district.forEach((item, i) => {
  307. province.push(item.n);
  308. if (item.n === this.region[0]) {
  309. this.valueRegion[0] = i
  310. this.multiIndex[0] = i
  311. }
  312. });
  313. that.district[this.valueRegion[0]].c.forEach((item, i) => {
  314. if (this.region[1] == item.c) {
  315. this.valueRegio[1] = i
  316. this.multiIndex[1] = i
  317. }
  318. city.push(item.n);
  319. });
  320. that.district[this.valueRegion[0]].c[this.valueRegion[1]].c.forEach((item, i) => {
  321. if (this.region[2] == item.c) {
  322. this.valueRegio[2] = i
  323. this.multiIndex[2] = i
  324. }
  325. area.push(item.n);
  326. });
  327. this.multiArray = [province, city, area]
  328. },
  329. bindRegionChange: function (e) {
  330. let multiIndex = this.multiIndex,
  331. province = this.district[multiIndex[0]] || {
  332. c: []
  333. },
  334. city = province.c[multiIndex[1]] || {
  335. v: 0
  336. },
  337. multiArray = this.multiArray,
  338. value = e.detail.value;
  339. this.region = [multiArray[0][value[0]], multiArray[1][value[1]], multiArray[2][value[2]]]
  340. // this.$set(this.region,0,multiArray[0][value[0]]);
  341. // this.$set(this.region,1,multiArray[1][value[1]]);
  342. // this.$set(this.region,2,multiArray[2][value[2]]);
  343. this.cityId = city.v
  344. this.valueRegion = [0, 0, 0]
  345. this.initialize();
  346. },
  347. bindMultiPickerColumnChange: function (e) {
  348. let that = this,
  349. column = e.detail.column,
  350. value = e.detail.value,
  351. currentCity = this.district[value] || {
  352. c: []
  353. },
  354. multiArray = that.multiArray,
  355. multiIndex = that.multiIndex;
  356. multiIndex[column] = value;
  357. switch (column) {
  358. case 0:
  359. let areaList = currentCity.c[0] || {
  360. c: []
  361. };
  362. multiArray[1] = currentCity.c.map((item) => {
  363. return item.n;
  364. });
  365. multiArray[2] = areaList.c.map((item) => {
  366. return item.n;
  367. });
  368. break;
  369. case 1:
  370. let cityList = that.district[multiIndex[0]].c[multiIndex[1]].c || [];
  371. multiArray[2] = cityList.map((item) => {
  372. return item.n;
  373. });
  374. break;
  375. case 2:
  376. break;
  377. }
  378. // #ifdef MP || APP-PLUS
  379. this.$set(this.multiArray, 0, multiArray[0]);
  380. this.$set(this.multiArray, 1, multiArray[1]);
  381. this.$set(this.multiArray, 2, multiArray[2]);
  382. // #endif
  383. // #ifdef H5
  384. this.multiArray = multiArray;
  385. // #endif
  386. this.multiIndex = multiIndex
  387. // this.setData({ multiArray: multiArray, multiIndex: multiIndex});
  388. },
  389. // 授权回调
  390. onLoadFun: function () {
  391. this.getUserAddress();
  392. },
  393. // 授权关闭
  394. authColse: function (e) {
  395. this.isShowAuth = e
  396. },
  397. toggleTab (str) {
  398. this.$refs[str].show();
  399. },
  400. // bindRegionChange: function(e) {
  401. // this.$set(this, 'region', e.detail.value);
  402. // },
  403. onConfirm (val) {
  404. this.region = val.checkArr[0] + '-' + val.checkArr[1] + '-' + val.checkArr[2];
  405. },
  406. getUserAddress: function () {
  407. if (!this.id) return false;
  408. let that = this;
  409. getUserAddressDetailById({ id: this.id, type: 0 }).then(res => {
  410. // let region = [res.data.province, res.data.city, res.data.district];
  411. let region = [res.data.province, res.data.city, res.data.district];
  412. that.$set(that, 'userAddress', res.data);
  413. that.userAddress.defaultState = that.userAddress.defaultState == 2 ? true : false
  414. that.$set(that, 'region', region);
  415. that.cityId = res.data.city
  416. });
  417. },
  418. // 导入共享地址(小程序)
  419. getWxAddress: function () {
  420. let that = this;
  421. uni.authorize({
  422. scope: 'scope.address',
  423. success: function (res) {
  424. uni.chooseAddress({
  425. success: function (res) {
  426. let addressP = {};
  427. addressP.province = res.provinceName;
  428. addressP.city = res.cityName;
  429. addressP.district = res.countyName;
  430. editAddress({
  431. address: addressP,
  432. defaultState: 1,
  433. realName: res.userName,
  434. post_code: res.postalCode,
  435. phone: res.telNumber,
  436. detail: res.detailInfo,
  437. id: 0,
  438. type: 1,
  439. }).then(res => {
  440. setTimeout(function () {
  441. if (that.cartId) {
  442. let cartId = that.cartId;
  443. let pinkId = that.pinkId;
  444. let couponId = that.couponId;
  445. that.cartId = '';
  446. that.pinkId = '';
  447. that.couponId = '';
  448. uni.navigateTo({
  449. url: '/pages/goods/order_confirm/index?cartId=' +
  450. cartId +
  451. '&addressId=' + (
  452. that.id ? that
  453. .id :
  454. res.data
  455. .id) +
  456. '&pinkId=' +
  457. pinkId +
  458. '&couponId=' +
  459. couponId +
  460. '&new=' + that
  461. .news +
  462. '&noCoupon=' + that
  463. .noCoupon
  464. });
  465. } else {
  466. uni.navigateBack({
  467. delta: 1
  468. });
  469. }
  470. }, 1000);
  471. return that.$util.Tips({
  472. title: this.$t(`添加成功`),
  473. icon: 'success'
  474. });
  475. }).catch(err => {
  476. return that.$util.Tips({
  477. title: err
  478. });
  479. });
  480. },
  481. fail: function (res) {
  482. if (res.errMsg == 'chooseAddress:cancel') return that.$util
  483. .Tips({
  484. title: this.$t(`取消选择`)
  485. });
  486. },
  487. })
  488. },
  489. fail: function (res) {
  490. uni.showModal({
  491. title: this.$t(`您已拒绝导入微信地址权限`),
  492. content: this.$t(`是否进入权限管理,调整授权?`),
  493. success (res) {
  494. if (res.confirm) {
  495. uni.openSetting({
  496. success: function (res) { }
  497. });
  498. } else if (res.cancel) {
  499. return that.$util.Tips({
  500. title: that.$t(`已取消!`)
  501. });
  502. }
  503. }
  504. })
  505. },
  506. })
  507. },
  508. // 导入共享地址(微信);
  509. getAddress () {
  510. let that = this;
  511. that.$wechat.openAddress().then(userInfo => {
  512. editAddress({
  513. id: this.id,
  514. realName: userInfo.userName,
  515. phone: userInfo.telNumber,
  516. address: {
  517. province: userInfo.provinceName,
  518. city: userInfo.cityName,
  519. district: userInfo.countryName
  520. },
  521. detail: userInfo.detailInfo,
  522. defaultState: 1,
  523. post_code: userInfo.postalCode,
  524. type: 1,
  525. })
  526. .then(() => {
  527. setTimeout(function () {
  528. if (that.cartId) {
  529. let cartId = that.cartId;
  530. let pinkId = that.pinkId;
  531. let couponId = that.couponId;
  532. that.cartId = '';
  533. that.pinkId = '';
  534. that.couponId = '';
  535. uni.navigateTo({
  536. url: '/pages/goods/order_confirm/index?cartId=' +
  537. cartId + '&addressId=' + (that.id ? that.id :
  538. res.data
  539. .id) + '&pinkId=' + pinkId + '&couponId=' +
  540. couponId + '&new=' + that.news +
  541. '&noCoupon=' + that
  542. .noCoupon
  543. });
  544. } else {
  545. uni.navigateTo({
  546. url: '/pages/users/user_address_list/index'
  547. })
  548. // history.back();
  549. }
  550. }, 1000);
  551. // close();
  552. that.$util.Tips({
  553. title: that.$t(`添加成功`),
  554. icon: 'success'
  555. });
  556. })
  557. .catch(err => {
  558. // close();
  559. return that.$util.Tips({
  560. title: err || that.$t(`添加失败`)
  561. });
  562. });
  563. }).catch(err => { });
  564. },
  565. /**
  566. * 发布团购
  567. */
  568. formSubmit: function (e) {
  569. let that = this,
  570. value = e.detail.value;
  571. if (!value.mainTitle.trim()) {
  572. return that.$util.Tips({
  573. title: that.$t(`请填写主标题`)
  574. });
  575. }
  576. that.grouponReqData.mainTitle = value.mainTitle;
  577. if (!value.subTitle.trim()) {
  578. return that.$util.Tips({
  579. title: that.$t(`请填写副标题`)
  580. });
  581. }
  582. that.grouponReqData.subTitle = value.subTitle;
  583. if (!that.grouponReqData.grouponStartTime.trim() || !that.grouponReqData.grouponEndTime.trim()) {
  584. return that.$util.Tips({
  585. title: that.$t(`请选择团购时间`)
  586. });
  587. }
  588. if (!that.grouponReqData.takeStartTime.trim() || !that.grouponReqData.takeEndTime.trim()) {
  589. return that.$util.Tips({
  590. title: that.$t(`请选择取货时间`)
  591. });
  592. }
  593. if (that.grouponReqData.selfTakeIds.length < 1) {
  594. return that.$util.Tips({
  595. title: that.$t(`请选择自提点`)
  596. });
  597. }
  598. if (this.selectGoodList.length < 1) {
  599. return that.$util.Tips({
  600. title: that.$t(`请添加商品`)
  601. });
  602. }
  603. let goodsIds = [];
  604. this.selectGoodList.forEach(e => {
  605. goodsIds.push(e.id);
  606. that.grouponReqData.goodsIds = goodsIds;
  607. })
  608. uni.showLoading({
  609. title: that.$t(`发布中`),
  610. mask: true
  611. })
  612. let resSuccess = false;
  613. publishGroupon(that.grouponReqData).then(res => {
  614. that.$util.Tips({
  615. title: that.$t(`提交成功`),
  616. icon: 'success'
  617. });
  618. resSuccess = true
  619. }).catch(err => {
  620. return that.$util.Tips({
  621. title: err
  622. });
  623. })
  624. if (resSuccess) {
  625. // setTimeout(function () {
  626. // if (that.cartId) {
  627. // let cartId = that.cartId;
  628. // let pinkId = that.pinkId;
  629. // let couponId = that.couponId;
  630. // that.cartId = '';
  631. // that.pinkId = '';
  632. // that.couponId = '';
  633. // uni.navigateTo({
  634. // url: '/pages/goods/order_confirm/index?new=' + that.news +
  635. // '&cartId=' + cartId + '&addressId=' + (that.id ? that.id :
  636. // res.data.id) + '&pinkId=' + pinkId + '&couponId=' +
  637. // couponId +
  638. // '&noCoupon=' + that
  639. // .noCoupon
  640. // });
  641. // } else {
  642. // // #ifdef H5
  643. // return history.back();
  644. // // #endif
  645. // // #ifndef H5
  646. // return uni.navigateBack({
  647. // delta: 1,
  648. // })
  649. // // #endif
  650. // }
  651. // }, 1000);
  652. }
  653. },
  654. ChangeIsDefault: function (e) {
  655. this.$set(this.userAddress, 'defaultState', !this.userAddress.defaultState);
  656. }
  657. }
  658. }
  659. </script>
  660. <style scoped lang="scss">
  661. .fontcolor {
  662. color: var(--view-theme);
  663. }
  664. .addAddress .list {
  665. background-color: #fff;
  666. padding-top: 10rpx;
  667. .title {
  668. margin: 30rpx;
  669. height: 44rpx;
  670. font-size: 32rpx;
  671. font-weight: bolder;
  672. color: #111111;
  673. line-height: 44rpx;
  674. }
  675. }
  676. .addAddress .list .item {
  677. padding: 30rpx;
  678. border-top: 1rpx solid #eee;
  679. }
  680. .addAddress .list .item .name {
  681. width: 195rpx;
  682. font-size: 30rpx;
  683. color: #333;
  684. }
  685. .addAddress .list .item .address {
  686. // width: 412rpx;
  687. flex: 1;
  688. margin-left: 20rpx;
  689. }
  690. .addAddress .list .item input {
  691. width: 475rpx;
  692. font-size: 30rpx;
  693. }
  694. .addAddress .list .item .placeholder {
  695. color: #ccc;
  696. }
  697. .addAddress .list .item picker {
  698. width: 475rpx;
  699. }
  700. .addAddress .list .item picker .picker {
  701. width: 410rpx;
  702. font-size: 30rpx;
  703. }
  704. .addAddress .list .item picker .iconfont {
  705. font-size: 43rpx;
  706. }
  707. .addAddress .default {
  708. padding: 0 30rpx;
  709. height: 90rpx;
  710. background-color: #fff;
  711. margin-top: 23rpx;
  712. }
  713. .addAddress .default checkbox {
  714. margin-right: 15rpx;
  715. }
  716. .addAddress .keepBnt {
  717. width: 90%;
  718. height: 84rpx;
  719. background: #B42A3E;
  720. border-radius: 8rpx;
  721. margin: 30rpx auto;
  722. font-size: 28rpx;
  723. font-weight: 400;
  724. color: #FFFFFF;
  725. line-height: 84rpx;
  726. }
  727. .addAddress .wechatAddress {
  728. width: 690rpx;
  729. height: 86rpx;
  730. border-radius: 50rpx;
  731. text-align: center;
  732. line-height: 86rpx;
  733. margin: 0 auto;
  734. font-size: 32rpx;
  735. color: var(--view-theme);
  736. border: 1px solid var(--view-theme);
  737. }
  738. .button_1 {
  739. width: 90%;
  740. height: 84rpx;
  741. background: #FFFFFF;
  742. border-radius: 8rpx;
  743. border: 2rpx solid #B42A3E;
  744. margin: 30rpx auto;
  745. font-size: 28rpx;
  746. font-weight: 400;
  747. color: #B42A3E;
  748. line-height: 84rpx;
  749. }
  750. .text_15 {
  751. overflow-wrap: break-word;
  752. color: rgba(180, 42, 62, 1);
  753. font-size: 14px;
  754. font-weight: NaN;
  755. text-align: center;
  756. white-space: nowrap;
  757. line-height: 20px;
  758. }
  759. .acea-row-item {
  760. display: flex;
  761. width: 100% !important;
  762. flex-direction: row;
  763. .picture {
  764. width: 120rpx;
  765. height: 120rpx;
  766. border-radius: 50%;
  767. image {
  768. width: 100%;
  769. height: 100%;
  770. border-radius: 50%;
  771. }
  772. }
  773. .p-r {
  774. flex-direction: column;
  775. width: 100%;
  776. display: flex;
  777. justify-content: space-between;
  778. .name {}
  779. .acea-row-item-bArea {
  780. display: flex;
  781. justify-content: space-between;
  782. }
  783. }
  784. }
  785. </style>