version-module-link-uniacid.html 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. {template 'common/header'}
  2. <div class="alert we7-page-alert">
  3. {if $_W['account']['type_sign'] == 'wxapp'}
  4. <p><i class="wi wi-info-sign"></i>从关联账号应用同步的会员信息,在小程序应用登录时会被判断为新用户,此处无法识别为同一会员;</p>
  5. {/if}
  6. <p><i class="wi wi-info-sign"></i>本{$_W['account']['type_name']}可操作的模块中,仅显示可进行同步的模块;</p>
  7. <p><i class="wi wi-info-sign"></i>可以把PC应用或公众号应用的会员、数据等信息同步至{$_W['account']['type_name']}应用当中;</p>
  8. <p><i class="wi wi-info-sign"></i>一个模块,只能同步了PC、公众号、小程序中的其中一种,且只可同步一个;</p>
  9. <p><i class="wi wi-info-sign"></i>若小程序A应用已同步{$_W['account']['type_name']},则{$_W['account']['type_name']}同步小程序应用时,无法选择小程序A且小程序A不会显示在同步列表中,即两者不可相互同步,PC同理。</p>
  10. </div>
  11. <div id="js-module-link-uniacid" ng-controller="moduleLinkUniacidCtrl" ng-cloak>
  12. <table class="table we7-table table-hover vertical-middle">
  13. <col width="180px" />
  14. <col width="140px"/>
  15. <col width="140px" />
  16. <tr>
  17. <th class="text-left">关联设置</th>
  18. <th class="text-left">关联账号</th>
  19. <th class="text-right">操作</th>
  20. </tr>
  21. <tr ng-repeat="module in versionInfo.modules" ng-if="versionInfo.modules">
  22. <td class="text-left">
  23. <img ng-src="{{module.logo}}" style="width:50px;height:50px;">
  24. {{module.title}}
  25. </td>
  26. <td class="text-left" ng-if="module.account">
  27. <img ng-src="{{module.account.logo}}" style="width:50px;height:50px;">
  28. <span>{{module.account.name}}</span>
  29. </td>
  30. <td class="text-left" ng-if="!module.account && !module.passive_link_uniacid">
  31. <span>暂无</span>
  32. </td>
  33. <td class="text-left" ng-if="!module.account && module.passive_link_uniacid">
  34. <div ng-repeat="item in module.passive_link_uniacid">
  35. 已被 {{item.type_name}} <span class="color-default" ng-bind="item.name"></span> 同步
  36. </div>
  37. </td>
  38. <td>
  39. <div class="link-group" ng-if="module.account">
  40. <a href="javascript:;" ng-click="initModule(module.name)">修改</a>
  41. <a href="javascript:;" ng-click="module_unlink_uniacid(module.name)">删除</a>
  42. </div>
  43. <div class="link-group" ng-if="!module.account && !module.passive_link_uniacid">
  44. <a href="javascript:;" ng-click="initModule(module.name)">添加</a>
  45. </div>
  46. <div class="link-group" ng-if="!module.account && module.passive_link_uniacid">
  47. <a href="javascript:;">---</a>
  48. </div>
  49. </td>
  50. </tr>
  51. </table>
  52. <div class="modal fade modal-app" tabindex="-1" id="show-account" role="dialog" >
  53. <div class="modal-dialog" role="document">
  54. <div class="modal-content">
  55. <div class="modal-header clearfix">
  56. <h4 class="text-over"> 选择账号 </h4>
  57. <div class="type"></div>
  58. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  59. </div>
  60. <div class="modal-body">
  61. <div class="search-box">
  62. <span class="we7-margin-right">账号类型:</span>
  63. <select class="we7-select we7-margin-right"
  64. ng-model="activeTypeSign"
  65. ng-change="changeType(activeTypeSign)">
  66. <option value="{{key}}"
  67. ng-repeat="(key, item) in we7TypeDefault"
  68. >{{item.name}}</option>
  69. </select>
  70. <div class="search-form">
  71. <div class="input-group">
  72. <input class="form-control" type="text" ng-model="searchKeyword" autocomplete="false" >
  73. <span class="input-group-btn"><button class="btn btn-default"><i class="fa fa-search"></i></button></span>
  74. </div>
  75. </div>
  76. </div>
  77. <div class="modal-app-list" ng-show="loadData">
  78. <span class="help-block text-center"><img src="./resource/images/loading.gif" alt="" width="45px"></span>
  79. </div>
  80. <div class="modal-app-list" ng-show="!loadData">
  81. <div class="modal-item" ng-class="{'active': account.checked == 1}" ng-repeat="account in linkAccounts" ng-show="!searchKeyword || searchKeyword && account.name.indexOf(searchKeyword) > -1">
  82. <div class="logo" ng-click="selectLinkAccount(account)">
  83. <img ng-src="{{account.logo}}" class="account-logo" alt="">
  84. <div class="mark">
  85. <i class="wi wi-right"></i>
  86. </div>
  87. </div>
  88. <div class="name text-over" ng-click="selectLinkAccount(account, $event)">
  89. <i class="{{we7TypeDefault[account.type_sign]['icon']}}"></i>{{account.name}}
  90. </div>
  91. </div>
  92. <div class="we7-empty-block" ng-if="linkAccounts | we7IsEmpty">没有可以关联的账号</div>
  93. </div>
  94. </div>
  95. <div class="modal-footer">
  96. <button type="button" class="btn btn-primary" ng-click="moduleLinkUniacid()">确定</button>
  97. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  98. </div>
  99. </div>
  100. </div>
  101. </div>
  102. </div>
  103. <script type="text/javascript">
  104. angular.module('wxApp').value('config', {
  105. 'version_info': {php echo !empty($version_info) ? json_encode($version_info) : 'null'},
  106. 'token': "{php echo $_W['token']}",
  107. 'typeSign': "{php echo $_W['account']['type_sign']}",
  108. 'links' : {
  109. 'search_link_account': "{php echo url('wxapp/module-link-uniacid/search_link_account')}",
  110. 'module_link_uniacid': "{php echo url('wxapp/module-link-uniacid')}",
  111. 'module_unlink_uniacid':"{php echo url('wxapp/module-link-uniacid/module_unlink_uniacid')}"
  112. },
  113. });
  114. angular.bootstrap($('#js-module-link-uniacid'), ['wxApp']);
  115. </script>
  116. {template 'common/footer'}