agentInfo_body.html 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  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/css/vant-ui.css" />
  12. <link rel="stylesheet" type="text/css" href="../../../../../css/css/iconfont.css">
  13. <link rel="stylesheet" type="text/css" href="../../../../../css/css/main.css" />
  14. <link rel="stylesheet" type="text/css" href="../../../../../css/css/style.css" />
  15. <script src="../../../../../script/js/vue.js"></script>
  16. <script src="../../../../../script/js/vant-ui.js"></script>
  17. <script src="../../../../../script/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. .rowbetween{
  77. justify-content: space-between;
  78. }
  79. .delete-btn{
  80. padding: 4px 8px;
  81. border-radius: 4px;
  82. background: #f34747;
  83. color: #ffffff;
  84. line-height: 1.5;
  85. display: inline-block;
  86. margin-top: .26rem;
  87. }
  88. </style>
  89. <body>
  90. <div id="app" style="overflow-y: scroll">
  91. <div class="login" id="aui-header">
  92. <div class="loginBox">
  93. <div class="labelTitle flex a-center" style="margin-top: 0;">
  94. <b class="i1"></b>
  95. 审核状态
  96. </div>
  97. <div class="labelValue flex a-center">
  98. <input type="text" v-model="agentInfo.auditView || '待审核'" readonly="readonly"/>
  99. </div>
  100. <div class="labelTitle flex a-center" style="margin-top: 0;">
  101. <b class="i1"></b>
  102. 门店名称
  103. </div>
  104. <div class="labelValue flex a-center">
  105. <input type="text" placeholder="门店名称" v-model="agentInfo.storeName" readonly="readonly"/>
  106. </div>
  107. <div class="labelTitle flex a-center" style="margin-top: 0.3rem;">
  108. <b class="i2"></b>
  109. 联系人
  110. </div>
  111. <div class="labelValue flex a-center">
  112. <input type="text" placeholder="联系人" v-model="agentInfo.contactName||''" readonly="readonly"/>
  113. </div>
  114. <div class="labelTitle flex a-center" style="margin-top: 0.3rem;">
  115. <b class="i2"></b>
  116. 联系电话
  117. </div>
  118. <div class="labelValue flex a-center">
  119. <input placeholder="联系电话" v-model="agentInfo.storePhone ||''" readonly="readonly"/>
  120. </div>
  121. <div class="labelTitle flex a-center" style="margin-top: 0.3rem;">
  122. <b class="i2"></b>
  123. 地址
  124. </div>
  125. <div class="labelValue flex a-center">
  126. <input placeholder="地区" v-model="agentInfo.province + agentInfo.city + agentInfo.district" readonly="readonly"/>
  127. </div>
  128. <div class="labelTitle flex a-center" style="margin-top: 0.3rem;">
  129. <b class="i2"></b>
  130. 详细地址
  131. </div>
  132. <div class="labelValue flex a-center">
  133. <input placeholder="详细地址" v-model="agentInfo.addressInfo" readonly="readonly"/>
  134. </div>
  135. </div>
  136. <!-- 合作经销商 -->
  137. <div class="login">
  138. <div class="loginBox">
  139. <div class="labelTitle flex a-center" style="margin-top: 0;">
  140. <b class="i1"></b>
  141. 合作经销商
  142. </div>
  143. <div class="labelValue flex a-center">
  144. <input placeholder="合作经销商" readonly="readonly" v-model="agentInfo.name"/>
  145. </div>
  146. <div class="labelValue flex a-center">
  147. <input placeholder="签约任务" readonly="readonly" v-model="agentInfo.sianLv"/>
  148. </div>
  149. <div class="biaoti" style="margin-top: 0.4rem;"><img src="../../../../../image/image/xiantiao.png" alt=""><span style="margin-top: -.1rem">合作品牌</span><img src="../../../../../image/image/xiantiao1.png" alt="">
  150. </div>
  151. <div class="brandList" v-if="agentInfo.bizStoreBrandDto == null">
  152. 暂无合作品牌
  153. </div>
  154. <div class="brandList" v-else>
  155. <img v-for="brand in agentInfo.bizStoreBrandDto" class="brandItem" :src="brand.logoUrl" alt="">
  156. </div>
  157. </div>
  158. </div>
  159. <!-- 附件上传 -->
  160. <div class="login">
  161. <div class="loginBox">
  162. <div class="biaoti" style="margin-top: 0.4rem;"><img src="../../../../../image/image/xiantiao.png" alt=""><span style="margin-top: -.1rem">证件</span><img src="../../../../../image/image/xiantiao1.png" alt="">
  163. </div>
  164. <div class="brandList" style="text-align: center">
  165. <div class="choose">
  166. <p>
  167. 营业执照
  168. </p>
  169. <img :src="agentInfo.licenseUrl == '' ? '../../../../../image/image/biankuang.png' : agentInfo.licenseUrl" style="margin: .3rem auto;" />
  170. </div>
  171. <div class="choose">
  172. <p>
  173. 门头照片
  174. </p>
  175. <img :src="agentInfo.storeImageUrl == '' ? '../../../../../image/image/biankuang.png' : agentInfo.storeImageUrl" style="margin: .3rem auto;" />
  176. </div>
  177. </div>
  178. <div class="anniu" v-show="agentInfo.status == 0">
  179. <input type="submit" value="否决" style="background-color:red" v-on:click="checkStore(2)">
  180. <input type="submit" value="通过" v-on:click="checkStore(1)">
  181. </div>
  182. </div>
  183. </div>
  184. </div>
  185. </div>
  186. </body>
  187. <script type="text/javascript" src="../../../../../script/api.js"></script>
  188. <script type="text/javascript" src="../../../../../script/httpRequest.js"></script>
  189. <script type="text/javascript" src="../../../../../script/vue_plugins.js"></script>
  190. <script type="text/javascript">
  191. apiready = function() {
  192. var storeId = api.pageParam.storeId;
  193. new Vue({
  194. el : '#app',
  195. data : {
  196. // 选择省市区
  197. UIActionSelector : '',
  198. map : '', // 百度地图SDK
  199. // 选择省市区的文件
  200. file : 'widget://res/city.json',
  201. userName : '', // 门店名称
  202. userPerson : '', // 用户联系人
  203. userPhone : '', // 用户手机号
  204. userCode : '', // 手机号验证码
  205. userDistrct : '', // 点击选择地址
  206. userAddress : '', // 用户地址
  207. distrctArr : [], // 保存的地址
  208. userLicense : '', // 营业执照
  209. userDoorway : '', // 门头照片
  210. userLat : '', // 纬度
  211. userLon : '', // 经度
  212. posterList : [], // 经销商列表
  213. storeId : storeId,
  214. agentInfo : '', // 这是门店详情
  215. onClick:true,
  216. },
  217. methods : {
  218. // 初始化数据
  219. init : function() {
  220. this.getAgentInfo();
  221. },
  222. // 获取门店详情
  223. getAgentInfo : function() {
  224. var _this = this, url = "getAgentInfoU", data = {
  225. id : this.storeId,
  226. "type" : 'body',
  227. "url" : 'json'
  228. }
  229. this.$post(url, data, function(ret) {
  230. if (ret.code == 0) {
  231. _this.agentInfo = ret.data;
  232. }
  233. });
  234. },
  235. // 审核门店
  236. checkStore : function(type) {
  237. if(this.onClick){
  238. this.onClick=false;
  239. var data = {
  240. "id" : this.storeId,
  241. "status" : type,
  242. "type" : 'body',
  243. "url" : 'json'
  244. }, _this = this, url = "checkStoreInfoU";
  245. this.$post(url, data, function(ret) {
  246. if (ret.code == 0 || ret.code == '0') {
  247. api.toast({
  248. msg : '已'+ ['','通过','否决'][type]
  249. });
  250. api.sendEvent({
  251. name: 'refushAgentList',
  252. extra: {}
  253. });
  254. setTimeout(function() {
  255. _this.getAgentInfo();
  256. }, 200);
  257. }
  258. });
  259. setTimeout(function() {
  260. this.onClick=true;
  261. }, 200);
  262. }
  263. },
  264. handleDelete: function(){
  265. this.showModal("确认提醒","你是要删除该品牌吗",["确认","取消"],function(index){
  266. if(index==2){
  267. console.log("删除品牌")
  268. }else{
  269. console.log("取消")
  270. }
  271. })
  272. }
  273. },
  274. filters : {
  275. },
  276. mounted : function() {
  277. this.init();
  278. }
  279. })
  280. }
  281. </script>
  282. </html>