agentInfo_body.html 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327
  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. <title></title>
  16. </head>
  17. <style>
  18. #app {
  19. background: linear-gradient(180deg,rgba(0,160,234,1),rgba(0,95,163,1)) !important;
  20. }
  21. .login {
  22. padding-bottom: 0rem;
  23. height: auto;
  24. padding-top: .01rem;
  25. background: none;
  26. }
  27. .login .loginFix {
  28. position: absolute;
  29. }
  30. .login .loginBox {
  31. width: 90%;
  32. height: auto;
  33. padding: 10px;
  34. padding-bottom: 1rem;
  35. }
  36. .pull-right {
  37. width: .15rem !important;
  38. height: .3rem !important;
  39. }
  40. .brandList {
  41. display: flex;
  42. width: 100%;
  43. flex-wrap: wrap;
  44. margin-top: .8rem;
  45. }
  46. .brandList .brandItem, .brandList .choose {
  47. width: 40%;
  48. margin: .1rem .3rem;
  49. }
  50. .brandItem {
  51. height: .6rem;
  52. }
  53. .anniu > input {
  54. width: 90%;
  55. height: .86rem;
  56. background: rgba(0,160,234,1);
  57. border-radius: 5rem;
  58. color: #fff;
  59. font-size: .31rem;
  60. margin-top: .5rem;
  61. }
  62. .getCodeBtn {
  63. width: 100px;
  64. background-color: #00a0ea;
  65. padding: 5px;
  66. color: #fff;
  67. border-radius: 8px 5px;
  68. text-align: center;
  69. }
  70. .anniu {
  71. display: flex;
  72. }
  73. .rowbetween{
  74. justify-content: space-between;
  75. }
  76. .delete-btn{
  77. padding: 4px 8px;
  78. border-radius: 4px;
  79. background: #f34747;
  80. color: #ffffff;
  81. line-height: 1.5;
  82. display: inline-block;
  83. margin-top: .26rem;
  84. }
  85. .shop-detail-title {
  86. position: relative;
  87. text-align: center;
  88. }
  89. .shop-detail-title span {
  90. position: relative;
  91. display: inline-block;
  92. background-color: #fff;
  93. padding: 0 10px;
  94. z-index: 2;
  95. }
  96. .shop-detail-title .line {
  97. position: absolute;
  98. top: 50%;
  99. left: 20%;
  100. right: 20%;
  101. content: '';
  102. display: block;
  103. height: 1px;
  104. background-image: radial-gradient(rgba(0,160,234,1), rgba(0,160,234,0));
  105. z-index: 1;
  106. }
  107. </style>
  108. <body>
  109. <div id="app" style="overflow-y: scroll">
  110. <div class="login" id="aui-header">
  111. <div class="loginBox">
  112. <div class="labelTitle flex a-center" style="margin-top: 0;">
  113. <b class="i1"></b>
  114. {{ $t('home.agentInfo.examineStatus') }}
  115. </div>
  116. <div class="labelValue flex a-center">
  117. <input type="text" v-model="agentInfoAudit" readonly="readonly"/>
  118. </div>
  119. <div class="labelTitle flex a-center" style="margin-top: 0;">
  120. <b class="i1"></b>
  121. {{ $t('home.agentInfo.storeName') }}
  122. </div>
  123. <div class="labelValue flex a-center">
  124. <input type="text" :placeholder="$t('home.agentInfo.storeName')" v-model="agentInfo.storeName" readonly="readonly"/>
  125. </div>
  126. <div class="labelTitle flex a-center" style="margin-top: 0.3rem;">
  127. <b class="i2"></b>
  128. {{ $t('home.agentInfo.contact') }}
  129. </div>
  130. <div class="labelValue flex a-center">
  131. <input type="text" :placeholder="$t('home.agentInfo.contact')" v-model="agentInfo.contactName||''" readonly="readonly"/>
  132. </div>
  133. <div class="labelTitle flex a-center" style="margin-top: 0.3rem;">
  134. <b class="i2"></b>
  135. {{ $t('home.agentInfo.mobile') }}
  136. </div>
  137. <div class="labelValue flex a-center">
  138. <input :placeholder="$t('home.agentInfo.mobile')" v-model="agentInfo.storePhone ||''" readonly="readonly"/>
  139. </div>
  140. <div class="labelTitle flex a-center" style="margin-top: 0.3rem;">
  141. <b class="i2"></b>
  142. {{ $t('home.agentInfo.address') }}
  143. </div>
  144. <div class="labelValue flex a-center">
  145. <input :placeholder="$t('home.agentInfo.address')" v-model="agentInfo.province + agentInfo.city + agentInfo.district" readonly="readonly"/>
  146. </div>
  147. <div class="labelTitle flex a-center" style="margin-top: 0.3rem;">
  148. <b class="i2"></b>
  149. {{ $t('home.agentInfo.detailAddress') }}
  150. </div>
  151. <div class="labelValue flex a-center">
  152. <input :placeholder="$t('home.agentInfo.detailAddress')" v-model="agentInfo.addressInfo" readonly="readonly"/>
  153. </div>
  154. </div>
  155. <!-- 合作经销商 -->
  156. <div class="login">
  157. <div class="loginBox">
  158. <div class="labelTitle flex a-center" style="margin-top: 0;">
  159. <b class="i1"></b>
  160. {{ $t('home.agentInfo.dealers') }}
  161. </div>
  162. <div class="labelValue flex a-center">
  163. <input :placeholder=" $t('home.agentInfo.dealers')" readonly="readonly" v-model="agentInfo.name"/>
  164. </div>
  165. <div class="labelValue flex a-center">
  166. <input :placeholder=" $t('home.agentInfo.signContract')" readonly="readonly" v-model="agentInfo.sianLv"/>
  167. </div>
  168. <div class="biaoti" style="margin-top: 0.4rem;"><img src="../../../../../image/image/xiantiao.png" alt=""><span style="margin-top: -.1rem">{{ $t('home.agentInfo.cooBrand') }}</span><img src="../../../../../image/image/xiantiao1.png" alt="">
  169. </div>
  170. <div class="brandList" v-if="agentInfo.bizStoreBrandDto == null">
  171. {{ $t('home.agentInfo.noBrand') }}
  172. </div>
  173. <div class="brandList" v-else>
  174. <img v-for="brand in agentInfo.bizStoreBrandDto" class="brandItem" :src="brand.logoUrl" alt="">
  175. </div>
  176. </div>
  177. </div>
  178. <!-- 附件上传 -->
  179. <div class="login">
  180. <div class="loginBox">
  181. <div class="shop-detail-title" style="margin-top: 0.4rem;"><i class="line"></i><span>{{ $t('home.agentInfo.certificate') }}</span></div>
  182. <div class="brandList" style="text-align: center">
  183. <div class="choose">
  184. <p>
  185. {{ $t('home.agentInfo.BusinessLicense') }}
  186. </p>
  187. <img :src="agentInfo.licenseUrl == '' ? '../../../../../image/image/biankuang.png' : agentInfo.licenseUrl" style="margin: .3rem auto;" />
  188. </div>
  189. <div class="choose">
  190. <p>
  191. {{ $t('home.agentInfo.storePhone') }}
  192. </p>
  193. <img :src="agentInfo.storeImageUrl == '' ? '../../../../../image/image/biankuang.png' : agentInfo.storeImageUrl" style="margin: .3rem auto;" />
  194. </div>
  195. </div>
  196. <div class="anniu" v-show="agentInfo.status == 0">
  197. <input type="submit" :value="$t('home.agentInfo.reject')" style="background-color:red" v-on:click="checkStore(2)">
  198. <input type="submit" :value="$t('home.agentInfo.pass')" v-on:click="checkStore(1)">
  199. </div>
  200. </div>
  201. </div>
  202. </div>
  203. </div>
  204. </body>
  205. <script type="text/javascript" src="../../../../../script/api.js"></script>
  206. <script src="../../../../../script/js/vue.js"></script>
  207. <script src="../../../../../script/js/vue-i18n.js"></script>
  208. <script src="../../../../../script/js/vant-ui.js"></script>
  209. <script src="../../../../../script/js/main.js"></script>
  210. <script type="text/javascript" src="../../../js/zh.js"></script>
  211. <script type="text/javascript" src="../../../js/en.js"></script>
  212. <script type="text/javascript" src="../../../../../script/httpRequest.js"></script>
  213. <script type="text/javascript" src="../../../../../script/vue_plugins.js"></script>
  214. <script type="text/javascript">
  215. apiready = function() {
  216. let langType = $api.getStorage('lang') || 'cn'
  217. const i18n = new VueI18n({
  218. locale: langType,//设置语言
  219. messages: {
  220. en: getEn(),
  221. cn: getCn()
  222. }
  223. })
  224. var storeId = api.pageParam.storeId;
  225. new Vue({
  226. el : '#app',
  227. i18n,
  228. data : {
  229. // 选择省市区
  230. UIActionSelector : '',
  231. map : '', // 百度地图SDK
  232. // 选择省市区的文件
  233. file : 'widget://res/city.json',
  234. userName : '', // 门店名称
  235. userPerson : '', // 用户联系人
  236. userPhone : '', // 用户手机号
  237. userCode : '', // 手机号验证码
  238. userDistrct : '', // 点击选择地址
  239. userAddress : '', // 用户地址
  240. distrctArr : [], // 保存的地址
  241. userLicense : '', // 营业执照
  242. userDoorway : '', // 门头照片
  243. userLat : '', // 纬度
  244. userLon : '', // 经度
  245. posterList : [], // 经销商列表
  246. storeId : storeId,
  247. agentInfo : '', // 这是门店详情
  248. onClick:true,
  249. },
  250. computed: {
  251. agentInfoAudit() {
  252. return this.agentInfo.auditView || this.$t('home.agentInfo.reviewed')
  253. }
  254. },
  255. methods : {
  256. // 初始化数据
  257. init : function() {
  258. this.getAgentInfo();
  259. },
  260. // 获取门店详情
  261. getAgentInfo : function() {
  262. var _this = this, url = "getAgentInfoU", data = {
  263. id : this.storeId,
  264. "type" : 'body',
  265. "url" : 'json'
  266. }
  267. this.$post(url, data, function(ret) {
  268. if (ret.code == 0) {
  269. _this.agentInfo = ret.data;
  270. }
  271. });
  272. },
  273. // 审核门店
  274. checkStore : function(type) {
  275. if(this.onClick){
  276. this.onClick=false;
  277. var data = {
  278. "id" : this.storeId,
  279. "status" : type,
  280. "type" : 'body',
  281. "url" : 'json'
  282. }, _this = this, url = "checkStoreInfoU";
  283. this.$post(url, data, function(ret) {
  284. if (ret.code == 0 || ret.code == '0') {
  285. api.toast({
  286. msg : '已'+ ['','通过','否决'][type]
  287. });
  288. api.sendEvent({
  289. name: 'refushAgentList',
  290. extra: {}
  291. });
  292. setTimeout(function() {
  293. _this.getAgentInfo();
  294. }, 200);
  295. }
  296. });
  297. setTimeout(function() {
  298. this.onClick=true;
  299. }, 200);
  300. }
  301. },
  302. handleDelete: function(){
  303. this.showModal("确认提醒","你是要删除该品牌吗",["确认","取消"],function(index){
  304. if(index==2){
  305. console.log("删除品牌")
  306. }else{
  307. console.log("取消")
  308. }
  309. })
  310. }
  311. },
  312. filters : {
  313. },
  314. mounted : function() {
  315. this.init();
  316. }
  317. })
  318. }
  319. </script>
  320. </html>