|
|
@@ -295,32 +295,6 @@
|
|
|
this.tenancyId = id
|
|
|
this.tenancyName = this.merList[index].name || ''
|
|
|
},
|
|
|
- getDealerIds() {
|
|
|
- const headers = new Headers()
|
|
|
- headers.append('token', this.tokenValue)
|
|
|
- headers.append('tenancyId', this.tenancyId)
|
|
|
- fetch(this.httpUrl + `/scrm/v1/dw-dealer/m/getDealers`, {
|
|
|
- method: 'GET',
|
|
|
- headers: headers
|
|
|
- }).then(res => {
|
|
|
- return res.json()
|
|
|
- }).then(result => {
|
|
|
- let { data, code, msg } = result
|
|
|
- if (code === 1) {
|
|
|
- if (data && data.length) {
|
|
|
- if (data[0].type === 1) {
|
|
|
- var currentQueryParams = window.location.search
|
|
|
- window.location.replace('miniJxs.html' + currentQueryParams)
|
|
|
- } else {
|
|
|
- var currentQueryParams = window.location.search
|
|
|
- window.location.replace('jxs.html' + currentQueryParams)
|
|
|
- }
|
|
|
- }
|
|
|
- } else {
|
|
|
- vant.Toast.fail(msg)
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
handleToJxs() {
|
|
|
if (!this.tenancyId) {
|
|
|
vant.Toast.fail('请先选择商户')
|
|
|
@@ -328,7 +302,8 @@
|
|
|
}
|
|
|
localStorage.setItem('tenancyIdValue', this.tenancyId)
|
|
|
localStorage.setItem('tenancyNameValue', this.tenancyName)
|
|
|
- this.getDealerIds()
|
|
|
+ var currentQueryParams = window.location.search
|
|
|
+ window.location.replace('jxs.html' + currentQueryParams)
|
|
|
},
|
|
|
// 截取url中的数据
|
|
|
getQueryParam(paramName) {
|