index.htm 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. <!DOCTYPE html>
  2. <html>
  3. <#include "/m/head-file.htm">
  4. <link rel="stylesheet" type="text/css" href="{ms:global.host/}/plugins/bootstrap/3.3.5/css/bootstrap.min.css">
  5. <script type="text/javascript" src="{ms:global.host/}/plugins/bootstrap/3.3.5/js/bootstrap.min.js"></script>
  6. <body>
  7. <#include "/m/head.htm">
  8. <div id="indexVue">
  9. <div class="ms-banner">
  10. <div data-am-widget="slider" class="am-slider am-slider-a1" data-am-slider='{&quot;directionNav&quot;:false}'>
  11. <ul class="am-slides">
  12. <template v-for="banner in bannerList">
  13. <li>
  14. <img :src="'{ms:global.host/}/{ms:global.style/}/images/'+banner+'.png'">
  15. </li>
  16. </template>
  17. </ul>
  18. </div>
  19. </div>
  20. <div class="ms-content-template">
  21. <div>
  22. <ul class="nav nav-tabs ms-index-tabs" role="tablist">
  23. <li role="presentation" id="ms-model" class="active ms-active">
  24. <a @click="tabShow('model')" href="#model">模板</a>
  25. </li>
  26. <li role="presentation" id="ms-plug" class="ms-active">
  27. <a @click="tabShow('plug')" href="#plug">插件</a>
  28. </li>
  29. </ul>
  30. <div class="ms-content-all">
  31. <div class="tab-content">
  32. <div role="tabpanel" class="tab-pane active" id="model">
  33. <div style="display: none;" class="ms-loading" v-show="!loading">
  34. <img src="{ms:global.host/}/{ms:global.style/}/images/loading.gif" />
  35. </div>
  36. <div class="ms-model-content" style="display: none;" v-show="loading">
  37. <template v-for="model in modelList">
  38. <div class="ms-model-list">
  39. <a class="ms-model-img" :href="model.upgraderVersionUrl" target="_blank">
  40. <img :src="'http://mstore.mingsoft.net/'+model.upgraderVersionImg" onerror="this.src='{ms:global.host/}/{ms:global.style/}/images/no-data.png'" />
  41. </a>
  42. <div class="ms-model-mobile-img" v-if="model.upgraderVersionMobileImg != '' && model.upgraderVersionMobileImg != undefined" style="background-image: url({ms:global.host/}/{ms:global.style/}/images/mobile.png)">
  43. <div>
  44. <img :src="'http://mstore.mingsoft.net/'+model.upgraderVersionMobileImg" onerror="this.src='{ms:global.host/}/{ms:global.style/}/images/no-data.png'" />
  45. </div>
  46. </div>
  47. <div class="ms-model-info">
  48. <span v-text="model.upgraderVersionName"></span>
  49. <img class="ms-model-info-img" :src="model.upgraderVersionPeopleIcon" onerror="this.src='http://cdn.mingsoft.net/global/images/msheader.png'" />
  50. <img :src="'{ms:global.host/}/{ms:global.style/}/images/level-'+model.upgraderVersionStart+'.png'" width="60px" />
  51. <div class="ms-model-type">模板</div>
  52. </div>
  53. </div>
  54. </template>
  55. <div class="ms-model-list" style="display: none;" v-show="loading">
  56. <div class="ms-model-more">
  57. <div onclick="window.open('http://mstore.mingsoft.net/mstoreShow.do')">查看更多>></div>
  58. </div>
  59. </div>
  60. </div>
  61. </div>
  62. <div role="tabpanel" class="tab-pane" id="plug">
  63. <div class="ms-model-content" style="display: none;" v-show="loading">
  64. <template v-for="pulg in pulgList">
  65. <div class="ms-model-list">
  66. <a class="ms-model-img" :href="pulg.upgraderVersionUrl" target="_blank">
  67. <img :src="'http://mstore.mingsoft.net/'+pulg.upgraderVersionImg" onerror="this.src='{ms:global.host/}/{ms:global.style/}/images/no-data.png'" />
  68. </a>
  69. <div class="ms-model-info">
  70. <span v-text="pulg.upgraderVersionName"></span>
  71. <img class="ms-model-info-img" :src="'{ms:global.host/}/'+ pulg.upgraderVersionPeopleIcon" onerror="this.src='http://cdn.mingsoft.net/global/images/msheader.png'" />
  72. <img :src="'{ms:global.host/}/{ms:global.style/}/images/level-'+pulg.upgraderVersionStart+'.png'" width="60px"/>
  73. <div class="ms-model-type">插件</div>
  74. </div>
  75. </div>
  76. </template>
  77. <div class="ms-model-list" style="display: none;" v-show="loading">
  78. <div class="ms-model-more">
  79. <div onclick="window.open('http://mstore.mingsoft.net/mstoreShow.do')">查看更多>></div>
  80. </div>
  81. </div>
  82. </div>
  83. </div>
  84. </div>
  85. </div>
  86. </div>
  87. </div>
  88. <div class="ms-index-content">
  89. <div class="ms-case">
  90. <div data-am-widget="list_news" class="am-list-news am-list-news-default ms-case-div">
  91. <!--列表标题-->
  92. <div class="am-list-news-hd am-cf ms-case-title">
  93. <!--带更多链接-->
  94. <a href="{ms:global.url/}/149/index.html" class="">
  95. <h2 class="ms-case-title-h2">网站案例</h2>
  96. <span class="am-list-news-more am-fr ms-case-more">MORE &raquo;</span>
  97. </a>
  98. </div>
  99. <div class="ms-case-list-div">
  100. <ul data-am-widget="gallery" class="am-gallery am-avg-sm-2 am-gallery-imgbordered">
  101. {ms:arclist typeid=149 size=4}
  102. <li>
  103. <div class="am-gallery-item ms-case-div-li">
  104. <a href='[field.source/]'>
  105. <img class="ms-case-list-img" src="{ms:global.host/}[field.litpic/]" alt="[field.title/]" />
  106. </a>
  107. </div>
  108. </li>
  109. {/ms:arclist}
  110. </ul>
  111. </div>
  112. </div>
  113. </div>
  114. <div class="ms-product">
  115. <div class="container ms-product-container">
  116. <div id="slide" class="slide" class="index-slide" alt="star">
  117. <h2>产品方向</h2>
  118. <div class="img img2" data-slide-imgid="0" onclick="left()">
  119. <a href="http://www.mingsoft.net/html/1/5524/index.html">
  120. <img src="http://www.mingsoft.net/templets/1/ming-soft//images/hu2.jpg">
  121. </a>
  122. </div>
  123. <div class="img img3" data-slide-imgid="1">
  124. <a href="http://www.mingsoft.net/html/1/5523/index.html">
  125. <img src="http://www.mingsoft.net/templets/1/ming-soft//images/hu1.png">
  126. </a>
  127. </div>
  128. <div class="img img4" data-slide-imgid="2" onclick="right()">
  129. <a href="http://www.mingsoft.net/html/1/5526/index.html">
  130. <img src="http://www.mingsoft.net/templets/1/ming-soft//images/hu3.jpg">
  131. </a>
  132. </div>
  133. </div>
  134. </div>
  135. </div>
  136. <div class="ms-news">
  137. <div data-am-widget="list_news" class="am-list-news am-list-news-default">
  138. <div class="am-list-news-hd am-cf ms-news-title">
  139. <!--带更多链接-->
  140. <a href="{ms:global.url/}/59/index.html" class="">
  141. <h2 class="ms-news-title-h2">公司动态</h2>
  142. <span class="am-list-news-more am-fr ms-news-more">MORE &raquo;</span>
  143. </a>
  144. </div>
  145. <div class="am-list-news-bd ms-product-news-list">
  146. <ul class="am-list">
  147. {ms:arclist typeid=59 size=6}
  148. <li class="am-g am-list-item-dated ms-product-news-list-li">
  149. <a href="{ms:global.url/}[field.link/]" class="am-list-item-hd ">[field.title/]</a>
  150. <span class="am-list-date">[field.date?string("yyyy-mm-dd")/]</span>
  151. </li>
  152. {/ms:arclist}
  153. </ul>
  154. </div>
  155. </div>
  156. </div>
  157. </div>
  158. </div>
  159. <#include "/m/footer.htm">
  160. </body>
  161. <script>
  162. var index = new Vue({
  163. el: "#indexVue",
  164. data: {
  165. bannerList: ['01', '02', '03', '04', '05'],
  166. modelList: [], //模板列表
  167. pulgList: [], //插件列表
  168. loading: false, //加载状态
  169. },
  170. methods: {
  171. //切换tab
  172. tabShow: function(type) {
  173. event.preventDefault();
  174. $(".tab-pane").removeClass("active");
  175. $(".ms-active").removeClass("active");
  176. $("#ms-" + type).addClass("active");
  177. $("#" + type).addClass("active");
  178. },
  179. //加载列表
  180. query: function(data, type) {
  181. var target = this;
  182. $.ajax({
  183. type: "POST",
  184. data: data,
  185. url: "http://mstore.mingsoft.net//mstore/list.do", //
  186. success: function(msg) {
  187. if(type == 'model') {
  188. target.modelList = msg.list;
  189. } else {
  190. target.pulgList = msg.list;
  191. target.loading = true;
  192. }
  193. }
  194. })
  195. },
  196. },
  197. mounted: function() {
  198. var data = "upgraderVersionType=2&upgraderVersionIndustry=0&orderBy=uv_id&pageSize=4&pageNo=1";
  199. this.query(data, 'model');
  200. var data = "upgraderVersionType=1&upgraderVersionIndustry=0&orderBy=uv_id&pageSize=4&pageNo=1";
  201. this.query(data, 'pulg');
  202. }
  203. })
  204. </script>
  205. </html>