|
@@ -73,7 +73,7 @@ var InformationPage = new Vue({
|
|
|
userClubRecordLinkage: function () {
|
|
|
var _self = this;
|
|
|
UserApi.userClubRecordLinkage({clubId: _self.clubId}, function (response) {
|
|
|
- if (response.code == 0) {
|
|
|
+ if (response.code === 0) {
|
|
|
_self.saleName = response.data.saleName;
|
|
|
_self.clubInfo = response.data.club;
|
|
|
_self.userClubChoseList()
|
|
@@ -86,7 +86,7 @@ var InformationPage = new Vue({
|
|
|
userClubChoseList: function () {
|
|
|
var _self = this;
|
|
|
UserApi.userClubChoseList({}, function (response) {
|
|
|
- if (response.code == 0) {
|
|
|
+ if (response.code === 0) {
|
|
|
_self.sellerList = response.data.map((el,index)=>{
|
|
|
el.isCheck = false
|
|
|
return el
|
|
@@ -99,7 +99,7 @@ var InformationPage = new Vue({
|
|
|
userClubChoseSales: function () {
|
|
|
var _self = this;
|
|
|
UserApi.userClubChoseSales(_self.salesParams, function (response) {
|
|
|
- if (response.code == 0) {
|
|
|
+ if (response.code === 0) {
|
|
|
CAIMEI.dialog('分配成功',true,function () {
|
|
|
_self.isShowPopup = false;
|
|
|
_self.userClubRecordLinkage();
|
|
@@ -112,7 +112,7 @@ var InformationPage = new Vue({
|
|
|
userGetWechatMinLink: function () {// 获取小程序路径并跳转
|
|
|
var _self = this;
|
|
|
UserApi.userGetWechatMinLink(_self.linkParams, function (response) {
|
|
|
- if (response.code == 0) {
|
|
|
+ if (response.code === 0) {
|
|
|
location.href = response.data;
|
|
|
} else {
|
|
|
console.log('分配协销异常')
|
|
@@ -124,7 +124,7 @@ var InformationPage = new Vue({
|
|
|
var _self = this;
|
|
|
_self.checkedIndex = idx;
|
|
|
_self.sellerList.forEach((el, index) => {
|
|
|
- if (_self.checkedIndex == index) {
|
|
|
+ if (_self.checkedIndex === index) {
|
|
|
el.isCheck = !el.isCheck;
|
|
|
_self.salesParams.spId = el.serviceProviderId;
|
|
|
console.log('分配协销ID', _self.salesParams.spId)
|