index.vue 38 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313
  1. <template>
  2. <view :style="'background-color: '+activityData.color">
  3. <form v-if="!posterStatus" @submit="formSubmit">
  4. <view v-if="activityData.activity_name" class='personal-data' :style="viewColor">
  5. <view class='list'>
  6. <!--活动背景图-->
  7. <view class="activity-pic">
  8. <image :src="activityData.pic" class="image" mode="widthFix"></image>
  9. </view>
  10. <view class="wrapper">
  11. <view class="text-info">
  12. <view class="acea-row activity-name">
  13. <view class="title line2">{{activityData.activity_name}}</view>
  14. <view class="share" @click="listenerActionSheet">
  15. <i class="iconfont icon-fenxiang4"></i>
  16. 分享
  17. </view>
  18. </view>
  19. <view class="activity-item">
  20. <view class="iconfont icon-huodong-shijian"></view>
  21. <view v-if="activityData.start_time&&activityData.end_time" class="info">
  22. {{formatDate(new Date(activityData.start_time))}} - {{formatDate(new Date(activityData.end_time))}}
  23. </view>
  24. </view>
  25. <view class="activity-item">
  26. <view class="iconfont icon-huodong-renshu"></view>
  27. <view class="info">{{activityData.count == 0 ? '不限人数' : activityData.count+'人'}}</view>
  28. </view>
  29. <view class="activity-item">
  30. <view class="iconfont icon-huodong-renshu"></view>
  31. <view class="info info-theme">
  32. {{activityData.total}}人
  33. </view>
  34. </view>
  35. <view class="acea-row">
  36. <view class="iconfont icon-huodong-jianjie"></view>
  37. <view class="info acea-info">{{activityData.info}}</view>
  38. </view>
  39. </view>
  40. </view>
  41. <view class='wrapper' :class="{'form-wrapper' : disabled}" v-if="formData.length">
  42. <view class='item acea-row row-between-wrapper' :class="{on:(item.name=='radios' || item.name=='checkboxs'),on2:item.name == 'dateranges',on3:item.name == 'citys'}" v-for="(item,index) in formData" :key="index">
  43. <view class="name">
  44. {{ item.titleConfig.value }}
  45. <span class="asterisk" v-if="item.titleShow.val">*</span>
  46. </view>
  47. <!-- radio -->
  48. <view v-if="item.name=='radios'" class="discount">
  49. <radio-group @change="radioChange($event, index, item)" class="acea-row row-middle row-right item-select" :class="disabled == 1 ? 'disabled' : ''">
  50. <label class="radio" v-for="(j,jindex) in item.wordsConfig.list" :key="jindex">
  51. <view class="acea-row row-middle">
  52. <!-- #ifndef MP -->
  53. <radio :value="jindex.toString()" :checked='j.show'/>
  54. <!-- #endif -->
  55. <!-- #ifdef MP -->
  56. <radio :value="jindex" :checked='j.show'/>
  57. <!-- #endif -->
  58. <view>{{j.val}}</view>
  59. </view>
  60. </label>
  61. </radio-group>
  62. </view>
  63. <!-- checkbox -->
  64. <view v-if="item.name=='checkboxs'" class="discount">
  65. <checkbox-group @change="checkboxChange($event, index, item)" class="acea-row row-middle row-right item-select" :class="disabled == 1 ? 'disabled' : ''">
  66. <label class="radio" v-for="(j,jindex) in item.wordsConfig.list" :key="jindex">
  67. <view class="acea-row row-middle">
  68. <!-- #ifndef MP -->
  69. <checkbox :value="jindex.toString()" :checked="j.show" style="transform:scale(0.9)" />
  70. <!-- #endif -->
  71. <!-- #ifdef MP -->
  72. <checkbox :value="jindex" :checked="j.show" style="transform:scale(0.9)" />
  73. <!-- #endif -->
  74. <view>{{j.val}}</view>
  75. </view>
  76. </label>
  77. </checkbox-group>
  78. </view>
  79. <!-- text -->
  80. <view v-if="item.name=='texts' && item.valConfig.tabVal == 0" class="discount">
  81. <input type="text" :placeholder="item.tipConfig.value" placeholder-class="placeholder" v-model="item.value" :disabled="disabled"/>
  82. </view>
  83. <!-- number -->
  84. <view v-if="item.name=='texts' && item.valConfig.tabVal == 4" class="discount">
  85. <input type="number" :placeholder="item.tipConfig.value" placeholder-class="placeholder" v-model="item.value" :disabled="disabled"/>
  86. </view>
  87. <!-- email -->
  88. <view v-if="item.name=='texts' && item.valConfig.tabVal == 3" class="discount">
  89. <input type="text" :placeholder="item.tipConfig.value" placeholder-class="placeholder" v-model="item.value" :disabled="disabled"/>
  90. </view>
  91. <!-- date -->
  92. <view v-if="item.name=='dates'" class="discount">
  93. <picker mode="date" :value="item.value" @change="bindDateChange($event,index)" :class="item.value.length ? '' : 'placeholder'">
  94. <view class="acea-row row-between-wrapper">
  95. <view v-if="item.value == ''">{{item.tipConfig.value}}</view>
  96. <view v-else>{{item.value}}</view>
  97. <text class='iconfont icon-jiantou'></text>
  98. </view>
  99. </picker>
  100. </view>
  101. <!-- dateranges -->
  102. <view v-if="item.name=='dateranges'" class="discount" :class="item.value.length ? '' : 'placeholder'">
  103. <uni-datetime-picker v-model="item.value" type="daterange" @maskClick="maskClick" :class="disabled == 1 ? 'disabled' : ''">
  104. {{item.value.length?item.value[0]+' - '+item.value[1]:item.tipConfig.value}}
  105. <text class='iconfont icon-jiantou'></text>
  106. </uni-datetime-picker>
  107. </view>
  108. <!-- time -->
  109. <view v-if="item.name=='times'" class="discount" :class="item.value.length ? '' : 'placeholder'">
  110. <picker mode="time" :value="item.value" @change="bindTimeChange($event,index)"
  111. :placeholder="item.tipConfig.value" :class="disabled == 1 ? 'disabled' : ''">
  112. <view class="acea-row row-between-wrapper">
  113. <view v-if="item.value == ''">{{item.tipConfig.value}}</view>
  114. <view v-else>{{item.value}}</view>
  115. <text class='iconfont icon-jiantou'></text>
  116. </view>
  117. </picker>
  118. </view>
  119. <!-- timeranges -->
  120. <view v-if="item.name=='timeranges'" class="discount acea-row row-between-wrapper" @click="getTimeranges(index)" :class="item.value.length ? '' : 'placeholder'">
  121. <view v-if="item.value">{{item.value}}</view>
  122. <view v-else>{{item.tipConfig.value}}</view>
  123. <text class='iconfont icon-jiantou'></text>
  124. </view>
  125. <!-- select -->
  126. <view v-if="item.name=='selects'" class="discount">
  127. <picker :value="item.value" :range="item.wordsConfig.list" @change="bindSelectChange($event,index,item)" range-key="val" :class="disabled ? 'disabled' : ''">
  128. <view class="acea-row row-between-wrapper">
  129. <view v-if="item.value">{{item.value}}</view>
  130. <view v-else class="placeholder">请选择</view>
  131. <text class='iconfont icon-jiantou'></text>
  132. </view>
  133. </picker>
  134. </view>
  135. <!-- city -->
  136. <view v-if="item.name=='citys'" class="discount" @click="changeRegion(index)" :class="disabled ? 'disabled' : ''">
  137. <view class="acea-row row-middle row-right">
  138. <view class="city" v-if="item.value == ''">{{item.tipConfig.value}}</view>
  139. <view class="city item-select" v-else>{{item.value}}</view>
  140. <text class='iconfont icon-jiantou'></text>
  141. </view>
  142. </view>
  143. <!-- id -->
  144. <view v-if="item.name=='texts' && item.valConfig.tabVal == 2" class="discount">
  145. <input type="idcard" :placeholder="item.tipConfig.value" placeholder-class="placeholder" v-model="item.value" :disabled="disabled" />
  146. </view>
  147. <!-- phone -->
  148. <view v-if="item.name=='texts' && item.valConfig.tabVal == 1" class="discount">
  149. <input type="number" :placeholder="item.tipConfig.value" placeholder-class="placeholder" v-model="item.value" :disabled="disabled" />
  150. </view>
  151. <!-- img -->
  152. <view v-if="item.name=='uploadPicture'" class="confirmImg" style="padding-bottom: 0;">
  153. <view class='upload acea-row row-middle'>
  154. <view class='pictrue' v-for="(items,indexs) in item.value" :key="indexs">
  155. <image :src='items' mode="aspectFill"></image>
  156. <view v-if="!disabled" class="close acea-row row-center-wrapper" @tap='DelPic(index,indexs)'>
  157. <view class="iconfont icon-guanbi5"></view>
  158. </view>
  159. </view>
  160. <view class='pictrue acea-row row-center-wrapper row-column' @tap.stop='uploadpic(index)'
  161. v-if="item.value.length < item.numConfig.val && !disabled">
  162. <text class='iconfont icon-icon25201'></text>
  163. <view>上传图片</view>
  164. </view>
  165. </view>
  166. </view>
  167. </view>
  168. </view>
  169. </view>
  170. <view class="footer">
  171. <button v-if="activityData.time_status==-1" class='modifyBnt disabled'>已结束</button>
  172. <button v-else-if="activityData.count==activityData.total && activityData.count!=0" class='modifyBnt disabled'>已报满</button>
  173. <button v-else-if="disabled && activityData.time_status==1" class='modifyBnt' @click="listenerActionSheet">分享好友</button>
  174. <block v-else>
  175. <button v-if="activityData.time_status==1" class='modifyBnt' formType="submit">提交报名</button>
  176. <button v-else-if="activityData.time_status==0" class='modifyBnt disabled'>未开始</button>
  177. </block>
  178. </view>
  179. </view>
  180. </form>
  181. <timeranges :isShow='isShow' :time='timeranges' @confrim="confrim" @cancel="cancels"></timeranges>
  182. <!--提交成功弹窗-->
  183. <view class="success" v-if="isShowbox">
  184. <view class="bg" @click="isShowbox=false"></view>
  185. <view class="con">
  186. <image :src="domain+'/static/images/sign_success.png'" mode=""></image>
  187. <view class="title">报名成功</view>
  188. <view class="text">感谢参与,您已完成报名!</view>
  189. <view class="foot">
  190. <navigator url="/pages/activity/my_registrate/index" hover-class='none' class="btn">查看详情</navigator>
  191. <view class="btn" @click="listenerActionSheet">分享报名</view>
  192. </view>
  193. </view>
  194. </view>
  195. <!-- 分享按钮 -->
  196. <view class="generate-posters acea-row row-middle" :class="posters ? 'on' : ''">
  197. <!-- #ifndef MP -->
  198. <button class="item" :class="weixinStatus ? 'item3' : ''" hover-class='none' v-if="weixinStatus === true" @click="H5ShareBox=true;posters=false;">
  199. <view class="iconfont icon-weixin3"></view>
  200. <view class="">发送给朋友</view>
  201. </button>
  202. <!-- #endif -->
  203. <!-- #ifdef MP -->
  204. <button class="item" :class="weixinStatus ? 'item3' : ''" open-type="share" hover-class='none' @click="goFriend">
  205. <view class="iconfont icon-weixin3"></view>
  206. <view class="">发送给朋友</view>
  207. </button>
  208. <!-- #endif -->
  209. <button class="item" :class="weixinStatus ? 'item3' : ''" hover-class='none' @tap="goPoster">
  210. <view class="iconfont icon-haibao"></view>
  211. <view class="">生成海报</view>
  212. </button>
  213. </view>
  214. <view class="mask" v-if="posters" @click="listenerActionClose"></view>
  215. <!-- 发送给朋友图片 -->
  216. <view class="share-box" v-if="H5ShareBox">
  217. <image :src="`${domain}/static/images/share-info.png`" @click="H5ShareBox=false;"></image>
  218. </view>
  219. <areaWindow ref="areaWindow" :display="display" :address='addressInfoArea' :cityShow='cityShow' @submit="OnAreaAddress" @changeClose="changeAddressClose"></areaWindow>
  220. <!--分享海报-->
  221. <view class='distribution-posters' v-if="posterStatus">
  222. <swiper :indicator-dots="indicatorDots" :autoplay="autoplay" :circular="circular" :interval="interval" :duration="duration"
  223. @change="bindchange" previous-margin="40px" next-margin="40px">
  224. <block v-for="(item,index) in spreadData" :key="index" class="img-list">
  225. <swiper-item class="aaa">
  226. <div class="box" ref="bill" :class="swiperIndex == index ? 'active' : 'quiet'">
  227. <view class="user-msg">
  228. <view class="user-code">
  229. <image class="canvas" :style="{height:hg+'px'}" :src="posterImage[index]"
  230. v-if="posterImage[index]"></image>
  231. <canvas class="canvas" :style="{height:hg+'px'}" :canvas-id="'myCanvas'+ index"
  232. v-else></canvas>
  233. </view>
  234. </view>
  235. </div>
  236. <!-- <image :src="item.wap_poster" class="slide-image" :class="swiperIndex == index ? 'active' : 'quiet'" mode='aspectFill' /> -->
  237. </swiper-item>
  238. </block>
  239. </swiper>
  240. <!-- #ifndef H5 -->
  241. <view class='keep b-color' @click='savePosterPath(posterImage[swiperIndex])' :style="viewColor">保存海报</view>
  242. <!-- #endif -->
  243. </view>
  244. </view>
  245. </template>
  246. <script>
  247. // +----------------------------------------------------------------------
  248. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  249. // +----------------------------------------------------------------------
  250. // | Copyright (c) 2016~2024 https://www.crmeb.com All rights reserved.
  251. // +----------------------------------------------------------------------
  252. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  253. // +----------------------------------------------------------------------
  254. // | Author: CRMEB Team <admin@crmeb.com>
  255. // +----------------------------------------------------------------------
  256. const CACHE_CITY = {};
  257. import { registrateDetail, registrateCreate, registrateRecordDetail,
  258. registratePoster, imgToBase } from '@/api/user.js';
  259. import shareScence from '@/libs/spread';
  260. import { switchH5Login, getCity } from '@/api/api.js';
  261. import { mapGetters } from "vuex";
  262. import { toLogin } from '@/libs/login.js';
  263. import { HTTP_REQUEST_URL } from '@/config/app';
  264. import dayjs from "@/plugin/dayjs/dayjs.min.js";
  265. import areaWindow from '@/components/areaWindow';
  266. import timeranges from '@/components/timeranges';
  267. export default {
  268. data() {
  269. return {
  270. domain: HTTP_REQUEST_URL,
  271. userInfo: {},
  272. activityData: {},
  273. formData: {},
  274. loginType: 'h5', //app.globalData.loginType
  275. activity_id: "",
  276. isShowbox: false,
  277. selectIndex:0,
  278. timerangesIndex:0,
  279. newImg: [],
  280. display: false,
  281. cityShow: 2,
  282. addressInfoArea: [],
  283. timeranges: [],
  284. mp_is_new: this.$Cache.get('MP_VERSION_ISNEW') || false,
  285. posters: false,
  286. weixinStatus: false,
  287. posterStatus: false,
  288. H5ShareBox: false,
  289. disabled: false,
  290. isShow:false,
  291. imgUrls: [],
  292. indicatorDots: false,
  293. posterImageStatus: true,
  294. circular: false,
  295. autoplay: false,
  296. interval: 3000,
  297. duration: 500,
  298. swiperIndex: 0,
  299. spreadList: [],
  300. spid: "",
  301. poster: '',
  302. spreadData: [{}], //新海报数据
  303. nickName: "",
  304. siteName: "",
  305. mpUrl: "",
  306. canvasImageUrl: '',
  307. posterImage: [],
  308. //二维码参数
  309. codeShow: false,
  310. cid: '1',
  311. ifShow: true,
  312. val: "", // 要生成的二维码值
  313. size: 200, // 二维码大小
  314. unit: 'upx', // 单位
  315. background: '#FFF', // 背景色
  316. foreground: '#000', // 前景色
  317. pdground: '#32dbc6', // 角标色
  318. icon: '', // 二维码图标
  319. iconsize: 40, // 二维码图标大小
  320. lv: 3, // 二维码容错级别 , 一般不用设置,默认就行
  321. onval: true, // val值变化时自动重新生成二维码
  322. loadMake: true, // 组件加载完成后自动生成二维码
  323. src: '', // 二维码生成后的图片地址或base64
  324. codeSrc: "",
  325. wd: 225,
  326. hg: 500
  327. };
  328. },
  329. components: {
  330. areaWindow,
  331. timeranges,
  332. },
  333. computed:{
  334. ...mapGetters(['isLogin','viewColor','keyColor']),
  335. },
  336. watch: {
  337. },
  338. onLoad(option) {
  339. this.activity_id = option.id
  340. this.spid = option.spid
  341. let current = (dayjs(new Date(Number(new Date().getTime()))).format('HH:mm')).split(':');
  342. let currentArray = current;
  343. currentArray.push(0);
  344. let arrayNew = [];
  345. [...currentArray,...current].forEach(item=>{
  346. arrayNew.push(Number(item))
  347. })
  348. this.timeranges = arrayNew;
  349. if (this.isLogin) {
  350. this.registrateDetail();
  351. shareScence(this.spid,this.isLogin)
  352. }else{
  353. toLogin()
  354. }
  355. },
  356. onShow() {
  357. },
  358. /**
  359. * 用户点击右上角分享
  360. */
  361. // #ifdef MP
  362. onShareAppMessage: function() {
  363. let that = this;
  364. that.$set(that, 'actionSheetHidden', !that.actionSheetHidden);
  365. return {
  366. title: that.activityData.activity_name || '',
  367. imageUrl: that.activityData.pic || '',
  368. path: '/pages/activity/registrate_activity/index?id=' + that.activity_id + '&spid=' + that.uid,
  369. }
  370. },
  371. onShareTimeline: function() {
  372. let that = this;
  373. that.$set(that, 'actionSheetHidden', !that.actionSheetHidden);
  374. return {
  375. title: that.activityData.activity_name || '',
  376. query: {
  377. id: that.activity_id,
  378. spid: that.uid
  379. },
  380. imageUrl: that.activityData.pic || ''
  381. }
  382. },
  383. // #endif
  384. methods: {
  385. /*判断时间大小*/
  386. compareTime(time) {
  387. var date1 = new Date(time);
  388. var date2 = new Date();
  389. if (date1 > date2) {
  390. return true;
  391. } else if (date1 <= date2) {
  392. return false;
  393. }
  394. },
  395. formatDate(date){
  396. let year = date.getFullYear();
  397. let month = date.getMonth()+1;
  398. let day = date.getDate();
  399. let H = date.getHours();
  400. let M = date.getMinutes();
  401. let S = date.getSeconds();
  402. month = month < 10 ?'0'+ month : month;
  403. day = day < 10 ?'0'+ day : day;
  404. H = H < 10 ?'0'+ H : H;
  405. M = M < 10 ?'0'+ M : M;
  406. S = S < 10 ?'0'+ S : S;
  407. return year+'.'+month+'.'+day +'.'+H +':'+M;
  408. },
  409. /**
  410. * 获取表单数据详情
  411. */
  412. registrateDetail: function() {
  413. let that = this;
  414. uni.showLoading()
  415. registrateDetail(that.activity_id).then(res => {
  416. uni.hideLoading()
  417. let data = res.data;
  418. if(data.activity_related_id){
  419. that.disabled = true
  420. that.getRecordDetail(data.activity_related_id)
  421. }else{
  422. that.$set(that, 'activityData', data);
  423. that.disabled = that.compareTime(data.end_time) ? false : true
  424. if(that.disabled){
  425. return this.$util.Tips({
  426. title: '活动已结束'
  427. }, {
  428. tab: 3,
  429. url: 1
  430. })
  431. }
  432. if(data.systemForm&&data.systemForm.value){
  433. let formData = that.objToArr(data.systemForm.value)
  434. that.filterData(formData)
  435. }else{
  436. return this.$util.Tips({
  437. title: '关联表单已被删除'
  438. }, {
  439. tab: 3,
  440. url: 1
  441. })
  442. }
  443. }
  444. }).catch(err => {
  445. uni.hideLoading();
  446. return this.$util.Tips({
  447. title: err
  448. }, {
  449. tab: 3,
  450. url: 1
  451. })
  452. })
  453. },
  454. getRecordDetail(id){
  455. let that = this
  456. registrateRecordDetail(id).then(res => {
  457. uni.hideLoading()
  458. let data = res.data;
  459. that.$set(that, 'activityData', data.activity);
  460. let formData = that.objToArr(data.form_value)
  461. formData.forEach((item, index)=>{
  462. for(var i in data.value){
  463. if(item['key'] == i){
  464. item.value = data.value[i]
  465. if(item['name']=='checkboxs' || item['name']=='radios'){
  466. let valueList = data.value[i].split(',')
  467. item['wordsConfig']['list'].forEach((list,idx)=>{
  468. valueList.forEach((val,i)=>{
  469. if(list['val'] == val){
  470. item['wordsConfig']['list'][idx]['show'] = true
  471. }
  472. })
  473. })
  474. }
  475. }
  476. }
  477. })
  478. function sortNumber(a, b) {
  479. return a.timestamp - b.timestamp;
  480. }
  481. formData.sort(sortNumber);
  482. that.$set(that, 'formData', formData);
  483. }).catch(err => {
  484. uni.hideLoading();
  485. return that.$util.Tips({
  486. title: err
  487. }, {
  488. tab: 3,
  489. url: 1
  490. })
  491. })
  492. },
  493. filterData(formData){
  494. let that = this;
  495. formData.forEach((item, index, arr)=>{
  496. that.$set(item, 'value', "");
  497. CACHE_CITY[index] = ''; //清空省市区
  498. if(item.name == 'texts'){
  499. if(item.defaultValConfig.value){
  500. item.value = item.defaultValConfig.value
  501. }else{
  502. item.value = ''
  503. }
  504. }else if(item.name == 'radios'){
  505. item.value = item.wordsConfig.list[0].val
  506. }else if(item.name == 'uploadPicture'){
  507. item.value = [];
  508. }else if(item.name == 'dateranges'){
  509. if(item.valConfig.tabVal==0){
  510. if(item.valConfig.tabData==0){
  511. let obj = dayjs(new Date(Number(new Date().getTime()))).format('YYYY-MM-DD');
  512. item.value = [obj,obj]
  513. }else{
  514. let data1 = dayjs(new Date(Number(new Date(item.valConfig.specifyDate[0]).getTime()))).format('YYYY-MM-DD');
  515. let data2 = dayjs(new Date(Number(new Date(item.valConfig.specifyDate[1]).getTime()))).format('YYYY-MM-DD');
  516. item.value = [data1,data2];
  517. }
  518. }else{
  519. item.value = [];
  520. }
  521. }else{
  522. if(['times','dates','timeranges'].indexOf(item.name) != -1){
  523. if(item.valConfig.tabVal==0){
  524. if(item.valConfig.tabData==0){
  525. if(item.name == 'times'){
  526. item.value = dayjs(new Date(Number(new Date().getTime()))).format('HH:mm');
  527. }else if(item.name == 'dates'){
  528. item.value = dayjs(new Date(Number(new Date().getTime()))).format('YYYY-MM-DD');
  529. }else{
  530. let current = dayjs(new Date(Number(new Date().getTime()))).format('HH:mm');
  531. item.value = current+' - '+current;
  532. }
  533. }else{
  534. if(item.name == 'times' || item.name == 'dates'){
  535. item.value = item.valConfig.specifyDate;
  536. }else{
  537. item.value = item.valConfig.specifyDate[0]+' - '+item.valConfig.specifyDate[1];
  538. }
  539. }
  540. }else{
  541. item.value = '';
  542. }
  543. }else if(item.name == 'city'){
  544. item.value = '';
  545. }else{
  546. item.value = '';
  547. }
  548. }
  549. })
  550. function sortNumber(a, b) {
  551. return a.timestamp - b.timestamp;
  552. }
  553. formData.sort(sortNumber);
  554. that.$set(that, 'formData', formData);
  555. },
  556. // 对象转数组
  557. objToArr(data) {
  558. let obj = Object.keys(data);
  559. let m = obj.map(key => data[key]);
  560. return m;
  561. },
  562. // 单选
  563. radioChange(e, index, item){
  564. this.formData[index].value = item.wordsConfig.list[e.detail.value].val
  565. },
  566. clickTextArea() {
  567. this.$refs.textarea.focus()
  568. },
  569. bindDateChange(e, index) {
  570. this.formData[index].value = e.target.value
  571. this.$forceUpdate()
  572. },
  573. bindTimeChange(e, index) {
  574. this.formData[index].value = e.target.value
  575. },
  576. bindSelectChange(e, index, item) {
  577. this.$set(this.formData[index], 'value', item.wordsConfig.list[e.detail.value].val);
  578. },
  579. getTimeranges(index){
  580. this.isShow = true
  581. this.timerangesIndex = index
  582. },
  583. confrim(e){
  584. this.isShow = false;
  585. this.formData[this.timerangesIndex].value = e.time;
  586. let arrayNew = [];
  587. e.val.forEach(item=>{
  588. arrayNew.push(Number(item))
  589. })
  590. this.timeranges = arrayNew;
  591. },
  592. cancels(){
  593. this.isShow = false;
  594. },
  595. // 多选
  596. checkboxChange(e, index, item){
  597. let obj = e.detail.value;
  598. let val = '';
  599. item.wordsConfig.list.forEach((j,jindex)=>{
  600. obj.forEach(x=>{
  601. if(jindex == x){
  602. val = val +(val?',':'') + j.val;
  603. }
  604. })
  605. })
  606. this.formData[index].value = val
  607. },
  608. OnAreaAddress(address){
  609. let addr = '';
  610. addr = address.map(v=>v.name).join('/');
  611. this.formData[this.timerangesIndex].value = addr;
  612. CACHE_CITY[this.timerangesIndex] = address;
  613. },
  614. changeRegion(index){
  615. if(!this.formData[index].value){
  616. this.addressInfoArea = [];
  617. }
  618. this.timerangesIndex = index;
  619. this.cityShow = Number(this.formData[index].valConfig.tabVal) + 1;
  620. this.display = true;
  621. if(CACHE_CITY[index]){
  622. this.addressInfoArea = CACHE_CITY[index];
  623. }
  624. },
  625. // 关闭地址弹窗;
  626. changeAddressClose: function() {
  627. this.display = false;
  628. },
  629. /**上传文件*/
  630. uploadpic: function(index) {
  631. let that = this;
  632. this.$util.uploadImageOne('upload/image', function(res) {
  633. that.formData[index]['value'].push(res.data.path)
  634. });
  635. },
  636. /**
  637. * 删除图片
  638. *
  639. */
  640. DelPic: function(index, indexs) {
  641. let that = this,
  642. pic = this.formData[index].value;
  643. that.formData[index].value.splice(indexs, 1);
  644. that.$set(that.formData[index], 'value', that.formData[index].value);
  645. },
  646. /**
  647. * 提交修改
  648. */
  649. formSubmit: function(e) {
  650. let that = this,parmas={};
  651. if(!that.isLogin){
  652. toLogin()
  653. }else{
  654. for (var i = 0; i < that.formData.length; i++) {
  655. let data = that.formData[i]
  656. if (['radios'].indexOf(data.name) == -1 && (data.titleShow.val || (['uploadPicture','dateranges'].indexOf(data.name) == -1 && data.value && data.value.trim()))) {
  657. if ((data.name === 'texts' && data.valConfig.tabVal == 0) || ['dates','times','selects','citys','checkboxs'].indexOf(data.name) != -1) {
  658. if (!data.value || (data.value && !data.value.trim())) {
  659. return that.$util.Tips({
  660. title: `请选择${data.titleConfig.value}`
  661. });
  662. }
  663. }
  664. if(data.name === 'timeranges'){
  665. if(!data.value){
  666. return that.$util.Tips({
  667. title: `请选择${data.titleConfig.value}`
  668. });
  669. }
  670. }
  671. if (data.name === 'dateranges') {
  672. if (!data.value.length) {
  673. return that.$util.Tips({
  674. title: `请选择${data.titleConfig.value}`
  675. });
  676. }
  677. }
  678. if (data.name === 'texts' && data.valConfig.tabVal == 4) {
  679. if (data.value <= 0) {
  680. return that.$util.Tips({
  681. title: `请填写大于0的${data.titleConfig.value}`
  682. });
  683. }
  684. }
  685. if (data.name === 'texts' && data.valConfig.tabVal == 3) {
  686. if (!/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/.test(data.value)) {
  687. return that.$util.Tips({
  688. title: `请填写正确的${data.titleConfig.value}`
  689. });
  690. }
  691. }
  692. if (data.name === 'texts' && data.valConfig.tabVal == 1) {
  693. if (!/^1(3|4|5|7|8|9|6)\d{9}$/i.test(data.value)) {
  694. return that.$util.Tips({
  695. title: `请填写正确的${data.titleConfig.value}`
  696. });
  697. }
  698. }
  699. if (data.name === 'texts' && data.valConfig.tabVal == 2) {
  700. if (!
  701. /^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$|^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/i
  702. .test(data.value)) {
  703. return that.$util.Tips({
  704. title: `请填写正确的${data.titleConfig.value}`
  705. });
  706. }
  707. }
  708. if (data.name === 'uploadPicture') {
  709. if (!data.value.length) {
  710. return that.$util.Tips({
  711. title: `请上传${data.titleConfig.value}`
  712. });
  713. }
  714. }
  715. }
  716. parmas[data.key]=data.value
  717. }
  718. }
  719. uni.showLoading({
  720. title: '提交中',
  721. mask: true
  722. });
  723. registrateCreate(that.activity_id,parmas).then(res => {
  724. uni.hideLoading();
  725. that.isShowbox = true;
  726. }).catch(err => {
  727. uni.hideLoading();
  728. return that.$util.Tips({
  729. title: err
  730. });
  731. });
  732. },
  733. /**
  734. * 分享打开
  735. *
  736. */
  737. listenerActionSheet: function() {
  738. if (this.isLogin == false) {
  739. toLogin()
  740. } else {
  741. // #ifdef H5
  742. if (this.$wechat.isWeixin() === true) {
  743. this.weixinStatus = true;
  744. }
  745. // #endif
  746. this.posters = !this.posters;
  747. }
  748. },
  749. // 分享关闭
  750. listenerActionClose: function() {
  751. this.posters = false;
  752. },
  753. bindchange(e) {
  754. this.swiperIndex = e.detail.current;
  755. },
  756. async goPoster() {
  757. var that = this;
  758. that.posters = false;
  759. that.posterStatus = true;
  760. this.isShowbox = false;
  761. this.$nextTick(() => {
  762. let selector = uni.createSelectorQuery().select('.aaa');
  763. selector.fields({
  764. size: true
  765. }, data => {
  766. console.log(data)
  767. this.wd = data.width
  768. this.hg = data.height
  769. }).exec();
  770. })
  771. await this.getPosters()
  772. },
  773. //获取图片
  774. async getPosters() {
  775. let that = this
  776. let rqData = {
  777. id: that.activityData.activity_id,
  778. // #ifdef MP
  779. type: 'routine',
  780. // #endif
  781. // #ifndef MP
  782. type: 'h5',
  783. // #endif
  784. }
  785. let res = await registratePoster(that.activityData.activity_id)
  786. that.spreadData = res.data.poster
  787. that.nickName = res.data.nickname
  788. // #ifdef MP || APP-PLUS
  789. let mpUrl = await that.downloadFilestoreImage(res.data.qrcode)
  790. // #endif
  791. // #ifdef H5 || APP-PLUS
  792. let qrCode = await that.imgToBase(res.data.qrcode)
  793. // #endif
  794. uni.showLoading({
  795. title: '海报生成中',
  796. mask: true
  797. });
  798. for (let i = 0; i < res.data.poster.length; i++) {
  799. let arr2
  800. // #ifdef MP || APP-PLUS
  801. arr2 = [mpUrl, await that.downloadFilestoreImage(res.data.poster[i])]
  802. // #endif
  803. // #ifdef H5
  804. let img = await that.imgToBase(res.data.poster[i])
  805. arr2 = [qrCode, img]
  806. // #endif
  807. that.$util.userPosterCanvas(arr2, res.data.nickname, res.data.mark, i, that.wd, that.hg, (tempFilePath) => {
  808. that.$set(that.posterImage, i, tempFilePath);
  809. });
  810. uni.hideLoading();
  811. }
  812. },
  813. async imgToBase(url) {
  814. let res = await imgToBase({
  815. image: url
  816. })
  817. return res.data.image
  818. },
  819. //图片转符合安全域名路径
  820. downloadFilestoreImage(url) {
  821. return new Promise((resolve, reject) => {
  822. let that = this;
  823. uni.downloadFile({
  824. url: url,
  825. success: function(res) {
  826. resolve(res.tempFilePath);
  827. },
  828. fail: function() {
  829. return that.$util.Tips({
  830. title: ''
  831. });
  832. }
  833. });
  834. })
  835. },
  836. savePosterPath(url) {
  837. let that = this;
  838. // #ifdef MP
  839. uni.getSetting({
  840. success(res) {
  841. if (!res.authSetting['scope.writePhotosAlbum']) {
  842. uni.authorize({
  843. scope: 'scope.writePhotosAlbum',
  844. success() {
  845. uni.saveImageToPhotosAlbum({
  846. filePath: url,
  847. success: function(res) {
  848. that.$util.Tips({
  849. title: '保存成功',
  850. icon: 'success'
  851. });
  852. },
  853. fail: function(res) {
  854. that.$util.Tips({
  855. title: '保存失败'
  856. });
  857. }
  858. });
  859. }
  860. });
  861. } else {
  862. uni.saveImageToPhotosAlbum({
  863. filePath: url,
  864. success: function(res) {
  865. that.$util.Tips({
  866. title: '保存成功',
  867. icon: 'success'
  868. });
  869. },
  870. fail: function(res) {
  871. that.$util.Tips({
  872. title: '保存失败'
  873. });
  874. }
  875. });
  876. }
  877. }
  878. });
  879. // #endif
  880. // #ifdef APP-PLUS
  881. uni.saveImageToPhotosAlbum({
  882. filePath: url,
  883. success: function(res) {
  884. that.$util.Tips({
  885. title: '保存成功',
  886. icon: 'success'
  887. });
  888. },
  889. fail: function(res) {
  890. that.$util.Tips({
  891. title: '保存失败'
  892. });
  893. }
  894. });
  895. // #endif
  896. },
  897. // 小程序关闭分享弹窗;
  898. goFriend: function() {
  899. this.posters = false;
  900. // this.H5ShareBox = true
  901. },
  902. }
  903. }
  904. </script>
  905. <style scoped lang="scss">
  906. /deep/radio .wx-radio-input.wx-radio-input-checked,
  907. /deep/uni-radio .uni-radio-input.uni-radio-input-checked {
  908. border: 1px solid var(--view-theme)!important;
  909. background-color: var(--view-theme)!important;
  910. }
  911. /deep/checkbox .uni-checkbox-input.uni-checkbox-input-checked,
  912. /deep/checkbox .wx-checkbox-input.wx-checkbox-input-checked {
  913. border: 1px solid var(--view-theme)!important;
  914. background-color: var(--view-theme)!important;
  915. color: #fff!important;
  916. }
  917. .personal-data{
  918. padding-bottom: 150rpx;
  919. padding-bottom: calc(150rpx+ constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
  920. padding-bottom: calc(150rpx + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
  921. min-height: 100vh;
  922. }
  923. .personal-data .activity-pic{
  924. display: flex;
  925. align-items: center;
  926. justify-content: center;
  927. .image{
  928. width: 100%;
  929. }
  930. }
  931. .personal-data .wrapper {
  932. background-color: #fff;
  933. width: 710rpx;
  934. border-radius: 16rpx;
  935. margin: 0 auto;
  936. position: relative;
  937. top: -20rpx;
  938. +.wrapper{
  939. margin-top: 20rpx;
  940. }
  941. }
  942. .form-wrapper{
  943. pointer-events: none;
  944. }
  945. .personal-data .wrapper .text-info{
  946. padding: 30rpx;
  947. >view{
  948. +view{
  949. margin-top: 30rpx;
  950. }
  951. }
  952. .activity-name{
  953. justify-content: space-between;
  954. .title{
  955. width: 580rpx;
  956. color: #282828;
  957. font-size: 32rpx;
  958. font-weight: bold;
  959. }
  960. }
  961. .share{
  962. text-align: center;
  963. color: #666666;
  964. font-size: 18rpx;
  965. cursor: pointer;
  966. .icon-fenxiang4{
  967. display: block;
  968. color: #282828;
  969. font-size: 34rpx;
  970. margin: 0 0 3rpx 0;
  971. }
  972. }
  973. .iconfont{
  974. margin-right: 17rpx;
  975. }
  976. .activity-item{
  977. display: flex;
  978. align-items: center;
  979. }
  980. }
  981. .personal-data .wrapper .text-info .iconfont{
  982. color: #666666;
  983. }
  984. .personal-data .wrapper .text-info .info{
  985. color: #282828;
  986. &.info-theme{
  987. color: var(--view-theme);
  988. }
  989. }
  990. .personal-data .wrapper .text-info .acea-info{
  991. width: 600rpx;
  992. text-align: justify;
  993. word-break: break-all;
  994. }
  995. .personal-data .wrapper .item .name {
  996. position: relative;
  997. width: 190rpx;
  998. }
  999. .personal-data .wrapper .item {
  1000. padding: 27rpx 30rpx;
  1001. font-size: 28rpx;
  1002. color: #282828;
  1003. position: relative;
  1004. &::after{
  1005. content: "";
  1006. width: 670rpx;
  1007. border-bottom: 1px solid #eee;
  1008. position: absolute;
  1009. bottom: 0;
  1010. }
  1011. }
  1012. .personal-data .wrapper .disabled{
  1013. pointer-events: none;
  1014. }
  1015. .personal-data .wrapper .item.on{
  1016. padding: 16rpx 30rpx;
  1017. align-items: baseline;
  1018. }
  1019. .personal-data .wrapper .item.on3{
  1020. align-items: baseline;
  1021. }
  1022. .personal-data .wrapper .item .discount {
  1023. color: #282828;
  1024. font-size: 30rpx;
  1025. }
  1026. .personal-data .wrapper .item.on .discount,
  1027. .personal-data .wrapper .item.on3 .discount{
  1028. width: 460rpx;
  1029. text-align: right;
  1030. }
  1031. .personal-data .wrapper .item .item-select{
  1032. color: #282828;
  1033. }
  1034. .personal-data .wrapper .item.on3 .discount .city{
  1035. width: 400rpx;
  1036. color: #ccc;
  1037. &.item-select{
  1038. color: #282828;
  1039. }
  1040. }
  1041. .personal-data .wrapper .item .discount input {
  1042. text-align: right;
  1043. width: 450rpx;
  1044. }
  1045. .personal-data .wrapper .item .discount .iconfont {
  1046. color: #BBBBBB;
  1047. font-size: 28rpx;
  1048. margin-left: 15rpx;
  1049. }
  1050. .personal-data .wrapper .item .discount .num {
  1051. font-size: 32rpx;
  1052. margin-right: 20rpx;
  1053. }
  1054. .personal-data .wrapper .item .discount .radio{
  1055. margin: 0 22rpx 0 22rpx;
  1056. padding: 10rpx 0;
  1057. }
  1058. .personal-data .wrapper .item .discount .radio /deep/uni-checkbox .uni-checkbox-input{
  1059. border-radius: 0;
  1060. }
  1061. .personal-data .wrapper .item textarea {
  1062. background-color: #f9f9f9;
  1063. width: 650rpx;
  1064. height: 140rpx;
  1065. border-radius: 3rpx;
  1066. margin-top: 30rpx;
  1067. padding: 25rpx 28rpx;
  1068. box-sizing: border-box;
  1069. }
  1070. .personal-data .wrapper .item .placeholder {
  1071. color: #ccc;
  1072. font-size: 30rpx;
  1073. }
  1074. .asterisk{
  1075. color: red;
  1076. }
  1077. .footer{
  1078. background: #ffffff;
  1079. width: 750rpx;
  1080. height: 126rpx;
  1081. height: calc(126rpx+ constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
  1082. height: calc(126rpx + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
  1083. display: flex;
  1084. align-items: center;
  1085. justify-content: center;
  1086. position: fixed;
  1087. left: 0;
  1088. bottom: 0;
  1089. }
  1090. .personal-data .modifyBnt {
  1091. font-size: 32rpx;
  1092. color: var(--view-theme);
  1093. background-color: #ffffff;
  1094. border: 1px solid var(--view-theme);
  1095. width: 690rpx;
  1096. height: 90rpx;
  1097. border-radius: 50rpx;
  1098. text-align: center;
  1099. line-height: 90rpx;
  1100. &.disabled{
  1101. color: #ffffff;
  1102. background-color: #BBBBBB;
  1103. border-color: #BBBBBB;
  1104. }
  1105. }
  1106. .success {
  1107. z-index: 10;
  1108. position: fixed;
  1109. left: 0;
  1110. top: 0;
  1111. width: 100%;
  1112. height: 100%;
  1113. .bg {
  1114. position: absolute;
  1115. left: 0;
  1116. top: 0;
  1117. width: 100%;
  1118. height: 100%;
  1119. background-color: rgba(0, 0, 0, .5);
  1120. }
  1121. .con {
  1122. position: absolute;
  1123. left: 50%;
  1124. top: 50%;
  1125. transform: translate(-50%, -50%);
  1126. display: flex;
  1127. flex-direction: column;
  1128. align-items: center;
  1129. justify-content: center;
  1130. width: 520rpx;
  1131. height: 526rpx;
  1132. background: #fff;
  1133. border-radius: 10rpx;
  1134. font-size: 34rpx;
  1135. color: #282828;
  1136. image {
  1137. width: 214rpx;
  1138. height: 180rpx;
  1139. }
  1140. .title{
  1141. color: #282828;
  1142. font-size: 32rpx;
  1143. font-weight: bold;
  1144. }
  1145. .text{
  1146. color: #999999;
  1147. font-size: 26rpx;
  1148. margin-top: 30rpx;
  1149. }
  1150. .foot {
  1151. height: 78rpx;
  1152. border-top: 1px solid #EAEAEA;
  1153. display: flex;
  1154. align-items: center;
  1155. justify-content: center;
  1156. width: 100%;
  1157. position: absolute;
  1158. bottom: 0;
  1159. left: 0;
  1160. .btn{
  1161. color: #999999;
  1162. font-size: 26rpx;
  1163. width: 50%;
  1164. text-align: center;
  1165. height: 78rpx;
  1166. display: flex;
  1167. align-items: center;
  1168. justify-content: center;
  1169. +.btn{
  1170. color: #E93323;
  1171. position: relative;
  1172. &::before{
  1173. content: "";
  1174. display: block;
  1175. width: 1px;
  1176. height: 78rpx;
  1177. background: #EAEAEA;
  1178. position: absolute;
  1179. left: 0;
  1180. top: 0;
  1181. }
  1182. }
  1183. }
  1184. }
  1185. }
  1186. }
  1187. .generate-posters {
  1188. width: 100%;
  1189. height: 170rpx;
  1190. background-color: #fff;
  1191. position: fixed;
  1192. left: 0;
  1193. bottom: 0;
  1194. z-index: 301;
  1195. transform: translate3d(0, 100%, 0);
  1196. transition: all 0.3s cubic-bezier(0.25, 0.5, 0.5, 0.9);
  1197. border-top: 1rpx solid #eee;
  1198. }
  1199. .generate-posters.on {
  1200. transform: translate3d(0, 0, 0);
  1201. }
  1202. .generate-posters .item {
  1203. /* #ifdef H5 */
  1204. flex: 50%;
  1205. /* #endif */
  1206. /* #ifndef H5 */
  1207. flex: 33.33%;
  1208. /* #endif */
  1209. text-align: center;
  1210. font-size: 30rpx;
  1211. &.item3{
  1212. flex: 33.33%;
  1213. }
  1214. }
  1215. .generate-posters .item .iconfont {
  1216. font-size: 80rpx;
  1217. color: #5eae72;
  1218. }
  1219. .generate-posters .item .iconfont.icon-haibao {
  1220. color: #5391f1;
  1221. }
  1222. .generate-posters .item .iconfont.icon-fuzhikouling1 {
  1223. color: #FBB324;
  1224. }
  1225. .distribution-posters{
  1226. position: fixed;
  1227. top: 0;
  1228. left: 0;
  1229. width: 100%;
  1230. height: 100%;
  1231. background-color: #a3a3a3;
  1232. }
  1233. .canvas {
  1234. width: 100%;
  1235. position: absolute;
  1236. top: 0;
  1237. left: 0;
  1238. }
  1239. .box {
  1240. width: 100%;
  1241. height: 100%;
  1242. position: relative;
  1243. border-radius: 18rpx;
  1244. overflow: hidden;
  1245. .user-msg {
  1246. position: absolute;
  1247. width: 100%;
  1248. height: 100%;
  1249. display: flex;
  1250. align-items: center;
  1251. justify-content: center;
  1252. .user-code {
  1253. width: 100%;
  1254. display: flex;
  1255. align-items: center;
  1256. justify-content: center;
  1257. justify-content: space-between;
  1258. image {
  1259. width: 100%;
  1260. }
  1261. }
  1262. }
  1263. }
  1264. .img-list {
  1265. margin-right: 40px;
  1266. }
  1267. .distribution-posters swiper {
  1268. width: 100%;
  1269. height: 1000rpx;
  1270. position: relative;
  1271. margin-top: 40rpx;
  1272. }
  1273. .distribution-posters .slide-image {
  1274. width: 100%;
  1275. height: 100%;
  1276. margin: 0 auto;
  1277. border-radius: 15rpx;
  1278. }
  1279. .distribution-posters /deep/.active {
  1280. transform: none;
  1281. transition: all 0.2s ease-in 0s;
  1282. }
  1283. .distribution-posters /deep/ .quiet {
  1284. transform: scale(0.8333333);
  1285. transition: all 0.2s ease-in 0s;
  1286. }
  1287. .distribution-posters .keep {
  1288. font-size: 30rpx;
  1289. color: #fff;
  1290. width: 600rpx;
  1291. height: 80rpx;
  1292. border-radius: 50rpx;
  1293. text-align: center;
  1294. line-height: 80rpx;
  1295. margin: 38rpx auto;
  1296. background-color: var(--view-theme);
  1297. }
  1298. .share-box {
  1299. z-index: 1000;
  1300. position: fixed;
  1301. left: 0;
  1302. top: 0;
  1303. width: 100%;
  1304. height: 100%;
  1305. image {
  1306. width: 100%;
  1307. height: 100%;
  1308. }
  1309. }
  1310. </style>