作者 朱振飞

1213

正在显示 52 个修改的文件 包含 1374 行增加316 行删除
@@ -59,7 +59,11 @@ App({ @@ -59,7 +59,11 @@ App({
59 } else if (res.data.code == '201') { 59 } else if (res.data.code == '201') {
60 resolve(res.data); 60 resolve(res.data);
61 } else { 61 } else {
62 - console.log(res) 62 + wx.showToast({
  63 + title: res.data.msg,
  64 + duration: 1200,
  65 + icon:'none'
  66 + })
63 reject(res) 67 reject(res)
64 } 68 }
65 69
@@ -151,6 +155,7 @@ App({ @@ -151,6 +155,7 @@ App({
151 }, 155 },
152 globalData: { 156 globalData: {
153 userInfo: null, 157 userInfo: null,
154 - url:'http://winesbook.cn/static/images_mini/' 158 + url:'http://winesbook.cn/static/images_mini/',
  159 + baseUrl:'https://winesbook.cn/api'
155 } 160 }
156 }) 161 })
@@ -39,7 +39,14 @@ @@ -39,7 +39,14 @@
39 "pages/findblock/zhuanjiapinjiudetail/zhuanjiapinjiudetail", 39 "pages/findblock/zhuanjiapinjiudetail/zhuanjiapinjiudetail",
40 "pages/findblock/niangjiushi/niangjiushi", 40 "pages/findblock/niangjiushi/niangjiushi",
41 "pages/findblock/jiudandetail/jiudandetail", 41 "pages/findblock/jiudandetail/jiudandetail",
42 - "pages/myblock/history/history" 42 + "pages/myblock/history/history",
  43 + "pages/myblock/jiupin/jiupin",
  44 + "pages/myblock/pinpai/pinpai",
  45 + "pages/myblock/company/company",
  46 + "pages/myblock/message/message",
  47 + "pages/myblock/feedback/feedback",
  48 + "pages/myblock/rule/rule",
  49 + "pages/myblock/about/about"
