123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280 |
- <template>
- <view class="container">
- <view class="header">
- <image src="../../static/images/skm_fn_bg.png" mode="aspectFill" class="bg-img"></image>
- <view class="info-block flex-row-between">
- <view class="info">
- <view class="title">收款码{{$test.$test}}</view>
- <view class="desc">{{$test.$desc}}</view>
- </view>
- <view class="btn">浏览</view>
- </view>
- </view>
- <view class="main">
- <view class="cell">
- <view class="name">中转页标题</view>
- <view class="content">
- <input type="text" placeholder="请填写中转页标题" />
- </view>
- </view>
- <view class="cell">
- <view class="name">{{$test.$test}}链接</view>
- <view class="content">
- <input type="text" :placeholder="'请填写'+$test.$test+'链接'" />
- </view>
- </view>
- <view class="cell">
- <view class="name">广告引导页</view>
- <view class="content arr-icon">
- <input type="text" placeholder="默认引导页" />
- </view>
- </view>
- <view class="add-block flex-row-between">
- <view class="item">
- <image src="../../static/images/banner_1.png" mode="aspectFill" class="img" v-if="false"></image>
- <view class="add-def flex-column-center">
- <view class="title">+ 添加</view>
- <view class="desc">添加收款码图片</view>
- </view>
- </view>
- <view class="item">
- <image src="../../static/images/banner_1.png" mode="aspectFill" class="img" v-if="false"></image>
- <view class="add-def flex-column-center">
- <view class="title">+ 添加</view>
- <view class="desc">添加引导页图片</view>
- </view>
- </view>
- </view>
- <block v-if="type == 2">
- <image src="../../static/images/code.png" mode="aspectFit" class="code-img"></image>
- <view class="btm-btn2">生成二维码</view>
- </block>
- </view>
- <view class="btm-btn-block" v-if="type == 1">
- <view class="content flex-column">
- <view class="btn btn1">绑定二维码</view>
- <view class="btn btn2">生成二维码</view>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- $test:this.$test.$test,
- type: 2
- }
- },
- onLoad(e) {
- uni.setNavigationBarTitle({
- title: `收款码${this.$test.$test}`
- })
- },
- methods: {
- }
- }
- </script>
- <style>
- .header {
- width: 100%;
- height: 198rpx;
- position: relative;
- }
- .header .bg-img {
- display: block;
- position: absolute;
- left: 0;
- top: 0;
- z-index: -1;
- width: 100%;
- height: 198rpx;
- }
- .header .info-block {
- padding: 0 40rpx 0 48rpx;
- height: 198rpx;
- }
- .header .info-block .title {
- font-size: 36rpx;
- color: #fff;
- font-weight: 500;
- line-height: 50rpx;
- }
- .header .info-block .desc {
- font-size: 28rpx;
- font-weight: 500;
- color: #fff;
- line-height: 40rpx;
- margin-top: 8rpx;
- }
- .header .info-block .btn {
- width: 120rpx;
- height: 56rpx;
- border: 2rpx solid #fff;
- border-radius: 28rpx;
- background-color: rgba(255, 255, 255, 0.2);
- text-align: center;
- line-height: 52rpx;
- font-size: 28rpx;
- font-weight: 500;
- color: #fff;
- }
- .main {
- background-color: #fff;
- border-radius: 20rpx 20rpx 0 0;
- margin-top: -20rpx;
- padding: 20rpx 40rpx 0;
- min-height: calc(100vh - 198rpx - var(--window-top));
- position: relative;
- }
- .main .cell {
- border-bottom: 2rpx solid #f5f5f5;
- display: flex;
- flex-flow: row nowrap;
- justify-content: space-between;
- align-items: center;
- padding: 30rpx 0;
- }
- .main .cell .name {
- flex: none;
- padding-right: 40rpx;
- font-size: 32rpx;
- color: #333;
- font-weight: 500;
- }
- .main .cell .content {
- flex: auto;
- display: flex;
- flex-flow: row nowrap;
- justify-content: flex-end;
- align-items: center;
- }
- .main .cell .content.arr-icon::after {
- content: "";
- display: block;
- width: 16rpx;
- height: 16rpx;
- border-top: 2rpx solid #999;
- border-right: 2rpx solid #999;
- transform: rotate(45deg);
- }
- .main .cell .content input {
- height: 40rpx;
- line-height: 40rpx;
- font-size: 28rpx;
- text-align: right;
- }
- .main .add-block {
- width: 670rpx;
- padding: 40rpx 0;
- }
- .main .add-block .item {
- flex: none;
- width: 315rpx;
- height: 210rpx;
- border-radius: 15rpx;
- overflow: hidden;
- }
- .main .add-block .img {
- flex: none;
- display: block;
- width: 100%;
- height: 100%;
- }
- .main .add-block .add-def {
- width: 100%;
- height: 100%;
- background-color: #eaf3ff;
- }
- .main .add-block .add-def .title {
- font-size: 40rpx;
- line-height: 56rpx;
- color: #3387FF;
- }
- .main .add-block .add-def .desc {
- font-size: 28rpx;
- line-height: 40rpx;
- color: #7e7e7e;
- margin-top: 7rpx;
- }
- .main .code-img {
- display: block;
- width: 400rpx;
- height: 400rpx;
- margin: 90rpx auto;
- }
- .btm-btn2 {
- width: 670rpx;
- height: 98rpx;
- background: linear-gradient(315deg, #3387ff 2%, #569bff 99%);
- border-radius: 8rpx;
- box-shadow: 0px 0px 8rpx 0px rgba(51, 135, 255, 0.2);
- font-size: 32rpx;
- font-weight: 500;
- text-align: center;
- color: #fff;
- line-height: 98rpx;
- margin-bottom: 90rpx;
- }
- /* */
- .btm-btn-block .content {
- height: 280rpx;
- width: 100%;
- position: absolute;
- left: 0;
- bottom: 0;
- justify-content: flex-start;
- }
- .btm-btn-block .content .btn {
- width: 670rpx;
- height: 98rpx;
- border-radius: 8rpx;
- text-align: center;
- line-height: 98rpx;
- font-size: 32rpx;
- font-weight: 500;
- }
- .btm-btn-block .content .btn1 {
- background: linear-gradient(315deg, #3387ff 2%, #569bff 99%);
- box-shadow: 0 0 8rpx 0 rgba(51, 135, 255, 0.2);
- color: #fff;
- }
- .btm-btn-block .content .btn2 {
- box-shadow: 0px 0px 8px 0px rgba(207, 219, 234, 0.4);
- color: #3387FF;
- margin-top: 32rpx;
- background-color: #fff;
- }
- </style>
|