bindinfo.vue 38 KB

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