agentInfo_body.html 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  1. <!DOCTYPE html>
  2. <html class="">
  3. <!--STATUS OK-->
  4. <head>
  5. <meta name="referrer" content="always" />
  6. <meta charset='utf-8' />
  7. <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
  8. <meta http-equiv="x-dns-prefetch-control" content="on">
  9. <meta name="description" content="">
  10. <meta name="format-detection" content="telephone=no" />
  11. <link rel="stylesheet" type="text/css" href="css/vant-ui.css" />
  12. <link rel="stylesheet" type="text/css" href="css/iconfont.css">
  13. <link rel="stylesheet" type="text/css" href="css/main.css" />
  14. <link rel="stylesheet" type="text/css" href="css/style.css" />
  15. <script src="js/vue.js"></script>
  16. <script src="js/vant-ui.js"></script>
  17. <script src="js/main.js"></script>
  18. <title></title>
  19. </head>
  20. <style>
  21. #app {
  22. background: linear-gradient(180deg,rgba(0,160,234,1),rgba(0,95,163,1)) !important;
  23. }
  24. .login {
  25. padding-bottom: 0rem;
  26. height: auto;
  27. padding-top: .01rem;
  28. background: none;
  29. }
  30. .login .loginFix {
  31. position: absolute;
  32. }
  33. .login .loginBox {
  34. width: 90%;
  35. height: auto;
  36. padding: 10px;
  37. padding-bottom: 1rem;
  38. }
  39. .pull-right {
  40. width: .15rem !important;
  41. height: .3rem !important;
  42. }
  43. .brandList {
  44. display: flex;
  45. width: 100%;
  46. flex-wrap: wrap;
  47. margin-top: .8rem;
  48. }
  49. .brandList .brandItem, .brandList .choose {
  50. width: 40%;
  51. margin: .1rem .3rem;
  52. }
  53. .brandItem {
  54. height: .6rem;
  55. }
  56. .anniu > input {
  57. width: 90%;
  58. height: .86rem;
  59. background: rgba(0,160,234,1);
  60. border-radius: 5rem;
  61. color: #fff;
  62. font-size: .31rem;
  63. margin-top: .5rem;
  64. }
  65. .getCodeBtn {
  66. width: 100px;
  67. background-color: #00a0ea;
  68. padding: 5px;
  69. color: #fff;
  70. border-radius: 8px 5px;
  71. text-align: center;
  72. }
  73. .anniu {
  74. display: flex;
  75. }
  76. </style>
  77. <body>
  78. <div id="app" style="overflow-y: scroll">
  79. <div class="login" id="aui-header">
  80. <div class="loginBox">
  81. <div class="labelTitle flex a-center" style="margin-top: 0;">
  82. <b class="i1"></b>
  83. 审核状态
  84. </div>
  85. <div class="labelValue flex a-center">
  86. <input type="text" v-model="agentInfo.auditView || '待审核'" readonly="readonly"/>
  87. </div>
  88. <div class="labelTitle flex a-center" style="margin-top: 0;">
  89. <b class="i1"></b>
  90. 门店名称
  91. </div>
  92. <div class="labelValue flex a-center">
  93. <input type="text" placeholder="门店名称" v-model="agentInfo.storeName" readonly="readonly"/>
  94. </div>
  95. <div class="labelTitle flex a-center" style="margin-top: 0.3rem;">
  96. <b class="i2"></b>
  97. 联系人
  98. </div>
  99. <div class="labelValue flex a-center">
  100. <input type="text" placeholder="联系人" v-model="agentInfo.contactName||''" readonly="readonly"/>
  101. </div>
  102. <div class="labelTitle flex a-center" style="margin-top: 0.3rem;">
  103. <b class="i2"></b>
  104. 联系电话
  105. </div>
  106. <div class="labelValue flex a-center">
  107. <input placeholder="联系电话" v-model="agentInfo.storePhone ||''" readonly="readonly"/>
  108. </div>
  109. <div class="labelTitle flex a-center" style="margin-top: 0.3rem;">
  110. <b class="i2"></b>
  111. 地址
  112. </div>
  113. <div class="labelValue flex a-center">
  114. <input placeholder="地区" v-model="agentInfo.province + agentInfo.city + agentInfo.district" readonly="readonly"/>
  115. </div>
  116. <div class="labelTitle flex a-center" style="margin-top: 0.3rem;">
  117. <b class="i2"></b>
  118. 详细地址
  119. </div>
  120. <div class="labelValue flex a-center">
  121. <input placeholder="详细地址" v-model="agentInfo.addressInfo" readonly="readonly"/>
  122. </div>
  123. </div>
  124. <!-- 合作经销商 -->
  125. <div class="login">
  126. <div class="loginBox">
  127. <div class="labelTitle flex a-center" style="margin-top: 0;">
  128. <b class="i1"></b>
  129. 合作经销商
  130. </div>
  131. <div class="labelValue flex a-center">
  132. <input placeholder="合作经销商" readonly="readonly" v-model="agentInfo.name"/>
  133. <img src="./image/009.png" class="pull-right"/>
  134. </div>
  135. <div class="labelValue flex a-center">
  136. <input placeholder="签约任务" readonly="readonly" v-model="agentInfo.sianLv"/>
  137. <img src="./image/009.png" class="pull-right"/>
  138. </div>
  139. <div class="biaoti" style="margin-top: 0.4rem;"><img src="image/xiantiao.png" alt=""><span style="margin-top: -.1rem">合作品牌</span><img src="image/xiantiao1.png" alt="">
  140. </div>
  141. <div class="brandList" v-if="agentInfo.bizStoreBrandDto == null">
  142. 暂无合作品牌
  143. </div>
  144. <div class="brandList" v-else>
  145. <img v-for="brand in agentInfo.bizStoreBrandDto" class="brandItem" :src="brand.logoUrl" alt="">
  146. </div>
  147. </div>
  148. </div>
  149. <!-- 附件上传 -->
  150. <div class="login">
  151. <div class="loginBox">
  152. <div class="biaoti" style="margin-top: 0.4rem;"><img src="image/xiantiao.png" alt=""><span style="margin-top: -.1rem">证件</span><img src="image/xiantiao1.png" alt="">
  153. </div>
  154. <div class="brandList" style="text-align: center">
  155. <div class="choose">
  156. <p>
  157. 营业执照
  158. </p>
  159. <img :src="agentInfo.licenseUrl == '' ? './image/biankuang.png' : agentInfo.licenseUrl" style="margin: .3rem auto;" />
  160. </div>
  161. <div class="choose">
  162. <p>
  163. 门头照片
  164. </p>
  165. <img :src="agentInfo.storeImageUrl == '' ? './image/biankuang.png' : agentInfo.storeImageUrl" style="margin: .3rem auto;" />
  166. </div>
  167. </div>
  168. <div class="anniu" v-show="agentInfo.status == 0">
  169. <input type="submit" value="否决" style="background-color:red" v-on:click="checkStore(2)">
  170. <input type="submit" value="通过" v-on:click="checkStore(1)">
  171. </div>
  172. </div>
  173. </div>
  174. </div>
  175. </div>
  176. </body>
  177. <script type="text/javascript" src="../script/api.js"></script>
  178. <script type="text/javascript" src="../script/httpRequest.js"></script>
  179. <script type="text/javascript" src="../script/vue_plugins.js"></script>
  180. <script type="text/javascript">
  181. apiready = function() {
  182. var storeId = api.pageParam.storeId;
  183. new Vue({
  184. el : '#app',
  185. data : {
  186. // 选择省市区
  187. UIActionSelector : '',
  188. map : '', // 百度地图SDK
  189. // 选择省市区的文件
  190. file : 'widget://res/city.json',
  191. userName : '', // 门店名称
  192. userPerson : '', // 用户联系人
  193. userPhone : '', // 用户手机号
  194. userCode : '', // 手机号验证码
  195. userDistrct : '', // 点击选择地址
  196. userAddress : '', // 用户地址
  197. distrctArr : [], // 保存的地址
  198. userLicense : '', // 营业执照
  199. userDoorway : '', // 门头照片
  200. userLat : '', // 纬度
  201. userLon : '', // 经度
  202. posterList : [], // 经销商列表
  203. storeId : storeId,
  204. agentInfo : '', // 这是门店详情
  205. onClick:true,
  206. },
  207. methods : {
  208. // 初始化数据
  209. init : function() {
  210. this.getAgentInfo();
  211. },
  212. // 获取门店详情
  213. getAgentInfo : function() {
  214. var _this = this, url = "getAgentInfoU", data = {
  215. id : this.storeId,
  216. "type" : 'body',
  217. "url" : 'json'
  218. }
  219. this.$post(url, data, function(ret) {
  220. if (ret.code == 0) {
  221. _this.agentInfo = ret.data;
  222. }
  223. });
  224. },
  225. // 审核门店
  226. checkStore : function(type) {
  227. if(this.onClick){
  228. this.onClick=false;
  229. var data = {
  230. "id" : this.storeId,
  231. "status" : type,
  232. "type" : 'body',
  233. "url" : 'json'
  234. }, _this = this, url = "checkStoreInfoU";
  235. this.$post(url, data, function(ret) {
  236. if (ret.code == 0 || ret.code == '0') {
  237. api.toast({
  238. msg : '已'+ ['','通过','否决'][type]
  239. });
  240. api.sendEvent({
  241. name: 'refushAgentList',
  242. extra: {}
  243. });
  244. setTimeout(function() {
  245. _this.getAgentInfo();
  246. }, 200);
  247. }
  248. });
  249. setTimeout(function() {
  250. this.onClick=true;
  251. }, 200);
  252. }
  253. }
  254. },
  255. filters : {
  256. },
  257. mounted : function() {
  258. this.init();
  259. }
  260. })
  261. }
  262. </script>
  263. </html>