人人商城

version-module-link-uniacid.html 8.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. {template 'common/header'}
  2. <div class="alert we7-page-alert">
  3. <p><i class="wi wi-info-sign"></i>从公众号应用或PC应用同步的会员信息,在小程序应用登录时会被判断为新用户,此处无法识别为同一会员;</p>
  4. <p><i class="wi wi-info-sign"></i>本小程序可操作的模块中,仅显示可进行同步的模块;</p>
  5. <p><i class="wi wi-info-sign"></i>可以把PC应用或公众号应用的会员、数据等信息同步至小程序应用当中;</p>
  6. <p><i class="wi wi-info-sign"></i>一个模块,只能同步了PC、公众号、小程序中的其中一种,且只可同步一个;</p>
  7. <p><i class="wi wi-info-sign"></i>若公众号A应用已同步本小程序,则本小程序同步公众号应用时,无法选择公众号A且公众号A不会显示在同步列表中,即两者不可相互同步,PC同理,小程序亦同理。</p>
  8. </div>
  9. <div class="we7-page-title">关联设置</div>
  10. <div id="js-module-link-uniacid" ng-controller="moduleLinkUniacidCtrl" ng-cloak>
  11. <table class="table we7-table table-hover vertical-middle">
  12. <col width="180px" />
  13. <col width="140px"/>
  14. <col width="140px" />
  15. <tr>
  16. <th class="text-left">关联设置</th>
  17. <th class="text-left">公众号或PC</th>
  18. <th class="text-right">操作</th>
  19. </tr>
  20. <tr ng-repeat="module in versionInfo.modules" ng-if="versionInfo.modules">
  21. <td class="text-left">
  22. <img ng-src="{{module.logo}}" style="width:50px;height:50px;">
  23. {{module.title}}
  24. </td>
  25. <td class="text-left" ng-if="module.account">
  26. <img ng-src="{{module.account.logo}}" style="width:50px;height:50px;">
  27. <span>{{module.account.name}}</span>
  28. </td>
  29. <td class="text-left" ng-if="!module.account && !module.other_link">
  30. <span>暂无</span>
  31. </td>
  32. <td class="text-left" ng-if="!module.account && module.other_link">
  33. <span>
  34. 已被
  35. <span ng-if="module.other_link.type == 1 || module.other_link.type == 3">公众号:<span class="color-default" ng-bind="module.other_link.name"></span></span>
  36. <span ng-if="module.other_link.type == 5">PC:<span class="color-default" ng-bind="module.other_link.name"></span></span>
  37. <span ng-if="module.other_link.type == 4 || module.other_link.type == 7">小程序:<span class="color-default" ng-bind="module.other_link.name"></span></span>
  38. 同步
  39. </span>
  40. </td>
  41. <td>
  42. <div class="link-group" ng-if="module.account">
  43. <a href="javascript:;" ng-click="searchLinkAccount(module.name, 'webapp')">修改</a>
  44. <a href="javascript:;" ng-click="module_unlink_uniacid(module.name)">删除</a>
  45. </div>
  46. <div class="link-group" ng-if="!module.account && !module.other_link">
  47. <a href="javascript:;" ng-click="searchLinkAccount(module.name, 'webapp')">添加</a>
  48. </div>
  49. <div class="link-group" ng-if="!module.account && module.other_link">
  50. <a href="javascript:;">---</a>
  51. </div>
  52. </td>
  53. </tr>
  54. </table>
  55. <div class="modal fade uploader-modal module" id="show-account" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  56. <div class="modal-dialog we7-modal-dialog" style="width:800px">
  57. <div class="modal-content">
  58. <div class="modal-header">
  59. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span></button>
  60. <h4 class="modal-title">选择</h4>
  61. </div>
  62. <div class="modal-body material-content">
  63. <div class="material-nav">
  64. <a href="javascript:;" ng-click="tabChange(0)" ng-class="{true:'active',false:''}[jurindex==0]" >PC</a>
  65. <a href="javascript:;" ng-click="tabChange(1)" ng-class="{true:'active',false:''}[jurindex==1]">公众号</a>
  66. <a href="javascript:;" ng-click="tabChange(2)" ng-class="{true:'active',false:''}[jurindex==2]">小程序</a>
  67. </div>
  68. <div class="panel-body we7-padding material-body" ng-show="jurindex==0" id="account-webapp">
  69. <div class="alert bg-light-gray">
  70. <p><i class="wi wi-info-sign color-default"></i>该应用必须同时支持PC应用</p>
  71. <p><i class="wi wi-info-sign color-default"></i>PC必须安装有该应用.</p>
  72. <p><i class="wi wi-info-sign color-default"></i>必须有PC和小程序的主管理员及以上权限</p>
  73. </div>
  74. <div class="form-group we7-padding" ng-show="loadingData">
  75. <span class="help-block text-center"><img src="./resource/images/loading.gif" alt="" width="45px"> 拼命加载中。。。</span>
  76. </div>
  77. <div class="row js-show-account-content" ng-show="!loadingData">
  78. <div class="col-sm-2" ng-repeat="account in linkWebappAccounts" ng-if="linkWebappAccounts">
  79. <div class="item" ng-click="selectLinkAccount(account, $event)">
  80. <img ng-src="{{account.logo}}" class="icon" alt="">
  81. <div class="name">{{account.name}}</div>
  82. <div class="mask">
  83. <span class="wi wi-right"></span>
  84. </div>
  85. </div>
  86. </div>
  87. <div class="col-sm-12 text-center" ng-if="linkWebappAccounts.length == 0">没有可以关联的PC</div>
  88. </div>
  89. </div>
  90. <div class="material-body" ng-show="jurindex==1" id="account-app">
  91. <div class="alert bg-light-gray">
  92. <p><i class="wi wi-info-sign color-default"></i>该应用必须同时支持公众号应用</p>
  93. <p><i class="wi wi-info-sign color-default"></i>公众号必须安装有该应用.</p>
  94. <p><i class="wi wi-info-sign color-default"></i>必须有公众号和小程序的主管理员及以上权限</p>
  95. </div>
  96. <div class="form-group we7-padding" ng-show="loadingData">
  97. <span class="help-block text-center"><img src="./resource/images/loading.gif" alt="" width="45px"> 拼命加载中。。。</span>
  98. </div>
  99. <div class="row js-show-account-content" ng-show="!loadingData">
  100. <div class="col-sm-2" ng-repeat="account in linkAppAccounts" ng-if="linkAppAccounts">
  101. <div class="item" ng-click="selectLinkAccount(account, $event)">
  102. <img ng-src="{{account.logo}}" class="icon">
  103. <div class="name">{{account.name}}</div>
  104. <div class="mask">
  105. <span class="wi wi-right"></span>
  106. </div>
  107. </div>
  108. </div>
  109. <div class="col-sm-12 text-center" ng-if="linkAppAccounts.length == 0">没有可以关联的公众号</div>
  110. </div>
  111. </div>
  112. <div class="material-body" ng-show="jurindex==2" id="account-wxapp">
  113. <div class="alert bg-light-gray">
  114. <p><i class="wi wi-info-sign color-default"></i>关联小程序只关联最高版本;</p>
  115. <p><i class="wi wi-info-sign color-default"></i>要关联的小程序最高版本必须打包有该应用,其他低版本打包该应用自动过滤;</p>
  116. <p><i class="wi wi-info-sign color-default"></i>必须同时有小程序的主管理员及以上权限。</p>
  117. </div>
  118. <div class="form-group we7-padding" ng-show="loadingData">
  119. <span class="help-block text-center"><img src="./resource/images/loading.gif" alt="" width="45px"> 拼命加载中。。。</span>
  120. </div>
  121. <div class="row js-show-account-content" ng-show="!loadingData">
  122. <div class="col-sm-2" ng-repeat="account in linkWxappAccounts" ng-if="linkWxappAccounts">
  123. <div class="item" ng-click="selectLinkAccount(account, $event)">
  124. <img ng-src="{{account.logo}}" class="icon">
  125. <div class="name">{{account.name}}</div>
  126. <div class="mask">
  127. <span class="wi wi-right"></span>
  128. </div>
  129. </div>
  130. </div>
  131. <div class="col-sm-12 text-center" ng-if="linkWxappAccounts.length == 0">没有可以关联的小程序</div>
  132. </div>
  133. </div>
  134. </div>
  135. <div class="modal-footer">
  136. <button type="button" class="btn btn-primary" ng-click="moduleLinkUniacid()">确定</button>
  137. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  138. </div>
  139. </div>
  140. </div>
  141. </div>
  142. </div>
  143. <script type="text/javascript">
  144. angular.module('wxApp').value('config', {
  145. 'version_info': {php echo !empty($version_info) ? json_encode($version_info) : 'null'},
  146. 'token': "{php echo $_W['token']}",
  147. 'app': "{php echo ACCOUNT_TYPE_OFFCIAL_NORMAL}",
  148. 'webapp': "{php echo ACCOUNT_TYPE_WEBAPP_NORMAL}",
  149. 'wxapp': "{php echo ACCOUNT_TYPE_APP_NORMAL}",
  150. 'links' : {
  151. 'search_link_account': "{php echo url('wxapp/module-link-uniacid/search_link_account')}",
  152. 'module_link_uniacid': "{php echo url('wxapp/module-link-uniacid')}",
  153. 'module_unlink_uniacid':"{php echo url('wxapp/module-link-uniacid/module_unlink_uniacid')}"
  154. },
  155. });
  156. angular.bootstrap($('#js-module-link-uniacid'), ['wxApp']);
  157. </script>
  158. {template 'common/footer'}