作者 wumengyu

删除多余图片,添加上传背景图接口

1 -  
2 @font-face {font-family: "iconfont"; 1 @font-face {font-family: "iconfont";
3 - src: url('//at.alicdn.com/t/font_961048_kzif4jn6os.eot?t=1546407359461'); /* IE9*/  
4 - src: url('//at.alicdn.com/t/font_961048_kzif4jn6os.eot?t=1546407359461#iefix') format('embedded-opentype'), /* IE6-IE8 */  
5 - url('data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAA2EAAsAAAAAFBwAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADMAAABCsP6z7U9TLzIAAAE8AAAARAAAAFY8dkpiY21hcAAAAYAAAADvAAAC5GwWoatnbHlmAAACcAAACHgAAAuA5LTG5mhlYWQAAAroAAAALwAAADYTxCF7aGhlYQAACxgAAAAcAAAAJAfeA5VobXR4AAALNAAAAA8AAABQUAAAAGxvY2EAAAtEAAAAKgAAACobAhhebWF4cAAAC3AAAAAfAAAAIAEjAGluYW1lAAALkAAAAUUAAAJtPlT+fXBvc3QAAAzYAAAAqgAAAPgKu2LeeJxjYGRgYOBikGPQYWB0cfMJYeBgYGGAAJAMY05meiJQDMoDyrGAaQ4gZoOIAgCKIwNPAHicY2BkYWCcwMDKwMHUyXSGgYGhH0IzvmYwYuRgYGBiYGVmwAoC0lxTGByeMbwoYG7438AQw9zA0AAUZgTJAQDlnQxVeJzdkkFOAkEQRd8wiDqigw5rMMYYF8MJCEvWXIUFe87DJUy4A2f4Ia5cuMdfUyw17K3Om0xXqtNd/xdwBZSmNX0oviiI+HS26PIlVZfv8+H9C8/+6wlVqjXWVDPNtdBSK2201U57HY7r0wnONY0mav+quRCF78v1yhvvvyy4d9UDI24ZUPPIk3u65oYeQ+781pKm62Bw8bb/H8Pu+33eNeFRYhXtVhK+q06sLGoSa4zGidVGk8S6o2lCnGsTe4FmiV1B8yRmTovETqFlYs/QKrF7aJPEq7VN7CjaJTGv2icxwzok0ddxnVD9ANXtYX0AeJydVmtsFNcVnnPv7sy+v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XcI1P4Tr1L+EG+Vu4iTv8CrfQ8erCPuZeV7iNRy/2x1YvnF6p5UHFockikzm/gple75KFrdLqnGtbxCZTg6BfSVOdaVvdU+zXQ+ciFVmTqgmrOkmMyq3Z6tAFG+fyUa8XiR6EJuVYY/62xgKOcQWFJQ6MMUIYZIjK6Og7VWb0r7FDwl57Vj3N53RbFNT/c4UBAvTPXFO6stJ5Ok+BPV8bUnV0K27LnpQ0kV7NSRKyQl7WtlRC6gE2ZVeOEXpc0Yk/KGdI/wAJWm7IAAAAeJxtTlsOgjAQ7PAs+Fb88wp8VO/gPSogLJI2AQmkp7f44MvJZrI7k5ksc9gHMfuPBA5cePARIARHhBgLLLHCGhtsscMeByQ4sqirdJ9JVQrPSCVikzb0KK7UNG5NcnbP0b1QI01bLNtWD2muBzXbF/72LLm2JbjZoybeVVJlVS94ozP5JK3Cr3LKSZVDQXZMRabXNqCnhtHq/Ffq2QfERMqfSDD2AsAjPtkAAA==') format('woff'),  
6 - url('//at.alicdn.com/t/font_961048_kzif4jn6os.ttf?t=1546407359461') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/  
7 - url('//at.alicdn.com/t/font_961048_kzif4jn6os.svg?t=1546407359461#iconfont') format('svg'); /* iOS 4.1- */ 2 + src: url('//at.alicdn.com/t/font_961048_1lfcgmofki3.eot?t=1546996469479'); /* IE9 */
  3 + src: url('//at.alicdn.com/t/font_961048_1lfcgmofki3.eot?t=1546996469479#iefix') format('embedded-opentype'), /* IE6-IE8 */
  4 + url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAAyEAAsAAAAAFngAAAw1AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCFegqbNJVnATYCJANUCywABCAFhG0HggEbtBIzknFWKtl/ncCNofjH0CpbCTK1cqPoYypKt6HlUyK4UqOcSxf3+LfrDoyalxqjw7Zx98rd+pgMglPv/wM3JcYqpRNXTKkByOTMVgcgEDpXrw+UR4HE2cllG+wBgoerATD8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qbs8p4v57/vIk8VQqCUe2k0VE6t2SvvcefBIZm1m7XMsTHY8lFgee8gs4056EKmwrq1djMjALDmdD1g+WRbmE1Uc9EA5taXU0Tj8RxMH3qaaD5rHfMHLN9sHJNFAadsZUH47Kpt4wMWGcGqq2Y7zToTcJSJJQc8coi1CF3qAcuTZpMbYcYDx3GVVvHfBOJnzhW3Stt/E9RiasOpwEwJ4C3NFCXPSZxfrUyz53z/PUbcQJA9doFbRQGI1CJghlhggwe7kWcPlJRA8C6BKPhwRwwCtLTlOCoQF2KEIx4ESEIi+MOwnhi26AYGwhHOEIwjQARybEQUMhxEDHKct+U43kdcOOAd4kFOGBLBSGxVitEaF2evDniAjh0uDAUZqTPCLGv/BSpq7qra1P8PnMdytlmum/WfYMCtYhd/VNsQJJOORvYRnQ+0JjY5GkCEZR/CtF+tZN+uS0FjMks0Dnhw4TvmcEmMgoxcPsxav/4LVNTcjQz7k/gPnMfVMxtLaw/bT4PxGnZXuvqj2gqCSmb6OhqZD0FBqxpipv71BhBhqQ+omvZWYjrpa1hu3jjeB9rnxBHkV8TOMJygUEkancHk4maxz9+8fff+g9b3FAU3alNcudnMrguN//CBWucD8pHm21aCOWPeacado9OiM2YzlLprPvhfnK+AVIeK4oCN77kRfdxUHALXHhtNggckU3d2eezQqBOg5ofoNVKITEvB5z5Ts1pc7IK8sW6mzN4kCQAA') format('woff2'),
  5 + url('//at.alicdn.com/t/font_961048_1lfcgmofki3.woff?t=1546996469479') format('woff'),
  6 + url('//at.alicdn.com/t/font_961048_1lfcgmofki3.ttf?t=1546996469479') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+ */
  7 + url('//at.alicdn.com/t/font_961048_1lfcgmofki3.svg?t=1546996469479#iconfont') format('svg'); /* iOS 4.1- */
8 } 8 }
9 9
10 .iconfont { 10 .iconfont {
11 - font-family:"iconfont" !important;  
12 - font-size:16px;  
13 - font-style:normal; 11 + font-family: "iconfont" !important;
  12 + font-size: 16px;
  13 + font-style: normal;
14 -webkit-font-smoothing: antialiased; 14 -webkit-font-smoothing: antialiased;
15 -moz-osx-font-smoothing: grayscale; 15 -moz-osx-font-smoothing: grayscale;
16 } 16 }
17 17
18 -.icon-shoucang1:before { content: "\e60a"; } 18 +.icon-shoucang1:before {
  19 + content: "\e60a";
  20 +}
