Businesses.vue 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386
  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. picList: [],
  149. objList: {}
  150. }
  151. },
  152. onLoad() {
  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. }
  181. }
  182. </script>
  183. <style lang="scss" scoped>
  184. .page {
  185. box-sizing: border-box;
  186. // padding: 30rpx;
  187. // padding-top: 150rpx;
  188. }
  189. //标题样式
  190. .tenant-title {
  191. height: 88rpx;
  192. background: #F5F8FA;
  193. padding-left: 30rpx;
  194. text {
  195. line-height: 88rpx;
  196. font-size: 28rpx;
  197. color: #188FFE;
  198. }
  199. }
  200. //商家相册样式
  201. .tenant-image{
  202. width: 100%;
  203. display: flex;
  204. flex-wrap: wrap;
  205. justify-content: space-around;
  206. >view{
  207. width: 47%;
  208. text-align: center;
  209. image{
  210. width: 100%;
  211. height: 212rpx;
  212. background: #F6F8F9;
  213. }
  214. view{
  215. margin: 15rpx 0 45rpx 0;
  216. }
  217. }
  218. }
  219. //保存样式
  220. .tenant-button{
  221. background: #007A69;
  222. border-radius: 40rpx;
  223. font-weight: bold;
  224. font-size: 28rpx;
  225. color: #FFFFFF;
  226. }
  227. .from-content {
  228. padding: 0 30rpx;
  229. .title {
  230. margin: 40rpx 0 36rpx;
  231. font-size: 30rpx;
  232. font-weight: Regular;
  233. color: #111111;
  234. }
  235. .one-image {
  236. width: 100%;
  237. display: flex;
  238. justify-content: space-between;
  239. .image {
  240. width: 124rpx;
  241. height: 124rpx;
  242. border-radius: 100rpx;
  243. image {
  244. width: 100%;
  245. height: 100%;
  246. border-radius: 100rpx;
  247. }
  248. }
  249. .user {
  250. margin-top: 24rpx;
  251. font-size: 30rpx;
  252. color: #111;
  253. font-weight: Regular;
  254. }
  255. }
  256. .one-realName {
  257. width: 100%;
  258. display: flex;
  259. align-items: center;
  260. height: 120rpx;
  261. line-height: 120rpx;
  262. border-bottom: 1rpx solid #EFEFEF;
  263. .realName {
  264. width: 188rpx;
  265. height: 120rpx;
  266. font-size: 30rpx;
  267. color: #333333;
  268. font-weight: Regular;
  269. }
  270. .right {
  271. text-align: right;
  272. width: 100%;
  273. font-size: 30rpx;
  274. color: #666666;
  275. font-weight: Regular;
  276. // display: flex;
  277. // justify-content: space-between;
  278. }
  279. }
  280. .one-mobile {
  281. display: flex;
  282. width: 100%;
  283. align-items: center;
  284. height: 120rpx;
  285. line-height: 120rpx;
  286. border-bottom: 1rpx solid #EFEFEF;
  287. .right {
  288. width: 100%;
  289. text-align: right;
  290. font-size: 30rpx;
  291. color: #666666;
  292. font-weight: Regular;
  293. }
  294. .mobile {
  295. width: 300rpx;
  296. height: 120rpx;
  297. font-size: 30rpx;
  298. color: #333333;
  299. font-weight: Regular;
  300. }
  301. .replacement {
  302. border-radius: 50rpx;
  303. width: 80rpx;
  304. height: 48rpx;
  305. line-height: 48rpx;
  306. border: 1rpx solid #025EA7;
  307. color: #025EA7;
  308. font-weight: Regular;
  309. font-size: 24rpx;
  310. text-align: center;
  311. }
  312. }
  313. .one {
  314. height: 120rpx;
  315. line-height: 120rpx;
  316. display: flex;
  317. border-bottom: 1rpx solid #EFEFEF;
  318. justify-content: space-between;
  319. align-items: center;
  320. font-size: 30rpx;
  321. color: #333333;
  322. font-weight: Regular;
  323. }
  324. }
  325. .btn {
  326. margin: 120rpx auto;
  327. width: 650rpx;
  328. height: 88rpx;
  329. display: flex;
  330. background-color: #01B9F9;
  331. line-height: 88rpx;
  332. border-radius: 50rpx;
  333. .btn-btn {
  334. margin: 0 auto;
  335. font-size: 32rpx;
  336. color: #FFFFFF;
  337. font-weight: Regular;
  338. }
  339. }
  340. </style>