|
@@ -160,8 +160,7 @@
|
|
|
backTipShowCount: 0, // 离开页面展示弹窗次数
|
|
|
successBack: false,
|
|
|
keywords: '',
|
|
|
- wordsMode: '',
|
|
|
- isNeedApi: true
|
|
|
+ wordsMode: ''
|
|
|
},
|
|
|
computed: {
|
|
|
moreThanSubCount: function () {
|
|
@@ -219,12 +218,8 @@
|
|
|
mounted: function () {
|
|
|
var type = utils.getParam('type')
|
|
|
var url = utils.getParam('url')
|
|
|
- var sub = utils.getParam('sub')
|
|
|
var keywords = utils.getParam('keywords')
|
|
|
this.wordsMode = utils.getParam('wordsMode')
|
|
|
- if (sub === 'simple') {
|
|
|
- this.isNeedApi = false
|
|
|
- }
|
|
|
if (url) {
|
|
|
this.params.url = decodeURIComponent(url)
|
|
|
}
|
|
@@ -311,9 +306,7 @@
|
|
|
if (res.data) {
|
|
|
if (res.data.area === null || res.data.area === undefined) {
|
|
|
_this.setAreaAllNotSelected()
|
|
|
- if(_this.isNeedApi) {
|
|
|
- _this.addBackTip()
|
|
|
- }
|
|
|
+ _this.addBackTip()
|
|
|
} else {
|
|
|
if (res.data.area) {
|
|
|
// 赋值默认已选
|
|
@@ -372,9 +365,6 @@
|
|
|
this.setAreaSelected(area)
|
|
|
if (this.moreThanSubCount) {
|
|
|
this.popupTip = true
|
|
|
- } else if(!this.isNeedApi) {
|
|
|
- sessionStorage.setItem('freeSelectArea', JSON.stringify(area))
|
|
|
- history.back()
|
|
|
} else {
|
|
|
this.userUpdate(area)
|
|
|
}
|