19 21
20 -.icon-zan1:before { content: "\e64f"; } 22 +.icon-zan1:before {
  23 + content: "\e64f";
  24 +}
21 25
22 -.icon-z-likeFill:before { content: "\e6c1"; } 26 +.icon-z-likeFill:before {
  27 + content: "\e6c1";
  28 +}
23 29
24 -.icon-jia:before { content: "\e6a9"; } 30 +.icon-jia:before {
  31 + content: "\e6a9";
  32 +}
25 33
26 -.icon-shoucang2:before { content: "\e63b"; } 34 +.icon-shoucang2:before {
  35 + content: "\e63b";
  36 +}
27 37
28 -.icon-fenxiang2:before { content: "\e61e"; } 38 +.icon-fenxiang2:before {
  39 + content: "\e61e";
  40 +}
29 41
30 -.icon-arrow-down:before { content: "\e63d"; } 42 +.icon-arrow-down:before {
  43 + content: "\e63d";
  44 +}
31 45
32 -.icon-shoucang3:before { content: "\e645"; } 46 +.icon-shoucang3:before {
  47 + content: "\e645";
  48 +}
  49 +
  50 +.icon-xiangxia:before {
  51 + content: "\e614";
  52 +}
33 53
34 -.icon-xiangxia:before { content: "\e614"; } 54 +.icon-zan:before {
  55 + content: "\e870";
  56 +}
