Businesses.vue 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443
  1. <template>
  2. <view class="page" :style="{'min-height':h+'px'}">
  3. <view class="tenant-title">
  4. <text>基本信息</text>
  5. </view>
  6. <view class="from-content">
  7. <view class="one-realName">
  8. <view class="realName">
  9. 商户名称
  10. </view>
  11. <!-- <u--input v-model="realName" border="none" pl ></u--input> -->
  12. <view class="right">
  13. <input type="text" v-model="list.name" border="none" placeholder="请输入昵称" />
  14. </view>
  15. </view>
  16. <view class="one" @click="nav">
  17. <view class="">
  18. 商户类型
  19. </view>
  20. <view class="">
  21. 渔家乐
  22. <!-- <u-icon name="arrow-right"></u-icon> -->
  23. </view>
  24. </view>
  25. <view class="one-mobile">
  26. <view class="mobile">
  27. 企业名称
  28. </view>
  29. <view class="right">
  30. <input type="text" v-model="list.busName" border="none" placeholder="请输入" style="height: 48rpx;" />
  31. </view>
  32. </view>
  33. <view class="one" @click="nav">
  34. <view class="">
  35. 企业类型
  36. </view>
  37. <view class="">
  38. <!-- <u-icon name="arrow-right"></u-icon> -->
  39. 渔家乐
  40. </view>
  41. </view>
  42. <view class="one-mobile">
  43. <view class="mobile">
  44. 企业法人
  45. </view>
  46. <view class="right">
  47. {{list.legalPerson}}
  48. </view>
  49. </view>
  50. <view class="one-mobile">
  51. <view class="mobile">
  52. 法人身份证号码
  53. </view>
  54. <view class="right">
  55. {{list.idCard}}
  56. </view>
  57. </view>
  58. <view class="one-mobile">
  59. <view class="mobile" style="width: 350rpx;">
  60. 统一社区信用代码
  61. </view>
  62. <view class="right">
  63. {{list.creditCode}}
  64. </view>
  65. </view>
  66. <view class="one-mobile">
  67. <view class="mobile">
  68. 企业地址
  69. </view>
  70. <view class="right">
  71. {{list.areaDetail}}
  72. </view>
  73. </view>
  74. </view>
  75. <view class="tenant-title">
  76. <text>联系人信息</text>
  77. </view>
  78. <view class="from-content">
  79. <view class="one-mobile">
  80. <view class="mobile">
  81. 联系人姓名
  82. </view>
  83. <view class="right">
  84. {{list.linkName}}
  85. </view>
  86. </view>
  87. <view class="one-mobile">
  88. <view class="mobile">
  89. 联系人号码
  90. </view>
  91. <view class="right">
  92. {{list.phone}}
  93. </view>
  94. </view>
  95. </view>
  96. <view class="tenant-title">
  97. <text>商家相册</text>
  98. </view>
  99. <view class="from-content" style="padding: 30rpx;">
  100. <view class="tenant-image">
  101. <view>
  102. <image :src="list.idCardFront" mode=""></image>
  103. <view>法人身份证国徽面</view>
  104. </view>
  105. <view>
  106. <image :src="list.idCardReverse" mode=""></image>
  107. <view>法人身份证人像面</view>
  108. </view>
  109. <view>
  110. <image :src="list.licensePic" mode=""></image>
  111. <view>营业执照</view>
  112. </view>
  113. <view>
  114. <image :src="list.usccl" mode=""></image>
  115. <view>统一社会信息代码证</view>
  116. </view>
  117. <view>
  118. <image :src="list.shopSign" mode=""></image>
  119. <view>门头照</view>
  120. </view>
  121. <view>
  122. <image :src="list.shopImgs" mode=""></image>
  123. <view>店铺照片</view>
  124. </view>
  125. </view>
  126. </view>
  127. <!-- 选择弹框学历要求 -->
  128. <u-popup :show="showTwo" @close="close" :round="24" @open="open">
  129. <view class="pop">
  130. <view class="hander">
  131. <view class="left" @click="showTwo=false">
  132. 取消
  133. </view>
  134. <view class="center">
  135. <!-- 学历要求 -->
  136. </view>
  137. <view class="right" @click="showTwo=false">
  138. 确定
  139. </view>
  140. </view>
  141. <view class="At-last" v-for="item,index in JobList">
  142. <view class="item" @click="choose(item,index)" :class="indexDb==index?'activeItem':''">
  143. {{item.name}}
  144. </view>
  145. </view>
  146. </view>
  147. </u-popup>
  148. <view class="from-content">
  149. <button class="tenant-button">
  150. 立即保存
  151. </button>
  152. </view>
  153. </view>
  154. </template>
  155. <script>
  156. export default {
  157. data() {
  158. return {
  159. h: uni.getSystemInfoSync().windowHeight - 87,
  160. mt: uni.getSystemInfoSync().statusBarHeight + 44,
  161. titleHeader: '个人信息',
  162. fileList: [],
  163. JobList: [{
  164. name: '不限'
  165. }, {
  166. name: '高中',
  167. },
  168. {
  169. name: '中专/技校',
  170. },
  171. {
  172. name: '大专',
  173. },
  174. {
  175. name: '本科',
  176. },
  177. {
  178. name: '硕士',
  179. }
  180. ],
  181. dto: {
  182. realName: '黄沙村渔家乐', //昵称
  183. modifyPhone: '18755113256', //手机号
  184. headUrl: '', // 头像
  185. idCode: '', // 证件号
  186. id: ''
  187. },
  188. fishermanId: uni.getStorageSync('merchantId'),
  189. list: {}
  190. }
  191. },
  192. onLoad() {
  193. this.getList()
  194. },
  195. methods: {
  196. // 上传头像
  197. upImage() {
  198. uni.chooseImage({
  199. sourceType: ['album'], //从相册选择
  200. success: chooseImageRes => {
  201. const tempFilePaths = chooseImageRes.tempFilePaths;
  202. uni.uploadFile({
  203. url: 'https://i.ringzle.com/island-cloud-server/oss/file/upload', // 仅为示例,非真实的接口地址
  204. filePath: tempFilePaths[0],
  205. name: 'file',
  206. header: {
  207. token: wx.getStorageSync('access_token')
  208. },
  209. success: res => {
  210. // uploadFile上传成功后,根据和后台的约定msgCode判断接口调用状态
  211. let data = JSON.parse(res.data);
  212. this.dto.headUrl = data.data.url
  213. }
  214. });
  215. },
  216. fail: err => {
  217. this.myToast('图片上传失败', 'none');
  218. }
  219. });
  220. },
  221. getList() {
  222. // this.$api.get('/merchant/merchantFisherman/home?id=' + this.homestayId).then(res => {
  223. // console.log(res.data);
  224. // })
  225. let id = this.fishermanId
  226. this.$api.get(`/merchant/merchantFisherman/home/${id}`).then(res => {
  227. console.log(res.data);
  228. this.list = res.data.data
  229. })
  230. }
  231. }
  232. }
  233. </script>
  234. <style lang="scss" scoped>
  235. .page {
  236. box-sizing: border-box;
  237. // padding: 30rpx;
  238. // padding-top: 150rpx;
  239. }
  240. //标题样式
  241. .tenant-title {
  242. height: 88rpx;
  243. background: #F5F8FA;
  244. padding-left: 30rpx;
  245. text {
  246. line-height: 88rpx;
  247. font-size: 28rpx;
  248. color: #007A69;
  249. }
  250. }
  251. //商家相册样式
  252. .tenant-image {
  253. width: 100%;
  254. display: flex;
  255. flex-wrap: wrap;
  256. justify-content: space-around;
  257. >view {
  258. width: 47%;
  259. text-align: center;
  260. image {
  261. width: 100%;
  262. height: 212rpx;
  263. background: #F6F8F9;
  264. }
  265. view {
  266. margin: 15rpx 0 45rpx 0;
  267. }
  268. }
  269. }
  270. //保存样式
  271. .tenant-button {
  272. background: #007A69;
  273. border-radius: 40rpx;
  274. font-weight: bold;
  275. font-size: 28rpx;
  276. color: #FFFFFF;
  277. }
  278. .from-content {
  279. padding: 30rpx;
  280. .title {
  281. margin: 40rpx 0 36rpx;
  282. font-size: 30rpx;
  283. font-weight: Regular;
  284. color: #111111;
  285. }
  286. .one-image {
  287. width: 100%;
  288. display: flex;
  289. justify-content: space-between;
  290. .image {
  291. width: 124rpx;
  292. height: 124rpx;
  293. border-radius: 100rpx;
  294. image {
  295. width: 100%;
  296. height: 100%;
  297. border-radius: 100rpx;
  298. }
  299. }
  300. .user {
  301. margin-top: 24rpx;
  302. font-size: 30rpx;
  303. color: #111;
  304. font-weight: Regular;
  305. }
  306. }
  307. .one-realName {
  308. width: 100%;
  309. display: flex;
  310. align-items: center;
  311. height: 120rpx;
  312. line-height: 120rpx;
  313. border-bottom: 1rpx solid #EFEFEF;
  314. .realName {
  315. width: 188rpx;
  316. height: 120rpx;
  317. font-size: 30rpx;
  318. color: #333333;
  319. font-weight: Regular;
  320. }
  321. .right {
  322. text-align: right;
  323. width: 100%;
  324. font-size: 30rpx;
  325. color: #666666;
  326. font-weight: Regular;
  327. // display: flex;
  328. // justify-content: space-between;
  329. }
  330. }
  331. .one-mobile {
  332. display: flex;
  333. width: 100%;
  334. align-items: center;
  335. height: 120rpx;
  336. line-height: 120rpx;
  337. border-bottom: 1rpx solid #EFEFEF;
  338. .right {
  339. width: 100%;
  340. text-align: right;
  341. font-size: 30rpx;
  342. color: #666666;
  343. font-weight: Regular;
  344. }
  345. .mobile {
  346. width: 380rpx !important;
  347. height: 120rpx;
  348. font-size: 30rpx;
  349. color: #333333;
  350. font-weight: Regular;
  351. }
  352. .replacement {
  353. border-radius: 50rpx;
  354. width: 80rpx;
  355. height: 48rpx;
  356. line-height: 48rpx;
  357. border: 1rpx solid #025EA7;
  358. color: #025EA7;
  359. font-weight: Regular;
  360. font-size: 24rpx;
  361. text-align: center;
  362. }
  363. }
  364. .one {
  365. height: 120rpx;
  366. line-height: 120rpx;
  367. display: flex;
  368. border-bottom: 1rpx solid #EFEFEF;
  369. justify-content: space-between;
  370. align-items: center;
  371. font-size: 30rpx;
  372. color: #333333;
  373. font-weight: Regular;
  374. }
  375. }
  376. .btn {
  377. margin: 120rpx auto;
  378. width: 650rpx;
  379. height: 88rpx;
  380. display: flex;
  381. background-color: #01B9F9;
  382. line-height: 88rpx;
  383. border-radius: 50rpx;
  384. .btn-btn {
  385. margin: 0 auto;
  386. font-size: 32rpx;
  387. color: #FFFFFF;
  388. font-weight: Regular;
  389. }
  390. }
  391. </style>