bindinfo.vue 38 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576
  1. <template>
  2. <view style="position: relative;">
  3. <!-- 胶囊 -->
  4. <mvBar :mysNavConfig="mysNavConfig"></mvBar>
  5. <view :style="{marginTop:navH}"></view>
  6. <view class="home">
  7. <view style="margin: 0 20rpx;">
  8. <uni-forms :value="formData" ref="form" :rules="rules" validate-trigger="bind"
  9. err-show-type="undertext">
  10. <!-- <view class="title">
  11. <p>个人资料</p>
  12. </view> -->
  13. <!-- <uni-forms-item name="age" label="年龄区间">
  14. <picker @change="bindPickerChange" :value="index" :range="array"
  15. range-key="age_bracket_discribe">
  16. <view>{{ Xage }}</view>
  17. </picker>
  18. </uni-forms-item>
  19. <uni-forms-item name="skintype" label="国籍">
  20. <picker @change="bindPickerChange1" :value="index1" :range="array1" range-key="name">
  21. <view>{{ array1[index1].name }}</view>
  22. </picker>
  23. </uni-forms-item>
  24. <uni-forms-item name="vregion" label="探店地区">
  25. <picker class="picker" mode="multiSelector" :range="region" range-key="name"
  26. :value="regionIndex" @change="pickerChange" @columnchange="pickerColumnchange">
  27. <view class="pbox" :class="{'pbox_hover':regionStr != '请选择省市区'}">
  28. <view>{{regionStr}}</view>
  29. <text class="iconfont icon-you"></text>
  30. </view>
  31. </picker>
  32. </uni-forms-item>
  33. <uni-forms-item name="phone" required label="联系电话">
  34. <uni-easyinput type="number" maxlength="11" :inputBorder="true" v-model="formData.phone"
  35. placeholder="请输入联系电话">
  36. </uni-easyinput>
  37. </uni-forms-item> -->
  38. <view class="line"></view>
  39. <view class="but2">
  40. <view class="title" >
  41. <p>收货地址:</p>
  42. </view>
  43. <!-- <button type="default" class="btn3" @click="chooseAddr()">
  44. <image class="weixinlogo" :src="weixinimage">
  45. </image>
  46. <p class="auto-text">
  47. 自动获取</p>
  48. </button> -->
  49. <button class="but3" @click="chooseAddr()">
  50. <image class="weixinlogo" :src="weixinimage">
  51. 自动获取
  52. </button>
  53. <view style="display: flex;margin-top: 3%;">
  54. <p class='ipon' style="padding-right: 200rpx;color:#707070">{{formData.name}}</p>
  55. <p class='ipon' style="padding-right: 200rpx;color:#707070">{{formData.number}}</p>
  56. <!-- <text>{{formData.detailregion}}</text> -->
  57. </view>
  58. <view>
  59. <p class='ipon' style="color:#707070">{{formData.detailregion}}</p>
  60. </view>
  61. </view>
  62. <!-- <view class="setdeault">
  63. <view class="setdeault-text">设为默认收货地址</view>
  64. <switch style='zoom:.8;' @change="setDefault" />
  65. </view>
  66. -->
  67. <!-- <uni-forms-item name="name" required label="收件人">
  68. <uni-easyinput type="text" :inputBorder="true" v-model="formData.name" placeholder="请输入收件人">
  69. </uni-easyinput>
  70. </uni-forms-item>
  71. <uni-forms-item name="tel" required label="联系电话">
  72. <uni-easyinput type="number" maxlength="11" :inputBorder="true" v-model="formData.tel"
  73. placeholder="请输入联系电话">
  74. </uni-easyinput>
  75. </uni-forms-item>
  76. <uni-forms-item name="fregion" required label="所在地区">
  77. <picker class="picker" mode="multiSelector" :range="region" range-key="name"
  78. :value="regionIndex1" @change="pickerChange1" @columnchange="pickerColumnchange1">
  79. <view class="pbox" :class="{'pbox_hover':regionStr1 != '请选择省市区'}">
  80. <view>{{regionStr1}}</view>
  81. <text class="iconfont icon-you"></text>
  82. </view>
  83. </picker>
  84. </uni-forms-item>
  85. <uni-forms-item name="detailregion" required label="详细地址">
  86. <uni-easyinput type="text" :inputBorder="true" v-model="formData.detailregion"
  87. placeholder="请输入详细地址(省/市/县/镇/)">
  88. </uni-easyinput>
  89. </uni-forms-item> -->
  90. <view class="line"></view>
  91. <view class="title">
  92. <p>{{platform.platform_name}}账号</p>
  93. </view>
  94. <uni-forms-item name="nickname" required label="昵称">
  95. <uni-easyinput type="text" v-model="formData.platform_nickname" style="width:300rpx"
  96. placeholder="请填写账号昵称">
  97. </uni-easyinput>
  98. </uni-forms-item>
  99. <uni-forms-item name="numberfans" required label="粉丝数">
  100. <view class="number-inupt">
  101. <uni-easyinput type="number" v-model="fansCount" placeholder="请填写粉丝数量"
  102. v-if="fansCountInfo === 1" style="width:300rpx" @input="onInput1">
  103. </uni-easyinput>
  104. <uni-easyinput type="digit" v-model="fansCount" style="width:300rpx" placeholder="请填写粉丝数量"
  105. v-else @input="onInput">
  106. </uni-easyinput>
  107. <picker @change="bindPickerChange2" :value="index3" :range="fansRange" range-key="label"
  108. style="z-index: 999;background-color: #fcdf41;padding: 0 10rpx;border-radius: 5rpx;">
  109. <view>{{ fansLabel }}</view>
  110. </picker>
  111. </view>
  112. <!-- <view style="font-size: 24rpx;padding-left: 10px;" @click="hasClicked = true" v-else>
  113. <p>点选数字单位</p>
  114. </view> -->
  115. </uni-forms-item>
  116. <uni-forms-item name="home_link" required label=" " label-width='10'>
  117. <uni-easyinput class="home-link" type="text" v-model="formData.home_page_url"
  118. style="width:650rpx" placeholder="请填写个人主页链接">
  119. </uni-easyinput>
  120. </uni-forms-item>
  121. <view style="margin-top: 40rpx;">
  122. <uni-forms-item name="home_img" required label="主页截图">
  123. <htz-image-upload :max="1" mediaType="image" name="file" :chooseNum="1" v-model="imageData"
  124. @chooseSuccess="ceshiChooseSuccess">
  125. </htz-image-upload>
  126. </uni-forms-item>
  127. </view>
  128. </uni-forms>
  129. </view>
  130. </view>
  131. <button class="btn1" @click="submitForm('form')">保存</button>
  132. </view>
  133. </template>
  134. <script>
  135. import region from '@/components/pca-code.json';
  136. import mvBar from "@/components/mys_navBar/mysNavBar";
  137. import htzImageUpload from '@/components/htz-image-upload/htz-image-upload.vue';
  138. import getPolicyEncode from '@/components/obs/getPolicy.js';
  139. import getSignature from '@/components/obs/GetSignature.js';
  140. export default {
  141. components: {
  142. mvBar,
  143. htzImageUpload,
  144. },
  145. data() {
  146. return {
  147. weixinimage: "../../static/img/icon-weixin.png",
  148. navH: getApp().globalData.navHeight,
  149. hasClicked: false,
  150. address: [],
  151. accountId: '',
  152. platform: {
  153. platform_id: '',
  154. platform_name: '',
  155. platform_icon: '',
  156. },
  157. isBind: true,
  158. imageData: [],
  159. ismodify: '',
  160. // 原数组
  161. oldRegion: region,
  162. // 处理后的数组
  163. region: [
  164. [],
  165. [],
  166. []
  167. ],
  168. // 选择省市区的下标Index 传则默认选中传递的
  169. regionIndex: [0, 0, 0],
  170. regionIndex1: [0, 0, 0],
  171. // 省市区字符串
  172. regionStr: '请选择省市区',
  173. regionStr1: '请选择省市区',
  174. formData: {
  175. age: '',
  176. nationality: '',
  177. phone: '',
  178. visitStoreRegion: '',
  179. name: '',
  180. tel: '',
  181. detailregion: '',
  182. fregion: '',
  183. setdefault: false,
  184. platform_nickname: '',
  185. fans_count: '',
  186. home_page_url: '',
  187. },
  188. index3: 0,
  189. fansLabel: "选择单位",
  190. fansCount: null,
  191. fansCountInfo: 1,
  192. fansRange: [{
  193. value: 1,
  194. label: '个'
  195. },
  196. {
  197. value: 10000,
  198. label: '万'
  199. },
  200. {
  201. value: 100000000,
  202. label: '亿'
  203. }
  204. ],
  205. index: 0,
  206. index1: 0,
  207. Xage: '请选择',
  208. Xskintype: '请选择',
  209. array: [{
  210. age_bracket_discribe: '请选择',
  211. age_aid: 0
  212. }, {
  213. age_bracket_discribe: '0~18',
  214. age_aid: 1
  215. }, {
  216. age_bracket_discribe: '18~25',
  217. age_aid: 2
  218. }, {
  219. age_bracket_discribe: '26~30',
  220. age_aid: 3
  221. }, {
  222. age_bracket_discribe: '30~40',
  223. age_aid: 4
  224. }, {
  225. age_bracket_discribe: '40+',
  226. age_aid: 5
  227. }],
  228. array1: [{
  229. name: '请选择',
  230. id: 0
  231. }, {
  232. name: '中国',
  233. id: 1
  234. }, {
  235. name: '外国',
  236. id: 2
  237. }],
  238. data: {},
  239. show: false,
  240. mysNavConfig: {
  241. /* 开启单页显示首页图标 */
  242. isHome: true,
  243. /* 固定导航 */
  244. navFixed: true,
  245. /* 标题 (屏幕中心居中 两边图标中心居中使用slot center1) */
  246. navTitle: {
  247. text: "个人信息",
  248. color: "",
  249. fontSize: "32rpx", // px upx rpx
  250. fontWeight: "normal", // 100 - 700
  251. },
  252. btnType: "type2",
  253. onLeftClick: '',
  254. /* type2 按钮 */
  255. type2Config: {
  256. // 左图标
  257. leftPath: "/static/img/png2.png",
  258. // 右图标
  259. rightPath: "/static/img/png4.png",
  260. // 圆角
  261. radius: "40rpx",
  262. },
  263. },
  264. rules: {
  265. home_img: {
  266. rules: [{
  267. required: true,
  268. errorMessage: '请上传主页截图'
  269. }, ]
  270. },
  271. home_link: {
  272. rules: [{
  273. required: true,
  274. errorMessage: '请输入主页链接'
  275. }, ]
  276. },
  277. numberfans: {
  278. rules: [{
  279. required: true,
  280. errorMessage: '请输入粉丝量'
  281. }, ]
  282. },
  283. nickname: {
  284. rules: [{
  285. required: true,
  286. errorMessage: '请输入账号昵称'
  287. }, ]
  288. },
  289. detailregion: {
  290. rules: [{
  291. required: true,
  292. errorMessage: '请输入详细地址'
  293. }, ]
  294. },
  295. fregion: {
  296. rules: [{
  297. required: true,
  298. errorMessage: '请输入收货地址'
  299. }, ]
  300. },
  301. tel: {
  302. rules: [{
  303. required: true,
  304. errorMessage: '请输入联系方式'
  305. }, ]
  306. },
  307. name: {
  308. rules: [{
  309. required: true,
  310. errorMessage: '请输入姓名'
  311. }, ]
  312. },
  313. phone: {
  314. rules: [{
  315. required: true,
  316. errorMessage: '请输入联系方式'
  317. }, ]
  318. },
  319. vregion: {
  320. rules: [{
  321. required: false,
  322. errorMessage: '请输入探店地区'
  323. }, ]
  324. },
  325. skintype: {
  326. rules: [{
  327. required: false,
  328. errorMessage: '请输入国籍'
  329. }, ]
  330. },
  331. age: {
  332. rules: [{
  333. required: false,
  334. errorMessage: '请输入年龄'
  335. }, ]
  336. },
  337. },
  338. }
  339. },
  340. onReady() {},
  341. onShow() {},
  342. onLoad(options) {
  343. this.platform.platform_id = parseInt(options.platform_id)
  344. if (options.account_id) {
  345. this.accountId = parseInt(options.account_id)
  346. this.isBind = false
  347. }
  348. this.initRegion()
  349. this.getDefaultAddress()
  350. this.getlist()
  351. },
  352. methods: {
  353. chooseAddr() {
  354. const that = this
  355. uni.chooseAddress({
  356. success(res) {
  357. that.formData.name = res.userName
  358. that.formData.number=res.telNumber
  359. that.formData.detailregion=res.provinceName + res.cityName + res.countyName + res.detailInfo
  360. console.log(res)
  361. console.log(res.userName)
  362. console.log(res.postalCode)
  363. console.log(res.provinceName)
  364. console.log(res.cityName)
  365. console.log(res.countyName)
  366. console.log(res.detailInfo)
  367. console.log(res.nationalCode)
  368. console.log(res.telNumber)
  369. that.$https.post('/youngee/c/t/p/add-talent-address', {
  370. region_code: res.nationalCode,
  371. detail_addr: res.provinceName + res.cityName + res.countyName + res.detailInfo,
  372. phone_number: res.telNumber,
  373. receiver_name: res.userName,
  374. mail_code: res.postalCode,
  375. default_tag: 1
  376. })
  377. .then(res => {
  378. console.log(res)
  379. that.getlist()
  380. })
  381. },
  382. fail: (res) => {
  383. console.log(res)
  384. }
  385. })
  386. },
  387. initRegion() {
  388. // 声明城市数组
  389. let cityArr = [];
  390. let countyArr = [];
  391. // 设置下标
  392. this.regionIndex = [0, 0, 0];
  393. // 改变城市列表
  394. this.region[1] = this.oldRegion[0].children.map(item => {
  395. cityArr.push({
  396. name: item.name,
  397. code: item.code
  398. });
  399. })
  400. this.$set(this.region, 1, cityArr);
  401. // 改变县区列表
  402. this.oldRegion[0].children[0].children.map(item => {
  403. countyArr.push({
  404. name: item.name,
  405. code: item.code
  406. });
  407. })
  408. this.$set(this.region, 2, countyArr);
  409. },
  410. // 信息表
  411. getlist() {
  412. this.$https.get('/youngee/c/g/get-info-tables')
  413. .then(res => {
  414. this.array = res.data.data.AgeBracket
  415. let list = res.data.data.ThirdPlatform
  416. for (var i = 0; i < list.length; ++i) {
  417. if (list[i].id == this.platform.platform_id) {
  418. this.platform.platform_icon = list[i].platform_icon
  419. this.platform.platform_name = list[i].platform_name
  420. }
  421. }
  422. this.getlist1()
  423. this.getaccount()
  424. })
  425. },
  426. // 达人详细信息表
  427. getlist1() {
  428. this.$https.get('/youngee/c/t/g/get-talent-info')
  429. .then(res => {
  430. if (res.data.data.talent_wx_number !== null) {
  431. if (res.data.data.talent_age_bracket !== 0) {
  432. for (var i = 0; i < this.array.length; i++) {
  433. if (this.array[i].age_aid == res.data.data.talent_age_bracket) {
  434. this.Xage = this.array[i].age_bracket_discribe
  435. }
  436. this.formData.age = res.data.data.talent_age_bracket
  437. }
  438. }
  439. if (res.data.data.talent_nationality !== 0) {
  440. this.index1 = res.data.data.talent_nationality
  441. this.formData.nationality = res.data.data.talent_nationality
  442. }
  443. if (res.data.data.visit_store_region !== 0) {
  444. let a = res.data.data.visit_store_region.toString().slice(0, 2)
  445. let b = res.data.data.visit_store_region.toString().slice(0, 4)
  446. let c = 0
  447. for (var i = 0; i < region.length; i++) {
  448. if (region[i].code == a) {
  449. a = region[i].name
  450. for (var j = 0; j < region[i].children.length; j++) {
  451. if (region[i].children[j].code == b) {
  452. b = region[i].children[j].name
  453. for (var o = 0; o < region[i].children[j].children
  454. .length; o++) {
  455. if (region[i].children[j].children[o].code == res.data.data
  456. .visit_store_region) {
  457. c = region[i].children[j].children[o].name
  458. }
  459. }
  460. }
  461. }
  462. }
  463. }
  464. this.regionStr = a + ' ' + b + ' ' + c
  465. this.formData.visitStoreRegion = res.data.data.visit_store_region
  466. }
  467. this.formData.phone = res.data.data.is_bind_info === 1 ? res.data.data
  468. .talent_phone_number : this.formData.phone
  469. }
  470. })
  471. },
  472. getaccount() {
  473. if (!this.isBind) {
  474. this.$https.get('/youngee/c/t/g/get-talent-account')
  475. .then(res => {
  476. if (res.data.code !== -3) {
  477. this.account = res.data.data
  478. for (var i = 0; i < this.account.length; i++) {
  479. if (this.platform.platform_id == this.account[i].platform_id) {
  480. this.hasClicked = true
  481. this.formData.platform_nickname = this.account[i].platform_nickname
  482. this.formData.fans_count = this.account[i].fans_count
  483. this.formData.home_page_url = this.account[i].home_page_url
  484. this.imageData.push(this.account[i].home_page_capture_url);
  485. if (this.formData.fans_count >= 100000000) {
  486. this.index3 = 2
  487. this.fansCountInfo = this.fansRange[this.index3].value;
  488. this.fansLabel = this.fansRange[this.index3].label;
  489. this.fansCount = (this.formData.fans_count / 100000000).toFixed(1)
  490. } else if (this.formData.fans_count >= 10000) {
  491. this.index3 = 1
  492. this.fansCountInfo = this.fansRange[this.index3].value;
  493. this.fansLabel = this.fansRange[this.index3].label;
  494. this.fansCount = (this.formData.fans_count / 10000).toFixed(1)
  495. } else {
  496. this.index3 = 0
  497. this.fansCountInfo = this.fansRange[this.index3].value;
  498. this.fansLabel = this.fansRange[this.index3].label;
  499. this.fansCount = this.formData.fans_count
  500. }
  501. }
  502. }
  503. }
  504. })
  505. }
  506. },
  507. setDefault(e) {
  508. if (e.detail.value)
  509. this.formData.setdefault = 1
  510. else
  511. this.formData.setdefault = 0
  512. },
  513. getDefaultAddress() {
  514. this.$https.get('/youngee/c/t/g/get-talent-default-address').then(res => {
  515. this.formData.name = res.data.data.receiver_name
  516. this.formData.tel = res.data.data.phone_number
  517. this.formData.detailregion = res.data.data.detail_addr
  518. this.formData.fregion = res.data.data.region_code
  519. let a = res.data.data.region_code.toString().slice(0, 2)
  520. let b = res.data.data.region_code.toString().slice(0, 4)
  521. let c = 0
  522. for (var i = 0; i < region.length; i++) {
  523. if (region[i].code == a) {
  524. a = region[i].name
  525. for (var j = 0; j < region[i].children.length; j++) {
  526. if (region[i].children[j].code == b) {
  527. b = region[i].children[j].name
  528. for (var o = 0; o < region[i].children[j].children.length; o++) {
  529. if (region[i].children[j].children[o].code == res.data.data.region_code) {
  530. c = region[i].children[j].children[o].name
  531. }
  532. }
  533. }
  534. }
  535. }
  536. }
  537. this.regionStr1 = a + ' ' + b + ' ' + c
  538. })
  539. },
  540. /**
  541. * 手动提交
  542. * @param {Object} form
  543. */
  544. submitForm(form) {
  545. this.$refs.form.validate().then(res => {
  546. const iphoneReg1 = /^1[0-9]{10}$/
  547. const urlReg =
  548. /(ht|f)tp(s?)\:\/\/[0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*(:(0-9)*)*(\/?)([a-zA-Z0-9\-\.\?\,\'\/\\\+&amp;%$#_]*)?/
  549. if (!iphoneReg1.test(this.formData.phone)) {
  550. uni.showToast({
  551. title: '请填写正确的联系方式',
  552. icon: 'none'
  553. })
  554. return
  555. }
  556. if (!iphoneReg1.test(this.formData.tel)) {
  557. uni.showToast({
  558. title: '请填写正确的电话号码',
  559. icon: 'none'
  560. })
  561. return
  562. }
  563. if (!urlReg.test(this.formData.home_page_url)) {
  564. uni.showToast({
  565. title: '主页链接格式不正确',
  566. icon: 'none'
  567. })
  568. return
  569. }
  570. if (this.fansCount == null || this.fansCount * this.fansCountInfo <= 0 || this.fansLabel == "选择单位") {
  571. uni.showToast({
  572. title: '请填写粉丝量数量',
  573. icon: 'none'
  574. })
  575. return
  576. }
  577. this.formData.fans_count = this.fansCount * this.fansCountInfo
  578. if (this.imageData.length === 0) {
  579. uni.showToast({
  580. title: '请上传主页截图',
  581. icon: 'none'
  582. })
  583. return
  584. }
  585. // uni.showToast({
  586. // title: '提交成功'
  587. // })
  588. let nickName = uni.getStorageSync('nickName');
  589. let avatarUrl = uni.getStorageSync('avatarUrl');
  590. this.$https.post('/youngee/c/t/p/talent-info', {
  591. talent_age_bracket: this.formData.age,
  592. talent_nationality: this.formData.nationality,
  593. visit_store_region: this.formData.visitStoreRegion,
  594. talent_phone_number: this.formData.phone,
  595. talent_wx_nickname: nickName,
  596. avatar: avatarUrl,
  597. })
  598. .then(res => {})
  599. this.$https.post('/youngee/c/t/p/add-talent-address', {
  600. region_code: this.formData.fregion,
  601. detail_addr: this.formData.detailregion,
  602. phone_number: this.formData.tel,
  603. receiver_name: this.formData.name,
  604. default_tag: this.formData.setdefault
  605. })
  606. .then(res => {})
  607. this.formData.home_page_capture_url = this.imageData[0]
  608. if (this.isBind) {
  609. this.$https.post('/youngee/c/t/p/add-talent-account', {
  610. platform_id: this.platform.platform_id,
  611. platform_nickname: this.formData.platform_nickname,
  612. home_page_url: this.formData.home_page_url,
  613. fans_count: this.formData.fans_count,
  614. home_page_capture_url: this.formData
  615. .home_page_capture_url,
  616. })
  617. .then(res => {})
  618. } else {
  619. this.$https.post('/youngee/c/t/p/update-talent-account', {
  620. account_id: this.accountId,
  621. platform_id: this.platform.platform_id,
  622. platform_nickname: this.formData.platform_nickname,
  623. home_page_url: this.formData.home_page_url,
  624. fans_count: this.formData.fans_count,
  625. home_page_capture_url: this.formData
  626. .home_page_capture_url,
  627. })
  628. .then(res => {})
  629. }
  630. uni.showToast({
  631. title: '修改成功'
  632. })
  633. uni.navigateBack()
  634. }).catch(err => {
  635. uni.showToast({
  636. title: '请填写所有信息',
  637. icon: 'none'
  638. })
  639. })
  640. },
  641. ceshiChooseSuccess(tempFilePaths, e) { //选择图片返回
  642. if (e == 0) {
  643. this.store = 'talent_upload/' + this.guid() + '.png'
  644. } else if (e == 1) {
  645. this.store = 'talent_upload/' + this.guid() + '.mp4'
  646. }
  647. /****************
  648. 以下代码是自定义上传逻辑,仅供参考
  649. ***************/
  650. this.imgUpload(tempFilePaths);
  651. /*******************************/
  652. },
  653. imgUpload(tempFilePaths) {
  654. let that = this
  655. let config = {
  656. AccessKeyId: 'IVW21DTGIIUBBAGXKK0Y', //AK
  657. SecretKey: 'Y01nEQNcLOATMw7uJwrk3yOdQZ2fqLhSnXcOKVDE', //SK
  658. EndPoint: 'https://horastar.obs.cn-east-3.myhuaweicloud.com', //上传文件的路径
  659. };
  660. let fileName = this.store; //指定上传到OBS桶中的对象名
  661. // let fileName = "talent_upload/icon-arrow-right.png"
  662. let OBSPolicy = { //设定policy内容
  663. "expiration": "2089-12-31T12:00:00.000Z",
  664. "conditions": [{
  665. "bucket": "horastar"
  666. }, //Bucket name
  667. // {"bucket": "goin"},
  668. {
  669. 'key': fileName
  670. }
  671. ]
  672. }
  673. let policyEncoded = getPolicyEncode(OBSPolicy); //计算policy编码值
  674. let signature = getSignature(policyEncoded, config.SecretKey); //计算signature
  675. uni.uploadFile({
  676. //url: config.EndPoint,
  677. url: config.EndPoint,
  678. filePath: tempFilePaths[0],
  679. name: 'file',
  680. formData: {
  681. 'AccessKeyID': config.AccessKeyId,
  682. 'policy': policyEncoded,
  683. 'signature': signature,
  684. 'key': fileName,
  685. },
  686. success: function(res) {
  687. if (res.statusCode == '204') {
  688. that.imageData.push(config.EndPoint + '/' + fileName);
  689. let obs_url = config.EndPoint + '/' + fileName; //用你自己的 bucket 名替换星号
  690. that.formData.home_img = obs_url
  691. uni.showToast({
  692. title: '上传成功',
  693. icon: '成功'
  694. });
  695. } else {
  696. uni.showToast({
  697. title: '上传失败',
  698. icon: '失败'
  699. });
  700. }
  701. },
  702. fail: function(e) {}
  703. })
  704. },
  705. guid() {
  706. return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {
  707. var r = Math.random() * 16 | 0,
  708. v = c == 'x' ? r : (r & 0x3 | 0x8);
  709. return v.toString(16);
  710. });
  711. },
  712. // 年龄选择的
  713. bindPickerChange: function(e) {
  714. this.index = e.detail.value;
  715. this.formData.age = this.array[this.index].age_aid
  716. this.Xage = this.array[this.index].age_bracket_discribe
  717. },
  718. //国籍选择
  719. bindPickerChange1: function(e) {
  720. this.index1 = e.detail.value;
  721. this.formData.nationality = this.array1[this.index1].id
  722. },
  723. //城市选择
  724. pickerChange(e) {
  725. this.regionIndex = e.detail.value;
  726. this.regionStr = this.region[0][this.regionIndex[0]].name + ' ' + this.region[1][this.regionIndex[
  727. 1]]
  728. .name + ' ' +
  729. this.region[2][this.regionIndex[2]].name;
  730. // 组件传值
  731. this.$emit('region', [this.region[0][this.regionIndex[0]].code, this.region[1][this.regionIndex[1]]
  732. .code,
  733. this.region[
  734. 2][this.regionIndex[2]].code
  735. ]);
  736. this.formData.visitStoreRegion = this.region[2][this.regionIndex[2]].code;
  737. },
  738. pickerColumnchange(e) {
  739. if (e.detail.column === 0) {
  740. // 声明城市数组
  741. let cityArr = [];
  742. let countyArr = [];
  743. // 设置下标
  744. this.regionIndex = [e.detail.value, 0, 0];
  745. // 改变城市列表
  746. this.region[1] = this.oldRegion[e.detail.value].children.map(item => {
  747. cityArr.push({
  748. name: item.name,
  749. code: item.code
  750. });
  751. })
  752. this.$set(this.region, 1, cityArr);
  753. // 改变县区列表
  754. this.oldRegion[e.detail.value].children[0].children.map(item => {
  755. countyArr.push({
  756. name: item.name,
  757. code: item.code
  758. });
  759. })
  760. this.$set(this.region, 2, countyArr);
  761. }
  762. if (e.detail.column === 1) {
  763. this.regionIndex[1] = e.detail.value;
  764. this.regionIndex[2] = 0;
  765. let countyArr = [];
  766. this.oldRegion[this.regionIndex[0]].children[this.regionIndex[1]].children.map(item => {
  767. countyArr.push({
  768. name: item.name,
  769. code: item.code
  770. });
  771. })
  772. this.$set(this.region, 2, countyArr);
  773. }
  774. if (e.detail.column === 2) {
  775. this.regionIndex[2] = e.detail.value;
  776. }
  777. },
  778. //城市选择
  779. pickerChange(e) {
  780. this.regionIndex = e.detail.value;
  781. this.regionStr = this.region[0][this.regionIndex[0]].name + ' ' + this.region[1][this.regionIndex[
  782. 1]]
  783. .name + ' ' +
  784. this.region[2][this.regionIndex[2]].name;
  785. // 组件传值
  786. this.$emit('region', [this.region[0][this.regionIndex[0]].code, this.region[1][this.regionIndex[1]]
  787. .code,
  788. this.region[
  789. 2][this.regionIndex[2]].code
  790. ]);
  791. this.formData.visitStoreRegion = this.region[2][this.regionIndex[2]].code;
  792. },
  793. pickerColumnchange(e) {
  794. if (e.detail.column === 0) {
  795. // 声明城市数组
  796. let cityArr = [];
  797. let countyArr = [];
  798. // 设置下标
  799. this.regionIndex = [e.detail.value, 0, 0];
  800. // 改变城市列表
  801. this.region[1] = this.oldRegion[e.detail.value].children.map(item => {
  802. cityArr.push({
  803. name: item.name,
  804. code: item.code
  805. });
  806. })
  807. this.$set(this.region, 1, cityArr);
  808. // 改变县区列表
  809. this.oldRegion[e.detail.value].children[0].children.map(item => {
  810. countyArr.push({
  811. name: item.name,
  812. code: item.code
  813. });
  814. })
  815. this.$set(this.region, 2, countyArr);
  816. }
  817. if (e.detail.column === 1) {
  818. this.regionIndex[1] = e.detail.value;
  819. this.regionIndex[2] = 0;
  820. let countyArr = [];
  821. this.oldRegion[this.regionIndex[0]].children[this.regionIndex[1]].children.map(item => {
  822. countyArr.push({
  823. name: item.name,
  824. code: item.code
  825. });
  826. })
  827. this.$set(this.region, 2, countyArr);
  828. }
  829. if (e.detail.column === 2) {
  830. this.regionIndex[2] = e.detail.value;
  831. }
  832. },
  833. //城市选择
  834. pickerChange1(e) {
  835. this.regionIndex1 = e.detail.value;
  836. this.regionStr1 = this.region[0][this.regionIndex1[0]].name + ' ' + this.region[1][this.regionIndex1[
  837. 1]]
  838. .name + ' ' +
  839. this.region[2][this.regionIndex1[2]].name;
  840. // 组件传值
  841. this.$emit('region', [this.region[0][this.regionIndex1[0]].code, this.region[1][this.regionIndex1[1]]
  842. .code,
  843. this.region[
  844. 2][this.regionIndex1[2]].code
  845. ]);
  846. this.formData.fregion = this.region[2][this.regionIndex1[2]].code;
  847. },
  848. pickerColumnchange1(e) {
  849. if (e.detail.column === 0) {
  850. // 声明城市数组
  851. let cityArr = [];
  852. let countyArr = [];
  853. // 设置下标
  854. this.regionIndex1 = [e.detail.value, 0, 0];
  855. // 改变城市列表
  856. this.region[1] = this.oldRegion[e.detail.value].children.map(item => {
  857. cityArr.push({
  858. name: item.name,
  859. code: item.code
  860. });
  861. })
  862. this.$set(this.region, 1, cityArr);
  863. // 改变县区列表
  864. this.oldRegion[e.detail.value].children[0].children.map(item => {
  865. countyArr.push({
  866. name: item.name,
  867. code: item.code
  868. });
  869. })
  870. this.$set(this.region, 2, countyArr);
  871. }
  872. if (e.detail.column === 1) {
  873. this.regionIndex1[1] = e.detail.value;
  874. this.regionIndex1[2] = 0;
  875. let countyArr = [];
  876. this.oldRegion[this.regionIndex1[0]].children[this.regionIndex1[1]].children.map(item => {
  877. countyArr.push({
  878. name: item.name,
  879. code: item.code
  880. });
  881. })
  882. this.$set(this.region, 2, countyArr);
  883. }
  884. if (e.detail.column === 2) {
  885. this.regionIndex1[2] = e.detail.value;
  886. }
  887. },
  888. // 粉丝量量级选择
  889. bindPickerChange2: function(e) {
  890. if (this.index3 !== e.detail.value) {
  891. this.fansCount = null
  892. }
  893. this.index3 = e.detail.value;
  894. this.fansLabel = this.fansRange[this.index3].label
  895. this.fansCountInfo = this.fansRange[this.index3].value
  896. },
  897. onInput(e) {
  898. e = (e.match(/^\d*(\.?\d{0,1})/g)[0]) || null
  899. // //重新赋值给input
  900. if (e < 0 || e > 9999.9) {
  901. uni.showToast({
  902. title: '请输入[1,9999.9]区间内的数',
  903. icon: 'none'
  904. })
  905. }
  906. this.$nextTick(() => {
  907. this.fansCount = (e > 0 && e <= 9999.9) ? e : null
  908. })
  909. },
  910. onInput1(e) {
  911. // 验证是否是纯数字
  912. const isNumber = /^\d*$/.test(e)
  913. // 过滤非数字
  914. e = e.replace(/\D/g, '')
  915. if (!isNumber || e < 0 || e > 9999) {
  916. uni.showToast({
  917. title: '请输入[0,9999]区间的整数',
  918. icon: 'none'
  919. })
  920. }
  921. this.$nextTick(() => {
  922. this.fansCount = (e >= 0 && e <= 9999 && e.match(/^\d*/g)[0]) ? e : null
  923. })
  924. }
  925. },
  926. created() {
  927. let provinceArr = [];
  928. let cityArr = [];
  929. this.oldRegion.map((item, index) => {
  930. this.region[0].push({
  931. name: item.name,
  932. code: item.code
  933. });
  934. })
  935. provinceArr.map((item, index) => {
  936. this.region[1].push({
  937. name: item.name,
  938. code: item.code
  939. });
  940. })
  941. cityArr.map((item, index) => {
  942. this.region[2].push({
  943. name: item.name,
  944. code: item.code
  945. });
  946. })
  947. this.regionStr = '请选择省市区';
  948. },
  949. chooseAddr() {
  950. const that = this
  951. uni.chooseAddress({
  952. success(res) {
  953. console.log(res)
  954. console.log(res.userName)
  955. console.log(res.postalCode)
  956. console.log(res.provinceName)
  957. console.log(res.cityName)
  958. console.log(res.countyName)
  959. console.log(res.detailInfo)
  960. console.log(res.nationalCode)
  961. console.log(res.telNumber)
  962. that.$https.post('/youngee/c/t/p/add-talent-address', {
  963. region_code: res.nationalCode,
  964. detail_addr: res.provinceName + res.cityName + res.countyName + res.detailInfo,
  965. phone_number: res.telNumber,
  966. receiver_name: res.userName,
  967. mail_code: res.postalCode,
  968. default_tag: 1
  969. })
  970. .then(res => {
  971. console.log(res)
  972. that.getlist()
  973. })
  974. },
  975. fail: (res) => {
  976. console.log(res)
  977. }
  978. })
  979. }
  980. };
  981. </script>
  982. <style>
  983. picker {
  984. position: relative;
  985. display: block;
  986. cursor: pointer;
  987. padding-left: 20rpx !important;
  988. /* padding-top: 20rpx !important; */
  989. /* color: grey !important; */
  990. }
  991. /deep/.uni-forms-item__inner {
  992. border-bottom: none !important;
  993. margin-bottom: 0 !important;
  994. }
  995. /deep/ .uni-forms-item__content {
  996. display: flex !important;
  997. align-items: center !important;
  998. /* justify-content: space-between; */
  999. }
  1000. </style>
  1001. <style lang="scss" scoped>
  1002. @charset "UTF-8";
  1003. /* 头条小程序组件内不能引入字体 */
  1004. /* #ifdef MP-TOUTIAO */
  1005. @font-face {
  1006. font-family: uniicons;
  1007. font-weight: normal;
  1008. font-style: normal;
  1009. src: url("~@/static/uni.ttf") format("truetype");
  1010. }
  1011. /* #endif */
  1012. /* #ifndef APP-NVUE */
  1013. page {
  1014. display: flex;
  1015. flex-direction: column;
  1016. box-sizing: border-box;
  1017. background-color: #FFFFFF;
  1018. min-height: 100%;
  1019. height: auto;
  1020. }
  1021. view {
  1022. font-size: 14px;
  1023. // line-height: inherit;
  1024. }
  1025. .line {
  1026. width: 96%;
  1027. margin: 10rpx 2%;
  1028. border-bottom: 1rpx solid #bbbbbb;
  1029. }
  1030. .title {
  1031. height: 80rpx;
  1032. display: flex;
  1033. align-items: center;
  1034. }
  1035. .menu {
  1036. position: fixed;
  1037. top: 180rpx;
  1038. background-color: #FFFFFF;
  1039. justify-content: space-around;
  1040. height: 80rpx;
  1041. // height: 5%;
  1042. width: 100%;
  1043. display: flex;
  1044. z-index: 10;
  1045. margin-bottom: 10rpx;
  1046. }
  1047. .menu-item p {
  1048. font-weight: 600;
  1049. &.lor {
  1050. border-bottom: 5rpx solid #F0D232;
  1051. color: #F0D232;
  1052. padding-bottom: 15rpx;
  1053. }
  1054. }
  1055. .but2{
  1056. width: 100%;
  1057. height:260rpx;
  1058. }
  1059. .but3{
  1060. // width: 27%;
  1061. // height:50rpx;
  1062. // display: flex;
  1063. // align-items: center;
  1064. margin-left: 0;
  1065. // background-color: #F0D232;
  1066. // font-size: 30rpx;
  1067. // color: #ffffff;
  1068. background-color: #f2d22d;
  1069. color: #ffffff;
  1070. border-color: #ffffff;
  1071. border-radius: 10rpx;
  1072. font-size: 22rpx;
  1073. line-height: 200%;
  1074. letter-spacing: 10rpx;
  1075. font-weight: 500;
  1076. height: 50rpx;
  1077. width: 225rpx;
  1078. display: flex;
  1079. align-items: center;
  1080. justify-content: center;
  1081. }
  1082. .setdeault {
  1083. display: flex;
  1084. justify-content: space-between;
  1085. }
  1086. .btn1 {
  1087. width: 100%;
  1088. margin-top: 30rpx;
  1089. font-size: 35rpx;
  1090. color: #FFFFFF;
  1091. background-color: #F0D232;
  1092. border: none;
  1093. border-radius: 0;
  1094. }
  1095. .uni-input-border,
  1096. .uni-textarea-border {
  1097. flex: 1;
  1098. font-size: 14px;
  1099. color: #666;
  1100. border: 1px #FFFFFF solid;
  1101. border-radius: 5px;
  1102. /* #ifndef APP-NVUE */
  1103. box-sizing: border-box;
  1104. /* #endif */
  1105. }
  1106. .uni-input-border {
  1107. padding: 0 10px;
  1108. height: 35px;
  1109. }
  1110. .uni-textarea-border {
  1111. padding: 10px;
  1112. height: 80px;
  1113. }
  1114. .label-box {
  1115. margin-right: 10px;
  1116. }
  1117. .transform-scale {
  1118. transform: scale(0.7);
  1119. }
  1120. .butto {
  1121. text-align: center;
  1122. }
  1123. .option {
  1124. padding: 20rpx;
  1125. }
  1126. .uni-margin-wrap {
  1127. width: 690rpx;
  1128. width: 100%;
  1129. ;
  1130. }
  1131. .swiper {
  1132. height: 300rpx;
  1133. }
  1134. .swiper-item {
  1135. display: block;
  1136. height: 300rpx;
  1137. line-height: 300rpx;
  1138. text-align: center;
  1139. }
  1140. .swiper-list {
  1141. margin-top: 40rpx;
  1142. margin-bottom: 0;
  1143. }
  1144. .uni-common-mt {
  1145. margin-top: 60rpx;
  1146. position: relative;
  1147. }
  1148. .info {
  1149. position: absolute;
  1150. right: 20rpx;
  1151. }
  1152. .uni-padding-wrap {
  1153. width: 550rpx;
  1154. padding: 0 100rpx;
  1155. }
  1156. .signup {
  1157. box-shadow: 0rpx 5rpx 40rpx #ccc;
  1158. width: 100%;
  1159. position: fixed;
  1160. bottom: 0rpx;
  1161. display: flex;
  1162. height: 90rpx;
  1163. padding-top: 2%;
  1164. background-color: #FFFFFF;
  1165. justify-content: space-around;
  1166. }
  1167. .signuptext {
  1168. text-align: center;
  1169. margin-top: 2%;
  1170. }
  1171. .signuptext p {
  1172. font-size: 60%;
  1173. color: #333333;
  1174. }
  1175. .signupbut {
  1176. text-align: center;
  1177. margin-top: 2%;
  1178. }
  1179. .auto-text {
  1180. display: inline-block;
  1181. // font-size:32rpx;
  1182. }
  1183. .weixinlogo {
  1184. display: inline-block;
  1185. padding-right: 5rpx;
  1186. width: 35rpx;
  1187. height: 35rpx;
  1188. }
  1189. .but1 {
  1190. width: 120%;
  1191. text-align: center;
  1192. background-color: #FCCF41;
  1193. border-radius: 10rpx;
  1194. color: #464100;
  1195. font-size: 28rpx;
  1196. line-height: 156%;
  1197. font-weight: 500;
  1198. height: 65%;
  1199. }
  1200. /deep/.uni-searchbar__box {
  1201. border-color: #267CFF !important;
  1202. border-width: 2rpx !important;
  1203. }
  1204. /deep/.uni-searchbar__box {
  1205. background-color: #FFFFFF !important;
  1206. }
  1207. /deep/.uni-searchbar__text-placeholder {
  1208. font-size: 30rpx !important;
  1209. }
  1210. /deep/.segmented-control__text {
  1211. font-size: 34rpx !important;
  1212. }
  1213. /deep/.uni-data-checklist {
  1214. padding-left: 20upx;
  1215. }
  1216. uni-picker {
  1217. position: relative;
  1218. display: block;
  1219. cursor: pointer;
  1220. padding-left: 20rpx !important;
  1221. padding-top: 14rpx !important;
  1222. color: grey !important;
  1223. }
  1224. /deep/.uni-date-x--border {
  1225. border: 0px solid #dcdfe6 !important;
  1226. }
  1227. /deep/.is-input-border {
  1228. border: 0px solid #c8c7cc !important;
  1229. }
  1230. /deep/.uni-progress-info {
  1231. font-size: 25rpx !important;
  1232. }
  1233. /deep/.uni-error-message {
  1234. position: absolute;
  1235. bottom: -20rpx !important;
  1236. left: 20rpx !important;
  1237. text-align: left;
  1238. }
  1239. /deep/.uni-forms-item__inner {
  1240. padding-bottom: 0rpx !important;
  1241. margin-bottom: 30rpx !important;
  1242. border-bottom: 0.5rpx solid #CCCCCC;
  1243. }
  1244. /deep/.uni-group__title {
  1245. background-color: #FFFFFF !important;
  1246. }
  1247. /deep/.uni-list-item__content-title {
  1248. font-size: 30rpx !important;
  1249. color: #111111 !important;
  1250. }
  1251. /deep/.uni-progress-bar {
  1252. border-radius: 10rpx !important;
  1253. }
  1254. /deep/.uni-progress-inner-bar {
  1255. border-radius: 10rpx !important;
  1256. }
  1257. /deep/.is-input-border {
  1258. border-radius: 20px !important;
  1259. background-color: #fff;
  1260. }
  1261. .uni-easyinput__content-input {
  1262. font-size: 30upx !important;
  1263. }
  1264. .content-clear-icon {
  1265. font-size: 40upx !important;
  1266. }
  1267. /deep/.input-box {
  1268. padding: 50upx;
  1269. font-size: 30upx;
  1270. .input-item {
  1271. display: flex;
  1272. border: 1upx solid #F8F8F8;
  1273. line-height: 90upx;
  1274. height: 90upx;
  1275. margin-top: 20upx;
  1276. background: #F8F8F8;
  1277. border-radius: 48upx;
  1278. .input-label {
  1279. width: 150upx;
  1280. text-align: center;
  1281. }
  1282. .input-body {
  1283. position: relative;
  1284. height: 100upx;
  1285. width: calc(100% - 150upx);
  1286. .input {
  1287. line-height: 90upx;
  1288. height: 90upx;
  1289. position: relative;
  1290. font-size: 28upx;
  1291. }
  1292. .eye {
  1293. position: absolute;
  1294. height: 50upx;
  1295. width: 50upx;
  1296. right: 20upx;
  1297. top: 50%;
  1298. transform: translateY(-50%);
  1299. }
  1300. .btn-code {
  1301. position: absolute;
  1302. right: 0upx;
  1303. top: 50%;
  1304. transform: translateY(-50%);
  1305. background: none;
  1306. color: #205592;
  1307. width: 160upx;
  1308. font-size: 24upx;
  1309. box-sizing: border-box;
  1310. text-align: center;
  1311. padding: 0;
  1312. height: 100upx;
  1313. line-height: 100upx;
  1314. }
  1315. }
  1316. }
  1317. .select {
  1318. // padding-top: 40upx;
  1319. display: flex;
  1320. justify-content: space-between;
  1321. color: #003B67;
  1322. }
  1323. }
  1324. /deep/.title-left {
  1325. width: 3px;
  1326. height: 16px;
  1327. background: #267CFF;
  1328. display: inline-block;
  1329. border-radius: 3px;
  1330. margin-top: 3px;
  1331. vertical-align: top;
  1332. margin-right: 10px;
  1333. }
  1334. .card {
  1335. padding: 24rpx;
  1336. margin-top: 30rpx;
  1337. border: 1rpx solid #F0D232;
  1338. background-color: #ffffff;
  1339. margin: 0 10rpx;
  1340. }
  1341. .head {
  1342. padding-top: 5%;
  1343. padding: 0 0 0 1%;
  1344. height: 80rpx;
  1345. margin-top: 2%;
  1346. }
  1347. .head span {
  1348. color: #333333;
  1349. font-size: 80%;
  1350. font-weight: 550;
  1351. text-indent: 2em;
  1352. }
  1353. .head image {
  1354. vertical-align: middle;
  1355. width: 50rpx;
  1356. height: 50rpx;
  1357. display: inline-block;
  1358. padding-right: 14rpx;
  1359. }
  1360. .home-link {
  1361. /deep/.uni-easyinput__content-input {
  1362. background-color: #EBEBEB;
  1363. border-radius: 15rpx;
  1364. }
  1365. }
  1366. .heng-line {
  1367. margin-top: 60rpx;
  1368. margin-bottom: 50rpx;
  1369. border: 1rpx solid #DCDCDC;
  1370. }
  1371. .signupbtn p {
  1372. font-size: 30rpx;
  1373. }
  1374. .exit-btn {
  1375. width: 120%;
  1376. text-align: center;
  1377. background-color: #C0C0C0;
  1378. border-radius: 10rpx;
  1379. color: #FFFFFF;
  1380. font-size: 30rpx;
  1381. line-height: 180%;
  1382. }
  1383. .main-btn {
  1384. width: 300rpx;
  1385. text-align: center;
  1386. background-color: #FCCF41;
  1387. border-radius: 10rpx;
  1388. color: #000000;
  1389. font-size: 30rpx;
  1390. line-height: 180%;
  1391. }
  1392. .uni-input-placeholder {
  1393. font-size: 24rpx !important;
  1394. }
  1395. /deep/.uni-date-x--border {
  1396. border: 0px solid #dcdfe6 !important;
  1397. }
  1398. /deep/.is-input-border {
  1399. border: 0px solid #c8c7cc !important;
  1400. }
  1401. .example {
  1402. padding: 0 15px 15px;
  1403. }
  1404. .example-info {
  1405. padding: 15px;
  1406. color: #3b4144;
  1407. background: #ffffff;
  1408. }
  1409. .example-body {
  1410. /* #ifndef APP-NVUE */
  1411. display: flex;
  1412. /* #endif */
  1413. flex-direction: row;
  1414. flex-wrap: wrap;
  1415. justify-content: center;
  1416. padding: 0;
  1417. font-size: 14px;
  1418. background-color: #ffffff;
  1419. }
  1420. /* #endif */
  1421. .example {
  1422. padding: 0 15px;
  1423. }
  1424. .example-info {
  1425. /* #ifndef APP-NVUE */
  1426. display: block;
  1427. /* #endif */
  1428. padding: 15px;
  1429. color: #3b4144;
  1430. background-color: #ffffff;
  1431. font-size: 14px;
  1432. line-height: 20px;
  1433. }
  1434. .example-info-text {
  1435. font-size: 14px;
  1436. line-height: 20px;
  1437. color: #3b4144;
  1438. }
  1439. .example-body {
  1440. flex-direction: column;
  1441. padding: 15px;
  1442. background-color: #ffffff;
  1443. }
  1444. .number-inupt {
  1445. display: flex !important;
  1446. align-items: center !important;
  1447. }
  1448. </style>