版本提交
Showing
35 changed files
with
187 additions
and
41 deletions
| ... | @@ -8,13 +8,6 @@ | ... | @@ -8,13 +8,6 @@ |
| 8 | * | 8 | * |
| 9 | */ | 9 | */ |
| 10 | 10 | ||
| 11 | // 居中按钮样式 | ||
| 12 | @mixin btn-center($width, $height) { | ||
| 13 | width: $width; | ||
| 14 | height: $height; | ||
| 15 | line-height: $height; | ||
| 16 | text-align: center; | ||
| 17 | } | ||
| 18 | 11 | ||
| 19 | // 超过多少行自动省略 默认一行 | 12 | // 超过多少行自动省略 默认一行 |
| 20 | @mixin ellipsis($line:1) { | 13 | @mixin ellipsis($line:1) { |
| ... | @@ -100,3 +93,25 @@ | ... | @@ -100,3 +93,25 @@ |
| 100 | background-color: transparent; | 93 | background-color: transparent; |
| 101 | border: 0; | 94 | border: 0; |
| 102 | } | 95 | } |
| 96 | |||
| 97 | // 居中按钮样式 | ||
| 98 | @mixin btn-center($width, $height) { | ||
| 99 | width: $width; | ||
| 100 | height: $height; | ||
| 101 | line-height: $height; | ||
| 102 | text-align: center; | ||
| 103 | } | ||
| 104 | |||
| 105 | |||
| 106 | // 通用按钮 | ||
| 107 | @mixin cb($width:320px, $height:80px, $fontSize:32px) { | ||
| 108 | position: relative; | ||
| 109 | width: $width; | ||
| 110 | height: $height; | ||
| 111 | line-height: $height; | ||
| 112 | text-align: center; | ||
| 113 | color: #ffffff; | ||
| 114 | font-size: $fontSize; | ||
| 115 | border-radius: $height / 2; | ||
| 116 | background-image: linear-gradient(to right, #b83138, #f2234a 51%, #b83138); | ||
| 117 | } | ... | ... |
| 1 | Component({ | ||
| 2 | properties: { | ||
| 3 | // 这里定义了innerText属性,属性值可以在组件使用时指定 | ||
| 4 | innerText: { | ||
| 5 | type: String, | ||
| 6 | value: 'default value', | ||
| 7 | } | ||
| 8 | }, | ||
| 9 | data: { | ||
| 10 | // 这里是一些组件内部数据 | ||
| 11 | someData: {} | ||
| 12 | }, | ||
| 13 | methods: { | ||
| 14 | // 这里是一个自定义方法 | ||
| 15 | customMethod() { | ||
| 16 | this.triggerEvent('evtcomp', { | ||
| 17 | name: "_evt_custom" | ||
| 18 | }) | ||
| 19 | }, | ||
| 20 | // 隐藏蒙层 | ||
| 21 | hideMask() { | ||
| 22 | this.triggerEvent('evtcomp', { | ||
| 23 | name: "_evt_hide_rule_tips" | ||
| 24 | }); | ||
| 25 | } | ||
| 26 | } | ||
| 27 | }) |
File moved
| 1 | @import '../../assets/scss/mixins'; | ||
| 2 | @import '../../assets/scss/utils'; | ||
| 3 | |||
| 1 | .comp-item { | 4 | .comp-item { |
| 5 | position: relative; | ||
| 6 | width: 654px; | ||
| 7 | height: 911px; | ||
| 8 | |||
| 9 | // background-color: wheat; | ||
| 2 | .bg { | 10 | .bg { |
| 3 | position: absolute; | 11 | position: absolute; |
| 4 | width: 654px; | 12 | width: 654px; |
| 5 | height: 911px; | 13 | height: 911px; |
| 6 | } | 14 | } |
| 15 | |||
| 16 | .space1 { | ||
| 17 | height: 730px; | ||
| 18 | } | ||
| 19 | |||
| 20 | .btn { | ||
| 21 | position: relative; | ||
| 22 | margin: 0 auto; | ||
| 23 | @include cb(300px, 80px); | ||
| 24 | } | ||
| 7 | } | 25 | } | ... | ... |
| 1 | <view class="comp-item"> | 1 | <view class="comp-item"> |
| 2 | <image class="bg" src="../../image/rule/rule_c1.png" mode="widthFix" /> | 2 | <image class="bg" src="../../image/oss/rule/rule-c1.png" mode="widthFix" /> |
| 3 | <view class="space1"></view> | ||
| 4 | <view bindtap="hideMask" class="btn">我知道了</view> | ||
| 3 | </view> | 5 | </view> | ... | ... |
src/component/tips-bg-comp/tips-bg-comp.json
0 → 100755
src/component/tips-bg-comp/tips-bg-comp.scss
0 → 100755
| 1 | .demo-item{} |
src/component/tips-bg-comp/tips-bg-comp.wxml
0 → 100755
| 1 | <view class="comp-item">comp-item</view> |
| 1 | module.exports = { | 1 | module.exports = { |
| 2 | login: '/warubiEyeCreamApi/app/login', // 通过wxcode换取sessionId | 2 | login: '/warubiEyeCreamApi/app/login', // post 通过wxcode换取sessionId |
| 3 | index: '/warubiEyeCreamApi/app/index', // Index 接口 | 3 | register: '/warubiEyeCreamApi/app/register', // post 注册(用户授权) |
| 4 | register: '/warubiEyeCreamApi/app/register', // 注册(用户授权) | 4 | index: '/warubiEyeCreamApi/app/index', // post Index 接口 |
| 5 | picVerifyCode: '/warubiEyeCreamApi/app/crm/pic/verifyCode', // get Crm获取图形验证码 | ||
| 6 | mobileVerifyCode: '/warubiEyeCreamApi/app/crm/mobile/verifyCode', // post Crm获取短信验证码 | ||
| 7 | crmLogin: '/warubiEyeCreamApi/app/crm/login', // post Crm账户登录 | ||
| 8 | crmRegister: '/warubiEyeCreamApi/app/crm/register', // post Crm账户登录 | ||
| 9 | questionList: '/warubiEyeCreamApi/app/question/list', // post 新用户题目候选列表 | ||
| 10 | answerSubmit: '/warubiEyeCreamApi/app/answer/submit', // post 新用户提交候选题目 | ||
| 11 | wishbillPrizeCandidate: '/warubiEyeCreamApi/app/wishbill/prize/candidate', // post 心愿单产品候选列表 | ||
| 12 | wishbillCreate: '/warubiEyeCreamApi/app/wishbill/create', // post 创建心愿单 | ||
| 13 | selfAssist: '/warubiEyeCreamApi/app/wishbill/selfAssist', // post 自我助力 | ||
| 14 | wishbillDetail: '/warubiEyeCreamApi/app/wishbill/detail', // post 读取心愿单信息 | ||
| 15 | wishbillHelpers: '/warubiEyeCreamApi/app/wishbill/helpers', // post 读取心愿单助力列表 | ||
| 16 | wishbillAssist: '/warubiEyeCreamApi/app/wishbill/assist', // post 分享-心愿单摇一摇助力 | ||
| 17 | fishPrize: '/warubiEyeCreamApi/app/fish/prize', // post 查看新人福利 | ||
| 18 | rank: '/warubiEyeCreamApi/app/rank', // post 查看弹力排行 | ||
| 19 | wishbillGiftQuery: '/warubiEyeCreamApi/app/wishbill/gift/query', // post 读取心愿单礼品信息 | ||
| 20 | storeQuery: '/warubiEyeCreamApi/app/store/query', // post 查询附近门店 | ||
| 21 | wishbillGiftAccept: '/warubiEyeCreamApi/app/wishbill/gift/accept', // post 领取心愿礼品 | ||
| 22 | wishbillAcceptTypeSubmit: '/warubiEyeCreamApi/app/wishbill/accept/type/submit', // post 提交礼品领取方式 | ||
| 23 | wishbillAddressSubmit: '/warubiEyeCreamApi/app/wishbill/address/submit', // post 提交邮寄地址 | ||
| 24 | wishbillStoreAppoint: '/warubiEyeCreamApi/app/wishbill/store/appoint', // post 预约自提门店 | ||
| 5 | } | 25 | } | ... | ... |
src/image/draw/draw-c1.png
0 → 100644
338 KB
src/image/my-wish/my_wish_c1.png
0 → 100644
717 KB
src/image/my-wish/my_wish_c2.png
0 → 100644
3.62 KB
src/image/my-wish/my_wish_c3.png
0 → 100644
3.14 KB
src/image/my-wish/my_wish_d1.png
0 → 100644
85.3 KB
src/image/oss/create-wish/create-wish-bg.png
0 → 100644
313 KB
src/image/oss/my-card/my-card-d1.png
0 → 100644
33.1 KB
src/image/oss/my-card/my-card-d2.png
0 → 100644
26.5 KB
src/image/oss/poster/poster-bg.png
0 → 100644
1.24 MB
| 1 | let app = getApp(); | 1 | let app = getApp(); |
| 2 | Page({ | 2 | Page({ |
| 3 | data: { | 3 | data: { |
| 4 | ruleVisible: true, | 4 | // ruleTipsVisible: true, |
| 5 | }, | 5 | }, |
| 6 | onShareAppMessage() {}, | 6 | onShareAppMessage() {}, |
| 7 | onLoad(options) {} | 7 | onLoad(options) {}, |
| 8 | // 子组件事件 | ||
| 9 | evtcomp(evt) { | ||
| 10 | let { | ||
| 11 | name, | ||
| 12 | data | ||
| 13 | } = evt.detail; | ||
| 14 | switch (name) { | ||
| 15 | |||
| 16 | case "_evt_hide_rule_tips": | ||
| 17 | this.setData({ | ||
| 18 | ruleTipsVisible: false | ||
| 19 | }) | ||
| 20 | break; | ||
| 21 | |||
| 22 | default: | ||
| 23 | break; | ||
| 24 | } | ||
| 25 | }, | ||
| 26 | // 提交心愿单 | ||
| 27 | onWishHandler() { | ||
| 28 | |||
| 29 | } | ||
| 8 | }) | 30 | }) | ... | ... |
| 1 | { | 1 | { |
| 2 | "navigationBarTitleText": "丸美心愿单", | 2 | "navigationBarTitleText": "丸美心愿单", |
| 3 | "usingComponents": { | 3 | "usingComponents": { |
| 4 | "rule-comp": "../../component/rule-comp/rule-comp", | 4 | "rule-tips-comp": "../../component/rule-tips-comp/rule-tips-comp", |
| 5 | "van-popup": "../../ui/vant-weapp/popup/index" | 5 | "van-popup": "../../ui/vant-weapp/popup/index" |
| 6 | } | 6 | } |
| 7 | } | 7 | } | ... | ... |
| ... | @@ -2,17 +2,23 @@ | ... | @@ -2,17 +2,23 @@ |
| 2 | @import '../../assets/scss/utils'; | 2 | @import '../../assets/scss/utils'; |
| 3 | 3 | ||
| 4 | .page { | 4 | .page { |
| 5 | .bgc {} | 5 | .bgc { |
| 6 | background-color: wheat; | ||
| 7 | } | ||
| 6 | 8 | ||
| 7 | .bg {} | 9 | .bg {} |
| 8 | 10 | ||
| 9 | .main { | 11 | .main { |
| 10 | .top-space { | 12 | .top-space { |
| 11 | height: 0px; | 13 | height: 0px; |
| 12 | } | 14 | } |
| 15 | |||
| 16 | .content { | ||
| 17 | position: relative; | ||
| 13 | 18 | ||
| 14 | .content { | 19 | .btn { |
| 15 | position: relative; | 20 | @include cb; |
| 16 | } | 21 | } |
| 17 | } | 22 | } |
| 23 | } | ||
| 18 | } | 24 | } | ... | ... |
| ... | @@ -3,9 +3,11 @@ | ... | @@ -3,9 +3,11 @@ |
| 3 | <view class="app__bg bg"></view> | 3 | <view class="app__bg bg"></view> |
| 4 | <view class="app__content main"> | 4 | <view class="app__content main"> |
| 5 | <view class="top-space"></view> | 5 | <view class="top-space"></view> |
| 6 | <view class="content">create-wish</view> | 6 | <view class="content"> |
| 7 | <view class="btn" bindtap="onWishHandler" >提交心愿单</view> | ||
| 8 | </view> | ||
| 7 | </view> | 9 | </view> |
| 8 | </view> | 10 | </view> |
| 9 | <van-popup show="{{ ruleVisible }}"> | 11 | <van-popup show="{{ ruleTipsVisible }}"> |
| 10 | <rule-comp bind:evtcomp="evtcomp"></rule-comp> | 12 | <rule-tips-comp bind:evtcomp="evtcomp"></rule-tips-comp> |
| 11 | </van-popup> | 13 | </van-popup> | ... | ... |
| ... | @@ -2,7 +2,8 @@ let app = getApp(); | ... | @@ -2,7 +2,8 @@ let app = getApp(); |
| 2 | Page({ | 2 | Page({ |
| 3 | data: { | 3 | data: { |
| 4 | authorized: true, | 4 | authorized: true, |
| 5 | canIUse: wx.canIUse('button.open-type.getUserInfo') | 5 | canIUse: wx.canIUse('button.open-type.getUserInfo'), |
| 6 | ruleTipsVisible: false, | ||
| 6 | }, | 7 | }, |
| 7 | onShareAppMessage() {}, | 8 | onShareAppMessage() {}, |
| 8 | onLoad(options) {}, | 9 | onLoad(options) {}, |
| ... | @@ -14,7 +15,10 @@ Page({ | ... | @@ -14,7 +15,10 @@ Page({ |
| 14 | } = evt.detail; | 15 | } = evt.detail; |
| 15 | switch (name) { | 16 | switch (name) { |
| 16 | 17 | ||
| 17 | case "_evt_hide": | 18 | case "_evt_hide_rule_tips": |
| 19 | this.setData({ | ||
| 20 | ruleTipsVisible: false | ||
| 21 | }) | ||
| 18 | break; | 22 | break; |
| 19 | 23 | ||
| 20 | default: | 24 | default: |
| ... | @@ -27,5 +31,11 @@ Page({ | ... | @@ -27,5 +31,11 @@ Page({ |
| 27 | app.router.push({ | 31 | app.router.push({ |
| 28 | path: "createWish" | 32 | path: "createWish" |
| 29 | }) | 33 | }) |
| 34 | }, | ||
| 35 | // 显示规则页面 | ||
| 36 | onShowRuleHandler() { | ||
| 37 | this.setData({ | ||
| 38 | ruleTipsVisible: true | ||
| 39 | }) | ||
| 30 | } | 40 | } |
| 31 | }) | 41 | }) | ... | ... |
| ... | @@ -2,6 +2,7 @@ | ... | @@ -2,6 +2,7 @@ |
| 2 | "navigationBarTitleText": "我的心愿单", | 2 | "navigationBarTitleText": "我的心愿单", |
| 3 | "usingComponents": { | 3 | "usingComponents": { |
| 4 | "authorize-comp": "../../component/authorize-comp/authorize-comp", | 4 | "authorize-comp": "../../component/authorize-comp/authorize-comp", |
| 5 | "rule-tips-comp": "../../component/rule-tips-comp/rule-tips-comp", | ||
| 5 | "van-popup": "../../ui/vant-weapp/popup/index" | 6 | "van-popup": "../../ui/vant-weapp/popup/index" |
| 6 | } | 7 | } |
| 7 | } | 8 | } | ... | ... |
| ... | @@ -45,14 +45,27 @@ | ... | @@ -45,14 +45,27 @@ |
| 45 | 45 | ||
| 46 | .content { | 46 | .content { |
| 47 | .btn { | 47 | .btn { |
| 48 | @include cb(336px, 88px); | ||
| 48 | position: relative; | 49 | position: relative; |
| 49 | margin: 0 auto; | 50 | margin: 0 auto; |
| 50 | @include btn-center(336px, 88px); | 51 | } |
| 51 | border-radius: 44px; | 52 | } |
| 52 | background-image: linear-gradient(to right, #b83138, #f2234a 51%, #b83138); | 53 | |
| 53 | font-weight: 300; | 54 | .rule-btn { |
| 54 | font-size: 32px; | 55 | position: absolute; |
| 55 | color: #fff; | 56 | top: 24px; |
| 57 | right: 0; | ||
| 58 | @include border-left-radius(30px); | ||
| 59 | @include btn-center(162px, 60px); | ||
| 60 | font-size: 30px; | ||
| 61 | color: #bf0221; | ||
| 62 | // border-radius: 30px; | ||
| 63 | |||
| 64 | box-shadow: 7.4px 8.2px 27px 0 rgba(228, 78, 96, 0.86); | ||
| 65 | background-image: linear-gradient(to right, #fbddd5, #f9efed 51%, #ffded9 99%), linear-gradient(to bottom, #000000, #000000); | ||
| 66 | .c1{ | ||
| 67 | padding-left: 12px; | ||
| 68 | // @extend .bb; | ||
| 56 | } | 69 | } |
| 57 | } | 70 | } |
| 58 | } | 71 | } | ... | ... |
| 1 | <view class="page"> | 1 | <view class="page"> |
| 2 | <view class="app__bgc bgc"> | 2 | <view class="app__bgc bgc"> |
| 3 | <image src="../../image/index/index_c1.png" mode="scaleToFill" /> | 3 | <image src="../../image/oss/index/index-c1.png" mode="scaleToFill" /> |
| 4 | </view> | 4 | </view> |
| 5 | <view class="app__bg bg"> | 5 | <view class="app__bg bg"> |
| 6 | <image src="../../image/index/index_c2.png" mode="scaleToFill" /> | 6 | <image src="../../image/oss/index/index-c2.png" mode="scaleToFill" /> |
| 7 | </view> | 7 | </view> |
| 8 | <view class="decoration"> | 8 | <view class="decoration"> |
| 9 | <image class="d1" src="../../image/index/index_c4.png" mode="widthFix" /> | 9 | <image class="d1" src="../../image/oss/index/index-c4.png" mode="widthFix" /> |
| 10 | <image class="d2" src="../../image/index/index_c3.png" mode="widthFix" /> | 10 | <image class="d2" src="../../image/oss/index/index-c3.png" mode="widthFix" /> |
| 11 | </view> | 11 | </view> |
| 12 | <view class="app__content main"> | 12 | <view class="app__content main"> |
| 13 | <view class="top-space"></view> | 13 | <view class="top-space"></view> |
| ... | @@ -17,9 +17,14 @@ | ... | @@ -17,9 +17,14 @@ |
| 17 | <!-- 未授权 拉起授权弹窗 --> | 17 | <!-- 未授权 拉起授权弹窗 --> |
| 18 | <!-- <button class="btn" wx:else open-type="getUserInfo" bindgetuserinfo="bindGetUserInfo">马上测弹力值2</button> --> | 18 | <!-- <button class="btn" wx:else open-type="getUserInfo" bindgetuserinfo="bindGetUserInfo">马上测弹力值2</button> --> |
| 19 | </view> | 19 | </view> |
| 20 | <view class="rule-btn" bindtap="onShowRuleHandler"> | ||
| 21 | <span class="c1">活动详情</span> | ||
| 22 | </view> | ||
| 20 | </view> | 23 | </view> |
| 21 | |||
| 22 | </view> | 24 | </view> |
| 23 | <!-- <van-popup show="{{ authorizeVisible }}" > | 25 | <!-- <van-popup show="{{ authorizeVisible }}" > |
| 24 | <authorize-comp bind:evtcomp="evtcomp"></authorize-comp> | 26 | <authorize-comp bind:evtcomp="evtcomp"></authorize-comp> |
| 25 | </van-popup> --> | 27 | </van-popup> --> |
| 28 | <van-popup show="{{ ruleTipsVisible }}"> | ||
| 29 | <rule-tips-comp bind:evtcomp="evtcomp"></rule-tips-comp> | ||
| 30 | </van-popup> | ... | ... |
| 1 | <view class="page"> | 1 | <view class="page"> |
| 2 | <view class="app__bgc bgc"></view> | 2 | <view class="app__bgc bgc"></view> |
| 3 | <view class="app__bg bg"></view> | 3 | <view class="app__bg bg"></view> |
| 4 | <!-- <view class="app__top-shadow"></view> --> | ||
| 5 | <view class="app__content main"> | 4 | <view class="app__content main"> |
| 6 | <view class="top-space"></view> | 5 | <view class="top-space"></view> |
| 7 | <view class="content"></view> | 6 | <view class="content"></view> | ... | ... |
| 1 | const routerPath = { | 1 | const routerPath = { |
| 2 | index: '/pages/index/index', // 首页 | 2 | index: '/pages/index/index', // 首页 |
| 3 | wish: '/pages/wish/wish', // 心愿单 | 3 | wish: '/pages/wish/wish', // 我的心愿单 |
| 4 | createWish: '/pages/create-wish/create-wish', // 创建心愿单 | 4 | createWish: '/pages/create-wish/create-wish', // 创建心愿单 |
| 5 | newWelfare: '/pages/new-welfare/new-welfare', // 新人福利 | 5 | newWelfare: '/pages/new-welfare/new-welfare', // 新人福利 |
| 6 | userTable: '/pages/user-table/user-table', // 用户表单 | 6 | userTable: '/pages/user-table/user-table', // 用户表单 | ... | ... |
-
Please register or sign in to post a comment