123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176 |
- <template>
- <view class="content">
- <view class="box">
- <view class="title" style="margin-top: 0;">1.银行转账援助</view>
- <view class="detail">
- <view class="detail-item">
- 银行账户:{{ userInfo.bank_card_no }}
- <view class="copy" @click="copy(userInfo.bank_card_no)">复制账号</view>
- </view>
- <view class="detail-spe">
- 开户行:{{ userInfo.bank_of_deposit }}
- <view class="copyband" @click="copy(userInfo.bank_of_deposit)">复制开户行</view>
- </view>
- </view>
- <view class="title" v-if="userInfo.ali">2.支付宝扫码援助</view>
- <view v-if="userInfo.ali" class="erweima"><image :src="userInfo.ali" mode="widthFix"></image></view>
- <view v-if="userInfo.wechat" class="title">3.微信扫码援助</view>
- <view v-if="userInfo.wechat" class="erweima" ><image :src="userInfo.wechat" mode="widthFix"></image></view>
- </view>
- </view>
- </template>
- <script>
- import { mapState, mapMutations } from 'vuex';
- export default {
- computed: {
- ...mapState('user', ['userInfo', 'orderInfo', 'hasLogin'])
- },
- onLoad() {
- console.log(this.userInfo);
- },
- methods: {
- copy(text) {
- uni.setClipboardData({
- data: text,
- success: e => {
- uni.showToast({
- title: '复制成功!'
- });
- },
- fail(e) {
- uni.showToast({
- title: '复制失败',
- icon: false
- });
- console.log(e);
- }
- });
- }
- }
- };
- </script>
- <style lang="scss">
- body,
- page {
- height: 100%;
- background-color: #000;
- }
- .content {
- background-color: #000;
- line-height: 1;
- padding-top: 25rpx;
- padding: 24rpx 24rpx 90rpx;
- .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;
- color: #fff;
- .title {
- margin-top: 60rpx;
- font-size: 28rpx;
- font-family: PingFang SC;
- font-weight: bold;
- }
- .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;
- border-radius: 10rpx;
- line-height: 34rpx;
- font-size: 24rpx;
- color: #fff;
- // 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: #fff;
- 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;
- }
- }
- }
- .erweima {
- width: 362rpx;
- margin: 26rpx auto;
- image {
- 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>
|