Bläddra i källkod

机构行为记录增加注册地

zhengjinyi 2 år sedan
förälder
incheckning
719001a8af

+ 5 - 5
src/main/resources/static/js/help/clubinfo.js

@@ -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)

+ 3 - 0
src/main/resources/templates/help/clubinfo.html

@@ -18,6 +18,9 @@
 </div>
 <!-- 机构信息 -->
 <div id="informationPage" v-cloak>
+  <div class="info-header clearfix" v-if="clubInfo.ipAddress">
+    <p>注册地:<span>{{ clubInfo.ipAddress }}</span></p>
+  </div>
   <div class="info-header clearfix" v-if="clubInfo.describe">
     <p>描述:<span>{{ clubInfo.describe }}</span></p>
   </div>