2023-02-12 21:56:02 +08:00
|
|
|
|
<template>
|
|
|
|
|
<div class="app-container">
|
|
|
|
|
<!-- 支付信息 -->
|
|
|
|
|
<el-card v-loading="loading">
|
|
|
|
|
<el-descriptions title="支付信息" :column="3" border>
|
2023-02-13 23:59:03 +08:00
|
|
|
|
<el-descriptions-item label="支付单号">{{ payOrder.id }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="商品标题">{{ payOrder.subject }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="商品内容">{{ payOrder.body }}</el-descriptions-item>
|
2023-07-10 17:35:26 +08:00
|
|
|
|
<el-descriptions-item label="支付金额">¥{{ (payOrder.price / 100.0).toFixed(2) }}</el-descriptions-item>
|
2023-02-13 23:59:03 +08:00
|
|
|
|
<el-descriptions-item label="创建时间">{{ parseTime(payOrder.createTime) }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="过期时间">{{ parseTime(payOrder.expireTime) }}</el-descriptions-item>
|
2023-02-12 21:56:02 +08:00
|
|
|
|
</el-descriptions>
|
|
|
|
|
</el-card>
|
|
|
|
|
|
2023-02-15 00:11:34 +08:00
|
|
|
|
<!-- 支付选择框 -->
|
2023-02-18 10:39:48 +08:00
|
|
|
|
<el-card style="margin-top: 10px" v-loading="submitLoading" element-loading-text="提交支付中...">
|
2023-02-12 21:56:02 +08:00
|
|
|
|
<!-- 支付宝 -->
|
|
|
|
|
<el-descriptions title="选择支付宝支付">
|
|
|
|
|
</el-descriptions>
|
|
|
|
|
<div class="pay-channel-container">
|
2023-07-10 18:28:43 +08:00
|
|
|
|
<div class="box" v-for="channel in channels" v-if="channel.code.indexOf('alipay_') === 0" :key="channel.code" @click="submit(channel.code)">
|
|
|
|
|
<img :src="channel.icon">
|
2023-02-12 21:56:02 +08:00
|
|
|
|
<div class="title">{{ channel.name }}</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- 微信支付 -->
|
|
|
|
|
<el-descriptions title="选择微信支付" style="margin-top: 20px;" />
|
|
|
|
|
<div class="pay-channel-container">
|
2023-07-15 21:18:36 +08:00
|
|
|
|
<div class="box" v-for="channel in channels" v-if="channel.code.indexOf('wx_') === 0" :key="channel.code" @click="submit(channel.code)">
|
2023-07-10 23:06:00 +08:00
|
|
|
|
<img :src="channel.icon">
|
2023-02-12 21:56:02 +08:00
|
|
|
|
<div class="title">{{ channel.name }}</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- 其它支付 -->
|
|
|
|
|
<el-descriptions title="选择其它支付" style="margin-top: 20px;" />
|
|
|
|
|
<div class="pay-channel-container">
|
2023-07-10 18:28:43 +08:00
|
|
|
|
<div class="box" v-for="channel in channels" :key="channel.code"
|
|
|
|
|
v-if="channel.code.indexOf('alipay_') === -1 && channel.code.indexOf('wx_') === -1">
|
2023-07-10 23:06:00 +08:00
|
|
|
|
<img :src="channel.icon">
|
2023-02-12 21:56:02 +08:00
|
|
|
|
<div class="title">{{ channel.name }}</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</el-card>
|
2023-02-15 00:11:34 +08:00
|
|
|
|
|
2023-02-18 21:16:22 +08:00
|
|
|
|
<!-- 展示形式:二维码 URL -->
|
2023-02-15 00:11:34 +08:00
|
|
|
|
<el-dialog :title="qrCode.title" :visible.sync="qrCode.visible" width="350px" append-to-body
|
|
|
|
|
:close-on-press-escape="false">
|
2023-02-18 22:40:56 +08:00
|
|
|
|
<qrcode-vue :value="qrCode.url" size="310" level="L" />
|
2023-02-15 00:11:34 +08:00
|
|
|
|
</el-dialog>
|
2023-02-18 10:39:48 +08:00
|
|
|
|
|
2023-02-19 22:16:15 +08:00
|
|
|
|
<!-- 展示形式:BarCode 条形码 -->
|
|
|
|
|
<el-dialog :title="barCode.title" :visible.sync="barCode.visible" width="500px" append-to-body
|
|
|
|
|
:close-on-press-escape="false">
|
|
|
|
|
<el-form ref="form" label-width="80px">
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
<el-form-item label="条形码" prop="name">
|
|
|
|
|
<el-input v-model="barCode.value" placeholder="请输入条形码" required />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
<div style="text-align: right">
|
|
|
|
|
或使用
|
|
|
|
|
<el-link type="danger" target="_blank"
|
|
|
|
|
href="https://baike.baidu.com/item/条码支付/10711903">(扫码枪/扫码盒)</el-link>
|
|
|
|
|
扫码
|
|
|
|
|
</div>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
</el-form>
|
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
|
<el-button type="primary" @click="submit0(barCode.channelCode)"
|
|
|
|
|
:disabled="barCode.value.length === 0">确认支付</el-button>
|
|
|
|
|
<el-button @click="barCode.visible = false">取 消</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
</el-dialog>
|
2023-02-12 21:56:02 +08:00
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<script>
|
2023-02-15 00:11:34 +08:00
|
|
|
|
import QrcodeVue from 'qrcode.vue'
|
2023-02-13 23:59:03 +08:00
|
|
|
|
import { DICT_TYPE, getDictDatas } from "@/utils/dict";
|
2023-02-15 00:11:34 +08:00
|
|
|
|
import { getOrder, submitOrder } from '@/api/pay/order';
|
2023-07-10 17:35:26 +08:00
|
|
|
|
import { PayChannelEnum, PayDisplayModeEnum, PayOrderStatusEnum } from "@/utils/constants";
|
2023-02-12 21:56:02 +08:00
|
|
|
|
|
|
|
|
|
export default {
|
2023-07-10 17:35:26 +08:00
|
|
|
|
name: "PayCashier",
|
2023-02-12 21:56:02 +08:00
|
|
|
|
components: {
|
2023-02-15 00:11:34 +08:00
|
|
|
|
QrcodeVue,
|
2023-02-12 21:56:02 +08:00
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
id: undefined, // 请假编号
|
2023-07-10 17:35:26 +08:00
|
|
|
|
returnUrl: undefined, // 支付完的回调地址
|
2023-02-12 21:56:02 +08:00
|
|
|
|
loading: false, // 支付信息的 loading
|
|
|
|
|
payOrder: {}, // 支付信息
|
2023-07-10 18:28:43 +08:00
|
|
|
|
channels: [{
|
|
|
|
|
name: '支付宝 PC 网站支付',
|
|
|
|
|
icon: require("@/assets/images/pay/icon/alipay_pc.svg"),
|
|
|
|
|
code: "alipay_pc"
|
|
|
|
|
}, {
|
|
|
|
|
name: '支付宝 Wap 网站支付',
|
|
|
|
|
icon: require("@/assets/images/pay/icon/alipay_wap.svg"),
|
|
|
|
|
code: "alipay_wap"
|
|
|
|
|
}, {
|
|
|
|
|
name: '支付宝 App 网站支付',
|
|
|
|
|
icon: require("@/assets/images/pay/icon/alipay_app.svg"),
|
|
|
|
|
code: "alipay_app"
|
|
|
|
|
}, {
|
|
|
|
|
name: '支付宝扫码支付',
|
|
|
|
|
icon: require("@/assets/images/pay/icon/alipay_app.svg"),
|
|
|
|
|
code: "alipay_qr"
|
|
|
|
|
}, {
|
|
|
|
|
name: '支付宝条码支付',
|
|
|
|
|
icon: require("@/assets/images/pay/icon/alipay_bar.svg"),
|
|
|
|
|
code: "alipay_bar"
|
|
|
|
|
}, {
|
|
|
|
|
name: '微信公众号支付',
|
|
|
|
|
icon: require("@/assets/images/pay/icon/wx_pub.svg"),
|
|
|
|
|
code: "wx_pub"
|
|
|
|
|
}, {
|
|
|
|
|
name: '微信小程序支付',
|
|
|
|
|
icon: require("@/assets/images/pay/icon/wx_lite.svg"),
|
|
|
|
|
code: "wx_lite"
|
|
|
|
|
}, {
|
|
|
|
|
name: '微信 App 支付',
|
2023-07-10 23:06:00 +08:00
|
|
|
|
icon: require("@/assets/images/pay/icon/wx_app.svg"),
|
2023-07-10 18:28:43 +08:00
|
|
|
|
code: "wx_app"
|
2023-07-15 23:14:42 +08:00
|
|
|
|
}, {
|
|
|
|
|
name: '微信扫码支付',
|
|
|
|
|
icon: require("@/assets/images/pay/icon/wx_native.svg"),
|
|
|
|
|
code: "wx_native"
|
2023-07-15 21:18:36 +08:00
|
|
|
|
}, {
|
|
|
|
|
name: '微信条码支付',
|
|
|
|
|
icon: require("@/assets/images/pay/icon/wx_bar.svg"),
|
|
|
|
|
code: "wx_bar"
|
2023-07-10 18:28:43 +08:00
|
|
|
|
}, {
|
|
|
|
|
name: '模拟支付',
|
|
|
|
|
icon: require("@/assets/images/pay/icon/mock.svg"),
|
|
|
|
|
code: "mock"
|
|
|
|
|
}],
|
2023-02-18 10:39:48 +08:00
|
|
|
|
submitLoading: false, // 提交支付的 loading
|
2023-02-18 21:16:22 +08:00
|
|
|
|
interval: undefined, // 定时任务,轮询是否完成支付
|
2023-02-18 20:59:18 +08:00
|
|
|
|
qrCode: { // 展示形式:二维码
|
2023-02-15 00:11:34 +08:00
|
|
|
|
url: '',
|
|
|
|
|
title: '',
|
|
|
|
|
visible: false,
|
|
|
|
|
},
|
2023-02-18 23:59:11 +08:00
|
|
|
|
barCode: { // 展示形式:条形码
|
2023-02-19 22:16:15 +08:00
|
|
|
|
channelCode: '',
|
2023-02-18 23:59:11 +08:00
|
|
|
|
value: '',
|
|
|
|
|
title: '',
|
|
|
|
|
visible: false,
|
|
|
|
|
},
|
2023-02-12 21:56:02 +08:00
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
this.id = this.$route.query.id;
|
2023-07-10 17:35:26 +08:00
|
|
|
|
if (this.$route.query.returnUrl) {
|
|
|
|
|
this.returnUrl = decodeURIComponent(this.$route.query.returnUrl)
|
|
|
|
|
}
|
2023-02-13 23:59:03 +08:00
|
|
|
|
this.getDetail();
|
2023-02-12 21:56:02 +08:00
|
|
|
|
},
|
|
|
|
|
methods: {
|
2023-02-15 00:11:34 +08:00
|
|
|
|
/** 获得支付信息 */
|
2023-02-12 21:56:02 +08:00
|
|
|
|
getDetail() {
|
2023-02-13 23:59:03 +08:00
|
|
|
|
// 1.1 未传递订单编号
|
|
|
|
|
if (!this.id) {
|
|
|
|
|
this.$message.error('未传递支付单号,无法查看对应的支付信息');
|
2023-07-12 00:04:19 +08:00
|
|
|
|
this.goReturnUrl('cancel');
|
2023-02-13 23:59:03 +08:00
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
getOrder(this.id).then(response => {
|
|
|
|
|
// 1.2 无法查询到支付信息
|
|
|
|
|
if (!response.data) {
|
|
|
|
|
this.$message.error('支付订单不存在,请检查!');
|
2023-07-12 00:04:19 +08:00
|
|
|
|
this.goReturnUrl('cancel');
|
2023-02-13 23:59:03 +08:00
|
|
|
|
return;
|
|
|
|
|
}
|
2023-07-12 00:04:19 +08:00
|
|
|
|
// 1.3 如果已支付、或者已关闭,则直接跳转
|
|
|
|
|
if (response.data.status === PayOrderStatusEnum.SUCCESS.status) {
|
|
|
|
|
this.$message.success('支付成功');
|
|
|
|
|
this.goReturnUrl('success');
|
|
|
|
|
return;
|
|
|
|
|
} else if (response.data.status === PayOrderStatusEnum.CLOSED.status) {
|
|
|
|
|
this.$message.error('无法支付,原因:订单已关闭');
|
|
|
|
|
this.goReturnUrl('close');
|
2023-02-13 23:59:03 +08:00
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 2. 可以展示
|
|
|
|
|
this.payOrder = response.data;
|
2023-02-12 21:56:02 +08:00
|
|
|
|
});
|
|
|
|
|
},
|
2023-02-15 00:11:34 +08:00
|
|
|
|
/** 提交支付 */
|
|
|
|
|
submit(channelCode) {
|
2023-02-18 23:59:11 +08:00
|
|
|
|
// 条形码支付,需要特殊处理
|
|
|
|
|
if (channelCode === PayChannelEnum.ALIPAY_BAR.code) {
|
2023-02-19 22:16:15 +08:00
|
|
|
|
this.barCode = {
|
|
|
|
|
channelCode: channelCode,
|
|
|
|
|
value: '',
|
|
|
|
|
title: '“支付宝”条码支付',
|
|
|
|
|
visible: true
|
|
|
|
|
}
|
2023-02-18 23:59:11 +08:00
|
|
|
|
return;
|
|
|
|
|
}
|
2023-07-15 21:18:36 +08:00
|
|
|
|
if (channelCode === PayChannelEnum.WX_BAR.code) {
|
|
|
|
|
this.barCode = {
|
|
|
|
|
channelCode: channelCode,
|
|
|
|
|
value: '',
|
|
|
|
|
title: '“微信”条码支付',
|
|
|
|
|
visible: true
|
|
|
|
|
}
|
|
|
|
|
return;
|
|
|
|
|
}
|
2023-02-18 23:59:11 +08:00
|
|
|
|
|
|
|
|
|
// 默认的提交处理
|
|
|
|
|
this.submit0(channelCode)
|
|
|
|
|
},
|
|
|
|
|
submit0(channelCode) {
|
2023-02-18 10:39:48 +08:00
|
|
|
|
this.submitLoading = true
|
2023-02-15 00:11:34 +08:00
|
|
|
|
submitOrder({
|
|
|
|
|
id: this.id,
|
2023-02-18 20:59:18 +08:00
|
|
|
|
channelCode: channelCode,
|
2023-07-12 00:04:19 +08:00
|
|
|
|
returnUrl: location.href, // 支付成功后,支付渠道跳转回当前页;再由当前页,跳转回 {@link returnUrl} 对应的地址
|
2023-02-18 20:59:18 +08:00
|
|
|
|
...this.buildSubmitParam(channelCode)
|
2023-02-15 00:11:34 +08:00
|
|
|
|
}).then(response => {
|
2023-07-15 21:18:36 +08:00
|
|
|
|
// 直接返回已支付的情况,例如说扫码支付
|
2023-02-18 20:59:18 +08:00
|
|
|
|
const data = response.data
|
2023-07-15 21:18:36 +08:00
|
|
|
|
if (data.status === PayOrderStatusEnum.SUCCESS.status) {
|
|
|
|
|
this.clearQueryInterval();
|
|
|
|
|
this.$message.success('支付成功!');
|
|
|
|
|
this.goReturnUrl();
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 展示对应的界面
|
2023-07-12 00:04:19 +08:00
|
|
|
|
if (data.displayMode === PayDisplayModeEnum.URL.mode) {
|
2023-02-18 20:59:18 +08:00
|
|
|
|
this.displayUrl(channelCode, data)
|
2023-02-18 22:40:56 +08:00
|
|
|
|
} else if (data.displayMode === PayDisplayModeEnum.QR_CODE.mode) {
|
|
|
|
|
this.displayQrCode(channelCode, data)
|
2023-02-15 00:11:34 +08:00
|
|
|
|
}
|
2023-02-18 10:39:48 +08:00
|
|
|
|
|
2023-02-15 00:11:34 +08:00
|
|
|
|
// 打开轮询任务
|
|
|
|
|
this.createQueryInterval()
|
2023-02-19 22:16:15 +08:00
|
|
|
|
}).catch(() => {
|
|
|
|
|
this.submitLoading = false
|
|
|
|
|
});
|
2023-02-15 00:11:34 +08:00
|
|
|
|
},
|
2023-02-18 20:59:18 +08:00
|
|
|
|
/** 构建提交支付的额外参数 */
|
|
|
|
|
buildSubmitParam(channelCode) {
|
2023-07-12 00:04:19 +08:00
|
|
|
|
// ① 支付宝 BarCode 支付时,需要传递 authCode 条形码
|
2023-02-19 22:16:15 +08:00
|
|
|
|
if (channelCode === PayChannelEnum.ALIPAY_BAR.code) {
|
|
|
|
|
return {
|
|
|
|
|
"channelExtras": {
|
|
|
|
|
"auth_code": this.barCode.value
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-07-15 21:18:36 +08:00
|
|
|
|
// ② 微信 BarCode 支付时,需要传递 authCode 条形码
|
|
|
|
|
if (channelCode === PayChannelEnum.WX_BAR.code) {
|
|
|
|
|
return {
|
|
|
|
|
"channelExtras": {
|
|
|
|
|
"authCode": this.barCode.value
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-02-18 22:40:56 +08:00
|
|
|
|
return {}
|
2023-02-18 10:39:48 +08:00
|
|
|
|
},
|
2023-02-18 20:59:18 +08:00
|
|
|
|
/** 提交支付后,URL 的展示形式 */
|
|
|
|
|
displayUrl(channelCode, data) {
|
2023-07-10 17:35:26 +08:00
|
|
|
|
location.href = data.displayContent
|
2023-02-18 20:59:18 +08:00
|
|
|
|
this.submitLoading = false
|
|
|
|
|
},
|
2023-02-18 22:40:56 +08:00
|
|
|
|
/** 提交支付后(支付宝扫码支付) */
|
|
|
|
|
displayQrCode(channelCode, data) {
|
|
|
|
|
let title = '请使用手机浏览器“扫一扫”';
|
|
|
|
|
if (channelCode === PayChannelEnum.ALIPAY_WAP.code) {
|
|
|
|
|
// 考虑到 WAP 测试,所以引导手机浏览器搞
|
|
|
|
|
} else if (channelCode.indexOf('alipay_') === 0) {
|
|
|
|
|
title = '请使用支付宝“扫一扫”扫码支付';
|
|
|
|
|
} else if (channelCode.indexOf('wx_') === 0) {
|
|
|
|
|
title = '请使用微信“扫一扫”扫码支付';
|
|
|
|
|
}
|
|
|
|
|
this.qrCode = {
|
|
|
|
|
title: title,
|
|
|
|
|
url: data.displayContent,
|
|
|
|
|
visible: true
|
|
|
|
|
}
|
|
|
|
|
this.submitLoading = false
|
|
|
|
|
},
|
2023-02-15 00:11:34 +08:00
|
|
|
|
/** 轮询查询任务 */
|
|
|
|
|
createQueryInterval() {
|
2023-02-18 22:40:56 +08:00
|
|
|
|
if (this.interval) {
|
2023-02-18 20:59:18 +08:00
|
|
|
|
return
|
|
|
|
|
}
|
2023-02-15 00:11:34 +08:00
|
|
|
|
this.interval = setInterval(() => {
|
|
|
|
|
getOrder(this.id).then(response => {
|
|
|
|
|
// 已支付
|
|
|
|
|
if (response.data.status === PayOrderStatusEnum.SUCCESS.status) {
|
|
|
|
|
this.clearQueryInterval();
|
|
|
|
|
this.$message.success('支付成功!');
|
2023-07-12 00:04:19 +08:00
|
|
|
|
this.goReturnUrl();
|
2023-02-15 00:11:34 +08:00
|
|
|
|
}
|
|
|
|
|
// 已取消
|
|
|
|
|
if (response.data.status === PayOrderStatusEnum.CLOSED.status) {
|
|
|
|
|
this.clearQueryInterval();
|
|
|
|
|
this.$message.error('支付已关闭!');
|
2023-07-12 00:04:19 +08:00
|
|
|
|
this.goReturnUrl();
|
2023-02-15 00:11:34 +08:00
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}, 1000 * 2)
|
|
|
|
|
},
|
|
|
|
|
/** 清空查询任务 */
|
|
|
|
|
clearQueryInterval() {
|
|
|
|
|
// 清空各种弹窗
|
|
|
|
|
this.qrCode = {
|
|
|
|
|
title: '',
|
|
|
|
|
url: '',
|
|
|
|
|
visible: false
|
|
|
|
|
}
|
|
|
|
|
// 清空任务
|
|
|
|
|
clearInterval(this.interval)
|
|
|
|
|
this.interval = undefined
|
|
|
|
|
},
|
2023-07-12 00:04:19 +08:00
|
|
|
|
/**
|
|
|
|
|
* 回到业务的 URL
|
|
|
|
|
*
|
|
|
|
|
* @param payResult 支付结果
|
|
|
|
|
* ① success:支付成功
|
|
|
|
|
* ② cancel:取消支付
|
|
|
|
|
* ③ close:支付已关闭
|
|
|
|
|
*/
|
|
|
|
|
goReturnUrl(payResult) {
|
|
|
|
|
// 未配置的情况下,只能关闭
|
|
|
|
|
if (!this.returnUrl) {
|
|
|
|
|
this.$tab.closePage();
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const url = this.returnUrl.indexOf('?') >= 0
|
|
|
|
|
? this.returnUrl + '&payResult=' + payResult
|
|
|
|
|
: this.returnUrl + '?payResult=' + payResult
|
|
|
|
|
// 如果有配置,且是 http 开头,则浏览器跳转
|
|
|
|
|
if (this.returnUrl.indexOf('http') === 0) {
|
|
|
|
|
location.href = url;
|
|
|
|
|
} else {
|
|
|
|
|
this.$tab.closePage(() => {
|
|
|
|
|
this.$router.push({
|
|
|
|
|
path: url
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
}
|
2023-02-15 00:11:34 +08:00
|
|
|
|
}
|
2023-02-12 21:56:02 +08:00
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
.pay-channel-container {
|
|
|
|
|
display: flex;
|
|
|
|
|
margin-top: -10px;
|
|
|
|
|
.box {
|
|
|
|
|
width: 130px;
|
|
|
|
|
border: 1px solid #e6ebf5;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
text-align: center;
|
|
|
|
|
padding-top: 10px;
|
|
|
|
|
padding-bottom: 5px;
|
|
|
|
|
margin-right: 10px;
|
|
|
|
|
img {
|
|
|
|
|
width: 40px;
|
|
|
|
|
height: 40px;
|
|
|
|
|
}
|
|
|
|
|
.title {
|
|
|
|
|
padding-top: 5px
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|