| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224 |
- <template>
- <view class="content">
- <view class="top">
- <view class="img">
- <image src="../../static/img/logo.png" mode=""></image>
- </view>
- <!-- <view class="name">
- <view class="chinaName">
- 怀化市红十字会
- </view>
- </view> -->
- </view>
-
- <view class="cross">
- 社会捐款通道
- </view>
-
- <view class="box">
- <view class="title">
- 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.count }} <view class="copy" @click="copy(item.count)">复制开户行</view>
- </view>
- <view class="detail-item">
- 银行账户:{{ item.number}} <view class="copy" @click="copy(item.number)">复制账号</view>
- </view>
- </view>
-
- <view class="title">
- 2.捐赠二维码
- </view>
- <view class="erweima">
- <!-- <view class="zhifu">
- 支付宝扫码捐款
- </view> -->
- <image src="../../static/img/other.png" mode="widthFix" style="width: 100%;margin: 20rpx 0 40rpx;"></image>
- </view>
- <!-- <view class="weixin">
- <view class="zhifu">
- 微信扫码捐款
- </view>
- <image src="../../static/img/crosss.png" mode=""></image>
- </view> -->
-
- <view class="title">
- 3.现场捐赠
- </view>
- <view class="detail">
- <view class="detail-item">
- 地址:湖南省怀化市鹤城区怀化市市民服务中心A栋10楼
- </view>
- <view class="detail-item">
- 捐赠电话:0745-2235116
- </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:'1914104629100017475' }
- ]
- }
- },
-
- methods:{
- copy(value) {
- let obj = this;
- let content = value; //需要复制的内容
- // 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 0;
- .top {
- display: flex;
- align-items: center;
- .img{
- width: 360rpx;
- height: 80rpx;
- margin-left: -22rpx;
- image{
- width: 360rpx;
- height: 80rpx;
- }
- }
- .name{
- margin-left: 8rpx;
- .chinaName{
- font-weight: 300;
- font-size: 34rpx;
- }
- // .englishName{
- // font-size: 14rpx;
- // color: #9A9A9A;
- // }
- }
- }
- .cross{
- margin-left: 6rpx;
- height: 76rpx;
- line-height: 76rpx;
- color: #444444;
- border-bottom:1rpx solid #CCCCCC;
- }
- .box{
- padding: 0 0 24rpx;
- .title{
- font-size: 28rpx;
- margin: 20rpx 0;
- font-weight: 700;
- }
- .detail{
- font-size: 28rpx;
- .detail-item{
- display: flex;
- justify-content: space-between;
- align-items: center;
- // height: 40rpx;
- line-height: 46rpx;
- color: #000;
- .copy{
- display: flex;
- justify-content: center;
- background-color: #F1F1F1;
- border-radius: 16rpx;
- line-height: 34rpx;
- font-size: 14rpx;
- color: #333;
- padding: 0 24rpx;
- // width: 144rpx;
- height: 34rpx;
- }
- }
- }
- .erweima{
- .zhifu{
- margin-top: 24rpx;
- color: #4a9fdd;
- font-weight: 900;
- font-size: 48rpx;
- }
- display: flex;
- flex-direction: column;
- align-items: center;
- width: 100%;
- height: 100%;
- image{
- width: 490rpx;
- height: 524rpx;
- }
- .name{
- margin: 14rpx 0;
- color: #d32d26;
- font-weight: 900;
- font-size: 48rpx;
- }
- }
- .weixin{
- display: flex;
- flex-direction: column;
- align-items: center;
- width: 100%;
- height: 100%;
- .zhifu{
- margin-top: 24rpx;
- color: #428751;
- font-weight: 900;
- font-size: 48rpx;
- }
- image{
- width: 490rpx;
- height: 524rpx;
- }
- .name{
- margin: 14rpx 0;
- color: #d32d26;
- font-weight: 900;
- font-size: 48rpx;
- }
- }
- }
- }
- </style>
|