| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- <template>
- <view class="content">
- <view class="box">
- <view class="wx">
- <text>微信号</text>
- <input type="text" value="" placeholder="请输入微信号" />
- </view>
- <view class="erweima">
- <text>微信收款码</text>
- <view class="img" @click="upload()">
- <image src="../../static/img/add.png" mode="" v-if="image == ''"></image>
- <image :src="image" mode="" v-else></image>
- </view>
- </view>
- </view>
- <view class="button">
- 确认
- </view>
- </view>
- </template>
- <script>
- import { uploads } from '@/api/user.js'
- export default {
- data() {
- return {
- image:''
- };
- },
- methods: {
- upload(){
- uploads({
- filename: ''
- }).then(data => {
- this.image = data[0].url;
- })
- }
- }
- }
- </script>
- <style lang="scss">
- page , .content{
- height: 100%;
- margin: 0;
- padding: 0;
-
- }
- .box{
- margin:20rpx 0 100rpx 0;
- width: 100%;
- background: #FFFFFF;
-
- .wx{
- border-bottom: #F0F0F0 solid 1rpx;
- padding: 20rpx 0 30rpx 0;
- display: flex;
- text{
- width: 150rpx;
- margin: 0 30rpx;
- }
- input{
- font-size: 28rpx;
- font-family: PingFang SC;
- font-weight: 400;
- color: #999999;
- line-height: 100rpx;
- }
- }
- .erweima{
- padding: 30rpx 0;
- display: flex;
- text{
- margin: 0 30rpx;
- width: 150rpx;
- font-size: 30rpx;
- font-family: PingFang SC;
- font-weight: 400;
- color: #333333;
-
- }
- .img{
- width: 160rpx;
- height: 160rpx;
- image{
- width: 100%;
- height: 100%;
- }
- }
- }
- }
- .button{
- margin: 0 auto;
- width: 560rpx;
- height: 80rpx;
- background: linear-gradient(0deg, #2E58FF, #32C6FF);
- border-radius: 40rpx;
- font-size: 30rpx;
- font-family: PingFangSC;
- font-weight: 500;
- color: #FFFFFF;
- line-height: 80rpx;
- text-align: center;
- }
- </style>
|