35 57
36 -.icon-zan:before { content: "\e870"; } 58 +.icon-bianji:before {
  59 + content: "\e67f";
  60 +}
37 61
38 -.icon-bianji:before { content: "\e67f"; } 62 +.icon-shanchu1:before {
  63 + content: "\e674";
  64 +}
39 65
40 -.icon-shanchu1:before { content: "\e674"; } 66 +.icon-shezhi:before {
  67 + content: "\e78a";
  68 +}
41 69
42 -.icon-location:before { content: "\e600"; } 70 +.icon-location:before {
  71 + content: "\e600";
  72 +}
43 73
44 -.icon-shanchu:before { content: "\e60f"; } 74 +.icon-shanchu:before {
  75 + content: "\e60f";
  76 +}
45 77
46 -.icon-dingweiweizhizuobiaoxianxing:before { content: "\e61f"; } 78 +.icon-dingweiweizhizuobiaoxianxing:before {
  79 + content: "\e61f";
  80 +}
47 81
48 -.icon-shoucang:before { content: "\e613"; } 82 +.icon-shoucang:before {
  83 + content: "\e613";
  84 +}
49 85
50 -.icon-jia1:before { content: "\e62c"; } 86 +.icon-jia1:before {
  87 + content: "\e62c";
  88 +}
51 89
52 -.icon-jian:before { content: "\e62d"; } 90 +.icon-jian:before {
  91 + content: "\e62d";
  92 +}
53 93
54 -.icon-jian1:before { content: "\e6d4"; } 94 +.icon-jian1:before {
  95 + content: "\e6d4";
  96 +}
