Businesses.vue 7.4 KB

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