thawInfo_body.html 8.8 KB

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