@@ -13,6 +13,110 @@ Page({ @@ -13,6 +13,110 @@ Page({
13 is_class:1, 13 is_class:1,
14 isLogin: null, 14 isLogin: null,
15 is_write:2,//1:已填写,2:未填写 15 is_write:2,//1:已填写,2:未填写
  16 + images:'',
  17 + images_params:'',
  18 + },
  19 + //上传背景图
  20 + uploadImg() { //这里是选取图片的方法
  21 + let that = this;
  22 + wx.chooseImage({
  23 + count: 1, //最多可以选择的图片总数
  24 + sizeType: ['compressed'], // 可以指定是原图还是压缩图,默认二者都有
  25 + sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有
  26 + success: function(res) {
  27 + // 返回选定照片的本地文件路径列表,tempFilePath可以作为img标签的src属性显示图片
  28 + let tempFilePaths = res.tempFilePaths;
  29 + console.log(tempFilePaths)
  30 + //启动上传等待中...
  31 + wx.showToast({
  32 + title: '正在上传...',
  33 + icon: 'loading',
  34 + mask: true,
  35 + duration: 1000
  36 + })
  37 + let token = wx.getStorageSync('token');
  38 + let uploadImgCount = 0;
  39 + console.log(tempFilePaths.length)
  40 + for (let i = 0, h = tempFilePaths.length; i < h; i++) {
  41 + wx.uploadFile({
  42 + url: 'http://wmatchrd.com/portal/Index/upload',
  43 + filePath: tempFilePaths[i],
  44 + name: 'file',
  45 + formData: {
  46 + 'imgIndex': i
  47 + },
  48 + header: {
  49 + 'content-type': 'application/x-www-form-urlencoded',
  50 + 'XX-Token': token,
  51 + 'XX-Device-Type': 'wxapp',
  52 + },
  53 + success: function(res) {
  54 + // console.log(res)
  55 + uploadImgCount++;
  56 + let data = JSON.parse(res.data);
  57 + // console.log('data', data);
  58 + if (+data.code == 1) {
  59 + wx.hideToast();
  60 + //服务器返回格式: { "Catalog": "testFolder", "FileName": "1.jpg", "Url": "https://test.com/1.jpg" }
  61 + let images = data.data.preview_url;
  62 + let images_params = data.data.filepath;
  63 + // images.push(data.data.preview_url);
  64 + // images_params.push(data.data.filepath);
  65 + that.setData({
  66 + images: images,
  67 + images_params:images_params,
  68 + });
  69 + // console.log('images---images_params',images,images_params);
  70 + that.getUpload();
  71 + //如果是最后一张,则隐藏等待中
  72 + // if (uploadImgCount == tempFilePaths.length) {
  73 + // wx.hideToast();
  74 + // }
  75 + } else {
  76 + wx.hideToast();
  77 + wx.showModal({
  78 + title: '提示',
  79 + content: data.msg,
  80 + showCancel: false
  81 + })
  82 + }
  83 + },
  84 +
  85 + fail: function(res) {
  86 + wx.hideToast();
  87 + wx.showModal({
  88 + title: '错误提示',
  89 + content: '上传图片失败',
  90 + showCancel: false,
  91 + success: function(res) {}
  92 + })
  93 + }
  94 + });
  95 + }
  96 + }
  97 + });
  98 + },
  99 + //上传
  100 + getUpload() {
  101 + const self = this;
  102 + let url = '/portal/Member/changeBg';
  103 + let params = {
  104 + token: wx.getStorageSync('token'),
  105 + pic:self.data.images_params,
  106 + };
  107 + let header = {
  108 + "token": wx.getStorageSync('token')
  109 + };
  110 + app.post(url, params, {}).then((res) => {
  111 + console.log('上传', res);
  112 + if (+res.code === 1) {
  113 + // self.setData({
  114 + // is_write: res.data.is_write,//1:已填写2:未填写
  115 + // });
  116 + // console.log(this.data.this_week_test_info);
  117 + }
  118 + })
  119 +
16 }, 120 },
17 //是否填写个人信息 121 //是否填写个人信息
18 getIsWrite() { 122 getIsWrite() {
1 <!--pages/my/my.wxml--> 1 <!--pages/my/my.wxml-->
2 <view class="head-box"> 2 <view class="head-box">
3 - <view wx:if="{{isLogin}}" bindtap="EditUserInfo">  
4 - <view class="head" style="background-image: {{user.pic!==''?user.pic:''}}"></view>  
5 - <!--<image src="../../images/user-img@2x.png" class="user-img"></image>-->  
6 - <image src="{{user.pic}}" class="user-img"></image>  
7 - <view class="left">  
8 - <view class="class-box">  
9 - <image src="../../images/jin@2x.png" wx:if="{{user.level === 1}}"></image>  
10 - <image src="../../images/yin@2x.png" wx:if="{{user.level === 2}}"></image>  
11 - <image src="../../images/tong@2x.png" wx:if="{{user.level === 3}}"></image>  
12 - <text wx:if="{{user.level === 1}}">金火柴</text>  
13 - <text wx:if="{{user.level === 2}}">银火柴</text>  
14 - <text wx:if="{{user.level === 3}}">铜火柴</text>  
15 - </view> 3 + <view wx:if="{{isLogin}}" >
  4 + <view class="head" bindtap='uploadImg' style="">
  5 + <image class='banner_img' wx:if="{{images !== ''}}" src='{{images}}' mode="aspectFill"></image>
  6 + <image class='banner_img' wx:else="" src="{{user.bg_pic}}" mode="aspectFill"></image>
16 </view> 7 </view>
17 - <view class="right">  
18 - <view class="name">{{user.name}}</view>  
19 - <view class="area">  
20 - <view class="iconfont icon-dingweiweizhizuobiaoxianxing"></view>  
21 - <text>{{user.city || '定位'}}</text> 8 + <!--<view class="margin">-->
  9 + <image src="{{user.pic}}" class="user-img"></image>
  10 + <view class="left">
  11 + <view class="class-box">
  12 + <image src="../../images/jin@2x.png" wx:if="{{user.level === 1}}"></image>
  13 + <image src="../../images/yin@2x.png" wx:if="{{user.level === 2}}"></image>
  14 + <image src="../../images/tong@2x.png" wx:if="{{user.level === 3}}"></image>
  15 + <text wx:if="{{user.level === 1}}">金火柴</text>
  16 + <text wx:if="{{user.level === 2}}">银火柴</text>
  17 + <text wx:if="{{user.level === 3}}">铜火柴</text>
  18 + </view>
22 </view> 19 </view>
23 - <view class="qian">{{user.introduce || '个人简介'}}</view>  
24 - </view> 20 + <view class="right">
  21 + <view class="name">{{user.name}}</view>
  22 + <view class="area">
  23 + <view class="iconfont icon-dingweiweizhizuobiaoxianxing"></view>
  24 + <text>{{user.city || '定位'}}</text>
  25 + </view>
  26 + <view class="qian">{{user.introduce || '个人简介'}}</view>
  27 + </view>
  28 + <!--</view>-->
  29 + <view class="iconfont icon-shezhi" bindtap="EditUserInfo"></view>
  30 + <!--<image src="../../images/user-img@2x.png" class="user-img"></image>-->
25 </view> 31 </view>
26 <view wx:if="{{!isLogin}}" class="login-box"> 32 <view wx:if="{{!isLogin}}" class="login-box">
27 <button class="btn" open-type="getUserInfo" bindgetuserinfo="login">登录</button> 33 <button class="btn" open-type="getUserInfo" bindgetuserinfo="login">登录</button>
1 /* pages/my/my.wxss */ 1 /* pages/my/my.wxss */
2 @import "../../templates/templates.wxss"; 2 @import "../../templates/templates.wxss";
3 @import "../../pages/css/modal.wxss"; 3 @import "../../pages/css/modal.wxss";
  4 +.icon-shezhi {
  5 + position: absolute;
  6 + right:30rpx;
  7 + top:30rpx;
  8 + color: #ffffff;
  9 + font-size: 50rpx;
  10 +}
4 .login-box { 11 .login-box {
5 width: 100%; 12 width: 100%;
6 height: 300rpx; 13 height: 300rpx;
@@ -26,11 +33,12 @@ @@ -26,11 +33,12 @@
26 .head-box .head { 33 .head-box .head {
27 width: 100%; 34 width: 100%;
28 height: 314rpx; 35 height: 314rpx;
29 - background-image: url('http://pic.97uimg.com/back_pic/20/15/11/05/f87b770c518ed891c289e9c3ee1f2d80.jpg');  
30 - background-repeat: no-repeat;  
31 - -webkit-background-size: cover;  
32 - background-size: cover;  
33 - padding: 40rpx; 36 + /*background-image: url('http://pic.97uimg.com/back_pic/20/15/11/05/f87b770c518ed891c289e9c3ee1f2d80.jpg');*/
  37 + /*background: url('https://wx.qlogo.cn/mmopen/vi_32/qbkUYBgicOL3TJP6qib3QujnHriajUj69EmQObVQsrbaIEiadmhz1FSdXAH9A0Db5TFMIlNSQYS35X1ON9GVlmkiaeg/132');*/
  38 + /*background-repeat: no-repeat;*/
  39 + /*-webkit-background-size: cover;*/
  40 + /*background-size: cover;*/
  41 + /*padding: 40rpx;*/
34 -webkit-box-sizing: border-box; 42 -webkit-box-sizing: border-box;
35 -moz-box-sizing: border-box; 43 -moz-box-sizing: border-box;
36 box-sizing: border-box; 44 box-sizing: border-box;
@@ -42,6 +50,22 @@ @@ -42,6 +50,22 @@
42 -ms-filter: blur(2rpx); 50 -ms-filter: blur(2rpx);
43 filter: blur(2rpx); 51 filter: blur(2rpx);
44 } 52 }
  53 +.banner_img {
  54 + z-index:-1;
  55 + width: 100%;
  56 + height: 100%;
  57 +}
  58 +.margin {
  59 + width: 50%;
  60 + height: 314rpx;
  61 + padding: 40rpx;
  62 + position: absolute;
  63 + top:0rpx;
  64 + left:0rpx;
  65 + -webkit-box-sizing: border-box;
  66 + -moz-box-sizing: border-box;
  67 + box-sizing: border-box;
  68 +}
45 .left { 69 .left {
46 position: absolute; 70 position: absolute;
47 top:65%; 71 top:65%;
@@ -34,7 +34,7 @@ textarea { @@ -34,7 +34,7 @@ textarea {
34 height: 360rpx; 34 height: 360rpx;
35 color: #666666; 35 color: #666666;
36 font-size: 28rpx; 36 font-size: 28rpx;
37 - padding: 30rpx 30rpx 50rpx 30rpx; 37 + padding: 30rpx 30rpx 80rpx 30rpx;
38 } 38 }
39 .placeholder { 39 .placeholder {
40 color: #999999; 40 color: #999999;