standard.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766
  1. <template>
  2. <view class="content">
  3. <header-title :title="'普通二维码'+$test.$test"></header-title>
  4. <view class="main">
  5. <form @submit="Submit">
  6. <view class="box-pack-between ft32 item flex-y-center">
  7. <text>原图模式<text class="tips">(原图通过扫码才能正常访问时开启)</text></text>
  8. <view class="flex-center ft24">
  9. <switch :checked="is_real==1" name="is_real" @change="bindOriginal" style="transform:scale(0.7)" />
  10. </view>
  11. </view>
  12. <view class="box-pack-between ft32 item flex-y-center" v-if="is_real==2">
  13. <text>二维码 <text style="color:red">*</text> <text class="tips">(扫码/相册选取)</text></text>
  14. <image v-if="code_url" @click="qrcode" class="qrupimg" data-type="1" src="../../static/images/pay_bz.png" mode=""></image>
  15. <image v-else @click="qrcode" class="qrupimg" data-type="1" src="../../static/images/saoma.png" mode=""></image>
  16. </view>
  17. <view class="box-pack-between ft32 item flex-y-center" v-if="is_real==1">
  18. <text>上传原图 <text style="color:red">*</text> <text class="tips"></text></text>
  19. <image v-if="Original_img" @click="ChooseImage" :data-type="3" class="qrupimg" :src="URL+''+Original_img" mode=""></image>
  20. <image v-else @click="ChooseImage" :data-type="3" class="qrupimg" src="../../static/images/upimg.png" mode=""></image>
  21. </view>
  22. <FlowPool :thismoshi="moshi" :rule_arr_val="ruleArr" :this_moshi_type="moshi_type" :list_way="list_way" @ondel="binddel"
  23. @oncheck="bindcheck" @onTime='bindtime' @confirm="bindConfirm" @bindlevel="bindlevel"></FlowPool>
  24. <view v-if="moshi==1" >
  25. <view class="box-pack-between ft32 item">
  26. <text>{{$test.$test}}场景</text>
  27. <picker class="flex-center add-home ft24" @change="bindPickerChange" :value="index" :range-key="'name'" :range="allwayList">
  28. 添加
  29. </picker>
  30. </view>
  31. <view class="item-bg" v-if="arr.length>0">
  32. <view class="box-pack-between mar64 flex-y-center" :key='index' v-for="(item,index) of arr">
  33. <view class="flex-y-center flex-grow-1 pdr-20">
  34. <text style="margin-right: 10rpx;">{{item.name}}</text>
  35. <input class="flex-grow-1" type="text" @input="getScene" :data-index="index"
  36. placeholder="请填写链接或内容" :value="item.way_power" maxlength="5000"/>
  37. </view>
  38. <image class="item-del" @click="delScene" :data-index='index' src="../../static/images/del.png" mode=""></image>
  39. </view>
  40. </view>
  41. </view>
  42. <view>
  43. <view class="box-pack-between ft32 item">
  44. <text>配置中转页</text>
  45. <view class="flex-center ft24">
  46. <switch :checked="mid_state==1?true:false" name="mid_state" @change="switch1" style="transform:scale(0.7)" />
  47. </view>
  48. </view>
  49. <view class="item-bg" v-if="mid_state==1?true:false">
  50. <view class="box-pack-between mgr57">
  51. <view class="flex-row">
  52. <text class="item-bg-32">中转页标题</text>
  53. <input type="text" :value="info.mid_title" name="mid_title" placeholder="请填写中转页标题" />
  54. </view>
  55. </view>
  56. <view class="box-pack-between mgr57">
  57. <text class="item-bg-32">广告方式</text>
  58. <picker @change="bindPickerAdvertising" :range-key="'name'" :range="Advertising">
  59. <text>{{Advertising[Adver_index].name}} <text class="iconfont icon-prev"></text></text>
  60. </picker>
  61. </view>
  62. <view class="box-pack-between flex-y-center" v-if="Advertising[Adver_index].name=='自定义引导页'">
  63. <text class="item-bg-32">广告引导页</text>
  64. <image @click="ChooseImage" :data-type="1" v-if="mid_img" class="upimg" :data-url="Advertising[Adver_index].url"
  65. :src="URL+''+mid_img"></image>
  66. <image @click="ChooseImage" :data-type="1" v-else class="upimg" src="../../static/images/upimg.png" mode=""></image>
  67. </view>
  68. <view class="box-pack-between flex-y-center" v-else-if="Advertising[Adver_index].name=='安全认证'">
  69. <text class="item-bg-32">广告引导页</text>
  70. <image mode="aspectFill" data-url="../../merchant/static/images/ali_ua.png" class="upimg"
  71. src="../../merchant/static/images/ali_ua.png"></image>
  72. <image mode="aspectFill" data-url="../../merchant/static/images/wx_ua.png" class="upimg" src="../../merchant/static/images/wx_ua.png"></image>
  73. <image mode="aspectFill" data-url="../../merchant/static/images/web_ua.png" class="upimg" src="../../merchant/static/images/web_ua.png"></image>
  74. </view>
  75. <view class="box-pack-between flex-y-center" v-else>
  76. <text class="item-bg-32">广告引导页</text>
  77. <image @click="Choose_img" mode="aspectFill" :data-url="URL+Advertising[Adver_index].url" class="upimg" :src="URL+Advertising[Adver_index].url"></image>
  78. </view>
  79. </view>
  80. <text style="padding:0 40rpx;font-size: 12px;color: #999;">ps:{{$test.$test}}进入需要授权的公众号链接,请配置中转页</text>
  81. </view>
  82. <view class="box-pack-between ft32 item" v-if="mid_state!=1">
  83. <text>开启遮盖指引</text>
  84. <view class="flex-center ft24">
  85. <switch :checked="hj_state==1?true:false" name="hj_state" style="transform:scale(0.7)" />
  86. </view>
  87. </view>
  88. <view>
  89. <view class="box-pack-between ft32 item">
  90. <text>配置微信分享</text>
  91. <view class=" flex-center ft24">
  92. <switch name="wx_state" :checked="wx_state==1?true:false" @change="switch2" style="transform:scale(0.7)" />
  93. </view>
  94. </view>
  95. <view class="item-bg" v-if="wx_state==1">
  96. <view class="box-pack-between mgr57">
  97. <view class="flex-row">
  98. <text class="item-bg-32">分享标题</text>
  99. <input type="text" name="wx_title" placeholder="请填写分享标题" :value="info.wx_title" />
  100. </view>
  101. </view>
  102. <view class=" flex-row mgr57">
  103. <text class="item-bg-32">分享描述</text>
  104. <input type="text" name="wx_desc" placeholder="请填写分享描述" :value="info.wx_desc" />
  105. </view>
  106. <view class="box-pack-between flex-y-center">
  107. <text class="item-bg-32">分享图标</text>
  108. <image v-if="wx_img" @click="ChooseImage" :data-type="2" class="upimg" :src="URL+wx_img" mode="">
  109. </image>
  110. <image v-else @click="ChooseImage" :data-type="2" class="upimg" src="../../static/images/upimg.png" mode="">
  111. </image>
  112. </view>
  113. </view>
  114. </view>
  115. <view class="box-pack-between ft32 descp " >
  116. <textarea :value="info.description" placeholder-class="desc-placeholder" maxlength="200" :placeholder="$test.$test+'备注'" name='description' />
  117. </view>
  118. <view class="box-pack-between ft32 item">
  119. <view class="flex-center">
  120. <text>加入换量记录池</text>
  121. </view>
  122. <view class=" flex-center ft24">
  123. <switch name="is_exchange" :checked="is_exchange=='Y'?true:false" style="transform:scale(0.7)" />
  124. </view>
  125. </view>
  126. <view class="hg200rpx"></view>
  127. <view class="bottom-bar">
  128. <block v-if="card_num">
  129. <button form-type="submit" data-status="2" class="btn2 flex-center">
  130. 确定修改
  131. </button>
  132. </block>
  133. <block v-else>
  134. <button form-type="submit" data-status="2" class="btn1 flex-center">
  135. {{$test.$test}}二维码
  136. </button>
  137. </block>
  138. </view>
  139. </form>
  140. </view>
  141. </view>
  142. </template>
  143. <script>
  144. import HeaderTitle from '@/components/header/header-title.vue';
  145. import FlowPool from '@/components/flow-pool/flow-pool.vue';
  146. // #ifdef H5
  147. import getWXSign from "@/static/js/config.js";
  148. // #endif
  149. export default {
  150. components: {
  151. HeaderTitle, FlowPool,
  152. },
  153. data() {
  154. return {
  155. $test:this.$test.$test,
  156. allwayList: [],
  157. arr: [],
  158. index: 0,
  159. result: "",
  160. is_wx: true,
  161. mid_img: "",
  162. wx_img: "",
  163. mid_state: 2,
  164. hj_state: 2,
  165. wx_state: 1,
  166. info: {},
  167. code_url: "",
  168. URL: getApp().globalData.URL,
  169. card_num: "",
  170. Advertising: [],
  171. Adver_index: 0,
  172. mid_type: '',
  173. Original_img:"",
  174. is_real:2,description:"",
  175. is_exchange:'N',
  176. moshi:1,
  177. moshi_type:2,
  178. list_way:[],
  179. ruleArr:[],
  180. powerpool_id:"",
  181. level_arr:[1,2,3],
  182. level:"",
  183. rule:"",
  184. }
  185. },
  186. onLoad(e) {
  187. uni.removeStorageSync("list_way");
  188. this.level=this.level_arr.join(",");
  189. this.card_num = e.card_num;
  190. if (!this.card_num) {
  191. this.allmuban();
  192. }
  193. uni.setNavigationBarTitle({
  194. title:`二维码${this.$test.$test}`
  195. })
  196. this.allways();
  197. },
  198. onShow() {
  199. if(uni.getStorageSync("list_way")){
  200. this.list_way=uni.getStorageSync("list_way");
  201. if(this.way_index==3){
  202. for(let i of this.list_way){
  203. if(i.checked){
  204. this.powerpool_id=i.id
  205. }
  206. }
  207. }
  208. }
  209. },
  210. methods: {
  211. // 流量池
  212. bindcheck(index) {
  213. uni.removeStorageSync("list_way");
  214. this.moshi = index;
  215. },
  216. binddel(index){
  217. this.list_way.splice(index, 1);
  218. },
  219. bindtime(index) {
  220. console.log("000",index)
  221. this.list_way=[];
  222. uni.removeStorageSync("list_way");
  223. this.moshi_type=index==1?1:2;
  224. this.way_index=index;
  225. if(index==1){
  226. uni.navigateTo({
  227. url: "../public/index"
  228. })
  229. }
  230. // 默认流量池
  231. if(index==3){
  232. uni.navigateTo({
  233. url: "../public/index?type=2"
  234. })
  235. }
  236. },
  237. // 获取时间
  238. bindConfirm(rule){
  239. console.log(rule,"aff")
  240. this.rule=rule;
  241. },
  242. bindlevel(e){
  243. console.log(e,"bindlevel")
  244. var level=[];
  245. for(var i of e){
  246. level.push(i.level)
  247. }
  248. this.level=level.join(",");
  249. },
  250. // 流量池end
  251. allmuban() {
  252. this.request({
  253. url: "funeng/allmuban",
  254. }).then(res => {
  255. console.log(res, "res")
  256. if (res.code === '200') {
  257. res.data.push({
  258. name: "自定义引导页",
  259. id: "0"
  260. });
  261. if (this.card_num) {
  262. for (let i in res.data) {
  263. if (res.data[i].id == this.mid_type) {
  264. this.Adver_index = i;
  265. }
  266. }
  267. }
  268. this.Advertising = res.data;
  269. }
  270. }).catch((res) => {});
  271. },
  272. bindPickerAdvertising(e) {
  273. this.Adver_index = e.detail.value;
  274. this.mid_img = "";
  275. },
  276. bindOriginal(e){
  277. console.log(e)
  278. this.is_real =e.target.value?1:2;
  279. },
  280. Choose_img(e) {
  281. var url = e.currentTarget.dataset.url
  282. uni.previewImage({
  283. urls: [url],
  284. })
  285. },
  286. ChooseImage(e) {
  287. console.log(e, "eeeeeee")
  288. let type = e.currentTarget.dataset.type;
  289. uni.chooseImage({
  290. count: 1, //默认9
  291. sizeType: ['original'], //可以指定是原图还是压缩图,默认二者都有
  292. sourceType: ['album'], //从相册选择
  293. success: (res) => {
  294. console.log(res)
  295. var tempFilesSize = res.tempFiles[0].size;//获取图片的大小,单位B
  296. if(type==2&&tempFilesSize>1000000){ //图片小于或者等于2M时 可以执行获取图片
  297. uni.showToast({
  298. title:'上传图片不能大于1M!', //标题
  299. icon:'none' //图标 none不使用图标,详情看官方文档
  300. })
  301. return
  302. }
  303. var path;
  304. // #ifdef MP-WEIXIN
  305. path = res.tempFiles[0].path;
  306. // #endif
  307. // #ifdef H5
  308. path = res.tempFiles[0].name;
  309. // #endif
  310. var formatImage = path.split(".")[(path.split(".")).length - 1];
  311. console.log("图片格式" + formatImage)
  312. if (type == 2) {
  313. if (formatImage != "png" && formatImage != "jpg" && formatImage != "jpeg") {
  314. uni.showToast({
  315. title: '只能上传png、jpg、jpeg格式',
  316. icon: 'none',
  317. duration: 2000,
  318. mask: true,
  319. })
  320. return
  321. }
  322. }
  323. res.tempFilePaths.forEach((v, i) => {
  324. console.log(v)
  325. this.Upload({
  326. url: "Spread/upload_img",
  327. data: {
  328. url: v,
  329. type: 0,
  330. token: uni.getStorageSync("token"),
  331. }
  332. }).then(res => {
  333. console.log(res, "res")
  334. type == 1 ? (
  335. this.mid_img = res.file
  336. ) :type == 3 ? (
  337. this.Original_img= res.file
  338. ):(
  339. this.wx_img = res.file
  340. )
  341. }).catch(err => {
  342. uni.showToast({
  343. title: err.message,
  344. icon: 'none'
  345. })
  346. });
  347. })
  348. },
  349. });
  350. },
  351. getScene(e) {
  352. var index = e.currentTarget.dataset.index;
  353. this.arr[index].way_power = e.detail.value
  354. },
  355. delScene(e) {
  356. var index = e.currentTarget.dataset.index;
  357. this.arr.splice(index, 1)
  358. },
  359. bindPickerChange: function(e) {
  360. if (this.arr.length > 0) {
  361. for (let i of this.arr) {
  362. if (i.id == this.allwayList[e.target.value].id) {
  363. uni.showToast({
  364. title: "场景重复",
  365. icon: 'none'
  366. })
  367. return
  368. }
  369. }
  370. }
  371. this.arr.push({
  372. id: this.allwayList[e.target.value].id,
  373. name: this.allwayList[e.target.value].name,
  374. super_id: this.allwayList[e.target.value].super_id,
  375. });
  376. },
  377. allways() {
  378. this.request({
  379. url: "funeng/allways",
  380. data: {},
  381. }).then(res => {
  382. console.log(res, "res")
  383. if (res.code === '200') {
  384. this.allwayList = res.data;
  385. this.arr.push({
  386. id: res.data[0].id,
  387. name: res.data[0].name,
  388. super_id: res.data[0].super_id,
  389. });
  390. if (this.card_num) {
  391. this.edit_detail();
  392. }
  393. }
  394. }).catch((res) => {});
  395. },
  396. edit_detail(e) {
  397. this.request({
  398. url: "funeng/edit_detail",
  399. data: {
  400. card_num: this.card_num,
  401. },
  402. }).then(res => {
  403. console.log(res, "res")
  404. if (res.code === '200') {
  405. this.info = res.data;
  406. this.mid_state = res.data.mid_state;
  407. this.mid_img = res.data.mid_img;
  408. this.wx_state = res.data.wx_state;
  409. this.wx_img = res.data.wx_img;
  410. this.arr = res.data.funeng;
  411. this.mid_type = res.data.mid_type;
  412. this.hj_state = res.data.hj_state;
  413. this.is_real= res.data.is_real;
  414. this.Original_img = res.data.img_file;
  415. this.code_url =res.data.url;
  416. this.is_exchange=res.data.is_exchange;
  417. this.moshi = res.data.moshi;
  418. this.moshi_type=res.data.moshi_type;
  419. this.ruleArr=res.data.rule_arr;
  420. if(this.moshi==2){
  421. if(this.moshi_type==2){
  422. var a = []
  423. for(let i of res.data.rule_arr){
  424. a.push(i.type)
  425. }
  426. // 去除重复的数
  427. var b = []
  428. for (var i = 0; i < a.length; i++) {
  429. if (b.indexOf(a[i]) === -1) {
  430. b.push(a[i])
  431. }
  432. }
  433. this.level=b.join(",");
  434. this.powerpool_id=res.data.powerpool_id;
  435. }
  436. for(let i of res.data.powerpool){
  437. i.checked=true;
  438. }
  439. this.list_way=res.data.powerpool;
  440. }
  441. this.allmuban();
  442. }
  443. }).catch((res) => {
  444. });
  445. },
  446. switch1(e) {
  447. this.mid_state = e.target.value ? 1 : 2;
  448. },
  449. switch2(e) {
  450. this.wx_state = e.target.value ? 1 : 0;
  451. },
  452. qrcode(e) {
  453. // #ifdef MP-WEIXIN
  454. uni.scanCode({
  455. success: (res) => {
  456. console.log(res)
  457. var result = res.result;
  458. if (result.substr(0, 3) == "wxp") {
  459. uni.showToast({
  460. title: "请勿上传支付码",
  461. icon: "none"
  462. })
  463. return
  464. } else if (result.substr(0, 17) == "HTTPS://QR.ALIPAY" || result.substr(0, 10) == "https://qr.alipay") {
  465. uni.showToast({
  466. title: "请勿上传支付码",
  467. icon: "none"
  468. })
  469. return
  470. } else {
  471. // if(result.substr(0, 8)!="https://"){
  472. // uni.showToast({
  473. // title: "请上传网址链接的二维码",
  474. // icon: "none"
  475. // })
  476. // return
  477. // }
  478. this.code_url = result
  479. }
  480. },
  481. })
  482. // #endif
  483. // #ifdef H5
  484. getWXSign().then(res => {
  485. console.log('wx_getLocation');
  486. this.$wx.scanQRCode({
  487. needResult: 1, // 默认为0,扫描结果由微信处理,1则直接返回扫描结果,
  488. scanType: ["qrCode", "barCode"], // 可以指定扫二维码还是一维码,默认二者都有
  489. success: (res) => {
  490. console.log(res, "qrCode")
  491. var result = res.resultStr;
  492. if (result.substr(0, 3) == "wxp") {
  493. uni.showToast({
  494. title: "请勿上传支付码",
  495. icon: "none"
  496. })
  497. return
  498. } else if (result.substr(0, 17) == "HTTPS://QR.ALIPAY" || result.substr(0, 10) == "https://qr.alipay") {
  499. uni.showToast({
  500. title: "请勿上传支付码",
  501. icon: "none"
  502. })
  503. return
  504. } else {
  505. // if(result.substr(0, 8)!="https://"){
  506. // uni.showToast({
  507. // title: "请上传网址链接的二维码",
  508. // icon: "none"
  509. // })
  510. // return
  511. // }
  512. this.code_url = result
  513. }
  514. }
  515. })
  516. })
  517. // #endif
  518. },
  519. Submit(e) {
  520. console.log(e, "statusstatus")
  521. let arr = this.arr,
  522. way_id = [],
  523. way_power = [];
  524. for (let i of arr) {
  525. way_id.push(i.id);
  526. way_power.push(i.way_power)
  527. }
  528. if (way_id.length <= 0) {
  529. uni.showToast({
  530. title: "场景为空",
  531. icon: 'none'
  532. })
  533. return
  534. }
  535. if (e.detail.value.wx_state==1&&!e.detail.value.wx_title) {
  536. uni.showToast({
  537. title: "分享标题不能为空",
  538. icon: 'none'
  539. })
  540. return
  541. }
  542. var powerpool_id ="";
  543. if(this.moshi_type==1){
  544. var powerpool_arr = [];
  545. for (let i of this.list_way) {
  546. if (i.checked) {
  547. powerpool_arr.push(i.id);
  548. }
  549. }
  550. powerpool_id=powerpool_arr.join(",");
  551. }else{
  552. powerpool_id=this.powerpool_id;
  553. }
  554. let data = {
  555. token: uni.getStorageSync("token"),
  556. type: 4,
  557. is_real: e.detail.value.is_real ? 1:2, //是原图2非原图
  558. img_file:this.Original_img,
  559. url:e.detail.value.is_real?"":this.code_url,
  560. way_id: way_id.join(","),
  561. way_power: way_power.join(","),
  562. save_type: 2,
  563. qrcode: this.result,
  564. mid_state: e.detail.value.mid_state ? 1 : 2,
  565. mid_title: e.detail.value.mid_title,
  566. hj_state: e.detail.value.hj_state ? 1 : 2, //1开启2不开启
  567. description: e.detail.value.description,
  568. mid_type: this.Advertising[this.Adver_index].id,
  569. mid_img: this.Advertising[this.Adver_index].id == "0" ? this.mid_img : this.Advertising[this.Adver_index].thumb,
  570. wx_state: e.detail.value.wx_state ? 1 : 2,
  571. // wx_title: e.detail.value.wx_title,
  572. // wx_desc: e.detail.value.wx_desc,
  573. // wx_img: this.wx_img,
  574. wx_title:e.detail.value.wx_state ? e.detail.value.wx_title :
  575. "",
  576. wx_desc:e.detail.value.wx_state? e.detail.value.wx_desc:"",
  577. wx_img:e.detail.value.wx_state? this.wx_img:"",
  578. is_exchange:e.detail.value.is_exchange?'Y':'N',
  579. moshi:this.moshi,
  580. moshi_type:this.moshi_type,
  581. powerpool_id:powerpool_id,
  582. level:this.level,
  583. rule:this.rule,
  584. }
  585. //请求验证码
  586. let url;
  587. this.card_num ? (data.code = this.info.code, url = "funeng/save_edit") : url = "funeng/weixin";
  588. this.request({
  589. url,
  590. data,
  591. }).then(res => {
  592. console.log(res, "res")
  593. if (res.code === '200') {
  594. this.card_num ? (
  595. uni.showToast({
  596. title: "设置成功",
  597. icon: 'none'
  598. }),
  599. setTimeout(() => {
  600. uni.navigateBack({
  601. delta: 1
  602. })
  603. }, 2e3)
  604. ) : (
  605. uni.showToast({
  606. title: "生成成功",
  607. icon: 'none'
  608. }),
  609. uni.redirectTo({
  610. url: "code?type=4" + '&card_num=' + res.data.card_num
  611. })
  612. )
  613. }
  614. }).catch((res) => {
  615. uni.showToast({
  616. title: res.message,
  617. icon: 'none'
  618. })
  619. });
  620. },
  621. }
  622. }
  623. </script>
  624. <style>
  625. .qrupimg {
  626. width: 80rpx;
  627. height: 80rpx;
  628. }
  629. .content {
  630. word-wrap: break-word;
  631. word-break: break-all;
  632. }
  633. .pdr-20 {
  634. padding-right: 20rpx;
  635. }
  636. .item {
  637. padding: 32rpx 40rpx;
  638. }
  639. .item input {
  640. text-align: right;
  641. }
  642. .upimg {
  643. width: 126rpx;
  644. height: 126rpx;
  645. }
  646. .add-home {
  647. color: #FFFFFF;
  648. width: 126rpx;
  649. height: 54rpx;
  650. background: linear-gradient(315deg, #3387ff 2%, #569bff 99%);
  651. border-radius: 8rpx;
  652. box-shadow: 0px 0px 8rpx 0px rgba(51, 135, 255, 0.2);
  653. }
  654. .item-bg {
  655. width: 670rpx;
  656. background: #f6f8fe;
  657. border-radius: 12rpx;
  658. margin: 0 auto;
  659. font-size: 28rpx;
  660. font-family: PingFang SC, PingFang SC-Regular;
  661. font-weight: 400;
  662. color: #333333;
  663. padding: 36rpx 32rpx;
  664. }
  665. .item-del {
  666. width: 40rpx;
  667. height: 40rpx;
  668. }
  669. .item-bg-32 {
  670. margin-right: 32rpx;
  671. }
  672. .mgr57 {
  673. margin-bottom: 57rpx;
  674. }
  675. .hg200rpx {
  676. height: 100rpx;
  677. }
  678. .mar64 {
  679. margin-bottom: 64rpx;
  680. }
  681. .item-bg .mar64:last-child {
  682. margin-bottom: 0rpx;
  683. }
  684. .tips{
  685. font-size: 26rpx;
  686. color: #999;
  687. }
  688. </style>