Commit c4bae88d8fa5d9b022d08aa6bc8fb06fe76c6265

Authored by wangfan
1 parent 00b61dc1

manager-invitation

@@ -32,7 +32,8 @@ @@ -32,7 +32,8 @@
32 "pages/reserve/search", 32 "pages/reserve/search",
33 "pages/reserve/detail", 33 "pages/reserve/detail",
34 "pages/me/follow", 34 "pages/me/follow",
35 - "pages/manager-invitation/index" 35 + "pages/manager-invitation/index",
  36 + "pages/manager-invitation/review"
36 ], 37 ],
37 "subpackages": [ 38 "subpackages": [
38 { 39 {
@@ -13,13 +13,14 @@ Page({ @@ -13,13 +13,14 @@ Page({
13 */ 13 */
14 onLoad: function (options) { 14 onLoad: function (options) {
15 let dots=[]; 15 let dots=[];
16 - for(let i=0;i<10;i++){  
17 - dots.push({  
18 - left:0,  
19 - right:0,  
20 - bottom:0, 16 + for(let i=0;i<15;i++){
  17 + let zf=Math.random()*10>5?1:-1;
  18 + let dot={
  19 + bottom:Math.random()*300*zf,
21 zoom:Math.random(), 20 zoom:Math.random(),
22 - }) 21 + }
  22 + dot.left=Math.random()*1000;
  23 + dots.push(dot)
23 } 24 }
24 this.setData({ 25 this.setData({
25 dots:dots, 26 dots:dots,
@@ -73,5 +74,10 @@ Page({ @@ -73,5 +74,10 @@ Page({
73 */ 74 */
74 onShareAppMessage: function () { 75 onShareAppMessage: function () {
75 76
76 - } 77 + },
  78 + userinfo(){
  79 + wx.redirectTo({
  80 + url:'./review'
  81 + });
  82 + },
77 }) 83 })
1 { 1 {
2 - "usingComponents": {} 2 + "navigationBarBackgroundColor": "#ffffff",
  3 + "navigationBarTextStyle": "white",
  4 + "navigationBarTitleText":"订座详情",
  5 + "usingComponents": {
  6 + "userinfo": "/components/userinfo/userinfo",
  7 + "nav":"/components/nav/nav",
  8 + "formids":"/components/formids/formids"
  9 + }
3 } 10 }
1 <!--pages/manager-invitation/index.wxml--> 1 <!--pages/manager-invitation/index.wxml-->
2 <view class="pages flex-vc"> 2 <view class="pages flex-vc">
3 - <view class="title">欢迎使用一键</view> 3 + <view class="title">欢迎使用一键订</view>
4 <view class="steps flex-cc"> 4 <view class="steps flex-cc">
5 <view class="icon home"></view> 5 <view class="icon home"></view>
6 <view class="dot" wx:for="{{[4,5,6,7,8,9,10]}}" style="opacity:{{item/10}};" ></view> 6 <view class="dot" wx:for="{{[4,5,6,7,8,9,10]}}" style="opacity:{{item/10}};" ></view>
7 <view class="icon user"></view> 7 <view class="icon user"></view>
8 </view> 8 </view>
9 - <view class="dot-max" wx:for="{{dots}}" style="bottom: {{item.bottom}}rpx;left: {{item.left}}rpx;right: {{item.right}}rpx;zoom: {{item.zoom}};"></view> 9 + <view class="info">一键订,客户经理专用的拓客工具</view>
  10 + <view class="dot-max" wx:for="{{dots}}" style="bottom: {{item.bottom}}rpx;left: {{item.left}}rpx;zoom: {{item.zoom}};"></view>
  11 + <userinfo binduserinfo="userinfo" style="width: 100%;">
  12 + <view class="userinfo">立即使用</view>
  13 + </userinfo>
10 </view> 14 </view>
@@ -11,6 +11,7 @@ page{ @@ -11,6 +11,7 @@ page{
11 height: 60rpx; 11 height: 60rpx;
12 line-height: 60rpx; 12 line-height: 60rpx;
13 font-weight: bold; 13 font-weight: bold;
  14 + letter-spacing:6rpx;
14 } 15 }
15 .steps { 16 .steps {
16 height: 54rpx; 17 height: 54rpx;
@@ -18,20 +19,17 @@ page{ @@ -18,20 +19,17 @@ page{
18 line-height: 54rpx; 19 line-height: 54rpx;
19 } 20 }
20 .steps .icon{ 21 .steps .icon{
21 - width: 58rpx;  
22 - height: 54rpx;  
23 - background-color: #61A5D1; 22 + width: 56rpx;
  23 + height: 56rpx;
24 background-size: 100%; 24 background-size: 100%;
25 } 25 }
26 .steps .icon.home{ 26 .steps .icon.home{
27 margin-right: 40rpx; 27 margin-right: 40rpx;
28 - background-image: url(""); 28 + background-image: url("http://qn.colorcun.com/manager-invitation/%E5%95%86%E5%AE%B6.png");
29 } 29 }
30 .steps .icon.user{ 30 .steps .icon.user{
31 margin-left: 20rpx; 31 margin-left: 20rpx;
32 - width: 42rpx;  
33 - height: 50rpx;  
34 - background-image: url(""); 32 + background-image: url("http://qn.colorcun.com/manager-invitation/%E9%A1%BE%E5%AE%A2.png");
35 } 33 }
36 .steps .dot{ 34 .steps .dot{
37 width: 12rpx; 35 width: 12rpx;
@@ -48,4 +46,21 @@ page{ @@ -48,4 +46,21 @@ page{
48 background-color: #ffffff; 46 background-color: #ffffff;
49 opacity:0.1; 47 opacity:0.1;
50 position: fixed; 48 position: fixed;
  49 +}
  50 +.info{
  51 + margin-top: 42rpx;
  52 + height: 40rpx;
  53 + line-height: 40rpx;
  54 + font-size: 28rpx;
  55 +}
  56 +.userinfo{
  57 + color:#000000;
  58 + font-size: 34rpx;
  59 + height: 84rpx;
  60 + line-height: 84rpx;
  61 + border-radius: 42rpx;
  62 + background-color: #fefefe;
  63 + box-shadow: 0 4rpx 8rpx 0 #2B9397;
  64 + width:80%;
  65 + margin: 346rpx auto 0;
51 } 66 }
  1 +// pages/manager-invitation/review.js
  2 +Page({
  3 +
  4 + /**
  5 + * 页面的初始数据
  6 + */
  7 + data: {
  8 + height:667,
  9 + tpls:[
  10 + {id:1,code:1,name:'商务',},
  11 + {id:2,code:2,name:'温馨',},
  12 + ]
  13 + },
  14 +
  15 + /**
  16 + * 生命周期函数--监听页面加载
  17 + */
  18 + onLoad: function (options) {
  19 +
  20 + },
  21 +
  22 + /**
  23 + * 生命周期函数--监听页面初次渲染完成
  24 + */
  25 + onReady: function () {
  26 +
  27 + },
  28 +
  29 + /**
  30 + * 生命周期函数--监听页面显示
  31 + */
  32 + onShow: function () {
  33 + //导航栏自适应
  34 + let systemInfo = wx.getSystemInfoSync();
  35 + let reg = /ios/i;
  36 + let pt = 20;//导航状态栏上内边距
  37 + let h = 44;//导航状态栏高度
  38 + if(reg.test(systemInfo.system)){
  39 + pt = systemInfo.statusBarHeight;
  40 + h = 44;
  41 + }else{
  42 + pt = systemInfo.statusBarHeight;
  43 + h = 48;
  44 + }
  45 + this.setData({
  46 + statusBarHeight: pt,
  47 + titleBarHeight:h,
  48 + height:getApp().system.windowHeight
  49 + })
  50 + },
  51 +
  52 + /**
  53 + * 生命周期函数--监听页面隐藏
  54 + */
  55 + onHide: function () {
  56 +
  57 + },
  58 +
  59 + /**
  60 + * 生命周期函数--监听页面卸载
  61 + */
  62 + onUnload: function () {
  63 +
  64 + },
  65 +
  66 + /**
  67 + * 页面相关事件处理函数--监听用户下拉动作
  68 + */
  69 + onPullDownRefresh: function () {
  70 +
  71 + },
  72 +
  73 + /**
  74 + * 页面上拉触底事件的处理函数
  75 + */
  76 + onReachBottom: function () {
  77 +
  78 + },
  79 +
  80 + /**
  81 + * 用户点击右上角分享
  82 + */
  83 + onShareAppMessage: function () {
  84 +
  85 + }
  86 +})
  1 +{
  2 + "navigationBarBackgroundColor": "#ffffff",
  3 + "navigationBarTextStyle": "white",
  4 + "navigationBarTitleText":"订座详情",
  5 + "usingComponents": {
  6 + "userinfo": "/components/userinfo/userinfo",
  7 + "nav":"/components/nav/nav",
  8 + "formids":"/components/formids/formids"
  9 + }
  10 +}
  1 +<!--pages/manager-invitation/review.wxml-->
  2 +<swiper
  3 + indicator-dots="{{false}}"
  4 + autoplay="{{false}}"
  5 + duration="{{500}}"
  6 + style="height:{{height}}px;"
  7 +>
  8 + <block wx:for="{{[1,2,3]}}">
  9 + <swiper-item>
  10 + <view class="pages bg-{{item}}" style="height:{{height}}px;">
  11 + {{$item}}
  12 + </view>
  13 + </swiper-item>
  14 + </block>
  15 +</swiper>
  16 +<view
  17 + class="flex-vc"
  18 + style="position:fixed;top:{{statusBarHeight}}px;left:0;height: {{titleBarHeight}}px; line-height: {{titleBarHeight}}px;">
  19 + <view class="tabs flex-ll">
  20 + <view class="item active">AAA</view>
  21 + <view class="item">BBB</view>
  22 + </view>
  23 +</view>
  1 +/* pages/manager-invitation/review.wxss */
  2 +.pages{
  3 + font-size: 200rpx;
  4 +}
  5 +.tabs{
  6 +}
  7 +.tabs .item{
  8 + font-size: 32rpx;
  9 + color:#999999;
  10 + margin-left: 20rpx;
  11 + padding: 0 10rpx;
  12 +}
  13 +.tabs .item.active{
  14 + font-size: 36rpx;
  15 + font-weight: bold;
  16 + color: #E9D9B7;
  17 + border-bottom: 2rpx solid #E9D9B7;
  18 +}
  19 +.bg-1{
  20 + background-color: #61A5D1;
  21 +}
  22 +.bg-2{
  23 + background-color: #1AAD19;
  24 +}
  25 +.bg-3{
  26 + background-color: #AD7644;
  27 +}
@@ -31,7 +31,7 @@ @@ -31,7 +31,7 @@
31 "list": [] 31 "list": []
32 }, 32 },
33 "miniprogram": { 33 "miniprogram": {
34 - "current": 42, 34 + "current": 43,
35 "list": [ 35 "list": [
36 { 36 {
37 "id": 0, 37 "id": 0,
@@ -356,6 +356,13 @@ @@ -356,6 +356,13 @@
356 "pathName": "pages/manager-invitation/index", 356 "pathName": "pages/manager-invitation/index",
357 "query": "id=154", 357 "query": "id=154",
358 "scene": null 358 "scene": null
  359 + },
  360 + {
  361 + "id": -1,
  362 + "name": "pages/manager-invitation/review",
  363 + "pathName": "pages/manager-invitation/review",
  364 + "query": "id=154",
  365 + "scene": null
359 } 366 }
360 ] 367 ]
361 } 368 }