mUinitBusiness.vue 43 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292
  1. <template>
  2. <div class="mUinitBusiness">
  3. <div class="topTitle">
  4. <h3>个体工商户入驻</h3>
  5. <p>请认真填写申请信息,以便我们为您提供更好的服务!</p>
  6. </div>
  7. <div class="centBox">
  8. <el-steps :active="active" align-center>
  9. <el-step @click.native="changeActive(index = 1)" title="店铺信息"></el-step>
  10. <el-step @click.native="changeActive(index = 2)" title="主体信息"></el-step>
  11. <el-step @click.native="changeActive(index = 3)" title="经营者信息"></el-step>
  12. </el-steps>
  13. <div class="mFormBox">
  14. <div class="shopInfo" v-show="active === 1">
  15. <div class="form">
  16. <div class="inputItem">
  17. <div class="labelTit"><label><i>*</i>店铺名称:</label></div>
  18. <input type="text" v-model="personalForm.shopName" placeholder="请输入店铺名称">
  19. </div>
  20. <div class="inputItem">
  21. <div class="labelTit"><label><i>*</i>客服电话:</label></div>
  22. <input type="text" v-model="personalForm.servicePhone" placeholder="请输入客服电话">
  23. </div>
  24. <div class="inputItem">
  25. <div class="labelTit"><label><i>*</i>店铺负责人:</label></div>
  26. <input type="text" v-model="personalForm.chargePersonName" placeholder="请输入店铺负责人">
  27. </div>
  28. <div class="inputItem">
  29. <div class="labelTit"><label><i>*</i>负责人电话:</label></div>
  30. <input type="text" v-model="personalForm.chargePersonPhone" placeholder="请输入负责人电话">
  31. </div>
  32. <div class="inputItem">
  33. <div class="labelTit"><label>邀请码:</label></div>
  34. <input type="text" v-model="personalForm.invitationCode" placeholder="请输入邀请码">
  35. </div>
  36. <!-- <div class="inputItem arrow">
  37. <div class="labelTit"><label><i>*</i>店铺地址:</label></div>
  38. <input @click="showPopup" @focus="noBomBox" v-model="shopAdress" type="text" placeholder="请选择所在地区">
  39. <span class="iconfont">&#xe6ab;</span>
  40. <input type="text" v-model="personalForm.storeAddressDetail" placeholder="请输入详细地址">
  41. </div> -->
  42. <div class="inputItem">
  43. <div class="labelTit"><label><i>*</i>是否支持使用代金券</label></div>
  44. <!-- <input type="text" v-model="plannerForm.email" placeholder="请选择性别"> -->
  45. <div class="input">
  46. <van-radio-group v-model="personalForm.isVoucher" direction="horizontal">
  47. <van-radio :name="1">支持</van-radio>
  48. <van-radio :name="0">不支持</van-radio>
  49. </van-radio-group>
  50. </div>
  51. </div>
  52. <div class="inputItem">
  53. <div class="labelTit"><label><i>*</i>店铺类型</label></div>
  54. <!-- <input type="text" v-model="plannerForm.email" placeholder="请选择性别"> -->
  55. <div class="input">
  56. <van-radio-group v-model="personalForm.shopType" direction="horizontal">
  57. <van-radio name="1">商城</van-radio>
  58. <van-radio name="2">本地</van-radio>
  59. </van-radio-group>
  60. </div>
  61. </div>
  62. <div class="time-select-container" v-show="personalForm.shopType === '2'">
  63. <div class="inputItem">
  64. <div class="labelTit"><label><i>*</i>营业开始时间</label></div>
  65. <input @focus="noBomBox" type="text" v-model="personalForm.startTime" placeholder="请选择营业开始时间"
  66. @click="startTimeShow = true">
  67. </div>
  68. <div class="inputItem">
  69. <div class="labelTit"><label><i>*</i>营业结束时间</label></div>
  70. <input @focus="noBomBox" type="text" v-model="personalForm.endtime" placeholder="请选择营业开始时间"
  71. @click="endTimeShow = true">
  72. </div>
  73. </div>
  74. <div class="inputItem">
  75. <div class="labelTit"><label><i>*</i>店铺分类</label></div>
  76. <input @focus="noBomBox" type="text" placeholder="请选择店铺所属分类" v-model="selectShopCategoryStr"
  77. @click="show2 = true">
  78. <van-popup v-model="show2" round position="bottom">
  79. <div v-show="isQueryShopCategory" class="loading-container"><van-loading color="#ee0a24" type="spinner" />
  80. </div>
  81. <van-cascader v-model="personalForm.classificationId" title="请选择店铺所属分类" :field-names="categoryFieldName"
  82. :options="shopCategoryOptions" @close="show2 = false"
  83. @change="onShopCategoryChange($event, onFinishChooseShopCategory)" />
  84. </van-popup>
  85. </div>
  86. <div class="inputItem arrow" style="margin-top: 20px;">
  87. <div class="labelTit"><label><i>*</i>请选择地址</label></div>
  88. <div class="input" style="background-color: #a4a4a41f; overflow: hidden; white-space: nowrap; " @click="show1 = true">
  89. {{ fieldValue || '请选择地区' }}
  90. </div>
  91. <!-- <span class="iconfont">&#xe6ab;</span> -->
  92. <input type="text" v-model="personalForm.storeAddressDetail" placeholder="请输入详细地址">
  93. <van-popup :close-on-click-overlay="false" v-model="show1" round position="bottom"
  94. @close="handleClosePopup('areaId')">
  95. <!-- v-if="isRequestAddres" sb玩意不动态刷新,现在换了给方法,强行重新赋值,不完全完美的解决问题 -->
  96. <van-cascader v-model="personalForm.areaId" title="请选择所在地区" :options="options" @close="show1 = false"
  97. @change="onAddresChange" :field-names="{ text: 'name', value: 'id', children: 'children' }" />
  98. </van-popup>
  99. </div>
  100. <div class="inputItem arrow" style="margin-top: 20px;">
  101. <div class="labelTit"><label><i>*</i>代金券返还比例</label></div>
  102. <div class="voucher-wrapper">
  103. <input type="number" v-model.number="personalForm.voucherReturn" placeholder="请输入代金券返还比例,0 ~ 100%">
  104. %
  105. </div>
  106. </div>
  107. <div class="inputItem arrow" style="margin-top: 20px;">
  108. <div class="labelTit"><label><i>*</i>人均消费</label></div>
  109. <div class="voucher-wrapper">
  110. <input type="number" v-model.number="personalForm.perCapita" placeholder="人均消费额">
  111. </div>
  112. </div>
  113. <div class="inputItem arrow" style="margin-top: 20px;">
  114. <div class="labelTit"><label><i>*</i>广告图</label></div>
  115. <van-uploader style="margin-top: 20px;" v-model="advertisementList" @delete="handleDeleteAdvertisement"
  116. :after-read="(file) => { return afterRead(file, type = 'advertisement') }" />
  117. </div>
  118. <!-- <div class="inputItem">
  119. <div class="labelTit"><label><i>*</i>营销策划师</label></div>
  120. <div class="input" style="background-color: #a4a4a41f;" v-if="personalForm.areaId.length <= 0">
  121. 请先选择详细地址
  122. </div>
  123. <div class="input" style="background-color: #a4a4a41f;" v-else @click="showSubCompany = true">
  124. {{ companyValue || '请选择营销策划师' }}
  125. </div>
  126. <van-popup v-model="showSubCompany" round position="bottom" :style="{ height: '50%' }">
  127. <van-picker
  128. title="选择您的营销策划师"
  129. show-toolbar
  130. :columns="plannerColumns"
  131. value-key="name"
  132. @confirm="onPlannerConfirm"
  133. @cancel="showSubCompany = false"
  134. @change="onPlannerChange"
  135. visible-item-count="7"
  136. />
  137. <div class="loadingBox">
  138. <van-button :loading="companyLoading" type="default" @click="getMoreCompany" loading-text="加载中...">点击加载更多</van-button>
  139. </div>
  140. </van-popup>
  141. </div>
  142. <div class="inputItem">
  143. <div class="labelTit"><label><i>*</i>入驻套餐</label></div>
  144. <div class="input" style="background-color: #a4a4a41f;" @click="showSetMeal = true">
  145. {{ setMealValue || '请选择你的套餐'}}
  146. </div>
  147. <van-popup v-model="showSetMeal" round position="bottom" :style="{ height: '50%' }">
  148. <van-picker
  149. title="请选择你的套餐"
  150. show-toolbar
  151. :columns="setMealData"
  152. value-key="title"
  153. @confirm="onSetMealfirm"
  154. @cancel="showSetMeal = false"
  155. @change="onSetMealChange"
  156. visible-item-count="7"
  157. />
  158. </van-popup>
  159. </div> -->
  160. </div>
  161. </div>
  162. <div class="subjectInfo" v-show="active === 2">
  163. <div class="form">
  164. <div class="inputItem">
  165. <div class="labelTit"><label><i>*</i>商户名称:</label></div>
  166. <input type="text" v-model="personalForm.subjectName" placeholder="请输入商户名称">
  167. </div>
  168. <p class="describe">需与当地政府颁发的商业许可证书或企业注册证上的企业名称完全一致,信息审核审核
  169. 成功后,企业名称不可修改</p>
  170. <div class="inputItem">
  171. <div class="labelTit"><label><i>*</i>社会信用代码:</label></div>
  172. <input type="text" v-model="personalForm.subjectCode" placeholder="请输入社会信用代码">
  173. </div>
  174. <div class="inputItem arrow">
  175. <div class="labelTit"><label><i>*</i>注册地址:</label></div>
  176. <input @click="showRegionPopup" @focus="noBomBox" v-model="personalForm.subjectRegion" type="text"
  177. placeholder="请选择注册地址">
  178. <span class="iconfont">&#xe6ab;</span>
  179. <input type="text" v-model="personalForm.subjectAdress" placeholder="请输入详细地址">
  180. </div>
  181. <div class="inputItem arrow">
  182. <div class="labelTit"><label><i>*</i>营业期限:</label></div>
  183. <input type="text" @focus="noBomBox" v-model="personalForm.subjectStartTime" placeholder="请选择营业开始时间"
  184. @click="selectStartDateBtn">
  185. <span class="iconfont">&#xe6ab;</span>
  186. </div>
  187. <div class="inputItem arrowTime">
  188. <input @focus="noBomBox" v-model="personalForm.subjectEndTime" type="text" placeholder="请选择营业截止时间"
  189. @click="selectEndDateBtn">
  190. <span class="iconfont">&#xe6ab;</span>
  191. </div>
  192. <p class="describe">
  193. 请填写营业执照上的营业期限 注意参照示例中的格式 结束时间需大于开始时间 有效期
  194. 必须大于60天
  195. </p>
  196. <div class="inputItem">
  197. <div class="labelTit"><label><i>*</i>营业执照:</label></div>
  198. <div class="businessLicense">
  199. <van-uploader v-model="fileList" :max-count="1"
  200. :after-read="(file) => { return afterRead(file, type = 'license') }" @oversize="onOversize">
  201. <!-- <van-uploader v-model="fileList" :max-count="1" :after-read="afterRead" @oversize="onOversize">-->
  202. <div icon="plus" type="primary">
  203. <div class="updateLicense">
  204. <div class="updateTop">
  205. <img src="../../assets/images/yingyezhiz@2x.png" alt="">
  206. </div>
  207. <div class="updateBottom">添加营业执照</div>
  208. </div>
  209. </div>
  210. <template #preview-cover="{ file }">
  211. <div class="preview-cover van-ellipsis">营业执照</div>
  212. </template>
  213. </van-uploader>
  214. </div>
  215. </div>
  216. <p class="describe">
  217. 仅支持在有效期内的中国大陆工商局或市场监督管理局颁发的工商营业执照。格式要求:
  218. 原证照片、扫描件或者 复印件加盖企业公章后的扫描
  219. </p>
  220. </div>
  221. </div>
  222. <div class="subjectInfo" v-show="active === 3">
  223. <div class="form">
  224. <div class="inputItem">
  225. <div class="labelTit"><label><i>*</i>经营者姓名:</label></div>
  226. <input v-model="personalForm.subjectOperator" type="text" placeholder="请输入经营者姓名">
  227. </div>
  228. <div class="inputItem arrow">
  229. <div class="labelTit"><label><i>*</i>证件类型:</label></div>
  230. <input v-model="idType" @focus="noBomBox" type="text" placeholder="请选择证件类型" @click="idTypeShowFn">
  231. <span class="iconfont">&#xe6ab;</span>
  232. </div>
  233. <div class="inputItem">
  234. <div class="labelTit"><label><i>*</i>身份证号码:</label></div>
  235. <input v-model="personalForm.subjectIdCard" type="text" placeholder="请输入居民身份证号">
  236. </div>
  237. <div class="inputItem arrow">
  238. <div class="labelTit"><label><i>*</i>身份证有效期:</label></div>
  239. <input v-model="personalForm.subjectCardStartTime" @focus="noBomBox" type="text" placeholder="请选择身份证开始时间"
  240. @click="selectIdStartDateBtn">
  241. <span class="iconfont">&#xe6ab;</span>
  242. </div>
  243. <div class="inputItem arrowTime">
  244. <input v-model="personalForm.subjectCardEndTime" @focus="noBomBox" type="text" placeholder="请选择身份证有效期结束时间"
  245. @click="selectIdEndDateBtn">
  246. <span class="iconfont">&#xe6ab;</span>
  247. </div>
  248. <div class="inputItem">
  249. <div class="labelTit"><label><i>*</i>证件照片:</label></div>
  250. <div class="businessLicense">
  251. <van-uploader v-model="positive" :max-count="1"
  252. :after-read="(file) => { return afterRead(file, type = 'positive') }" @oversize="onOversize">
  253. <div icon="plus" type="primary">
  254. <div class="updateLicense">
  255. <div class="updateTop">
  256. <img src="../../assets/images/shouchishenfenz@2x.png" alt="">
  257. </div>
  258. <div class="updateBottom">身份证人像面</div>
  259. </div>
  260. </div>
  261. <template #preview-cover="{ file }">
  262. <div class="preview-cover van-ellipsis">身份证人像面</div>
  263. </template>
  264. </van-uploader>
  265. </div>
  266. <div class="businessLicense">
  267. <van-uploader v-model="backIdImg" :max-count="1"
  268. :after-read="(file) => { return afterRead(file, type = 'back') }" @oversize="onOversize">
  269. <div icon="plus" type="primary">
  270. <div class="updateLicense">
  271. <div class="updateTop">
  272. <img src="../../assets/images/shenfenzb@2x.png" alt="">
  273. </div>
  274. <div class="updateBottom">身份证国徽面</div>
  275. </div>
  276. </div>
  277. <template #preview-cover="{ file }">
  278. <div class="preview-cover van-ellipsis">身份证国徽面</div>
  279. </template>
  280. </van-uploader>
  281. </div>
  282. </div>
  283. </div>
  284. </div>
  285. </div>
  286. <button class="nextBtn" @click="next" v-show="active < 3">下一步</button>
  287. <button class="nextBtn" @click="submitForm" v-show="active > 2">提交</button>
  288. </div>
  289. <van-popup v-model="show" round position="bottom" :style="{ height: '40%' }">
  290. <van-area title="请选择地区" :area-list="areaList" @confirm="selectArea" @cancel="closeSelect" />
  291. </van-popup>
  292. <van-popup v-model="regionShow" round position="bottom" :style="{ height: '40%' }">
  293. <van-area title="请选择地区" :area-list="areaRegionList" @confirm="selectRegionArea" @cancel="closeRegionSelect" />
  294. </van-popup>
  295. <van-popup v-model="startDateShow" round position="bottom" :style="{ height: '40%' }">
  296. <van-datetime-picker v-model="startDate" type="date" title="请选择营业执照开始时间" :min-date="minDate" :max-date="maxDate"
  297. :formatter="formatter" @confirm="selectStartTime" @cancel="closeStartTime" />
  298. </van-popup>
  299. <van-popup v-model="endDateShow" round position="bottom" :style="{ height: '40%' }">
  300. <van-datetime-picker v-model="endDate" type="date" title="请选择营业执照到期时间" :min-date="minDate" :max-date="maxDate"
  301. :formatter="formatter" @confirm="selectEndTime" @cancel="closeEndTime" />
  302. </van-popup>
  303. <van-popup v-model="idCardStartShow" round position="bottom" :style="{ height: '40%' }">
  304. <van-datetime-picker v-model="idCardStartDate" type="date" title="请选择身份证开始时间" :min-date="minDate"
  305. :max-date="maxDate" :formatter="formatter" @confirm="selectIdCardStartTime" @cancel="closeIdCardStartTime" />
  306. </van-popup>
  307. <van-popup v-model="idCardEndShow" round position="bottom" :style="{ height: '40%' }">
  308. <van-datetime-picker v-model="idCardEndDate" type="date" title="请选择身份证到期时间" :min-date="minDate" :max-date="maxDate"
  309. :formatter="formatter" @confirm="selectIdCardEndTime" @cancel="closeIdCardEndTime" />
  310. </van-popup>
  311. <van-popup v-model="idTypeShow" round position="bottom" :style="{ height: '40%' }">
  312. <van-picker title="请选择证件类型" show-toolbar :columns="columns" @confirm="onConfirm" @cancel="onCancel" />
  313. </van-popup>
  314. <van-popup v-model="startTimeShow" round position="bottom">
  315. <van-datetime-picker @confirm="startTimeShow = false" @cancel="startTimeShow = false" type="time" title="请选择营业开始时间"
  316. :min-hour="1" :max-hour="24" v-model="personalForm.startTime" />
  317. </van-popup>
  318. <van-popup v-model="endTimeShow" round position="bottom">
  319. <van-datetime-picker @confirm="endTimeShow = false" @cancel="endTimeShow = false" type="time" title="请选择营业结束时间"
  320. :min-hour="1" :max-hour="24" v-model="personalForm.endtime" />
  321. </van-popup>
  322. </div>
  323. </template>
  324. <script>
  325. import { Area, Popup, DatetimePicker, Uploader, Toast, Picker, Cascader, RadioGroup, Radio, Button, Loading } from 'vant'
  326. import api from '@/api'
  327. import { listSearchMixin } from '@/config/mixin'
  328. import AreaList from '../../util/area'
  329. export default {
  330. mixins: [listSearchMixin],
  331. name: 'mPersonalBusiness',
  332. components: {
  333. [Area.name]: Area,
  334. [Popup.name]: Popup,
  335. [DatetimePicker.name]: DatetimePicker,
  336. [Uploader.name]: Uploader,
  337. [Toast.name]: Toast,
  338. [Picker.name]: Picker,
  339. [Cascader.name]: Cascader,
  340. [RadioGroup.name]: RadioGroup,
  341. [Radio.name]: Radio,
  342. [Button.name]: Button,
  343. [Loading.name]: Loading
  344. },
  345. data() {
  346. return {
  347. active: 1,
  348. areaList: AreaList,
  349. areaRegionList: AreaList,
  350. show: false,
  351. show2: false,
  352. regionShow: false,
  353. minDate: new Date(1960, 1, 1),
  354. maxDate: new Date(2077, 12, 31),
  355. startDate: '',
  356. endDate: '',
  357. idCardStartDate: '',
  358. idCardEndDate: '',
  359. startDateShow: false,
  360. endDateShow: false,
  361. idCardStartShow: false,
  362. idCardEndShow: false,
  363. idTypeShow: false,
  364. startTimeShow: false,
  365. endTimeShow: false,
  366. idType: '',
  367. fileList: [],
  368. backIdImg: [],
  369. advertisementList: [],
  370. positive: [],
  371. shopAdress: '', // 店铺地区
  372. subjectRegion: '', // 注册地址地区
  373. personalForm: {
  374. startTime: '', // 营业开始时间
  375. shopName: '', // 店铺名称
  376. shopPhone: '', // 手机号
  377. servicePhone: '', // 客服电话
  378. chargePersonName: '', // 店铺负责人
  379. chargePersonPhone: '', // 负责人电话
  380. shopAdress: '', // 店铺地址
  381. shopAdressProvince: '', // 店铺地址省
  382. shopAdressCity: '', // 店铺地址市
  383. storeAddressDetail: '', // 店铺详细地址
  384. subjectName: '', // 商户名称
  385. subjectCode: '', // 统一社会信用代码
  386. subjectRegion: '', // 注册地址 省-市-区
  387. subjectAdress: '', // 注册地址详细
  388. subjectStartTime: '', // 营业期限开始时间
  389. subjectEndTime: '', // 营业期限结束时间
  390. subjectLicense: '', // 营业执照图片地址
  391. subjectOperator: '', // 经营者姓名
  392. subjectCardType: '', // 身份证类型
  393. subjectIdCard: '', // 经营者身份证号码
  394. subjectCardStartTime: '', // 证件有效开始时间
  395. subjectCardEndTime: '', // 证件有效结束时间
  396. subjectCardPositive: '', // 身份证正面照
  397. subjectCardSide: '', // 身份证反面照
  398. parentId: '',
  399. shopType: '1', // 店铺类型 1商城 2本地
  400. isVoucher: 1, // 是否支持使用代金卷
  401. voucherReturn: '', // 代金卷的抵扣比例/返还比例
  402. areaId: '', // 区域ID
  403. packageId: '',
  404. classificationId: '', // 商家所属分类
  405. perCapita: "", // 人均消费
  406. invitationCode: localStorage.getItem('INVITATION_CODE'), // 邀请码
  407. advertisement: [],
  408. },
  409. show1: false,
  410. show3: false,
  411. showSubCompany: false,
  412. showSetMeal: false,
  413. plannerColumns: [],
  414. companyLoading: false,
  415. options: null,
  416. shopCategoryOptions: [],
  417. setMealData: [],
  418. companyValue: '',
  419. fieldValue: '',
  420. selectShopCategoryStr: "",
  421. setMealValue: '',
  422. idCardList: [],
  423. dictName: '证件类型',
  424. columns: [],
  425. categoryFieldName: {
  426. text: 'storeName',
  427. value: 'id',
  428. children: 'items',
  429. },
  430. isQueryShopCategory: false
  431. }
  432. },
  433. mounted() {
  434. this.getDictList()
  435. console.log(localStorage.getItem('INVITATION_CODE'));
  436. },
  437. created() {
  438. this.sendReq({
  439. url: api.getTreeClass,
  440. method: 'GET',
  441. params: {}
  442. }, (res) => {
  443. // console.log(res) // 获取地址选择器数据并去除空的子项
  444. this.options = res.data
  445. // console.log(this.options)
  446. })
  447. this.sendReq({
  448. url: api.getAdditional, // 套餐购买类型:1-商家,2-策划师 3-分公司
  449. method: 'GET',
  450. params: {
  451. type: 1
  452. }
  453. }, (res) => {
  454. // console.log(res) // 获取地址选择器数据并去除空的子项
  455. this.setMealData = res.data
  456. // console.log(this.options)
  457. })
  458. this.sendReq({
  459. url: api.getCategoryList,
  460. method: 'GET',
  461. params: {
  462. levelId: 1
  463. }
  464. }, res => {
  465. this.shopCategoryOptions = res.data
  466. })
  467. },
  468. methods: {
  469. getDictList() {
  470. let self = this
  471. let params = {
  472. url: api.getByName + '?dictName=' + self.dictName,
  473. method: 'GET'
  474. }
  475. self.sendReq(params, (res) => {
  476. if (res.code === '') {
  477. self.idCardList = res.data
  478. self.idCardList.forEach((item) => {
  479. var dictData = {}
  480. dictData['text'] = item.dictName
  481. dictData['value'] = item.dictId
  482. self.columns.push(dictData)
  483. })
  484. }
  485. })
  486. },
  487. showPopup() {
  488. this.show = true
  489. },
  490. showRegionPopup() {
  491. this.regionShow = true
  492. },
  493. next() {
  494. this.active++
  495. if (this.active === 4) {
  496. }
  497. },
  498. selectArea(address) {
  499. this.shopAdress = `${address[0].name}-${address[1].name}-${address[2].name}`
  500. this.personalForm.shopAdressProvince = address[0].name
  501. this.personalForm.shopAdressCity = address[1].name
  502. console.log(address)
  503. this.show = false
  504. },
  505. selectRegionArea(address) {
  506. this.personalForm.subjectRegion = `${address[0].name}-${address[1].name}-${address[2].name}`
  507. this.regionShow = false
  508. },
  509. closeRegionSelect() {
  510. this.regionShow = false
  511. },
  512. closeSelect() {
  513. this.show = false
  514. },
  515. selectStartDateBtn() {
  516. this.startDateShow = true
  517. },
  518. selectEndDateBtn() {
  519. this.endDateShow = true
  520. },
  521. selectIdStartDateBtn() {
  522. this.idCardStartShow = true
  523. },
  524. selectIdEndDateBtn() {
  525. this.idCardEndShow = true
  526. },
  527. dateTime(value) {
  528. let date = value
  529. let m = date.getMonth() + 1
  530. let d = date.getDate()
  531. if (m >= 1 && m <= 9) {
  532. m = '0' + m
  533. }
  534. if (d >= 0 && d <= 9) {
  535. d = '0' + d
  536. }
  537. return date.getFullYear() + '年-' + m + '月-' + d + '日'
  538. },
  539. idTypeShowFn() {
  540. this.idTypeShow = true
  541. },
  542. // 选择证件类型
  543. onConfirm(type) {
  544. this.idType = type.text
  545. this.personalForm.subjectCardType = type.value
  546. this.idTypeShow = false
  547. },
  548. onCancel() {
  549. this.personalForm.subjectCardType = ''
  550. this.idTypeShow = false
  551. },
  552. // 选择开始时间
  553. selectStartTime(value) {
  554. this.personalForm.subjectStartTime = this.dateTime(value)
  555. this.startDateShow = false
  556. },
  557. // 取消选择开始时间
  558. closeStartTime() {
  559. this.startDateShow = false
  560. },
  561. // 选择截止时间
  562. selectEndTime(value) {
  563. this.personalForm.subjectEndTime = this.dateTime(value)
  564. this.endDateShow = false
  565. },
  566. // 取消选择截止时间
  567. closeEndTime() {
  568. this.endDateShow = false
  569. },
  570. // 选择证件日期开始时间
  571. selectIdCardStartTime(value) {
  572. this.personalForm.subjectCardStartTime = this.dateTime(value)
  573. this.idCardStartShow = false
  574. },
  575. // 取消选择身份证开始时间
  576. closeIdCardStartTime() {
  577. this.idCardStartShow = false
  578. },
  579. // 证件到期时间
  580. selectIdCardEndTime(value) {
  581. this.personalForm.subjectCardEndTime = this.dateTime(value)
  582. this.idCardEndShow = false
  583. },
  584. // 取消选择身份证到期时间
  585. closeIdCardEndTime() {
  586. this.idCardEndShow = false
  587. },
  588. changeActive(index) {
  589. this.active = index
  590. },
  591. formatter(type, val) {
  592. if (type === 'year') {
  593. return `${val}年`
  594. } else if (type === 'month') {
  595. return `${val}月`
  596. } else if (type === 'day') {
  597. return `${val}日`
  598. }
  599. return val
  600. },
  601. afterRead(file, type) {
  602. // console.log(file.content, file.file.name)
  603. // let fileData = this.dataURLtoFileFun(file.content, file.file.name)
  604. let formData = new FormData()
  605. formData.append('file', this.dataURLtoFileFun(file.content, file.file.name))
  606. // console.log(fileData, 'fileData')
  607. let self = this
  608. let params = {
  609. url: api.upload,
  610. method: 'POST',
  611. contentType: 'multipart/form-data',
  612. data: formData
  613. }
  614. self.sendReq(params, (res) => {
  615. if (res.code === '200') {
  616. if (type === 'license') {
  617. self.personalForm.subjectLicense = res.data.url
  618. } else if (type === 'positive') {
  619. self.personalForm.subjectCardPositive = res.data.url
  620. } else if (type === 'back') {
  621. self.personalForm.subjectCardSide = res.data.url
  622. } else if (type === 'advertisement') {
  623. self.personalForm.advertisement.push(res.data.url)
  624. }
  625. // console.log("这是为什么呢?", this.advertisementList, res.data);
  626. } else {
  627. Toast.fail(res.message)
  628. }
  629. })
  630. // file.status = 'uploading'
  631. // file.message = '上传中...'
  632. // setTimeout(() => {
  633. // file.status = 'failed'
  634. // file.message = '上传失败'
  635. // }, 1000)
  636. },
  637. dataURLtoFileFun(dataurl, filename) {
  638. // 将base64转换为文件,dataurl为base64字符串,filename为文件名(必须带后缀名,如.jpg,.png)
  639. let arr = dataurl.split(',')
  640. let mime = arr[0].match(/:(.*?);/)[1]
  641. let bstr = atob(arr[1])
  642. let n = bstr.length
  643. let u8arr = new Uint8Array(n)
  644. while (n--) {
  645. u8arr[n] = bstr.charCodeAt(n)
  646. }
  647. return new File([u8arr], filename, { type: mime })
  648. },
  649. onOversize(file) {
  650. console.log(file)
  651. Toast.fail('文件大小不能超过 500kb')
  652. },
  653. // 禁止弹出键盘
  654. noBomBox(Event) {
  655. document.activeElement.blur()
  656. },
  657. handleClosePopup(type) {
  658. if (type === 'areaId') {
  659. if (!this.personalForm.shopAdressProvince || !this.personalForm.shopAdressCity) {
  660. this.personalForm.areaId = null
  661. this.fieldValue = ''
  662. this.personalForm.shopAdressProvince = ''
  663. this.personalForm.shopAdressCity = ''
  664. this.personalForm.storeAddressDetail = ''
  665. }
  666. }
  667. },
  668. // 提交申请
  669. submitForm() {
  670. let self = this
  671. const subData = JSON.parse(JSON.stringify(self.personalForm))
  672. subData.shopAdress = ''
  673. let reg = /^1[13456789]\d{9}$/
  674. var idReg = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/
  675. subData.shopPhone = subData.servicePhone
  676. subData.shopAdress = `${self.shopAdress},${subData.storeAddressDetail}`
  677. // alert('submit!')
  678. if (subData.shopName === '') {
  679. Toast.fail('请输入店铺名称')
  680. return false
  681. }
  682. if (subData.servicePhone === '') {
  683. Toast.fail('请输入客服电话')
  684. return false
  685. } else if (!reg.test(subData.servicePhone)) {
  686. Toast.fail('客服电话号格式错误')
  687. return false
  688. }
  689. if (subData.chargePersonName === '') {
  690. Toast.fail('请输入店铺负责人')
  691. return false
  692. }
  693. if (subData.chargePersonPhone === '') {
  694. Toast.fail('请输入负责人电话')
  695. return false
  696. } else if (!reg.test(subData.chargePersonPhone)) {
  697. Toast.fail('负责人电话式错误')
  698. return false
  699. }
  700. if (subData.shopType === '2') {
  701. if (!subData.startTime) {
  702. Toast.fail('请选择营业开始时间')
  703. return
  704. }
  705. if (!subData.endtime) {
  706. Toast.fail('请选择营业结束时间')
  707. return
  708. }
  709. }
  710. if (subData.shopAdress === '') {
  711. Toast.fail('请选择所在地区')
  712. return false
  713. }
  714. if (subData.storeAddressDetail === '') {
  715. Toast.fail('请输入详细地址')
  716. return false
  717. }
  718. if (!subData.classificationId) {
  719. Toast.fail('请选择店铺所属分类')
  720. return
  721. }
  722. if (!subData.voucherReturn && subData.voucherReturn != 0) {
  723. Toast.fail('请输入代金券返回比例')
  724. return
  725. } else {
  726. if (isNaN(subData.voucherReturn) || subData.voucherReturn < 0 || subData.voucherReturn > 100) {
  727. Toast.fail('代金券返还比例应是0 ~ 100的数字')
  728. return
  729. }
  730. }
  731. if (!subData.perCapita) {
  732. Toast.fail('请填写人均消费额')
  733. return
  734. } else if (isNaN(subData.perCapita) || subData.perCapita <= 0) {
  735. Toast.fail('人均消费额不能小于等于0元')
  736. return
  737. }
  738. if (!subData.advertisement.length) {
  739. Toast.fail('请上传广告图')
  740. return
  741. } else {
  742. subData.advertisement = subData.advertisement.join(",")
  743. }
  744. if (subData.subjectName === '') {
  745. Toast.fail('请输入商户名称')
  746. return false
  747. }
  748. if (subData.subjectCode === '') {
  749. Toast.fail('请输入社会信用代码')
  750. return false
  751. }
  752. if (subData.subjectRegion === '') {
  753. Toast.fail('请输入注册地址')
  754. return false
  755. }
  756. if (subData.subjectAdress === '') {
  757. Toast.fail('请输入注册详情地址')
  758. return false
  759. }
  760. if (subData.subjectStartTime === '') {
  761. Toast.fail('请选择营业开始时间')
  762. return false
  763. }
  764. if (subData.subjectEndTime === '') {
  765. Toast.fail('请选择营业截止时间')
  766. return false
  767. }
  768. if (subData.subjectLicense === '') {
  769. Toast.fail('请上传营业执照')
  770. return false
  771. }
  772. if (subData.subjectOperator === '') {
  773. Toast.fail('请输入经营者姓名')
  774. return false
  775. }
  776. if (subData.subjectCardType === '') {
  777. Toast.fail('请选择证件类型')
  778. return false
  779. }
  780. if (subData.subjectIdCard === '') {
  781. Toast.fail('请输入居民身份证号')
  782. return false
  783. } else if (!idReg.test(subData.subjectIdCard)) {
  784. Toast.fail('身份证号码格式错误')
  785. return false
  786. }
  787. if (subData.subjectCardStartTime === '') {
  788. Toast.fail('请选择身份证开始时间')
  789. return false
  790. }
  791. if (subData.subjectCardEndTime === '') {
  792. Toast.fail('请选择身份证有效期结束时间')
  793. return false
  794. }
  795. if (subData.subjectCardPositive === '') {
  796. Toast.fail('请上传身份证正面照')
  797. return false
  798. }
  799. if (subData.subjectCardSide === '') {
  800. Toast.fail('请上传身份证背面照')
  801. return false
  802. }
  803. let params = {
  804. url: api.individualCheck,
  805. method: 'POST',
  806. data: subData
  807. }
  808. self.sendReq(params, (res) => {
  809. if (res.code === '200') {
  810. Toast.success('提交成功')
  811. self.$router.push({ path: '/mStatus' })
  812. } else {
  813. Toast.fail(res.message)
  814. }
  815. })
  816. },
  817. onAddresChange({ value, selectedOptions, tabIndex }) { // 选择完地址后转为显示的字符串
  818. this.fieldValue = ''
  819. let cacheArray = []
  820. let addresString = ''
  821. let level = ''
  822. this.sendReq({
  823. url: api.getTreeOne,
  824. method: 'GET',
  825. params: {
  826. parentId: value
  827. }
  828. }, (res) => {
  829. if (res.data && res.data.length > 0) {
  830. selectedOptions[selectedOptions.length - 1].children = res.data
  831. cacheArray = this.options.map(item => { // 这里重新再赋值一遍是因为这里直接改变数组页面不会动态刷新,所以每次都重新给options赋值,强制刷新
  832. return item
  833. })
  834. this.options = cacheArray
  835. }
  836. // this.isRequestAddres = true
  837. })
  838. for (let i = 0; i < selectedOptions.length; i++) {
  839. if (i >= selectedOptions.length - 1) {
  840. addresString += selectedOptions[i].name
  841. level = selectedOptions[i].level // 获取最后选择的地址的层级
  842. this.level = level
  843. } else {
  844. addresString += selectedOptions[i].name + ' / '
  845. }
  846. }
  847. if (selectedOptions.length === 4) {
  848. this.fieldValue = addresString
  849. this.personalForm.shopAdressProvince = selectedOptions[0].name
  850. this.personalForm.shopAdressCity = selectedOptions[1].name
  851. this.show1 = false
  852. // this.personalForm.province =
  853. }
  854. // this.sendReq({ // 获取可选择的分公司
  855. // url: api.selectAnd,
  856. // method: 'POST',
  857. // data: {
  858. // area: value, // 地区编号
  859. // type: 2,
  860. // level, // "区级别不能为空"
  861. // page: this.queryData.page,
  862. // pageSize: this.queryData.size
  863. // }
  864. // }, (res) => {
  865. // this.plannerColumns = res.data.list
  866. // console.log(res)
  867. // })
  868. // console.log(this.personalForm)
  869. },
  870. onPlannerConfirm(value) { // 确认选择的公司
  871. this.companyValue = value.name
  872. this.personalForm.parentId = value.platformUserId
  873. this.showSubCompany = false
  874. },
  875. onPlannerChange(value) {
  876. // console.log(value)
  877. },
  878. getMoreCompany() {
  879. this.companyLoading = true
  880. // eslint-disable-next-line eqeqeq
  881. if (this.plannerColumns.length == this.queryData.total) {
  882. this.queryData.pageSize += 7
  883. this.sendReq({ // 获取可选择的营销策划师
  884. url: api.selectAnd,
  885. method: 'POST',
  886. data: {
  887. area: this.personalForm.areaId, // 地区编号
  888. type: 2,
  889. level: this.level, // "区级别不能为空"
  890. page: this.queryData.page,
  891. pageSize: this.queryData.size
  892. }
  893. }, (res) => {
  894. this.plannerColumns = res.data.list
  895. this.companyLoading = false
  896. // console.log(res)
  897. })
  898. } else {
  899. Toast.fail('没有更多了')
  900. this.companyLoading = false
  901. }
  902. },
  903. onSetMealfirm(value) {
  904. // console.log(value)
  905. this.setMealValue = value.title
  906. this.personalForm.packageId = value.id
  907. this.showSetMeal = false
  908. },
  909. onSetMealChange(value) {
  910. // console.log(value)
  911. },
  912. // 店铺所属分类change
  913. async onShopCategoryChange(e, finishCB) {
  914. try {
  915. this.isQueryShopCategory = true
  916. let cacheArray = []
  917. const childCategoryList = await this.getChildCategory(e.value)
  918. if (childCategoryList.length) {
  919. e.selectedOptions[e.selectedOptions.length - 1].items = childCategoryList
  920. cacheArray = this.shopCategoryOptions.map(item => {
  921. return item
  922. })
  923. this.shopCategoryOptions = cacheArray
  924. } else {
  925. finishCB(e)
  926. }
  927. this.isQueryShopCategory = false
  928. } catch (error) {
  929. finishCB(e)
  930. this.isQueryShopCategory = false
  931. }
  932. },
  933. // 确认选择店铺所属分类
  934. onFinishChooseShopCategory(e) {
  935. this.selectShopCategoryStr = e.selectedOptions[e.selectedOptions.length - 1].storeName
  936. this.show2 = false
  937. },
  938. // 获取子集分类
  939. getChildCategory(dressing) {
  940. const _this = this
  941. return new Promise(async (resolve, reject) => {
  942. _this.sendReq({
  943. url: api.getChildCategoryList,
  944. method: "GET",
  945. params: {
  946. dressing
  947. }
  948. }, res => {
  949. resolve(res.data)
  950. })
  951. })
  952. },
  953. // 删除广告图
  954. handleDeleteAdvertisement(_, { index }) {
  955. this.personalForm.advertisement.splice(index, 1)
  956. }
  957. }
  958. }
  959. </script>
  960. <style lang="scss" scoped>
  961. .loadingBox {
  962. display: flex;
  963. justify-content: center;
  964. }
  965. .plannerItem {
  966. display: flex;
  967. align-items: center;
  968. .avatar {
  969. margin-top: -3px;
  970. width: 30px;
  971. height: 30px;
  972. }
  973. .custom-title {
  974. margin-top: -5px;
  975. margin-left: 20px;
  976. }
  977. }
  978. .input {
  979. width: 100%;
  980. margin: 10px 0px;
  981. border-bottom: 1px solid #F6F4F7;
  982. height: 40px;
  983. border-radius: 50px;
  984. line-height: 40px;
  985. font-size: 16px;
  986. color: #666666;
  987. padding-left: 10px;
  988. display: flex;
  989. align-items: center;
  990. }
  991. .mUinitBusiness {
  992. padding-bottom: 60px;
  993. .topTitle {
  994. padding: 0 5%;
  995. h3 {
  996. font-size: 21px;
  997. color: #333333;
  998. margin-bottom: 22px;
  999. }
  1000. p {
  1001. font-size: 12px;
  1002. color: #676870;
  1003. }
  1004. margin:50px 0 28px 0;
  1005. }
  1006. >>>.el-step__head {
  1007. color: #E9EAEB;
  1008. .el-step__icon {
  1009. background: #FFFFFF;
  1010. width: 50px;
  1011. height: 50px;
  1012. border-radius: 0;
  1013. border: 1px solid #F3F4F5;
  1014. }
  1015. }
  1016. >>>.el-step__head.is-process {
  1017. border-color: #CDCDCD
  1018. }
  1019. >>>.el-step__line {
  1020. background-color: #F3F4F5;
  1021. height: 1px !important;
  1022. top: 50% !important;
  1023. overflow: hidden;
  1024. }
  1025. >>>.is-finish {
  1026. border-color: #C5AA7B;
  1027. color: #FFFFFF;
  1028. font-weight: 500 !important;
  1029. .el-step__icon {
  1030. background: #FFFFFF;
  1031. height: 50px;
  1032. width: 50px;
  1033. color: #C5AA7B;
  1034. border: 1px solid #C5AA7B;
  1035. border-radius: 0;
  1036. }
  1037. }
  1038. >>>.el-step__main {
  1039. .is-finish {
  1040. color: #333333;
  1041. }
  1042. }
  1043. >>>.el-step__title.is-process {
  1044. font-size: 14px;
  1045. color: #999999;
  1046. font-weight: 500;
  1047. }
  1048. >>>.el-step__title.is-wait {
  1049. font-size: 14px;
  1050. color: #999999;
  1051. font-weight: 500;
  1052. }
  1053. >>>.el-step__main {
  1054. .el-step__title {
  1055. font-size: 14px;
  1056. }
  1057. .is-success {
  1058. color: $mainColor;
  1059. }
  1060. }
  1061. .mFormBox {
  1062. padding: 0 5%;
  1063. margin-top: 41px;
  1064. .formTit {
  1065. span {
  1066. font-size: 17px;
  1067. font-weight: bold;
  1068. color: #444444;
  1069. line-height: 18px;
  1070. position: relative;
  1071. i {
  1072. background: linear-gradient(267deg, #FF8F25 0%, rgba(254, 179, 24, 0.48) 52%, rgba(255, 255, 255, 0) 100%);
  1073. opacity: 0.7;
  1074. display: block;
  1075. height: 11px;
  1076. width: 100%;
  1077. bottom: -2px;
  1078. position: absolute;
  1079. }
  1080. }
  1081. }
  1082. .form {
  1083. margin-top: 25px;
  1084. .inputItem {
  1085. margin-top: 20px;
  1086. .labelTit {
  1087. display: flex;
  1088. label {
  1089. color: #333333;
  1090. font-weight: 500;
  1091. font-size: 14px;
  1092. i {
  1093. color: $mainColor;
  1094. font-size: 15px;
  1095. margin-right: 5px;
  1096. }
  1097. }
  1098. }
  1099. input {
  1100. width: 100%;
  1101. border-bottom: 1px solid #F6F4F7;
  1102. height: 50px;
  1103. line-height: 50px;
  1104. font-size: 14px;
  1105. color: #666666;
  1106. padding-left: 10px;
  1107. }
  1108. input::placeholder {
  1109. color: #999999;
  1110. }
  1111. .voucher-wrapper {
  1112. display: flex;
  1113. align-items: center;
  1114. }
  1115. }
  1116. .arrow {
  1117. position: relative;
  1118. span {
  1119. position: absolute;
  1120. right: 5px;
  1121. top: 30px;
  1122. color: #999999;
  1123. }
  1124. }
  1125. .arrowTime {
  1126. position: relative;
  1127. span {
  1128. position: absolute;
  1129. right: 5px;
  1130. top: 20px;
  1131. color: #999999;
  1132. }
  1133. }
  1134. .describe {
  1135. color: #BBBBBB;
  1136. font-size: 12px;
  1137. margin-top: 10px;
  1138. line-height: 20px;
  1139. padding-left: 10px;
  1140. }
  1141. }
  1142. }
  1143. .nextBtn {
  1144. display: block;
  1145. margin: 50px auto 0 auto;
  1146. width: 315px;
  1147. height: 42px;
  1148. background: #333333;
  1149. color: $mainColor;
  1150. }
  1151. .businessLicense {
  1152. width: 100%;
  1153. background: #F3F4F5;
  1154. margin-top: 10px;
  1155. display: flex;
  1156. .van-uploader {
  1157. margin: 10px auto;
  1158. }
  1159. >>>.van-uploader__preview-image {
  1160. width: 162px;
  1161. height: 135px;
  1162. }
  1163. .updateLicense {
  1164. width: 162px;
  1165. height: 135px;
  1166. .updateTop {
  1167. display: flex;
  1168. justify-content: center;
  1169. height: 110px;
  1170. align-items: center;
  1171. img {
  1172. width: 169px;
  1173. height: 100px;
  1174. }
  1175. }
  1176. .updateBottom {
  1177. width: 162px;
  1178. height: 25px;
  1179. font-size: 13px;
  1180. line-height: 25px;
  1181. color: #999999;
  1182. text-align: center;
  1183. }
  1184. }
  1185. }
  1186. }
  1187. .preview-cover {
  1188. position: absolute;
  1189. bottom: 0;
  1190. box-sizing: border-box;
  1191. width: 100%;
  1192. padding: 4px;
  1193. color: #fff;
  1194. font-size: 12px;
  1195. text-align: center;
  1196. background: rgba(0, 0, 0, 0.3);
  1197. }
  1198. .centBox {
  1199. >>>.el-step {
  1200. .el-step:nth-child(1) {
  1201. .el-step__icon-inner {}
  1202. }
  1203. }
  1204. }
  1205. .loading-container {
  1206. position: fixed;
  1207. bottom: 0;
  1208. left: 0;
  1209. right: 0;
  1210. height: 400px;
  1211. display: flex;
  1212. align-items: center;
  1213. justify-content: center;
  1214. z-index: 1000;
  1215. }
  1216. </style>