海南旅游项目 前端仓库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

614 lines
20 KiB

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
  1. <template>
  2. <view v-if="$isRight(goods_details)">
  3. <view class="bg-white" v-if="enter_type!=1">
  4. <!-- <view class="cu-bar1 padding-lr">
  5. <text class="lf-color-555 lf-font-28">联系人</text>
  6. <input type="text" v-model="contact" class="lf-color-999 lf-font-28 lf-text-left" style="position:absolute;right:180rpx" placeholder="请输入联系人" />
  7. </view>
  8. <view class="cu-bar1 padding-lr">
  9. <text class="lf-color-555 lf-font-28">联系方式</text>
  10. <view class="lf-row-between">
  11. <input type="text" v-model="phone" class="lf-color-999 lf-font-28 lf-text-left" style="position:absolute;right:180rpx" placeholder="请输入联系电话" maxlength="11" />
  12. </view>
  13. <button style="position: absolute;right: 0rpx;" class="lf-bg-white" open-type="getPhoneNumber" @getphonenumber="getPhoneNumber">
  14. <u-icon name="phone"></u-icon>
  15. </button>
  16. </view> -->
  17. <view class="padding-lr lf-m-b-40 lf-m-t-30" :class="item.type == 'text'?'lf-row-between':''" v-for="(item,index) of form_list" :key="index">
  18. <text class="lf-color-555 lf-font-28" v-once>{{item.field}}</text>
  19. <input type="text" v-if="item.type == 'text'" v-model="info[item.field]" @blur="computedAge()" class="lf-color-999 lf-font-28 lf-text-left" style="position:absolute;right:180rpx" :placeholder="`请输入`+item.field"/>
  20. <view class="lf-m-t-20" v-if="item.type == 'radio'">
  21. <u-radio-group v-model="info[item.field]" @change="radioGroupChange">
  22. <u-radio
  23. @change="radioChange"
  24. v-for="(item2, index2) in item.options" :key="index2"
  25. :name="item2"
  26. >
  27. {{item2}}
  28. </u-radio>
  29. </u-radio-group>
  30. </view>
  31. <view class="lf-m-t-20" v-if="item.type == 'checkbox'">
  32. <u-checkbox-group @change="checkboxGroupChange()">
  33. <u-checkbox
  34. @change="checkboxChange(item.field)"
  35. shape="circle"
  36. v-model="item2.checked"
  37. v-for="(item2, index2) in item.options" :key="index2"
  38. :name="item2.name"
  39. >{{item2.name}}</u-checkbox>
  40. </u-checkbox-group>
  41. </view>
  42. <view class="lf-m-t-20" v-if="item.type == 'textarea'">
  43. <view class="cu-self menu" style="margin-top: 30rpx; position: relative;">
  44. <textarea :cursor-spacing="120" maxlength="300" :adjust-position="true" type="text" v-model="info[item.field]" style="background-color: #F8F8F8;border-radius: 20rpx;" class="text-left lf-font-28 area-self lf-w-100 lf-p-20" placeholder="请输入内容" />
  45. </view>
  46. </view>
  47. <view class="grid col-3 grid-square flex-sub lf-m-t-30" v-if="item.type == 'image'">
  48. <view style="width: 212rpx;height: 212rpx;border-radius: 10rpx;" class="bg-img" v-for="(item,index) in img_list" :key="index" @tap="showImg(index)" :data-url="img_list[index]">
  49. <image :src="img_list[index]" mode="aspectFill"></image>
  50. <view class="cu-tag bg-red" @tap.stop="DelImg(index)" :data-index="index">
  51. <!-- <text class='cuIcon-close'></text> -->
  52. <text class="lf-iconfont lf-icon-cuowu lf-font-40 lf-color-price"></text>
  53. </view>
  54. </view>
  55. <view style="width: 212rpx;height: 212rpx;border-radius: 10rpx;" class="solids" @tap="ChooseImage(item.field)" v-if="img_list.length<3">
  56. <text class='cuIcon-cameraadd'></text>
  57. </view>
  58. </view>
  59. </view>
  60. </view>
  61. <self-line/>
  62. <view class="lf-bg-white lf-p-t-30 lf-p-b-30 lf-p-l-32 lf-p-r-32">
  63. <view class="lf-row-between">
  64. <image :src="goods_details.picture" mode="aspectFill" style="width: 240rpx; height: 240rpx;border-radius: 20rpx;"></image>
  65. <view class="flex-sub padding-left-sm">
  66. <view class="bref-box lf-font-32 lf-color-333 lf-line-2" style="height: 88rpx;line-height: 44rpx;">
  67. {{goods_details.title}}
  68. </view>
  69. <view class="lf-row-between">
  70. <view class="flex lf-m-t-25 align-center text-center">
  71. <text class="block lf-color-gray lf-font-24" style="line-height: 40rpx;">数量</text>
  72. <text class="lf-m-l-10 lf-color-gray lf-font-24">x {{buy_num}}</text>
  73. </view>
  74. <view>
  75. <u-number-box :min="1" v-model="buy_num" @change="valChange"></u-number-box>
  76. </view>
  77. </view>
  78. <view class="flex align-center text-center lf-m-t-25">
  79. <lf-price :price="goods_details.price" />
  80. <view class="lf-m-l-20 lf-line-through lf-color-gray">
  81. {{goods_details.original_price}}
  82. </view>
  83. </view>
  84. </view>
  85. </view>
  86. </view>
  87. <!-- <self-line/>
  88. <view class="bg-white">
  89. <view class="cu-bar padding-lr">
  90. <text class="lf-color-555 lf-font-28">优惠</text>
  91. <view v-if="goods_details.coupon != ''">
  92. <text class="lf-color-price lf-font-28 lf-m-l-10" v-for="(item,index) of goods_details.coupon">{{item.tag}}</text>
  93. </view>
  94. <view v-else>
  95. <text class="lf-color-price lf-font-28 lf-m-l-10">暂无优惠</text>
  96. </view>
  97. </view>
  98. </view> -->
  99. <self-line/>
  100. <view class="bg-white" v-if="enter_type!=1">
  101. <!-- 酒店 -->
  102. <view v-if="goods_type == 1">
  103. <view class="cu-bar padding-lr">
  104. <text class="lf-color-555 lf-font-28">套餐类型</text>
  105. <text class="lf-font-28" style="color: #131315;">{{goods_typetext}}</text>
  106. </view>
  107. <view class="cu-bar padding-lr">
  108. <text class="lf-color-555 lf-font-28">酒店住房日期</text>
  109. <text class="lf-font-28" style="color: #131315;">{{check_in_time}}~{{check_out_time}} <text style="color: #131315;" class="lf-font-28 lf-m-l-20">{{totalLive}}</text></text>
  110. </view>
  111. <view class="cu-bar padding-lr">
  112. <text class="lf-color-555 lf-font-28">到店时间</text>
  113. <text class="lf-font-28" style="color: #131315;">{{arrival_time}}</text>
  114. </view>
  115. </view>
  116. <!-- 旅游路线 -->
  117. <view v-if="goods_type == 0 || goods_type == 4 || goods_type == 5 || goods_type == 2">
  118. <view class="cu-bar padding-lr">
  119. <text class="lf-color-555 lf-font-28">套餐类型</text>
  120. <text class="lf-font-28" style="color: #131315;">{{goods_typetext}}</text>
  121. </view>
  122. <view class="cu-bar padding-lr">
  123. <text class="lf-color-555 lf-font-28">开始时间</text>
  124. <text class="lf-font-28" style="color: #131315;">{{departure_time}}</text>
  125. </view>
  126. </view>
  127. </view>
  128. <self-line/>
  129. <view class="bg-white" v-if="enter_type!=1">
  130. <view class="lf-p-t-30 lf-p-l-32 lf-p-b-36">
  131. <view class="lf-font-28 lf-color-555">支付方式</view>
  132. </view>
  133. <view class="lf-p-r-32 lf-p-l-32">
  134. <button class="cu-btn bg-white margin-self" :class="pay_type==0?'border-green':'border'" @tap="payStatus(0)">
  135. <text class="lf-iconfont lf-icon-weixin text-green lf-font-44 lf-m-r-23"></text>
  136. <text class="lf-font-32" :class="pay_type==0?'text-green':'lf-color-333'">微信支付</text>
  137. <text class="lf-iconfont lf-icon-dui lf-font-44 lf-color-primary" v-if="pay_type==0" style="position: absolute;right: 22rpx;"></text>
  138. </button>
  139. </view>
  140. <view class="lf-p-r-32 lf-p-l-32 lf-m-t-30">
  141. <button class="cu-btn bg-white margin-self" :class="pay_type==1?'border-green':'border'" @tap="payStatus(1)">
  142. <text class="lf-font-32" :class="pay_type==1?'text-green':'lf-color-333'">线下支付</text>
  143. <text class="lf-iconfont lf-icon-dui lf-font-44 lf-color-primary" v-if="pay_type==1" style="position: absolute;right: 22rpx;"></text>
  144. </button>
  145. </view>
  146. <view class="lf-p-r-32 lf-p-l-32 lf-m-t-30" v-if="goods_details.deposit != '0.00'">
  147. <button class="cu-btn bg-white margin-self" :class="pay_type==2?'border-green':'border'" @tap="payStatus(2)">
  148. <text class="lf-font-32" :class="pay_type==2?'text-green':'lf-color-333'">订金支付</text>
  149. <text class="lf-iconfont lf-icon-dui lf-font-44 lf-color-primary" v-if="pay_type==2" style="position: absolute;right: 22rpx;"></text>
  150. </button>
  151. </view>
  152. <view class="lf-p-r-32 lf-p-l-32 lf-m-t-30">
  153. <button class="cu-btn bg-white margin-self" v-if="goods_details.earnest != '0.00'" :class="pay_type==3?'border-green':'border'" @tap="payStatus(3)">
  154. <text class="lf-font-32" :class="pay_type==3?'text-green':'lf-color-333'">定金支付</text>
  155. <text class="lf-iconfont lf-icon-dui lf-font-44 lf-color-primary" v-if="pay_type==3" style="position: absolute;right: 22rpx;"></text>
  156. </button>
  157. </view>
  158. <!-- <view class="lf-p-r-32 lf-p-l-32 lf-m-t-30">
  159. <button class="cu-btn bg-white margin-self" :class="pay_type==4?'border-green':'border'" @tap="payStatus(4)">
  160. <text class="lf-font-32" :class="pay_type==4?'text-green':'lf-color-333'">首款支付</text>
  161. <text class="lf-iconfont lf-icon-dui lf-font-44 lf-color-primary" v-if="pay_type==4" style="position: absolute;right: 22rpx;"></text>
  162. </button>
  163. </view> -->
  164. </view>
  165. <view style="height: 200rpx;"></view>
  166. <view class="btn-bottom solid-top1">
  167. <view class="padding-lr lf-p-t-10 lf-p-b-10 bg-white flex justify-between align-center shadow">
  168. <view class="flex align-center">
  169. <text class="lf-font-24 lf-font-555">应付款</text>
  170. <lf-price :price="goods_details.final_price" />
  171. </view>
  172. <button class="btn" @tap="submit">
  173. <text class="lf-font-32 text-white" v-if="btn_type == 1">下单付款</text>
  174. <text class="lf-font-32 text-white" v-else>支付尾款</text>
  175. </button>
  176. </view>
  177. </view>
  178. </view>
  179. </template>
  180. <script>
  181. export default {
  182. data() {
  183. return {
  184. goods_id: 0,
  185. goods_details: {},
  186. contact: '',
  187. phone: '',
  188. pay_type: 0,
  189. btn_type: 1,
  190. ifPay: true,
  191. order_id: 0,
  192. enter_type: 0,
  193. payState: true,
  194. pay_order_id: 0,
  195. vertify_code: '',
  196. sex: '',
  197. age: '',
  198. goods_type: 0,
  199. spec_id: 0,
  200. goods_typetext: '',
  201. //景区
  202. enter_time: '',
  203. //旅游路线
  204. departure_time: '',
  205. return_time: '',
  206. //酒店
  207. check_in_time: '',
  208. check_out_time: '',
  209. arrival_time: '',
  210. totalLive: '',
  211. hotel_specid: [],
  212. //多行文本
  213. applyInfo: '',
  214. //图片上传
  215. hostImg: '',
  216. img_list: [], // 反馈问题图片
  217. form_type: '',
  218. form_list: [],
  219. info: {},
  220. image_name: '',
  221. if_image_complatet: false,
  222. check_box_name: '',
  223. buy_num: 0
  224. }
  225. },
  226. onLoad(e) {
  227. //0旅游路线1酒店2景区3餐厅
  228. this.goods_id = e.goods_id;
  229. this.goods_type = e.goods_type;
  230. this.btn_type = e.btn_type;
  231. this.buy_num = e.buy_num;
  232. console.log('出来的数量',this.buy_num)
  233. this.order_id = e.order_id;
  234. this.form_type = JSON.parse(decodeURIComponent(e.form_type));;
  235. this.form_list = this.form_type.fields;
  236. console.log('表单格式',this.form_list)
  237. var arr = e.spec_id.split(",")
  238. console.log(arr)
  239. this.hotel_specid = arr
  240. console.log('数组id',this.hotel_specid)
  241. this.enter_type = e.enter_type;
  242. this.goods_typetext = e.goods_typetext;
  243. if(this.goods_id) {
  244. this.getGoodsData(this.pay_type);
  245. if(this.goods_type == 0 || this.goods_type == 4 || this.goods_type == 5 || this.goods_type == 2) {
  246. this.departure_time = e.departure_time;
  247. }else if(this.goods_type == 1) {
  248. this.check_in_time = e.check_in_time;
  249. this.check_out_time = e.check_out_time;
  250. this.arrival_time = e.arrival_time;
  251. this.totalLive = e.totalLive;
  252. console.log(this.check_in_time,this.check_out_time,this.arrival_time)
  253. }
  254. }
  255. if(this.order_id && this.enter_type == 1) {
  256. console.log('con列表执行')
  257. this.payOnce()
  258. }
  259. },
  260. onShow(e) {
  261. let that = this
  262. uni.$on('payState',(data) => {
  263. that.payState = data.msg;
  264. that.pay_order_id = data.payorder_id;
  265. console.log('传来的订单id',that.pay_order_id)
  266. if(that.payState == true) {
  267. that.$url('/pages/payState/paystate?ifSuccess=1&order_id='+that.pay_order_id,{type: 'redirect'})
  268. }else {
  269. that.$url('/pages/payState/paystate?ifSuccess=2&order_id='+that.pay_order_id,{type: 'redirect'})
  270. }
  271. })
  272. },
  273. onUnload() {
  274. uni.$off('payState');
  275. },
  276. methods: {
  277. valChange(e) {
  278. this.buy_num = e.value;
  279. this.getGoodsData(this.pay_type);
  280. },
  281. dynamicLength(){
  282. return parseInt(this.applyInfo.length);
  283. },
  284. //多选
  285. checkboxGroupChange(e) {
  286. this.info[this.check_box_name] = e
  287. console.log(this.info)
  288. },
  289. // 选中某个复选框时,由checkbox时触发
  290. checkboxChange(name) {
  291. this.check_box_name = name
  292. console.log('chenckshushush',this.check_box_name)
  293. },
  294. //单选
  295. radioChange(e) {
  296. console.log(e);
  297. },
  298. // 选中任一radio时,由radio-group触发
  299. radioGroupChange(e) {
  300. console.log(e);
  301. },
  302. computedAge() {
  303. this.$check(this.vertify_code,'card');
  304. let judge_sex = this.vertify_code[16];
  305. let judge_birthday = this.vertify_code.substring(6,14);
  306. let now_date = new Date();
  307. let now_date1 = this.$shared.recordTime(now_date, '-', 'date').replace(/-/g, "");
  308. let age1 = now_date1-judge_birthday;
  309. this.age = JSON.stringify(age1).substring(0,2)
  310. if(judge_sex%2) {
  311. this.sex = '男';
  312. }else {
  313. this.sex = '女';
  314. }
  315. if(this.vertify_code == '') {
  316. this.sex = '请输入身份证号码获取';
  317. this.age = '请输入身份证号码获取';
  318. }
  319. },
  320. getPhoneNumber(event){
  321. if(event.detail.errMsg == 'getPhoneNumber:ok'){
  322. let encryptedData = event.detail.encryptedData;
  323. let iv = event.detail.iv;
  324. this.$http(this.API.API_WECHAT_SETPHONE, {
  325. encryptedData,
  326. iv,
  327. // token: userInfo.token // 已在公共参数传
  328. }).then(res => {
  329. this.phone = res.data.mobile;
  330. })
  331. }
  332. },
  333. payStatus(type) {
  334. if(type == this.pay_type) {
  335. this.pay_type = type;
  336. return
  337. }else {
  338. this.pay_type = type;
  339. this.getGoodsData(type);
  340. }
  341. },
  342. getGoodsData(type){
  343. this.$http(this.API.API_CONFIRMDETAILS,{id: this.goods_id,num: this.buy_num,pay_type: type,spec_id: this.hotel_specid}).then(res => {
  344. this.goods_details = res.data;
  345. console.log('数据',res)
  346. })
  347. },
  348. submit(url) {
  349. if(this.order_id && this.enter_type == 1) {
  350. this.payOnce()
  351. return
  352. }
  353. this.upload()
  354. if(!this.ifPay) return;
  355. this.ifPay = false;
  356. this.$http(this.API.API_CREATEORDER,{
  357. id: this.goods_id,
  358. num: this.buy_num,
  359. pay_type: this.pay_type,
  360. name:this.contact,
  361. mobile:this.phone,
  362. spec_id: this.hotel_specid,
  363. enter_time: this.enter_time,
  364. sex: this.sex,
  365. age: this.age,
  366. id_card: this.vertify_code,
  367. departure_time: this.departure_time,
  368. return_time: this.return_time,
  369. check_in_time: this.check_in_time,
  370. check_out_time: this.check_out_time,
  371. arrival_time: this.arrival_time,
  372. info: this.info
  373. }).then(res => {
  374. this.pay_order_id = res.data.id
  375. if(this.pay_type == 1) {
  376. this.ifPay = true
  377. this.$url('/pages/payState/paystate?ifSuccess=1&order_id='+res.data.id,{type: 'redirect'})
  378. }else if(res.data.jump == true) {
  379. let that = this;
  380. wx.navigateToMiniProgram({
  381. appId: res.data.jump_appid,
  382. path: '/pages/order/confirm_atonce',
  383. envVersion: 'release',
  384. extraData: {
  385. order_id: res.data.id
  386. },
  387. success(res) {
  388. console.log('---res---');
  389. that.ifPay = true;
  390. console.log(res);
  391. },
  392. fail(err) {
  393. console.log('---err---');
  394. console.log(err);
  395. that.ifPay = true;
  396. }
  397. })
  398. }
  399. }).catch(err => {
  400. this.ifPay = true
  401. })
  402. },
  403. checkImgInfo(tempFilePath, suc){
  404. uni.getImageInfo({
  405. src: tempFilePath,
  406. success (res) {
  407. let type = res.type;
  408. console.log('checkImgInfo...', type);
  409. if(type == 'png' || type == 'jpeg' || type == 'jpg'){
  410. suc && suc(true);
  411. } else {
  412. suc && suc(false);
  413. }
  414. },
  415. fail(err) {
  416. suc && suc(false);
  417. }
  418. })
  419. },
  420. // 选择图片
  421. ChooseImage(name,e) {
  422. let that = this;
  423. uni.chooseImage({
  424. count: 1,
  425. sizeType: ['original'], // 可以指定是原图original还是压缩图compressed ,默认二者都有
  426. sourceType: ['album', 'camera'], // album 从相册选图,camera 使用相机,默认二者都有
  427. success: res => {
  428. that.hostImg = res.tempFilePaths[0];
  429. let tempFile = res.tempFiles.shift();
  430. let tempFilePath = res.tempFilePaths.shift();
  431. console.log('临时路径',res)
  432. that.checkImgInfo(tempFilePath, (res) => {
  433. // 过滤不是图片不是png、jpeg 格式
  434. if(res){
  435. if(tempFile.size > 10000000){
  436. uni.showModal({
  437. title: '',
  438. content: '您选择的图片过大:'+ (tempFile.size / 1024000).toFixed(2) +"M,请点击确定重新上传",
  439. success: res2 => {
  440. if(res2.confirm){
  441. uni.chooseImage({
  442. count: 1,
  443. sizeType: ['compressed'],
  444. sourceType: ['album', 'camera'],
  445. success: (res3) => {
  446. let tempFilePath = res3.tempFilePaths.shift();
  447. that.is_wx_reduce = true;
  448. that.img_list.push(tempFilePath);
  449. }
  450. })
  451. }
  452. }
  453. })
  454. } else{
  455. that.img_list.push(tempFilePath);
  456. console.log('图片数sadad组',name)
  457. that.image_name = name
  458. this.upload()
  459. }
  460. } else {
  461. uni.showModal({
  462. title: '',
  463. content: '选择的图片须为jpg、jpeg或png格式',
  464. showCancel: false,
  465. confirmColor: '#1697EE'
  466. })
  467. }
  468. });
  469. }
  470. });
  471. },
  472. // 上传图片到服务器
  473. upload(url){
  474. let that = this;
  475. let uploads = [];
  476. // 商品banner图上传
  477. if (that.img_list.length > 0) {
  478. for (let i = 0; i < that.img_list.length; i++) {
  479. let upload_img = new Promise((resolve, reject) => {
  480. that.uploadFile(that.img_list[i], (res) => {
  481. resolve(res);
  482. }, (err) => {
  483. reject(err);
  484. });
  485. })
  486. uploads.push(upload_img);
  487. }
  488. }
  489. if(uploads.length == 0) {
  490. // that.submit([]);
  491. return
  492. }
  493. Promise.all(uploads).then((result) => {
  494. let img_url_list = [];
  495. if(result.length > 0){
  496. img_url_list = result;
  497. }
  498. if(img_url_list) {
  499. console.log('传来的名字',that.image_name)
  500. that.info[that.image_name] = img_url_list;
  501. console.log('=====图片数组',that.info)
  502. }
  503. }).catch(err => {
  504. that.is_publish = false; // 恢复提交按钮
  505. uni.showModal({
  506. title: '',
  507. content: '图片上传失败,请重新提交',
  508. confirmColor: '#1697EE'
  509. })
  510. })
  511. },
  512. // 预览图片
  513. showImg(index) {
  514. this.$u.throttle(() => {
  515. let goods_banner = this.img_list || [];
  516. let banners = goods_banner.map(item => item);
  517. uni.previewImage({
  518. urls: banners,
  519. current: index
  520. })
  521. }, 200);
  522. },
  523. // 删除图片
  524. DelImg(index) {
  525. uni.showModal({
  526. title: '提示',
  527. content: '即将取消上传这张图片,请确认?',
  528. success: e => {
  529. if (!e.confirm) return;
  530. this.img_list.splice(index, 1);
  531. this.upload()
  532. }
  533. });
  534. },
  535. payOnce() {
  536. this.$http(this.API.API_ORDERPAY,{id: this.order_id}).then(res => {
  537. if(res.data.jump) {
  538. wx.navigateToMiniProgram({
  539. appId: res.data.jump_appid,
  540. path: '/pages/order/confirm_atonce',
  541. envVersion: 'release',
  542. extraData: {
  543. order_id: res.data.id
  544. },
  545. success(res) {
  546. console.log('---res---')
  547. console.log(res)
  548. },
  549. fail(err) {
  550. console.log('---err---')
  551. console.log(err)
  552. }
  553. })
  554. }
  555. }).catch(err => {})
  556. }
  557. }
  558. }
  559. </script>
  560. <style scoped lang="scss">
  561. .cu-bar1 {
  562. display: flex;
  563. position: relative;
  564. align-items: center;
  565. min-height: 100rpx;
  566. }
  567. .btn{
  568. margin: 0;
  569. padding: 0;
  570. width: 212rpx;
  571. height: 82rpx;
  572. background-color: #1998FE;
  573. color: #FFFFFF;
  574. line-height: 80rpx;
  575. font-size: 32rpx;
  576. border-radius: 41rpx;
  577. }
  578. .bref-box {
  579. text-overflow: -o-ellipsis-lastline;
  580. overflow: hidden;
  581. text-overflow: ellipsis;
  582. display: -webkit-box;
  583. -webkit-line-clamp: 2;
  584. -webkit-box-orient: vertical;
  585. }
  586. .font-change{
  587. position: absolute;
  588. right: 10rpx;
  589. bottom: 10rpx;
  590. width: max-content;
  591. color: #777777;
  592. }
  593. </style>