|
@@ -140,6 +140,28 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<script>
|
|
|
+ var setAreaFn = {
|
|
|
+ conf: {
|
|
|
+ sKey: 'sub_vip_state'
|
|
|
+ },
|
|
|
+ buyPageInfo: {},
|
|
|
+ init: function () {
|
|
|
+ // 恢复页面状态
|
|
|
+ var pageInfo = sessionStorage.getItem(this.conf.sKey)
|
|
|
+ if (pageInfo) {
|
|
|
+ this.buyPageInfo = JSON.parse(pageInfo)
|
|
|
+ var areaInfo = this.buyPageInfo.area
|
|
|
+ if (this.buyPageInfo && areaInfo && Object.keys(areaInfo).length !== 0) {
|
|
|
+ vNode.data.initCityMap = areaInfo
|
|
|
+ vueComponent.setCitySelected(areaInfo)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ saveToSessionStorage: function (data) {
|
|
|
+ sessionStorage.setItem(this.conf.sKey, JSON.stringify(data))
|
|
|
+ }
|
|
|
+ }
|
|
|
+ setAreaFn.init()
|
|
|
var vm = new Vue({
|
|
|
delimiters: ['${', '}'],
|
|
|
el: '#set-header',
|
|
@@ -229,7 +251,7 @@
|
|
|
// 参数,是被初始化的数据
|
|
|
function onReset (initData) {
|
|
|
$('.selectChange').text('')
|
|
|
- $('#thisSelect').text(`0个省`)
|
|
|
+ $('#thisSelect').text(`${thisSelectNum}个省`)
|
|
|
$('.moreTips').hide()
|
|
|
}
|
|
|
// 被选中的数据
|