123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248 |
- <template>
- <view class="content">
- <view class="top flex">
- <image src="../../static/img/002.png" mode="aspectFill"></image>
- <view class="font">
- <view class="china-font">石首市红十字会</view>
- <view class="english-font">Red Cross Society of China Shishou Branch</view>
- </view>
- </view>
- <view class="cross">社会捐款通道</view>
- <view class="box">
- <view class="title" style="margin-top: 0;">1.银行转账</view>
- <view class="detail" v-for="item in list" :key="item.id">
- <view class="detail-item">
- 开户名:{{ item.name }}
- <view class="copy" @click="copy(item.name)">复制开户名</view>
- </view>
- <view class="detail-item">
- 银行账户:{{ item.number }}
- <view class="copy" @click="copy(item.number)">复制账号</view>
- </view>
- <view class="detail-spe">
- 开户行:{{ item.count }}
- <view class="copyband" @click="copy(item.count)">复制开户行</view>
- </view>
- </view>
- <view class="image">
- <image src="../../static/images/oother.png" mode=""></image>
- </view>
- <!-- <view class="title">2.扫码捐款</view>
- <view class="erweima"><image src="../../static/images/smjk.png" mode=""></image></view> -->
- <view class="title">2.现场捐款/捐物</view>
- <view class="detail">
- <view class="detail-item">负责人:张杰</view>
- <view class="detail-item">咨询电话:0716-7819125 15907211549</view>
- <view class="detail-item">地址:石首市建宁大道586号</view>
- </view>
- </view>
- </view>
- </template>
- <script>
- import uniCopy from '../../components/js_sdk/xb-copy/uni-copy.js';
- export default {
- data() {
- return {
- list: [
- {
- id: 0,
- spread_url: 11,
- name: '石首市红十字会办公室',
- count: '中国银行石首支行营业部',
- number: '569078873955'
- }
- ]
- };
- },
- methods: {
- tocontrilist() {
- uni.navigateTo({
- url: '/pages/applic/tocontrilist'
- });
- },
- copy(value) {
- let obj = this;
- let content = value; //需要复制的内容
- console.log('复制的内容:', content);
- // content = typeof content === 'string' ? content : content.toString(); // 复制内容,必须字符串,数字需要转换为字符串
- const result = uniCopy(content);
- if (result === false) {
- uni.showToast({
- title: '不支持'
- });
- } else {
- uni.showToast({
- title: '复制成功',
- icon: 'none'
- });
- }
- }
- }
- };
- </script>
- <style lang="scss">
- body,
- page {
- height: 100%;
- background-color: #fefefe;
- }
- .content {
- background-color: #fefefe;
- line-height: 1;
- padding-top: 25rpx;
- padding: 24rpx 24rpx 90rpx;
- .top {
- align-items: center;
- width: 100%;
- image {
- width: 64rpx;
- height: 64rpx;
- border-radius: 50%;
- }
- .font {
- margin-left: 20rpx;
- .china-font {
- font-size: 27rpx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #101010;
- letter-spacing:20rpx;
- }
- .english-font {
- margin-top: 6rpx;
- font-size: 12rpx;
- font-family: PingFang SC;
- // font-weight: bold;
- color: #101010;
- // letter-spacing:1rpx;
- }
- }
- }
- .cross {
- margin-left: 6rpx;
- height: 76rpx;
- line-height: 76rpx;
- color: #444444;
- border-bottom: 1rpx solid #cccccc;
- }
- .image {
- margin-top: 44rpx;
- margin-bottom: 48rpx;
- height: 404rpx;
- width: 100%;
- image {
- width: 100%;
- height: 100%;
- }
- }
- .box {
- padding: 20rpx 0 24rpx;
- .title {
- margin-top: 60rpx;
- font-size: 28rpx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #101010;
- }
- .detail {
- padding-top: 10rpx;
- font-size: 28rpx;
- line-height: 40rpx;
- .detail-spe {
- margin-top: 10rpx;
- line-height: 46rpx;
- overflow: hidden;
- text-overflow: ellipsis;
- display: -webkit-box; //必须结合的属性,将对象作为弹性伸缩盒子模型显示
- -webkit-line-clamp: 2; //控制文本的行数
- -webkit-box-orient: vertical; //必须结合的属性,设置或检索伸缩盒对象的子元素的排列方式
- .copyband {
- display: flex;
- float: right;
- // float: right;
- justify-content: center;
- background-color: #f1f1f1;
- border-radius: 10rpx;
- line-height: 34rpx;
- font-size: 24rpx;
- color: #333;
- // padding: 0 24rpx;
- width: 168rpx;
- height: 34rpx;
- margin-top: 8rpx;
- }
- }
- .detail-item {
- display: flex;
- justify-content: space-between;
- align-items: center;
- // height: 40rpx;
- line-height: 46rpx;
- color: #000;
- margin-top: 10rpx;
- .copy {
- width: 168rpx;
- display: flex;
- justify-content: center;
- background-color: #f1f1f1;
- border-radius: 10rpx;
- line-height: 34rpx;
- font-size: 24rpx;
- color: #333;
- padding: 0 24rpx;
- // width: 144rpx;
- height: 34rpx;
- }
- }
- .phone {
- margin-left: 138rpx;
- height: 40rpx;
- color: #000;
- }
- }
- .erweima {
- width: 362rpx;
- height: 362rpx;
- background: #0b9edd;
- margin: 26rpx auto;
- image {
- height: 100%;
- width: 100%;
- }
- }
- .zfb {
- font-size: 30rpx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #0b9edd;
- margin-top: 36rpx;
- text-align: center;
- }
- .weixin {
- font-size: 30rpx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #02974a;
- margin-top: 36rpx;
- text-align: center;
- }
- }
- }
- </style>
|