| | |
| | | import { |
| | | getDictData, |
| | | getArea, |
| | | saveFreeCustomizationApply |
| | | } from '../../api/index' |
| | | Page({ |
| | |
| | | |
| | | showAreaList: false, |
| | | areaList: [], |
| | | cascaderValue: '', |
| | | |
| | | DESIGN_BANNER: '', |
| | | WechatIMG558: '', |
| | | }, |
| | |
| | | // 显示切换城市弹窗 |
| | | chooseCity () { |
| | | this.setData({ showAreaList: !this.data.showAreaList }) |
| | | console.log('chooseCity', chooseCity); |
| | | }, |
| | | // 切换城市 |
| | | confirmChange(e) { |
| | |
| | | this.getShopList() |
| | | this.chooseCity() |
| | | }, |
| | | onFinish() { |
| | | |
| | | }, |
| | | onClose() { |
| | | this.setData({ showAreaList: false }) |
| | | }, |
| | | initData() { |
| | | getArea({ |
| | | "level": "", |
| | | "pid": "" |
| | | }).then(res => { |
| | | this.setData({areaList: res.data}) |
| | | }) |
| | | getDictData({ |
| | | code: 'WEIXIN_DEFAULT_IMGS', |
| | | label: 'DESIGN_BANNER' |