Businesses.vue 7.5 KB

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