8a3e6a31 by simon

默认提交

1 parent fee985cc
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
5 "pages/personal-list/personal-list", 5 "pages/personal-list/personal-list",
6 "pages/reward/reward", 6 "pages/reward/reward",
7 "pages/reward-completed/reward-completed", 7 "pages/reward-completed/reward-completed",
8 "pages/blessing/blessing",
8 "pages/more/more", 9 "pages/more/more",
9 "pages/poster-example/poster-example", 10 "pages/poster-example/poster-example",
10 "pages/authorize/authorize", 11 "pages/authorize/authorize",
......
...@@ -2,7 +2,7 @@ let ENV_CONFIG = require('./env/index'); ...@@ -2,7 +2,7 @@ let ENV_CONFIG = require('./env/index');
2 2
3 const APPID = '' 3 const APPID = ''
4 /** ====每次发布版本记得修改此环境配置==== */ 4 /** ====每次发布版本记得修改此环境配置==== */
5 const ENV = 'Prod'; // Dev Prod 5 const ENV = 'Dev'; // Dev Prod
6 const NET_CONFIG = ENV_CONFIG[ENV]; 6 const NET_CONFIG = ENV_CONFIG[ENV];
7 const MOCKAPI = ENV_CONFIG.mockApi; 7 const MOCKAPI = ENV_CONFIG.mockApi;
8 8
......
1 import {
2 getBindtapData
3 } from '../../utils/util';
4
5 let app = getApp();
6 Page({
7 data: {
8 authorizeVisible: false,
9 total: 0,
10 page: 1,
11 size: 10,
12 productList: [], // 产品列表
13 indexInfo: {},
14 userInfo: {},
15 },
16 onShareAppMessage() {},
17 showAuth() {
18 this.setData({
19 authorizeVisible: true
20 })
21 },
22 onLoad(options) {},
23
24 /**
25 * 基础方法
26 * 授权完毕重拉数据用
27 */
28 initData() {
29
30 },
31 /**
32 * 到达底部
33 * 做加载更多操作
34 */
35 onReachBottom() {
36 if (this.data.dataList.length < this.data.total) {
37 this.setData({
38 page: this.data.page + 1
39 });
40 this.queryDataList();
41 }
42 },
43
44 // 重置页面列表 点击搜索条件时需要
45 resetPage() {
46 this.setData({
47 page: 1,
48 dataList: []
49 })
50 },
51
52 /**
53 * 请求DataList
54 */
55 queryDataList() {
56 return;
57 return new Promise((resolve, reject) => {
58 app.post({
59 sid: false,
60 url: app.api.dataList,
61 data: {
62 page: this.data.page,
63 size: this.data.size,
64 },
65 }).then((result) => {
66 let dataList = result.list;
67 dataList = this.data.dataList.concat(dataList);
68 this.setData({
69 dataList: dataList,
70 total: result.total
71 })
72 resolve();
73 })
74 });
75 },
76
77 /**
78 * 隐藏蒙层
79 */
80 hideMask() {
81 this.setData({
82 productDetailVisible: false,
83 authorizeVisible: false,
84 })
85 },
86 /**
87 * 子组件事件
88 * @param {*} evt
89 */
90 evtcomp(evt) {
91 let {
92 name,
93 data
94 } = evt.detail;
95 switch (name) {
96
97 // 隐藏蒙层
98 case "_evt_hide_mask":
99 this.hideMask();
100 break;
101
102 /**
103 * 重拉数据已在
104 */
105 case "_evt_auth_complete":
106 // this.initData();
107 this.hideMask();
108 break;
109
110 default:
111 break;
112 }
113 },
114 })
1 @import '../../assets/scss/mixins';
2 @import '../../assets/scss/utils';
3
4 .page {
5 .bgc {}
6
7 .bg {
8 background: url('https://kdcdn.oss-cn-shenzhen.aliyuncs.com/weapp/jyes/assets/oss/blessing-bg.png') no-repeat center;
9 }
10
11 .main {
12
13 // 顶部背景
14 .top-bg {
15 position: absolute;
16 width: 750px;
17 }
18
19 .top-space {
20 // height: 136px;
21 // height: 202px;
22 height: 200px;
23 }
24
25 .content {
26 position: relative;
27
28 // 标题
29 .title {
30 font-size: 46px;
31 font-weight: 500;
32 text-align: center;
33 color: #fee085;
34 }
35
36 // 用户
37 .user {
38 font-size: 48px;
39 font-weight: 600;
40 text-align: center;
41 color: #fee085;
42
43 // 用户头像
44 .portrait {
45 position: relative;
46 margin: 24px auto 0;
47 text-align: center;
48 width: 216px;
49 @extend .fcc;
50
51 &-inner {
52 width: 167px;
53 }
54
55 &-border {
56 width: 216px;
57 position: absolute;
58 }
59 }
60
61 // 用户名称
62 .name {
63 margin: 24px auto 0;
64
65 display: flex;
66 justify-content: center;
67 align-items: flex-end;
68
69 .tt {
70 font-size: 48px;
71 font-weight: 500;
72 text-align: center;
73 color: #fee085;
74 }
75
76 &-edit {
77 width: 29px;
78 margin: 0 0 12px 12px;
79 }
80 }
81 }
82
83
84 }
85 }
86 }
1 <view class="page">
2 <view class="app__bgc bgc"></view>
3 <view class="app__bg bg"></view>
4 <view class="app__content main">
5 <!-- 顶部背景 -->
6 <image class="top-bg" mode="widthFix" src="../../image/blessing/top-d1.png" />
7 <!-- <view class="top-bg"></view> -->
8 <view class="top-space"></view>
9 <view class="content">
10 <view class="title">大年初一</view>
11 <!-- 用户 -->
12 <view class="user">
13 <!-- 用户头像 -->
14 <view class="portrait">
15 <image class="portrait-inner" mode="widthFix" src="../../image/blessing/portrait.png" />
16 <image class="portrait-border" mode="widthFix" src="../../image/blessing/portrait-border.png" />
17 </view>
18 <!-- 用户名称 -->
19 <view class="name">
20 <view class="tt">姓名</view>
21 <image class="name-edit" mode="widthFix" src="../../image/blessing/icon-edit.png" />
22 </view>
23 <!-- <view class="edit">
24 <view class="tt t1"></view>
25 <image class="name-edit" mode="widthFix" src="../../image/blessing/icon-edit.png" />
26 <view class="tt t2"></view>
27 </view> -->
28 </view>
29 </view>
30 </view>
31 </view>
...@@ -4,6 +4,7 @@ const routerPath = { ...@@ -4,6 +4,7 @@ const routerPath = {
4 personalList: '/pages/personal-list/personal-list', 4 personalList: '/pages/personal-list/personal-list',
5 reward: '/pages/reward/reward', 5 reward: '/pages/reward/reward',
6 rewardCompleted: '/pages/reward-completed/reward-completed', 6 rewardCompleted: '/pages/reward-completed/reward-completed',
7 blessing: '/pages/blessing/blessing',
7 8
8 authorize: '/pages/authorize/authorize', // 授权 9 authorize: '/pages/authorize/authorize', // 授权
9 example: '/pages/example/example', 10 example: '/pages/example/example',
......