43 ], 50 ],
44 "window": { 51 "window": {
45 "backgroundTextStyle": "light", 52 "backgroundTextStyle": "light",
1 -  
2 -  
3 -  
4 -@font-face {font-family: "iconfont"; 1 +@font-face {
  2 + font-family: "iconfont";
5 src: url('//at.alicdn.com/t/font_1185667_ds07xvngh3k.eot?t=1557490149623'); /* IE9 */ 3 src: url('//at.alicdn.com/t/font_1185667_ds07xvngh3k.eot?t=1557490149623'); /* IE9 */
6 - src: url('//at.alicdn.com/t/font_1185667_ds07xvngh3k.eot?t=1557490149623#iefix') format('embedded-opentype'), /* IE6-IE8 */  
7 - url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAAJ4AAsAAAAABiAAAAItAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCCcAooRwE2AiQDCAsGAAQgBYRtBzEbbgXInpo8CQBIEAKw5OZZAMTD9/v9b+1zz1NNXxTzaBJFExlPJNEqFptWpnvEM0P7d//nMgdo757P88fyFNGAfSG/5fSl6QDVnJ5SE3ITbm/9Qwq8v752fZ5r6iXQgeQHmmsHRSUlBdDeeEAD7MLRkW0gQ98wdsELfE6gaU5P6ejxkxtoyux1gbhx1bOgWYjKMivUhWrD0Sxeqainx+kDXkbfj792RZ2kUrBbTl1auzD7wSkpHpWPXAwIMQI6XUGBLUAmzjVmT6gIxlU0s1VL4FiNwQ9lGXjEUZ2C/XV2fRvMwFzwg7dWgASPRRluT1KAqN49Re6l1+3sX7v38OPlfx0EKN+ntcoB8qvg1rf+6+39V29l8PFPvkfh8n02zA/q6/mC91cPHMiG1nanrKkbx5Pqftuamijh4NDvVNvkZMVQN5ngr5nNUKhbITO7BRUte1BVdwBNm21Pt4yIisgNbPIJEPq+kHS9RqHvm8zsDyqm/lDVjwJNF2J0Zcu6uNo8cpMsJRftJwwcTo3r1XbceEVeEVuS10b8HUkeJHC8bUe5sKWUZIkd+b03UTVohBPcgNcojhkz4ZAcHfiq2XS4/VKTQgOHE2g7QhCLIi5ke4ICDpYywWTVrnz+CvEUYhbp6Kur3iEiF8yOxgZGA8itKR3U9yjv5O55JpQykCFYAm3AIhKLMZQ1LwoRhxrwJ6QzU0NnlBlqGmxvSf7uFDTZ9hTO3ELt2lUrVS4AAAA=') format('woff2'),  
8 - url('//at.alicdn.com/t/font_1185667_ds07xvngh3k.woff?t=1557490149623') format('woff'),  
9 - url('//at.alicdn.com/t/font_1185667_ds07xvngh3k.ttf?t=1557490149623') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+ */  
10 - url('//at.alicdn.com/t/font_1185667_ds07xvngh3k.svg?t=1557490149623#iconfont') format('svg'); /* iOS 4.1- */ 4 + src: url('//at.alicdn.com/t/font_1185667_ds07xvngh3k.eot?t=1557490149623#iefix') format('embedded-opentype'),
  5 + /* IE6-IE8 */ url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAAJ4AAsAAAAABiAAAAItAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCCcAooRwE2AiQDCAsGAAQgBYRtBzEbbgXInpo8CQBIEAKw5OZZAMTD9/v9b+1zz1NNXxTzaBJFExlPJNEqFptWpnvEM0P7d//nMgdo757P88fyFNGAfSG/5fSl6QDVnJ5SE3ITbm/9Qwq8v752fZ5r6iXQgeQHmmsHRSUlBdDeeEAD7MLRkW0gQ98wdsELfE6gaU5P6ejxkxtoyux1gbhx1bOgWYjKMivUhWrD0Sxeqainx+kDXkbfj792RZ2kUrBbTl1auzD7wSkpHpWPXAwIMQI6XUGBLUAmzjVmT6gIxlU0s1VL4FiNwQ9lGXjEUZ2C/XV2fRvMwFzwg7dWgASPRRluT1KAqN49Re6l1+3sX7v38OPlfx0EKN+ntcoB8qvg1rf+6+39V29l8PFPvkfh8n02zA/q6/mC91cPHMiG1nanrKkbx5Pqftuamijh4NDvVNvkZMVQN5ngr5nNUKhbITO7BRUte1BVdwBNm21Pt4yIisgNbPIJEPq+kHS9RqHvm8zsDyqm/lDVjwJNF2J0Zcu6uNo8cpMsJRftJwwcTo3r1XbceEVeEVuS10b8HUkeJHC8bUe5sKWUZIkd+b03UTVohBPcgNcojhkz4ZAcHfiq2XS4/VKTQgOHE2g7QhCLIi5ke4ICDpYywWTVrnz+CvEUYhbp6Kur3iEiF8yOxgZGA8itKR3U9yjv5O55JpQykCFYAm3AIhKLMZQ1LwoRhxrwJ6QzU0NnlBlqGmxvSf7uFDTZ9hTO3ELt2lUrVS4AAAA=') format('woff2'),
  6 + url('//at.alicdn.com/t/font_1185667_ds07xvngh3k.woff?t=1557490149623') format('woff'),
  7 + url('//at.alicdn.com/t/font_1185667_ds07xvngh3k.ttf?t=1557490149623') format('truetype'),
  8 + /* chrome,
  9 + firefox,
  10 + opera,
  11 + Safari,
  12 + Android,
  13 + iOS 4.2+ */ url('//at.alicdn.com/t/font_1185667_ds07xvngh3k.svg?t=1557490149623#iconfont') format('svg'); /* iOS 4.1- */
11 } 14 }
12 15
13 -  
14 .iconfont { 16 .iconfont {
15 font-family: "iconfont" !important; 17 font-family: "iconfont" !important;
16 font-size: 16px; 18 font-size: 16px;
@@ -23,72 +25,83 @@ @@ -23,72 +25,83 @@
23 content: "\e63f"; 25 content: "\e63f";
24 } 26 }
25 27
26 -image{  
27 - width:100%;  
28 - height:100%; 28 +image {
  29 + width: 100%;
  30 + height: 100%;
29 } 31 }
30 -/* 遮罩层 */  
31 -  
32 -.register{  
33 - width: 100%;  
34 - height: 100%;  
35 - background-color: rgba(0,0,0,0.5);  
36 - position:fixed;  
37 - top:180rpx;  
38 -  
39 - left:0;  
40 - right:0;  
41 - z-index: 5;  
42 - }  
43 -  
44 - /* 箭头样式 */  
45 -  
46 - .listrow{  
47 - color:#999999; 32 +
  33 +.register {
  34 + width: 100%;
  35 + height: 100%;
  36 + background-color: rgba(0, 0, 0, 0.5);
  37 + position: fixed;
  38 + top: 180rpx;
  39 + left: 0;
  40 + right: 0;
  41 + z-index: 5;
  42 +}
  43 +
  44 +/* 箭头样式 */
  45 +
  46 +.listrow {
  47 + color: #999;
48 font-size: 24rpx; 48 font-size: 24rpx;
49 } 49 }
50 50
51 /* 星星图片 */ 51 /* 星星图片 */
52 - .starimg{  
53 - width:34rpx;  
54 - height:32rpx;  
55 - font-size: 0  
56 - }  
57 -  
58 - .redrow{  
59 - width:12rpx;  
60 - height:25rpx;  
61 - font-size: 0 52 +
  53 +.starimg {
  54 + width: 34rpx;
  55 + height: 32rpx;
  56 + font-size: 0;
  57 +}
  58 +
  59 +.redrow {
  60 + width: 12rpx;
  61 + height: 25rpx;
  62 + font-size: 0;
62 } 63 }
63 64
64 /* 关注 */ 65 /* 关注 */
65 66
66 -.atten{ 67 +.atten {
67 /* width:100rpx; */ 68 /* width:100rpx; */
68 padding: 0 20rpx; 69 padding: 0 20rpx;
69 - height:50rpx;  
70 - background:rgba(232,24,37,1);  
71 - border-radius:2rpx; 70 + height: 50rpx;
  71 + background: rgba(232, 24, 37, 1);
  72 + border-radius: 2rpx;
72 font-size: 26rpx; 73 font-size: 26rpx;
73 - color:#fff; 74 + color: #fff;
74 text-align: center; 75 text-align: center;
75 line-height: 50rpx; 76 line-height: 50rpx;
76 - }  
77 -  
78 - /* 上三角 */  
79 - .boxright{  
80 - width:26rpx;  
81 - height:15rpx;  
82 - font-size: 0  
83 - }  
84 - .noData{  
85 - height: 360rpx;  
86 - width: 750rpx;  
87 - text-align: center;  
88 - display: flex;  
89 - align-items: center;  
90 - font-size: 26rpx;  
91 - color: #999;  
92 - justify-content: center;  
93 - }  
94 -  
  77 +}
  78 +
  79 +/* 上三角 */
  80 +
  81 +.boxright {
  82 + width: 26rpx;
  83 + height: 15rpx;
  84 + font-size: 0;
  85 +}
  86 +
  87 +.noData {
  88 + height: 360rpx;
  89 + width: 750rpx;
  90 + text-align: center;
  91 + display: flex;
  92 + align-items: center;
  93 + font-size: 26rpx;
  94 + color: #999;
  95 + justify-content: center;
  96 +}
  97 +
  98 +.showall {
  99 + color: #999;
  100 + font-size: 26rpx;
  101 + margin-top: 60rpx;
  102 + text-align: center;
  103 +}
  104 +
  105 +.nambottom .namebottomitem:first-child {
  106 + padding-left: 0;
  107 +}
1 <view class="niangjiulist"> 1 <view class="niangjiulist">
2 - <view class="niangjiuitem">  
3 - <view class="teachimg">  
4 - <image src="{{url}}/aicon_77@2x.png"></image> 2 + <view class="niangjiuitem">
  3 + <view class="teachimg">
  4 + <image src="{{url}}/aicon_77@2x.png"></image>
  5 + </view>
  6 + <view class="jiuname">徐强</view>
  7 +
  8 + <view class="atten">关注</view>
  9 +
  10 + <view class="jiubottom">
  11 + <view class="jiuleft">
  12 + <view class="jiuleftimg">
  13 + <image src="{{url}}/aicon_66x.png"></image>
5 </view> 14 </view>
6 - <view class="jiuname">徐强</view>  
7 -  
8 - <view class="atten">关注</view>  
9 -  
10 - <view class="jiubottom">  
11 - <view class="jiuleft">  
12 - <view class="jiuleftimg">  
13 - <image src="{{url}}/aicon_66x.png"></image>  
14 - </view>  
15 - <view class="jiuzan">618</view>  
16 - </view>  
17 -  
18 - <view class="jiumiddle">  
19 - <view class="middleimg">  
20 - <image src="{{url}}/aicon_67x.png"></image>  
21 - </view>  
22 - <view class="tiao">54</view>  
23 - </view>  
24 -  
25 - <view class="jiuright">  
26 - <image src="{{url}}/aicon_68x.png"></image>  
27 - </view> 15 + <view class="jiuzan">618</view>
  16 + </view>
  17 +
  18 + <view class="jiumiddle">
  19 + <view class="middleimg">
  20 + <image src="{{url}}/aicon_67x.png"></image>
28 </view> 21 </view>
  22 + <view class="tiao">54</view>
  23 + </view>
  24 +
  25 + <view class="jiuright">
  26 + <image src="{{url}}/aicon_68x.png"></image>
  27 + </view>
  28 + </view>
  29 + </view>
  30 + <view class="niangjiuitem">
  31 + <view class="teachimg">
  32 + <image src="{{url}}/aicon_77@2x.png"></image>
29 </view> 33 </view>
30 - <view class="niangjiuitem">  
31 - <view class="teachimg">  
32 - <image src="{{url}}/aicon_77@2x.png"></image> 34 + <view class="jiuname">徐强</view>
  35 +
  36 + <view class="atten">关注</view>
  37 +
  38 + <view class="jiubottom">
  39 + <view class="jiuleft">
  40 + <view class="jiuleftimg">
  41 + <image src="{{url}}/aicon_66x.png"></image>
33 </view> 42 </view>
34 - <view class="jiuname">徐强</view>  
35 -  
36 - <view class="atten">关注</view>  
37 -  
38 - <view class="jiubottom">  
39 - <view class="jiuleft">  
40 - <view class="jiuleftimg">  
41 - <image src="{{url}}/aicon_66x.png"></image>  
42 - </view>  
43 - <view class="jiuzan">618</view>  
44 - </view>  
45 -  
46 - <view class="jiumiddle">  
47 - <view class="middleimg">  
48 - <image src="{{url}}/aicon_67x.png"></image>  
49 - </view>  
50 - <view class="tiao">54</view>  
51 - </view>  
52 -  
53 - <view class="jiuright">  
54 - <image src="{{url}}/aicon_68x.png"></image>  
55 - </view> 43 + <view class="jiuzan">618</view>
  44 + </view>
  45 +
  46 + <view class="jiumiddle">
  47 + <view class="middleimg">
  48 + <image src="{{url}}/aicon_67x.png"></image>
56 </view> 49 </view>
  50 + <view class="tiao">54</view>
  51 + </view>
  52 +
  53 + <view class="jiuright">
  54 + <image src="{{url}}/aicon_68x.png"></image>
  55 + </view>
57 </view> 56 </view>
58 - <view class="niangjiuitem">  
59 - <view class="teachimg">  
60 - <image src="{{url}}/aicon_77@2x.png"></image> 57 + </view>
  58 + <view class="niangjiuitem">
  59 + <view class="teachimg">
  60 + <image src="{{url}}/aicon_77@2x.png"></image>
  61 + </view>
  62 + <view class="jiuname">徐强</view>
  63 +
  64 + <view class="atten">关注</view>
  65 +
  66 + <view class="jiubottom">
  67 + <view class="jiuleft">
  68 + <view class="jiuleftimg">
  69 + <image src="{{url}}/aicon_66x.png"></image>
61 </view> 70 </view>
62 - <view class="jiuname">徐强</view>  
63 -  
64 - <view class="atten">关注</view>  
65 -  
66 - <view class="jiubottom">  
67 - <view class="jiuleft">  
68 - <view class="jiuleftimg">  
69 - <image src="{{url}}/aicon_66x.png"></image>  
70 - </view>  
71 - <view class="jiuzan">618</view>  
72 - </view>  
73 -  
74 - <view class="jiumiddle">  
75 - <view class="middleimg">  
76 - <image src="{{url}}/aicon_67x.png"></image>  
77 - </view>  
78 - <view class="tiao">54</view>  
79 - </view>  
80 -  
81 - <view class="jiuright">  
82 - <image src="{{url}}/aicon_68x.png"></image>  
83 - </view> 71 + <view class="jiuzan">618</view>
  72 + </view>
  73 +
  74 + <view class="jiumiddle">
  75 + <view class="middleimg">
  76 + <image src="{{url}}/aicon_67x.png"></image>
84 </view> 77 </view>
  78 + <view class="tiao">54</view>
  79 + </view>
  80 +
  81 + <view class="jiuright">
  82 + <image src="{{url}}/aicon_68x.png"></image>
  83 + </view>
  84 + </view>
  85 + </view>
  86 + <view class="niangjiuitem">
  87 + <view class="teachimg">
  88 + <image src="{{url}}/aicon_77@2x.png"></image>
85 </view> 89 </view>
86 - <view class="niangjiuitem">  
87 - <view class="teachimg">  
88 - <image src="{{url}}/aicon_77@2x.png"></image> 90 + <view class="jiuname">徐强</view>
  91 +
  92 + <view class="atten">关注</view>
  93 +
  94 + <view class="jiubottom">
  95 + <view class="jiuleft">
  96 + <view class="jiuleftimg">
  97 + <image src="{{url}}/aicon_66x.png"></image>
89 </view> 98 </view>
90 - <view class="jiuname">徐强</view>  
91 -  
92 - <view class="atten">关注</view>  
93 -  
94 - <view class="jiubottom">  
95 - <view class="jiuleft">  
96 - <view class="jiuleftimg">  
97 - <image src="{{url}}/aicon_66x.png"></image>  
98 - </view>  
99 - <view class="jiuzan">618</view>  
100 - </view>  
101 -  
102 - <view class="jiumiddle">  
103 - <view class="middleimg">  
104 - <image src="{{url}}/aicon_67x.png"></image>  
105 - </view>  
106 - <view class="tiao">54</view>  
107 - </view>  
108 -  
109 - <view class="jiuright">  
110 - <image src="{{url}}/aicon_68x.png"></image>  
111 - </view> 99 + <view class="jiuzan">618</view>
  100 + </view>
  101 +
  102 + <view class="jiumiddle">
  103 + <view class="middleimg">
  104 + <image src="{{url}}/aicon_67x.png"></image>
112 </view> 105 </view>
  106 + <view class="tiao">54</view>
  107 + </view>
  108 +
  109 + <view class="jiuright">
  110 + <image src="{{url}}/aicon_68x.png"></image>
  111 + </view>
  112 + </view>
  113 + </view>
  114 + <view class="niangjiuitem">
  115 + <view class="teachimg">
  116 + <image src="{{url}}/aicon_77@2x.png"></image>
113 </view> 117 </view>
114 - <view class="niangjiuitem">  
115 - <view class="teachimg">  
116 - <image src="{{url}}/aicon_77@2x.png"></image> 118 + <view class="jiuname">徐强</view>
  119 +
  120 + <view class="atten">关注</view>
  121 +
  122 + <view class="jiubottom">
  123 + <view class="jiuleft">
  124 + <view class="jiuleftimg">
  125 + <image src="{{url}}/aicon_66x.png"></image>
117 </view> 126 </view>
118 - <view class="jiuname">徐强</view>  
119 -  
120 - <view class="atten">关注</view>  
121 -  
122 - <view class="jiubottom">  
123 - <view class="jiuleft">  
124 - <view class="jiuleftimg">  
125 - <image src="{{url}}/aicon_66x.png"></image>  
126 - </view>  
127 - <view class="jiuzan">618</view>  
128 - </view>  
129 -  
130 - <view class="jiumiddle">  
131 - <view class="middleimg">  
132 - <image src="{{url}}/aicon_67x.png"></image>  
133 - </view>  
134 - <view class="tiao">54</view>  
135 - </view>  
136 -  
137 - <view class="jiuright">  
138 - <image src="{{url}}/aicon_68x.png"></image>  
139 - </view> 127 + <view class="jiuzan">618</view>
  128 + </view>
  129 +
  130 + <view class="jiumiddle">
  131 + <view class="middleimg">
  132 + <image src="{{url}}/aicon_67x.png"></image>
140 </view> 133 </view>
  134 + <view class="tiao">54</view>
  135 + </view>
  136 +
  137 + <view class="jiuright">
  138 + <image src="{{url}}/aicon_68x.png"></image>
  139 + </view>
141 </view> 140 </view>
142 -</view> 141 + </view>
  142 +</view>
1 <view class="wineblock"> 1 <view class="wineblock">
2 -  
3 <view class="winetitle">浓香酒酿酒大师:沈才宏</view> 2 <view class="winetitle">浓香酒酿酒大师:沈才宏</view>
4 -  
5 <view class="wineimg"> 3 <view class="wineimg">
6 <image src="{{url}}aicon_64.png"></image> 4 <image src="{{url}}aicon_64.png"></image>
7 </view> 5 </view>
8 -  
9 <view class="winebottom"> 6 <view class="winebottom">
10 <view class="winebottomleft"> 7 <view class="winebottomleft">
11 <view class="winebottomleftimg"> 8 <view class="winebottomleftimg">
@@ -14,7 +11,6 @@ @@ -14,7 +11,6 @@
14 <view class="wineeng">WinesBook</view> 11 <view class="wineeng">WinesBook</view>
15 </view> 12 </view>
16 <view class="winebottonright"> 13 <view class="winebottonright">
17 -  
18 <view class="winerighttou"> 14 <view class="winerighttou">
19 <view class="winerighttouimg"> 15 <view class="winerighttouimg">
20 <image src="{{url}}aicon_66x.png"></image> 16 <image src="{{url}}aicon_66x.png"></image>
@@ -27,20 +23,16 @@ @@ -27,20 +23,16 @@
27 </view> 23 </view>
28 <view class="winezan">54</view> 24 <view class="winezan">54</view>
29 </view> 25 </view>
30 -  
31 <view class="winerighttou"> 26 <view class="winerighttou">
32 <view class="winerighttouimg"> 27 <view class="winerighttouimg">
33 <image src="{{url}}aicon_68x.png"></image> 28 <image src="{{url}}aicon_68x.png"></image>
34 </view> 29 </view>
35 -  
36 </view> 30 </view>
37 </view> 31 </view>
38 -  
39 </view> 32 </view>
40 -  
41 </view> 33 </view>
42 <view class="wineblock"> 34 <view class="wineblock">
43 - 35 +
44 <view class="winetitle">浓香酒酿酒大师:沈才宏</view> 36 <view class="winetitle">浓香酒酿酒大师:沈才宏</view>
45 37
46 <view class="wineimg"> 38 <view class="wineimg">
@@ -8,19 +8,30 @@ @@ -8,19 +8,30 @@
8 width:686rpx; 8 width:686rpx;
9 height:300rpx; 9 height:300rpx;
10 margin:30rpx auto 0; 10 margin:30rpx auto 0;
  11 + position: relative;
  12 +}
  13 +.video_play{
  14 + position: absolute;
  15 + top: 50%;
  16 + left: 50%;
  17 + width: 80rpx;
  18 + height: 80rpx;
  19 + transform: translate(-50%,-50%);
  20 + -webkit-transform: translate(-50%,-50%);
11 } 21 }
12 .winebottom{ 22 .winebottom{
13 display:flex; 23 display:flex;
14 justify-content: space-between; 24 justify-content: space-between;
15 align-items: center; 25 align-items: center;
16 - padding: 0 32rpx;  
17 box-sizing: border-box; 26 box-sizing: border-box;
18 margin-top:30rpx; 27 margin-top:30rpx;
19 } 28 }
20 .winebottomleftimg{ 29 .winebottomleftimg{
21 width:60rpx; 30 width:60rpx;
22 height:60rpx; 31 height:60rpx;
23 - font-size: 0 32 + font-size: 0;
  33 + border-radius: 50%;
  34 + overflow: hidden;
24 } 35 }
25 .winebottomleft{ 36 .winebottomleft{
26 display:flex; 37 display:flex;
@@ -30,7 +41,7 @@ @@ -30,7 +41,7 @@
30 width:345rpx; 41 width:345rpx;
31 display:flex; 42 display:flex;
32 align-items: center; 43 align-items: center;
33 - justify-content: space-around 44 + justify-content: space-between
34 } 45 }
35 .winerighttouimg{ 46 .winerighttouimg{
36 width:30rpx; 47 width:30rpx;
@@ -54,7 +65,8 @@ @@ -54,7 +65,8 @@
54 .wineblock{ 65 .wineblock{
55 border-bottom: 1rpx solid #f5f5f5; 66 border-bottom: 1rpx solid #f5f5f5;
56 padding-bottom: 30rpx; 67 padding-bottom: 30rpx;
57 - margin-top:33rpx; 68 + margin: 33rpx auto 0;
  69 +
58 } 70 }
59 .pin{ 71 .pin{
60 width:16rpx; 72 width:16rpx;
@@ -126,6 +126,7 @@ image{ @@ -126,6 +126,7 @@ image{
126 padding: 37rpx 31rpx; 126 padding: 37rpx 31rpx;
127 box-sizing: border-box; 127 box-sizing: border-box;
128 border-bottom: 1rpx solid #f5f5f5; 128 border-bottom: 1rpx solid #f5f5f5;
  129 + background: #FFF;
129 } 130 }
130 .searchitemleft{ 131 .searchitemleft{
131 display:flex; 132 display:flex;
1 { 1 {
2 "navigationStyle": "custom", 2 "navigationStyle": "custom",
3 - "usingComponents": {} 3 + "usingComponents": {},
  4 + "navigationBarTitleText": "关于我们"
4 } 5 }
1 <view class="headimg"> 1 <view class="headimg">
2 <image src="{{url}}aicon_87x.png"></image> 2 <image src="{{url}}aicon_87x.png"></image>
3 - <navigator class="peopleinfo" url=''> 3 + <navigator class="peopleinfo" url='/pages/myblock/personpage/personpage'>
4 <view class="peoplecontent"> 4 <view class="peoplecontent">
5 <view class="peopleleft"> 5 <view class="peopleleft">
6 <image src="{{userInfo.avatar||url+'aicon_77@2x.png'}}"></image> 6 <image src="{{userInfo.avatar||url+'aicon_77@2x.png'}}"></image>
@@ -44,23 +44,23 @@ @@ -44,23 +44,23 @@
44 <view class="collect"> 44 <view class="collect">
45 <view class="mycollect">我的收藏</view> 45 <view class="mycollect">我的收藏</view>
46 <view class="collectnum"> 46 <view class="collectnum">
47 - <view class="collectitem">  
48 - <view class="collectitemnum">19</view> 47 + <navigator url='/pages/myblock/jiupin/jiupin' class="collectitem">
  48 + <view class="collectitemnum">{{userInfo.wine_count}}</view>
49 <view class="collectitemtitle">酒品</view> 49 <view class="collectitemtitle">酒品</view>
50 - </view>  
51 - <view class="collectitem">  
52 - <view class="collectitemnum">19</view> 50 + </navigator>
  51 + <navigator url='/pages/myblock/pinpai/pinpai' class="collectitem">
  52 + <view class="collectitemnum">{{userInfo.brand_count}}</view>
53 <view class="collectitemtitle">品牌</view> 53 <view class="collectitemtitle">品牌</view>
54 - </view>  
55 - <view class="collectitem">  
56 - <view class="collectitemnum">19</view> 54 + </navigator>
  55 + <navigator url='/pages/myblock/jiupin/jiupin' class="collectitem">
  56 + <view class="collectitemnum">{{userInfo.wine_rec_count}}</view>
57 <view class="collectitemtitle">酒企</view> 57 <view class="collectitemtitle">酒企</view>
58 - </view> 58 + </navigator>
59 </view> 59 </view>
60 </view> 60 </view>
61 61
62 <view class="mylist"> 62 <view class="mylist">
63 - <navigator class="mylistitem" url="/pages/myblock/personpage/personpage" hover-class="none"> 63 + <navigator class="mylistitem" url="/pages/myblock/message/message" hover-class="none">
64 <view class="mylistleft"> 64 <view class="mylistleft">
65 <view class="mylistimage"> 65 <view class="mylistimage">
66 <image src="{{url}}aicon_82x.png"></image> 66 <image src="{{url}}aicon_82x.png"></image>
@@ -83,11 +83,11 @@ @@ -83,11 +83,11 @@
83 <view class="mylistimage"> 83 <view class="mylistimage">
84 <image src="{{url}}aicon_84x.png"></image> 84 <image src="{{url}}aicon_84x.png"></image>
85 </view> 85 </view>
86 - <view class="message">账号与安全</view> 86 + <view class="message">账号与安全</view>
87 </view> 87 </view>
88 <view class="iconfont icon-jiantou listrow"></view> 88 <view class="iconfont icon-jiantou listrow"></view>
89 </navigator> 89 </navigator>
90 - <navigator class="mylistitem"> 90 + <navigator class="mylistitem" url='/pages/myblock/rule/rule'>
91 <view class="mylistleft"> 91 <view class="mylistleft">
92 <view class="mylistimage"> 92 <view class="mylistimage">
93 <image src="{{url}}aicon_85x.png"></image> 93 <image src="{{url}}aicon_85x.png"></image>
@@ -96,7 +96,7 @@ @@ -96,7 +96,7 @@
96 </view> 96 </view>
97 <view class="iconfont icon-jiantou listrow"></view> 97 <view class="iconfont icon-jiantou listrow"></view>
98 </navigator> 98 </navigator>
99 - <navigator class="mylistitem"> 99 + <navigator class="mylistitem" url='/pages/myblock/about/about'>
100 <view class="mylistleft"> 100 <view class="mylistleft">
101 <view class="mylistimage"> 101 <view class="mylistimage">
102 <image src="{{url}}aicon_86x.png"></image> 102 <image src="{{url}}aicon_86x.png"></image>
  1 +// pages/myblock/rule/rule.js
  2 +let WxParse = require('../../../wxParse/wxParse.js');
  3 +const app = getApp();
  4 +Page({
  5 +
  6 + /**
  7 + * 页面的初始数据
  8 + */
  9 + data: {
  10 +
  11 + },
  12 +
  13 + /**
  14 + * 生命周期函数--监听页面加载
  15 + */
  16 + onLoad: function (options) {
  17 + this.getRule();
  18 + },
  19 + getRule() {
  20 + let url = '/index/Common/about';
  21 + app.post(url, {}).then(r => {
  22 + WxParse.wxParse('contentHtml', 'html', r.content, this, 5)
  23 + })
  24 + },
  25 +
  26 + /**
  27 + * 生命周期函数--监听页面初次渲染完成
  28 + */
  29 + onReady: function () {
  30 +
  31 + },
  32 +
  33 + /**
  34 + * 生命周期函数--监听页面显示
  35 + */
  36 + onShow: function () {
  37 +
  38 + },
  39 +
  40 + /**
  41 + * 生命周期函数--监听页面隐藏
  42 + */
  43 + onHide: function () {
  44 +
  45 + },
  46 +
  47 + /**
  48 + * 生命周期函数--监听页面卸载
  49 + */
  50 + onUnload: function () {
  51 +
  52 + },
  53 +
  54 + /**
  55 + * 页面相关事件处理函数--监听用户下拉动作
  56 + */
  57 + onPullDownRefresh: function () {
  58 +
  59 + },
  60 +
  61 + /**
  62 + * 页面上拉触底事件的处理函数
  63 + */
  64 + onReachBottom: function () {
  65 +
  66 + },
  67 +
  68 + /**
  69 + * 用户点击右上角分享
  70 + */
  71 + onShareAppMessage: function () {
  72 +
  73 + }
  74 +})
  1 +{
  2 + "usingComponents": {},
  3 + "navigationBarTitleText": "关于我们"
  4 +}
  1 +<!--pages/myblock/rule/rule.wxml-->
  2 +<view class='content'>
  3 + <import src="/wxParse/wxParse.wxml" />
  4 + <template is="wxParse" data="{{wxParseData:contentHtml.nodes}}" />
  5 + </view>
  1 +
  2 +.content{
  3 + font-size: 30rpx;
  4 + padding: 30rpx;
  5 + color: #666;
  6 +}
  1 +// pages/myblock/company/company.js
  2 +Page({
  3 +
  4 + /**
  5 + * 页面的初始数据
  6 + */
  7 + data: {
  8 +
  9 + },
  10 +
  11 + /**
  12 + * 生命周期函数--监听页面加载
  13 + */
  14 + onLoad: function (options) {
  15 +
  16 + },
  17 +
  18 + /**
  19 + * 生命周期函数--监听页面初次渲染完成
  20 + */
  21 + onReady: function () {
  22 +
  23 + },
  24 +
  25 + /**
  26 + * 生命周期函数--监听页面显示
  27 + */
  28 + onShow: function () {
  29 +
  30 + },
  31 +
  32 + /**
  33 + * 生命周期函数--监听页面隐藏
  34 + */
  35 + onHide: function () {
  36 +
  37 + },
  38 +
  39 + /**
  40 + * 生命周期函数--监听页面卸载
  41 + */
  42 + onUnload: function () {
  43 +
  44 + },
  45 +
  46 + /**
  47 + * 页面相关事件处理函数--监听用户下拉动作
  48 + */
  49 + onPullDownRefresh: function () {
  50 +
  51 + },
  52 +
  53 + /**
  54 + * 页面上拉触底事件的处理函数
  55 + */
  56 + onReachBottom: function () {
  57 +
  58 + },
  59 +
  60 + /**
  61 + * 用户点击右上角分享
  62 + */
  63 + onShareAppMessage: function () {
  64 +
  65 + }
  66 +})
  1 +{
  2 + "usingComponents": {}
  3 +}
  1 +<!--pages/myblock/company/company.wxml-->
  2 +<text>pages/myblock/company/company.wxml</text>
  1 +/* pages/myblock/company/company.wxss */
  1 +// pages/myblock/feedback/feedback.js
  2 +const app = getApp();
  3 +Page({
  4 +
  5 + /**
  6 + * 页面的初始数据
  7 + */
  8 + data: {
  9 +
  10 + },
  11 +
  12 + /**
  13 + * 生命周期函数--监听页面加载
  14 + */
  15 + onLoad: function (options) {
  16 +
  17 + },
  18 + inputFeedback(e){
  19 + this.setData({
  20 + content:e.detail.value
  21 + })
  22 + },
  23 + subFeedBack(){
  24 + let url = 'user/Center/feedback',params = {
  25 + content:this.data.content
  26 + };
  27 + params.content?app.post(url,params).then(r=>{
  28 + wx.showToast({
  29 + title: '提交成功',
  30 + icon:'none'
  31 + })
  32 + setTimeout(r=>{
  33 + wx.navigateBack({})
  34 + },1200)
  35 + }):wx.showToast({
  36 + title: '请输入您要反馈的内容',
  37 + icon:'none'
  38 + })
  39 + },
  40 + /**
  41 + * 生命周期函数--监听页面初次渲染完成
  42 + */
  43 + onReady: function () {
  44 +
  45 + },
  46 +
  47 + /**
  48 + * 生命周期函数--监听页面显示
  49 + */
  50 + onShow: function () {
  51 +
  52 + },
  53 +
  54 + /**
  55 + * 生命周期函数--监听页面隐藏
  56 + */
  57 + onHide: function () {
  58 +
  59 + },
  60 +
  61 + /**
  62 + * 生命周期函数--监听页面卸载
  63 + */
  64 + onUnload: function () {
  65 +
  66 + },
  67 +
  68 + /**
  69 + * 页面相关事件处理函数--监听用户下拉动作
  70 + */
  71 + onPullDownRefresh: function () {
  72 +
  73 + },
  74 +
  75 + /**
  76 + * 页面上拉触底事件的处理函数
  77 + */
  78 + onReachBottom: function () {
  79 +
  80 + },
  81 +
  82 + /**
  83 + * 用户点击右上角分享
  84 + */
  85 + onShareAppMessage: function () {
  86 +
  87 + }
  88 +})
  1 +{
  2 + "usingComponents": {},
  3 + "navigationBarTitleText": "用户反馈"
  4 +}
  1 +<!--pages/myblock/feedback/feedback.wxml-->
  2 +<view>
  3 + <textarea class='feedback_box' bindinput='inputFeedback' placeholder='请输入您的意见,我们会积极处理并改正的~'></textarea>
  4 +
  5 + <view class='submit_btn' bindtap='subFeedBack'>提交</view>
  6 +</view>
  1 +/* pages/myblock/feedback/feedback.wxss */
  2 +.feedback_box{
  3 + margin: 40rpx 32rpx 0 32rpx;
  4 + background-color: #F2F2F2;
  5 + border-radius: 10rpx;
  6 + padding: 25rpx;
  7 + font-size: 28rpx;
  8 + display: block;
  9 + width: auto;
  10 +}
  11 +.submit_btn{
  12 + height: 80rpx;
  13 + width: 660rpx;
  14 + color: #FFF;
  15 + font-size: 28rpx;
  16 + background-color: #E81825;
  17 + display: flex;
  18 + align-items: center;
  19 + justify-content: center;
  20 + border-radius: 40rpx;
  21 + margin: 40rpx auto;
  22 +}
@@ -114,7 +114,7 @@ @@ -114,7 +114,7 @@
114 <view class='wine_list' wx:if='{{selectindex==3}}' bindtap='closeShareAction'> 114 <view class='wine_list' wx:if='{{selectindex==3}}' bindtap='closeShareAction'>
115 <view class='list_item' wx:for='{{list}}' wx:key=''> 115 <view class='list_item' wx:for='{{list}}' wx:key=''>
116 <view class='img_box'> 116 <view class='img_box'>
117 - <image src='{{item.thumb}}' mode='widthFix'></image> 117 + <image src='{{item.avatar}}' mode='widthFix'></image>
118 </view> 118 </view>
119 <view class='wine_title'>{{item.title}}</view> 119 <view class='wine_title'>{{item.title}}</view>
120 <view class='wine_name'>{{item.user_nickname}}</view> 120 <view class='wine_name'>{{item.user_nickname}}</view>
@@ -136,42 +136,82 @@ @@ -136,42 +136,82 @@
136 <image src='/img/gengduo.png' mode='widthFix' class='moreIcon'></image> 136 <image src='/img/gengduo.png' mode='widthFix' class='moreIcon'></image>
137 <view class='min_action_box'> 137 <view class='min_action_box'>
138 <view class='action_btn {{item.is_favorite?"active":""}}'>{{!item.is_favorite?"收藏":"已收藏"}}</view> 138 <view class='action_btn {{item.is_favorite?"active":""}}'>{{!item.is_favorite?"收藏":"已收藏"}}</view>
139 - <view class='action_btn'>分享 <button open-type='share'></button></view> 139 + <view class='action_btn'>分享
  140 + <button open-type='share'></button>
  141 + </view>
140 </view> 142 </view>
141 </view> 143 </view>
142 </view> 144 </view>
143 </view> 145 </view>
144 - <!-- <view class='list_item'>  
145 - <view class='img_box'>  
146 - <image src='/img/aicon_65.png'></image> 146 + </view>
  147 + <!-- 专家品酒 -->
  148 + <view class='wine_list' wx:if='{{selectindex==4}}'>
  149 + <view class="wineblock" wx:for='{{list}}' wx:key=''>
  150 + <view class="winetitle">{{item.title}}</view>
  151 + <view class="wineimg">
  152 + <image src="{{item.video_image}}"></image>
  153 + <image src='/img/aicon_70.png' class='video_play'></image>
147 </view> 154 </view>
148 - <view class='wine_title'>万丈红尘一人醉</view>  
149 - <view class='wine_name'>唐国强</view>  
150 - <view class='wine_leavel'>lv12</view>  
151 - <view class='action_box'>  
152 - <view class='single_action'>  
153 - <view class='zan_icon'>  
154 - <image src='/img/aicon_47.png' mode='widthFix'></image> 155 + <view class="winebottom">
  156 + <view class="winebottomleft">
  157 + <view class="winebottomleftimg">
  158 + <image src="{{item.avatar}}"></image>
155 </view> 159 </view>
156 - 618 160 + <view class="wineeng">{{item.name}}</view>
157 </view> 161 </view>
158 - <view class='single_action'>  
159 - <view class='zan_icon'> 162 + <view class="winebottonright">
  163 + <view class="winerighttou">
  164 + <view class="winerighttouimg">
  165 + <image src='{{!item.is_good?"/img/aicon_47.png":"/img/aicon_46.png"}}' mode='widthFix'></image>
  166 + </view>
  167 + <view class="winezan">{{item.good_count}}</view>
  168 + </view>
  169 + <view class="winerighttou">
  170 + <view class="winerighttouimg">
  171 + <image src='/img/aicon_67.png' mode='widthFix'></image>
  172 + </view>
  173 + <view class="winezan">{{item.comment_count}}</view>
  174 + </view>
  175 + <view class="winerighttou">
  176 + <view class="winerighttouimg">
  177 + <image src="/img/aicon_74.png"></image>
  178 + </view>
  179 + </view>
  180 + </view>
  181 + </view>
  182 + </view>
  183 + </view>
  184 + <view class="niangjiulist" wx:if='{{selectindex==5}}'>
  185 + <view class="niangjiuitem" wx:for='{{list}}' wx:key=''>
  186 + <view class="teachimg">
  187 + <image src="{{item.avatar}}"></image>
  188 + </view>
  189 + <view class="jiuname">{{item.name}}</view>
  190 + <view class="atten">{{item.is_concern==0?'关注':'已关注'}}</view>
  191 + <view class="jiubottom">
  192 + <view class="jiuleft">
  193 + <view class="jiuleftimg">
  194 + <image src='{{!item.is_good?"/img/aicon_47.png":"/img/aicon_46.png"}}' mode='widthFix'></image>
  195 + </view>
  196 + <view class="jiuzan">{{item.good_count}}</view>
  197 + </view>
  198 +
  199 + <view class="jiumiddle">
  200 + <view class="middleimg">
160 <image src='/img/aicon_67.png' mode='widthFix'></image> 201 <image src='/img/aicon_67.png' mode='widthFix'></image>
161 </view> 202 </view>
162 - 54 203 + <view class="tiao">{{item.comment_count}}</view>
163 </view> 204 </view>
164 - <view class='single_action'>  
165 - <image src='/img/gengduo.png' mode='widthFix' class='more'></image>  
166 - 205 + <view class="jiuright">
  206 + <image src="/img/aicon_68.png"></image>
167 </view> 207 </view>
168 </view> 208 </view>
169 - </view> --> 209 + </view>
170 </view> 210 </view>
171 <view class='showall' wx:if='{{noMore&&noData}}'>已显示全部内容</view> 211 <view class='showall' wx:if='{{noMore&&noData}}'>已显示全部内容</view>
172 </view> 212 </view>
173 </view> 213 </view>
174 - 214 +<view class='showall' wx:if='{{noMore&&noData}}'>已显示全部内容</view>
175 <view class='noData' wx:if='{{!noData}}'> 215 <view class='noData' wx:if='{{!noData}}'>
176 暂无相关数据 216 暂无相关数据
177 </view> 217 </view>
1 @import '../../homeblock/zhinengselect/zhinengselect.wxss'; 1 @import '../../homeblock/zhinengselect/zhinengselect.wxss';
2 @import '../../jiudan/jiudan.wxss'; 2 @import '../../jiudan/jiudan.wxss';
  3 +@import '../../findblock/zhuanjiapinjiu/zhuanjiapinjiu.wxss';
  4 +@import '../../findblock/niangjiushi/niangjiushi.wxss';
3 5
4 page{ 6 page{
5 width: 100%; 7 width: 100%;
@@ -236,10 +238,7 @@ page{ @@ -236,10 +238,7 @@ page{
236 background: #E81825; 238 background: #E81825;
237 color: #FFF; 239 color: #FFF;
238 } 240 }
239 -.img_box{  
240 - overflow: auto;  
241 - border-radius: 0;  
242 -} 241 +
243 .shareAction .more{ 242 .shareAction .more{
244 margin-right: 0!important; 243 margin-right: 0!important;
245 } 244 }
1 // pages/myblock/huanbangshouji/huanbangshouji.js 1 // pages/myblock/huanbangshouji/huanbangshouji.js
  2 +const app = getApp();
2 Page({ 3 Page({
3 4
4 /** 5 /**
5 * 页面的初始数据 6 * 页面的初始数据
6 */ 7 */
7 data: { 8 data: {
  9 + params:{
8 10
  11 + },
  12 + getting: true,
  13 + code: 60
9 }, 14 },
10 15
11 /** 16 /**
@@ -14,6 +19,66 @@ Page({ @@ -14,6 +19,66 @@ Page({
14 onLoad: function (options) { 19 onLoad: function (options) {
15 20
16 }, 21 },
  22 + getCode(){
  23 + let phone = this.data.params.mobile, url ='/user/Profile/getNewCode',that = this;
  24 + if (!(/^1[3456789]\d{9}$/.test(phone))){
  25 + wx.showToast({
  26 + title: '请输入正确的手机号',
  27 + icon:'none'
  28 + })
  29 + }else{
  30 + let params = {
  31 + mobile: this.data.params.mobile
  32 + },code=60;
  33 + app.post(url,params).then(r=>{
  34 + that.setData({
  35 + getting: false
  36 + })
  37 + let interval = setInterval(()=>{
  38 + that.setData({
  39 + code: code
  40 + })
  41 + code--;
  42 + if (code == 0) {
  43 + that.setData({
  44 + getting: true,
  45 + code: 60
  46 + })
  47 + clearInterval(interval);
  48 + }
  49 + },1000)
  50 + })
  51 + }
  52 + },
  53 + inputCode(e){
  54 + let type = e.currentTarget.dataset.type;
  55 + this.data.params[type]=e.detail.value;
  56 + this.setData({
  57 + params:this.data.params
  58 + })
  59 + },
  60 + subBand(){
  61 + let phone = this.data.params.mobile, url ='/user/Profile/bind_new_mobile';
  62 + if (!(/^1[3456789]\d{9}$/.test(phone))) {
  63 + wx.showToast({
  64 + title: '请输入正确的手机号',
  65 + icon: 'none'
  66 + })
  67 + } else {
  68 + app.post(url, this.data.params).then(r => {
  69 + wx.showToast({
  70 + title: '换绑手机号成功',
  71 + icon:'none'
  72 + })
  73 + setTimeout(()=>{
  74 + wx.navigateBack({
  75 +
  76 + })
  77 + },1500)
  78 +
  79 + })
  80 + }
  81 + },
17 82
18 /** 83 /**
19 * 生命周期函数--监听页面初次渲染完成 84 * 生命周期函数--监听页面初次渲染完成
1 <view class="bangshouji"> 1 <view class="bangshouji">
2 - <view class="huanbangleft">  
3 - <input password type="number" placeholder='请输入手机号' placeholder-class='enterphone'/>  
4 - </view>  
5 -  
6 - <view class="huanbangright">获取验证码</view> 2 + <view class="huanbangleft">
  3 + <input type="number" placeholder='请输入手机号' placeholder-class='enterphone' maxlength='11' bindinput='inputCode' data-type='mobile' />
  4 + </view>
  5 + <view class="huanbangright" bindtap='getCode' wx:if='{{getting}}' >获取验证码</view>
  6 + <view class="huanbangright" wx:else>{{code}}S</view>
7 </view> 7 </view>
8 -  
9 <view class="bangshouji enteryan"> 8 <view class="bangshouji enteryan">
10 - <input password type="number" placeholder='请输入验证码' placeholder-class='enterphone'/> 9 + <input type="number" placeholder='请输入验证码' maxlength='6' placeholder-class='enterphone' value='{{verification_code}}' bindinput='inputCode' data-type='verification_code' />
11 </view> 10 </view>
  11 +
  12 +<view class='sub_btn' wx:if='{{!params.verification_code}}'>
  13 + 验证后绑定新手机号
  14 +</view>
  15 +
  16 +<view class='sub_btn active' wx:else bindtap='subBand'>
  17 + 确认绑定
  18 +</view>
@@ -53,4 +53,20 @@ page{ @@ -53,4 +53,20 @@ page{
53 margin-top:32rpx; 53 margin-top:32rpx;
54 color:#1A1A1A; 54 color:#1A1A1A;
55 font-size: 30rpx; 55 font-size: 30rpx;
  56 +}
  57 +.sub_btn{
  58 + width: 540rpx;
  59 + height: 100rpx;
  60 + background: #CCC;
  61 + font-size: 30rpx;
  62 + margin: 0 auto;
  63 + margin-top: 130rpx;
  64 + color: #FFF;
  65 + border-radius: 50rpx;
  66 + align-items: center;
  67 + display: flex;
  68 + justify-content: center;
  69 +}
  70 +.sub_btn.active{
  71 + background: #E81825;
56 } 72 }
  1 +// pages/myblock/jiupin/jiupin.js
  2 +const app = getApp();
  3 +Page({
  4 +
  5 + /**
  6 + * 页面的初始数据
  7 + */
  8 + data: {
  9 + page:1,
  10 + noData: true,
  11 + noMore: false,
  12 + list:[]
  13 + },
  14 +
  15 + /**
  16 + * 生命周期函数--监听页面加载
  17 + */
  18 + onLoad: function (options) {
  19 + this.getList();
  20 + },
  21 + getList() {
  22 + let url = 'user/Center/favorite_wine' , params = {
  23 + page: this.data.page
  24 + };
  25 + app.post(url, params).then(r => {
  26 + var list = this.data.page == 1 ? r.list : this.data.list.concat(r.list);
  27 + this.setData({
  28 + list: list,
  29 + totalPage: r.total_page,
  30 + noData: list.length > 0 ? true : false,
  31 + noMore: r.totalPage == r.page ? !0 : !1
  32 + })
  33 + })
  34 + },
  35 +
  36 + /**
  37 + * 生命周期函数--监听页面初次渲染完成
  38 + */
  39 + onReady: function () {
  40 +
  41 + },
  42 +
  43 + /**
  44 + * 生命周期函数--监听页面显示
  45 + */
  46 + onShow: function () {
  47 +
  48 + },
  49 +
  50 + /**
  51 + * 生命周期函数--监听页面隐藏
  52 + */
  53 + onHide: function () {
  54 +
  55 + },
  56 +
  57 + /**
  58 + * 生命周期函数--监听页面卸载
  59 + */
  60 + onUnload: function () {
  61 +
  62 + },
  63 +
  64 + /**
  65 + * 页面相关事件处理函数--监听用户下拉动作
  66 + */
  67 + onPullDownRefresh: function () {
  68 +
  69 + },
  70 +
  71 + /**
  72 + * 页面上拉触底事件的处理函数
  73 + */
  74 + onReachBottom: function () {
  75 + !this.data.noMore ?(this.setData({
  76 + page: page + 1
  77 + }), this.list()) : wx.showToast({
  78 + title: '没有更多了',
  79 + icon: 'none'
  80 + })
  81 + },
  82 +
  83 + /**
  84 + * 用户点击右上角分享
  85 + */
  86 + onShareAppMessage: function () {
  87 +
  88 + }
  89 +})
  1 +{
  2 + "usingComponents": {},
  3 + "navigationBarTitleText": "酒品"
  4 +}
  1 +<view class='list_box'>
  2 + <view class="searchitem" wx:for='{{list}}' wx:key=''>
  3 + <view class="searchitemleft">
  4 + <view class="itemleftimg">
  5 + <image src="{{item.logo}}"></image>
  6 + </view>
  7 + <view class="itemiddle">
  8 + <view class="itemidelename">{{item.name}}</view>
  9 + <view class="nambottom">
  10 + <text class="namebottomitem">{{item.degree_name}}</text>
  11 + <text class="namebottomitem">{{item.odor_name}}</text>
  12 + <text class="namebottomitem">{{item.price}}</text>
  13 + <text class="namebottomitem">{{item.ml}}</text>
  14 + </view>
  15 + </view>
  16 + </view>
  17 + <view class="starimg">
  18 + <!-- aicon_010x.png -->
  19 + <image src="{{item.is_favorite==0?'/img/aicon_09.png':'/img/aicon_10.png'}}"></image>
  20 + </view>
  21 + </view>
  22 +</view>
  23 +
  24 +
  25 +<view class='showall' wx:if='{{noMore&&noData}}'>已显示全部内容</view>
  26 +<view class='noData' wx:if='{{!noData}}'>
  27 + 暂无相关数据
  28 +</view>
  1 +/* pages/myblock/jiupin/jiupin.wxss */
  2 +@import '../../homeblock/search/search.wxss';
  1 +// pages/myblock/message/message.js
  2 +const formMate = require('../../../utils/util.js');
  3 +const app = getApp();
  4 +Page({
  5 +
  6 + /**
  7 + * 页面的初始数据
  8 + */
  9 + data: {
  10 + page: 1,
  11 + list: [],
  12 + noData: true,
  13 + noMore: !1,
  14 + },
  15 + /**
  16 + * 生命周期函数--监听页面加载
  17 + */
  18 + onLoad: function (options) {
  19 + this.getList();
  20 + },
  21 + getList() {
  22 + let url = 'user/Center/my_message', params = {
  23 + page: this.data.page
  24 + };
  25 + app.post(url, params).then(r => {
  26 + for(var obj of r.list){
  27 + obj.create_time = formMate.formatTime(new Date(obj.create_time))
  28 + }
  29 + var list = this.data.page == 1 ? r.list : this.data.list.concat(r.list);
  30 + this.setData({
  31 + list: list,
  32 + totalPage: r.total_page,
  33 + noData: list.length > 0 ? true : false,
  34 + noMore: r.totalPage == r.page ? !0 : !1
  35 + })
  36 + })
  37 + },
  38 +
  39 + /**
  40 + * 生命周期函数--监听页面初次渲染完成
  41 + */
  42 + onReady: function () {
  43 +
  44 + },
  45 +
  46 + /**
  47 + * 生命周期函数--监听页面显示
  48 + */
  49 + onShow: function () {
  50 +
  51 + },
  52 +
  53 + /**
  54 + * 生命周期函数--监听页面隐藏
  55 + */
  56 + onHide: function () {
  57 +
  58 + },
  59 +
  60 + /**
  61 + * 生命周期函数--监听页面卸载
  62 + */
  63 + onUnload: function () {
  64 +
  65 + },
  66 +
  67 + /**
  68 + * 页面相关事件处理函数--监听用户下拉动作
  69 + */
  70 + onPullDownRefresh: function () {
  71 +
  72 + },
  73 +
  74 + /**
  75 + * 页面上拉触底事件的处理函数
  76 + */
  77 + onReachBottom: function () {
  78 + this.data.page < this.data.totalPage ? this.list()
  79 + : wx.showToast({
  80 + title: '没有更多了',
  81 + icon: 'none'
  82 + })
  83 + },
  84 +
  85 + /**
  86 + * 用户点击右上角分享
  87 + */
  88 + onShareAppMessage: function () {
  89 +
  90 + }
  91 +})
  1 +{
  2 + "usingComponents": {},
  3 + "navigationBarTitleText": "消息通知"
  4 +}
  1 +<!--pages/myblock/message/message.wxml-->
  2 +<view class='message_list'>
  3 + <view class='message_item' wx:for='{{list}}' wx:key=''>
  4 + <view class='time'>{{item.create_time}}</view>
  5 + <view class='message_content'>
  6 + {{item.content}}
  7 + </view>
  8 + </view>
  9 +</view>
  1 +/* pages/myblock/message/message.wxss */
  2 +page{
  3 + background: #F2F2F2;
  4 +}
  5 +.message_item{
  6 +
  7 +}
  8 +.message_item .time{
  9 + color: #999999;
  10 + font-size: 24rpx;
  11 + text-align: center;
  12 + padding: 36rpx 0;
  13 +
  14 +}
  15 +.message_content{
  16 + margin: 0 67rpx;
  17 + padding: 38rpx 44rpx;
  18 + background-color: #FFF;
  19 + font-size:26rpx;
  20 + color: #333;
  21 + border-radius: 5rpx;
  22 +}
@@ -12,9 +12,10 @@ Page({ @@ -12,9 +12,10 @@ Page({
12 sexarray:['男','女'], 12 sexarray:['男','女'],
13 birthday:'', 13 birthday:'',
14 reginname: '北京 北京市 东城区', 14 reginname: '北京 北京市 东城区',
15 - region: ['北京', '北京市', '东城区'] 15 + region: ['北京', '北京市', '东城区'],
  16 + xingzuo:['']
16 }, 17 },
17 - 18 +
18 /** 19 /**
19 * 生命周期函数--监听页面加载 20 * 生命周期函数--监听页面加载
20 */ 21 */
@@ -24,20 +25,75 @@ Page({ @@ -24,20 +25,75 @@ Page({
24 25
25 birthday: app.newnowDate() 26 birthday: app.newnowDate()
26 }) 27 })
  28 + this.getUserInfo();
  29 + },
  30 + uploadImg(e){
  31 + let that = this;
  32 + wx.chooseImage({
  33 + count: 1,
  34 + sizeType: [],
  35 + sourceType: [],
  36 + success: function(res) {
  37 + wx.uploadFile({
  38 + url: app.globalData.baseUrl +'/user/upload/one',
  39 + filePath: res.tempFilePaths[0],
  40 + name: 'file',
  41 + header: {
  42 + 'XX-Token':wx.getStorageSync('token'),
  43 + 'XX-Device-Type':'wxapp'
  44 + },
  45 + formData: {
  46 + file: res.tempFilePaths[0]
  47 + },
  48 + success: function(res) {
  49 + let data = JSON.parse(res.data)
  50 +
  51 + that.setData({
  52 + 'userInfo.avatar': data.data.url
  53 + });
  54 + that.saveUserInfo();
  55 + },
  56 + fail: function(res) {},
  57 + complete: function(res) {},
  58 + })
  59 + },
  60 + fail: function(res) {},
  61 + complete: function(res) {},
  62 + })
  63 + },
  64 + getUserInfo(){
  65 + let url = '/user/Center/get_userinfo';
  66 + app.post(url,{}).then(r=>{
  67 + this.setData({
  68 + userInfo: r,
  69 + sexindex: r.sex == 1 ?0:2,
  70 + sexname: r.sex == 1?'男':'女'
  71 + })
  72 + })
  73 + },
  74 + saveUserInfo(){
  75 + let url = 'user/Center/set_userinfo';
  76 + app.post(url,this.data.userInfo).then(r=>{})
  77 + },
  78 + inputUserInfo(e){
  79 + let type = e.currentTarget.dataset.type;
  80 + this.data.userInfo[type] = e.detail.value
  81 + this.setData({
  82 + userInfo: this.data.userInfo
  83 + });
  84 + this.saveUserInfo();
27 }, 85 },
28 bindhospitaltypeChange(e) { 86 bindhospitaltypeChange(e) {
29 let that = this; 87 let that = this;
30 that.setData({ 88 that.setData({
31 -  
32 sexindex: e.detail.value, 89 sexindex: e.detail.value,
33 - sexname: that.data.sexarray[e.detail.value]  
34 - 90 + sexname: that.data.sexarray[e.detail.value],
  91 + 'userInfo.sex': that.data.sexarray[e.detail.value]=='男'?1:2
35 }) 92 })
36 }, 93 },
37 94
38 //生日选择 95 //生日选择
39 bindDateChange: function (e) { 96 bindDateChange: function (e) {
40 -  
41 this.setData({ 97 this.setData({
42 birthday: e.detail.value 98 birthday: e.detail.value
43 }) 99 })
1 <view class="headtop"> 1 <view class="headtop">
2 <view class="headtopitem"> 2 <view class="headtopitem">
3 <view class="headtopleft">我的头像</view> 3 <view class="headtopleft">我的头像</view>
4 - <view class="touxiang">  
5 - <image src="{{url}}/aicon_77@2x.png"></image> 4 + <view class="touxiang" bindtap='uploadImg'>
  5 + <image src="{{userInfo.avatar}}"></image>
6 </view> 6 </view>
7 </view> 7 </view>
8 8
9 <view class="headtopitem"> 9 <view class="headtopitem">
10 <view class="headtopleft">昵称</view> 10 <view class="headtopleft">昵称</view>
11 <view class="entername"> 11 <view class="entername">
12 - <input placeholder='请输入昵称' placeholder-class='enterming' /> 12 + <input placeholder='请输入昵称' placeholder-class='enterming' value='{{userInfo.user_nickname}}' bindinput='inputUserInfo' data-type='user_nickname' />
13 </view> 13 </view>
14 </view> 14 </view>
15 15
@@ -34,91 +34,78 @@ @@ -34,91 +34,78 @@
34 </view> 34 </view>
35 <view class="headtopitem"> 35 <view class="headtopitem">
36 <view class="headtopleft">生日</view> 36 <view class="headtopleft">生日</view>
37 - <picker mode="date" value="{{date}}" start="2015-09-01" end="2017-09-01" bindchange="bindDateChange">  
38 - 37 + <picker mode="date" value="{{userInfo.birthday}}" bindchange="bindDateChange">
39 <view class="selectoption"> 38 <view class="selectoption">
40 <view class="sexname"> 39 <view class="sexname">
41 {{birthday}} 40 {{birthday}}
42 </view> 41 </view>
43 -  
44 <view class="rowimg"> 42 <view class="rowimg">
45 <image src="/img/aicon_61.png"></image> 43 <image src="/img/aicon_61.png"></image>
46 </view> 44 </view>
47 </view> 45 </view>
48 -  
49 </picker> 46 </picker>
50 </view> 47 </view>
51 <view class="headtopitem"> 48 <view class="headtopitem">
52 <view class="headtopleft">地区</view> 49 <view class="headtopleft">地区</view>
53 - <picker mode="region" bindchange="bindRegionChange" value="{{region}}" custom-item="{{customItem}}">  
54 - 50 + <picker mode="region" bindchange="bindRegionChange" value="{{userInfo.region}}" custom-item="{{customItem}}">
55 <view class="selectoption"> 51 <view class="selectoption">
56 <view class="sexname"> 52 <view class="sexname">
57 {{reginname}} 53 {{reginname}}
58 </view> 54 </view>
59 -  
60 <view class="rowimg"> 55 <view class="rowimg">
61 <image src="/img/aicon_61.png"></image> 56 <image src="/img/aicon_61.png"></image>
62 </view> 57 </view>
63 </view> 58 </view>
64 -  
65 </picker> 59 </picker>
66 </view> 60 </view>
67 <view class="headtopitem"> 61 <view class="headtopitem">
68 <view class="headtopleft">个人签名</view> 62 <view class="headtopleft">个人签名</view>
69 <view class="entername qianming"> 63 <view class="entername qianming">
70 - <input placeholder='请输入个性签名' placeholder-class='enterming' /> 64 + <input placeholder='请输入个性签名' placeholder-class='enterming' value='{{userInfo.sign}}' bindinput='inputUserInfo' data-type='sign' />
71 </view> 65 </view>
72 </view> 66 </view>
73 -  
74 </view> 67 </view>
75 68
76 <view class="headtop"> 69 <view class="headtop">
77 <view class="headtopitem"> 70 <view class="headtopitem">
78 <view class="headtopleft">星座</view> 71 <view class="headtopleft">星座</view>
79 <view class="entername"> 72 <view class="entername">
80 - <input placeholder='请输入星座' placeholder-class='enterming' /> 73 + <input placeholder='请输入星座' placeholder-class='enterming' value='{{userInfo.constellation}}' bindinput='getUserInfo' data-type='constellation' />
81 </view> 74 </view>
82 </view> 75 </view>
83 -  
84 <view class="headtopitem"> 76 <view class="headtopitem">
85 <view class="headtopleft">身高</view> 77 <view class="headtopleft">身高</view>
86 <view class="entername"> 78 <view class="entername">
87 - <input placeholder='请输入身高' placeholder-class='enterming' /> 79 + <input placeholder='请输入身高' placeholder-class='enterming' value='{{userInfo.height}}' bindinput='inputUserInfo' data-type='height'/>
88 </view> 80 </view>
89 </view> 81 </view>
90 -  
91 <view class="headtopitem"> 82 <view class="headtopitem">
92 <view class="headtopleft">体重</view> 83 <view class="headtopleft">体重</view>
93 <view class="entername"> 84 <view class="entername">
94 - <input placeholder='请输入体重' placeholder-class='enterming' /> 85 + <input placeholder='请输入体重' placeholder-class='enterming' value='{{userInfo.weight}}' bindinput='inputUserInfo' data-type='weight'/>
95 </view> 86 </view>
96 </view> 87 </view>
97 -  
98 -  
99 </view> 88 </view>
100 89
101 <view class="headtop"> 90 <view class="headtop">
102 <view class="headtopitem"> 91 <view class="headtopitem">
103 <view class="headtopleft">职业</view> 92 <view class="headtopleft">职业</view>
104 <view class="entername"> 93 <view class="entername">
105 - <input placeholder='请输入职业' placeholder-class='enterming' /> 94 + <input placeholder='请输入职业' placeholder-class='enterming' value='{{userInfo.major}}' bindinput='inputUserInfo' data-type='major'/>
106 </view> 95 </view>
107 </view> 96 </view>
108 97
109 <view class="headtopitem"> 98 <view class="headtopitem">
110 <view class="headtopleft">收入</view> 99 <view class="headtopleft">收入</view>
111 <view class="entername"> 100 <view class="entername">
112 - <input placeholder='请输入收入' placeholder-class='enterming' /> 101 + <input placeholder='请输入收入' placeholder-class='enterming' value='{{userInfo.income}}' bindinput='inputUserInfo' data-type='income'/>
113 </view> 102 </view>
114 </view> 103 </view>
115 104
116 <view class="headtopitem"> 105 <view class="headtopitem">
117 <view class="headtopleft">兴趣爱好</view> 106 <view class="headtopleft">兴趣爱好</view>
118 <view class="entername"> 107 <view class="entername">
119 - <input placeholder='请输入兴趣爱好' placeholder-class='enterming' /> 108 + <input placeholder='请输入兴趣爱好' placeholder-class='enterming' value='{{userInfo.interest}}' bindinput='inputUserInfo' data-type='interest'/>
120 </view> 109 </view>
121 </view> 110 </view>
122 -  
123 -  
124 </view> 111 </view>
@@ -35,7 +35,7 @@ @@ -35,7 +35,7 @@
35 text-align: right 35 text-align: right
36 } 36 }
37 .enterming{ 37 .enterming{
38 - color:#999999; 38 + color:#666;
39 font-size:28rpx; 39 font-size:28rpx;
40 text-align: right 40 text-align: right
41 } 41 }
@@ -47,7 +47,7 @@ @@ -47,7 +47,7 @@
47 height:48rpx; 47 height:48rpx;
48 line-height: 48rpx; 48 line-height: 48rpx;
49 text-align: right; 49 text-align: right;
50 - color:#999999; 50 + color:#666;
51 font-size:28rpx; 51 font-size:28rpx;
52 margin-right:22rpx; 52 margin-right:22rpx;
53 53
@@ -60,4 +60,7 @@ @@ -60,4 +60,7 @@
60 .selectoption{ 60 .selectoption{
61 display:flex; 61 display:flex;
62 align-items: center; 62 align-items: center;
  63 +}
  64 +input{
  65 + color: #666
63 } 66 }
  1 +// pages/myblock/jiupin/jiupin.js
  2 +const app = getApp();
  3 +Page({
  4 +
  5 + /**
  6 + * 页面的初始数据
  7 + */
  8 + data: {
  9 + page: 1,
  10 + noData: true,
  11 + noMore: false,
  12 + list: []
  13 + },
  14 +
  15 + /**
  16 + * 生命周期函数--监听页面加载
  17 + */
  18 + onLoad: function (options) {
  19 + this.getList();
  20 + },
  21 + collect(e) {
  22 + let id = e.currentTarget.id, url = '/index/Common/favorite', index = e.currentTarget.dataset.index, params = {
  23 + sort: 2,
  24 + id: id
  25 + };
  26 + app.post(url, params).then(r => {
  27 + this.data.list.splice(index,1);
  28 + wx.showToast({
  29 + title: '操作成功',
  30 + icon:'none',
  31 + duration: 1300
  32 + })
  33 + this.setData({
  34 + list: this.data.list
  35 + })
  36 + })
  37 + },
  38 + getList() {
  39 + let url = 'user/Center/favorite_brand', params = {
  40 + page: this.data.page
  41 + };
  42 + app.post(url, params).then(r => {
  43 + var list = this.data.page == 1 ? r.list : this.data.list.concat(r.list);
  44 + this.setData({
  45 + list: list,
  46 + totalPage: r.total_page,
  47 + noData: list.length > 0 ? true : false,
  48 + noMore: r.totalPage == r.page ? !0 : !1
  49 + })
  50 + })
  51 + },
  52 + /**
  53 + * 生命周期函数--监听页面初次渲染完成
  54 + */
  55 + onReady: function () {
  56 +
  57 + },
  58 + /**
  59 + * 生命周期函数--监听页面显示
  60 + */
  61 + onShow: function () {
  62 +
  63 + },
  64 + /**
  65 + * 生命周期函数--监听页面隐藏
  66 + */
  67 + onHide: function () {
  68 +
  69 + },
  70 + /**
  71 + * 生命周期函数--监听页面卸载
  72 + */
  73 + onUnload: function () {
  74 +
  75 + },
  76 + /**
  77 + * 页面相关事件处理函数--监听用户下拉动作
  78 + */
  79 + onPullDownRefresh: function () {
  80 +
  81 + },
  82 + /**
  83 + * 页面上拉触底事件的处理函数
  84 + */
  85 + onReachBottom: function () {
  86 + !this.data.noMore ? (this.setData({
  87 + page: page + 1
  88 + }), this.list()) : wx.showToast({
  89 + title: '没有更多了',
  90 + icon: 'none'
  91 + })
  92 + },
  93 + /**
  94 + * 用户点击右上角分享
  95 + */
  96 + onShareAppMessage: function () {
  97 +
  98 + }
  99 +})
  1 +{
  2 + "usingComponents": {},
  3 + "navigationBarTitleText": "品牌"
  4 +}
  1 +<view class='list_box'>
  2 + <view class="searchitem" wx:for='{{list}}' wx:key=''>
  3 + <view class="searchitemleft">
  4 + <view class="itemleftimg">
  5 + <image src="{{item.logo}}" mode='widthFix'></image>
  6 + </view>
  7 + <view class="itemiddle">
  8 + <view class="itemidelename">{{item.name}}</view>
  9 + <view class="nambottom">
  10 + <text class="namebottomitem">{{item.sort_name}}</text>
  11 + <text class="namebottomitem">{{item.country}}</text>
  12 + <text class="namebottomitem">{{item.city}}</text>
  13 + <text class="namebottomitem">{{item.odor_name}}</text>
  14 + </view>
  15 + </view>
  16 + </view>
  17 + <view class="starimg" id='{{item.id}}' data-index='{{index}}' bindtap='collect'>
  18 + <!-- aicon_010x.png -->
  19 + <image src="{{item.is_favorite==0?'/img/aicon_09.png':'/img/aicon_10.png'}}"></image>
  20 + </view>
  21 + </view>
  22 +</view>
  23 +
  24 +
  25 +<view class='showall' wx:if='{{noMore&&noData}}'>已显示全部内容</view>
  26 +<view class='noData' wx:if='{{!noData}}'>
  27 + 暂无相关数据
  28 +</view>
  1 +/* pages/myblock/jiupin/jiupin.wxss */
  2 +@import '../../homeblock/search/search.wxss';
  1 +// pages/myblock/rule/rule.js
  2 +let WxParse = require('../../../wxParse/wxParse.js');
  3 +const app = getApp();
  4 +Page({
  5 +
  6 + /**
  7 + * 页面的初始数据
  8 + */
  9 + data: {
  10 +
  11 + },
  12 +
  13 + /**
  14 + * 生命周期函数--监听页面加载
  15 + */
  16 + onLoad: function (options) {
  17 + this.getRule();
  18 + },
  19 + getRule(){
  20 + let url = '/index/Common/protocol';
  21 + app.post(url,{}).then(r=>{
  22 + WxParse.wxParse('contentHtml', 'html', r.content, this, 5)
  23 + })
  24 + },
  25 +
  26 + /**
  27 + * 生命周期函数--监听页面初次渲染完成
  28 + */
  29 + onReady: function () {
  30 +
  31 + },
  32 +
  33 + /**
  34 + * 生命周期函数--监听页面显示
  35 + */
  36 + onShow: function () {
  37 +
  38 + },
  39 +
  40 + /**
  41 + * 生命周期函数--监听页面隐藏
  42 + */
  43 + onHide: function () {
  44 +
  45 + },
  46 +
  47 + /**
  48 + * 生命周期函数--监听页面卸载
  49 + */
  50 + onUnload: function () {
  51 +
  52 + },
  53 +
  54 + /**
  55 + * 页面相关事件处理函数--监听用户下拉动作
  56 + */
  57 + onPullDownRefresh: function () {
  58 +
  59 + },
  60 +
  61 + /**
  62 + * 页面上拉触底事件的处理函数
  63 + */
  64 + onReachBottom: function () {
  65 +
  66 + },
  67 +
  68 + /**
  69 + * 用户点击右上角分享
  70 + */
  71 + onShareAppMessage: function () {
  72 +
  73 + }
  74 +})
  1 +{
  2 + "usingComponents": {},
  3 + "navigationBarTitleText": "协议规则"
  4 +}
  1 +<!--pages/myblock/rule/rule.wxml-->
  2 +<view class='content'>
  3 + <import src="/wxParse/wxParse.wxml" />
  4 + <template is="wxParse" data="{{wxParseData:contentHtml.nodes}}" />
  5 + </view>
  1 +/* pages/myblock/rule/rule.wxss */
  2 +.content{
  3 + font-size: 30rpx;
  4 + padding: 30rpx;
  5 + color: #666;
  6 +}
@@ -18,7 +18,32 @@ Page({ @@ -18,7 +18,32 @@ Page({
18 }) 18 })
19 19
20 }, 20 },
21 - 21 + inputPass(e){
  22 + this.setData({
  23 + password: e.detail.value
  24 + })
  25 + },
  26 + confirmPassWord(){
  27 + let params = {
  28 + password: this.data.password
  29 + }, url ='/user/Profile/set_password';
  30 + if(params.password.length<6){
  31 + wx.showToast({
  32 + title: '请输入6位数以上的密码',
  33 + })
  34 + }else{
  35 + app.post(url,params).then(r=>{
  36 + wx.showToast({
  37 + title: '设置成功',
  38 + duration: 1300
  39 + })
  40 + setTimeout(()=>{
  41 + wx.navigateBack({
  42 + })
  43 + },1200)
  44 + })
  45 + }
  46 + },
22 /** 47 /**
23 * 生命周期函数--监听页面初次渲染完成 48 * 生命周期函数--监听页面初次渲染完成
24 */ 49 */
1 <view class="setmima"> 1 <view class="setmima">
2 <view class="setmimaleft"> 2 <view class="setmimaleft">
3 - <input placeholder='设置密码' placeholder-class='shemi'/>  
4 - 3 + <input password placeholder='设置密码' bindinput='inputPass' />
5 </view> 4 </view>
6 <view class="mimaeye"> 5 <view class="mimaeye">
7 <image src="{{url}}/bicon_14x.png"></image> 6 <image src="{{url}}/bicon_14x.png"></image>
8 </view> 7 </view>
9 </view> 8 </view>
10 -  
11 -<view class="que">确认</view>  
12 - 9 +<view class="que" bindtap='confirmPassWord'>确认</view>
13 <view class="needmi">需要有6-20位数字、字母或符号组成,至少两种</view> 10 <view class="needmi">需要有6-20位数字、字母或符号组成,至少两种</view>
14 -  
15 -<view class="mimasuccess">密码设置成功</view>  
1 // pages/myblock/zhanghaobangding/zhanghaobangding.js 1 // pages/myblock/zhanghaobangding/zhanghaobangding.js
  2 +const app = getApp();
2 Page({ 3 Page({
3 4
4 /** 5 /**
5 * 页面的初始数据 6 * 页面的初始数据
6 */ 7 */
7 data: { 8 data: {
8 - 9 + info:{}
9 }, 10 },
10 -  
11 /** 11 /**
12 * 生命周期函数--监听页面加载 12 * 生命周期函数--监听页面加载
13 */ 13 */
14 onLoad: function (options) { 14 onLoad: function (options) {
15 - 15 + this.getBindInfo();
16 }, 16 },
  17 + getBindInfo(){
  18 + let url = '/user/Center/user_bind';
  19 + app.post(url,{}).then(r=>{
  20 + this.setData({
  21 + info:r
  22 + })
  23 + })
  24 + },
  25 + changeBind(){
  26 + wx.showToast({
  27 + title: '由于功能限制请前往APP进行相关操作',
  28 + icon: 'none'
  29 + })
  30 + },
  31 + getUserInfo(e){
17 32
  33 + },
18 /** 34 /**
19 * 生命周期函数--监听页面初次渲染完成 35 * 生命周期函数--监听页面初次渲染完成
20 */ 36 */
1 <view class="zhanghao"> 1 <view class="zhanghao">
2 <view class="zhanghaoitem"> 2 <view class="zhanghaoitem">
3 <view class="zhanghaoleft">手机号绑定</view> 3 <view class="zhanghaoleft">手机号绑定</view>
4 - <view class="zhanghaoright">  
5 - <view class="zhanghaoname">136****7686</view> 4 + <navigator class="zhanghaoright" url='/pages/myblock/huanbangshouji/huanbangshouji'>
  5 + <view class="zhanghaoname">{{info.mobile}}</view>
6 <view class="rowimg"> 6 <view class="rowimg">
7 <image src="/img/aicon_61.png"></image> 7 <image src="/img/aicon_61.png"></image>
8 </view> 8 </view>
9 - </view>  
10 - 9 + </navigator>
11 </view> 10 </view>
12 11
13 <view class="zhanghaoitem"> 12 <view class="zhanghaoitem">
14 <view class="zhanghaoleft">微信绑定</view> 13 <view class="zhanghaoleft">微信绑定</view>
15 -  
16 - <view class="zhanghaoright">  
17 - <view class="zhanghaoname">好时光</view> 14 + <view class="zhanghaoright" bindtap='changeBind'>
  15 + <view class="zhanghaoname" wx:if='{{info.wechat}}'>{{info.wechat}}</view>
  16 + <view class="zhanghaoname bangname" wx:else>去绑定</view>
18 <view class="rowimg"> 17 <view class="rowimg">
19 <image src="/img/aicon_61.png"></image> 18 <image src="/img/aicon_61.png"></image>
20 </view> 19 </view>
  20 +
21 </view> 21 </view>
22 </view> 22 </view>
23 <view class="zhanghaoitem"> 23 <view class="zhanghaoitem">
24 <view class="zhanghaoleft">QQ绑定</view> 24 <view class="zhanghaoleft">QQ绑定</view>
25 -  
26 - <view class="zhanghaoright">  
27 - <view class="zhanghaoname bangname">去绑定</view> 25 + <view class="zhanghaoright" bindtap='changeBind'>
  26 + <view class="zhanghaoname" wx:if='{{info.qq}}'>{{info.qq}}</view>
  27 + <view class="zhanghaoname bangname" wx:else>去绑定</view>
28 <view class="rowimg"> 28 <view class="rowimg">
29 <image src="/img/aicon_61.png"></image> 29 <image src="/img/aicon_61.png"></image>
30 </view> 30 </view>
@@ -33,8 +33,9 @@ @@ -33,8 +33,9 @@
33 <view class="zhanghaoitem"> 33 <view class="zhanghaoitem">
34 <view class="zhanghaoleft">新浪微博绑定</view> 34 <view class="zhanghaoleft">新浪微博绑定</view>
35 35
36 - <view class="zhanghaoright">  
37 - <view class="zhanghaoname bangname">去绑定</view> 36 + <view class="zhanghaoright" bindtap='changeBind'>
  37 + <view class="zhanghaoname" wx:if='{{info.weibo}}'>{{info.weibo}}</view>
  38 + <view class="zhanghaoname bangname" wx:else>去绑定</view>
38 <view class="rowimg"> 39 <view class="rowimg">
39 <image src="/img/aicon_61.png"></image> 40 <image src="/img/aicon_61.png"></image>
40 </view> 41 </view>
@@ -34,6 +34,15 @@ page{ @@ -34,6 +34,15 @@ page{
34 .zhanghaoright{ 34 .zhanghaoright{
35 display:flex; 35 display:flex;
36 align-items: center; 36 align-items: center;
  37 + position: relative;
  38 +}
  39 +.authInfo{
  40 + position: absolute;
  41 + top: 0;
  42 + left: 0;
  43 + width: 100%;
  44 + height: 100%;
  45 + opacity: 0;
37 } 46 }
38 .zhanghaoname{ 47 .zhanghaoname{
39 color:#999999; 48 color:#999999;
1 <view class="zhanghao"> 1 <view class="zhanghao">
2 - <view class="zhanghaoitem"> 2 + <navigator class="zhanghaoitem" url='/pages/myblock/zhanghaobangding/zhanghaobangding'>
3 <view class="zhanghaoleft">账号绑定</view> 3 <view class="zhanghaoleft">账号绑定</view>
4 -  
5 <view class="rowimg"> 4 <view class="rowimg">
6 <image src="/img/aicon_61.png"></image> 5 <image src="/img/aicon_61.png"></image>
7 </view> 6 </view>
8 - </view> 7 + </navigator>
9 8
10 - <view class="zhanghaoitem"> 9 + <navigator class="zhanghaoitem" url='/pages/myblock/shezhimima/shezhimima'>
11 <view class="zhanghaoleft">设置密码</view> 10 <view class="zhanghaoleft">设置密码</view>
12 11
13 <view class="rowimg"> 12 <view class="rowimg">
14 <image src="/img/aicon_61.png"></image> 13 <image src="/img/aicon_61.png"></image>
15 </view> 14 </view>
16 - </view> 15 + </navigator>
17 </view> 16 </view>
18 <view class="question">常见问题</view> 17 <view class="question">常见问题</view>
@@ -49,7 +49,7 @@ @@ -49,7 +49,7 @@
49 "list": [] 49 "list": []
50 }, 50 },
51 "miniprogram": { 51 "miniprogram": {
52 - "current": 35, 52 + "current": 43,
53 "list": [ 53 "list": [
54 { 54 {
55 "id": -1, 55 "id": -1,
@@ -300,6 +300,63 @@ @@ -300,6 +300,63 @@
300 "id": -1, 300 "id": -1,
301 "name": "酒单详情", 301 "name": "酒单详情",
302 "pathName": "pages/findblock/jiudandetail/jiudandetail", 302 "pathName": "pages/findblock/jiudandetail/jiudandetail",
  303 + "query": "",
  304 + "scene": null
  305 + },
  306 + {
  307 + "id": -1,
  308 + "name": "历史",
  309 + "pathName": "pages/myblock/history/history",
  310 + "query": "",
  311 + "scene": null
  312 + },
  313 + {
  314 + "id": -1,
  315 + "name": "个人中心收藏品牌",
  316 + "pathName": "pages/myblock/pinpai/pinpai",
  317 + "query": "",
  318 + "scene": null
  319 + },
  320 + {
  321 + "id": 38,
  322 + "name": "消息",
  323 + "pathName": "pages/myblock/message/message",
  324 + "query": "",
  325 + "scene": null
  326 + },
  327 + {
  328 + "id": 39,
  329 + "name": "用户反馈",
  330 + "pathName": "pages/myblock/feedback/feedback",
  331 + "query": "",
  332 + "scene": null
  333 + },
  334 + {
  335 + "id": -1,
  336 + "name": "账号绑定",
  337 + "pathName": "pages/myblock/zhanghaobangding/zhanghaobangding",
  338 + "query": "",
  339 + "scene": null
  340 + },
  341 + {
  342 + "id": -1,
  343 + "name": "换绑手机",
  344 + "pathName": "pages/myblock/huanbangshouji/huanbangshouji",
  345 + "query": "",
  346 + "scene": null
  347 + },
  348 + {
  349 + "id": -1,
  350 + "name": "设置密码",
  351 + "pathName": "pages/myblock/shezhimima/shezhimima",
  352 + "query": "",
  353 + "scene": null
  354 + },
  355 + {
  356 + "id": -1,
  357 + "name": "协议规则",
  358 + "pathName": "pages/myblock/rule/rule",
  359 + "query": "",
303 "scene": null 360 "scene": null
304 } 361 }
305 ] 362 ]