Showing
100 changed files
with
3003 additions
and
152 deletions
Too many changes to show.
To preserve performance only 100 of 100+ files are displayed.
| @@ -23,6 +23,13 @@ App({ | @@ -23,6 +23,13 @@ App({ | ||
| 23 | shareTicket:"", | 23 | shareTicket:"", |
| 24 | isAdmin:false,//是否运营人员 | 24 | isAdmin:false,//是否运营人员 |
| 25 | onLaunch: async function (opt) { | 25 | onLaunch: async function (opt) { |
| 26 | + if(wx.getLogManager){ | ||
| 27 | + const logger =wx.getLogManager() | ||
| 28 | + console.log.prototype=function(){ | ||
| 29 | + console.log(...arguments) | ||
| 30 | + logger.debug(...arguments) | ||
| 31 | + }; | ||
| 32 | + } | ||
| 26 | console.log('onLaunch',opt,wx.env); | 33 | console.log('onLaunch',opt,wx.env); |
| 27 | wx.removeStorage({key: 'formids'});//清理历史formids | 34 | wx.removeStorage({key: 'formids'});//清理历史formids |
| 28 | mta.App.init({ | 35 | mta.App.init({ |
| @@ -38,6 +38,27 @@ | @@ -38,6 +38,27 @@ | ||
| 38 | ], | 38 | ], |
| 39 | "subpackages": [ | 39 | "subpackages": [ |
| 40 | { | 40 | { |
| 41 | + "root": "pack-checkout", | ||
| 42 | + "name": "支付", | ||
| 43 | + "pages": [ | ||
| 44 | + "pages/index" | ||
| 45 | + ] | ||
| 46 | + }, | ||
| 47 | + { | ||
| 48 | + "root": "pack-activity", | ||
| 49 | + "name": "红包活动包", | ||
| 50 | + "pages": [ | ||
| 51 | + "pages/index", | ||
| 52 | + "pages/money", | ||
| 53 | + "pages/kefu", | ||
| 54 | + "pages/qiye", | ||
| 55 | + "pages/rule", | ||
| 56 | + "pages/yuding", | ||
| 57 | + "pack/pack", | ||
| 58 | + "pack/list" | ||
| 59 | + ] | ||
| 60 | + }, | ||
| 61 | + { | ||
| 41 | "root": "pack-cookbook", | 62 | "root": "pack-cookbook", |
| 42 | "name": "提前点餐包", | 63 | "name": "提前点餐包", |
| 43 | "pages": [ | 64 | "pages": [ |
| @@ -70,7 +91,9 @@ | @@ -70,7 +91,9 @@ | ||
| 70 | "pages/book/smsbatch/list", | 91 | "pages/book/smsbatch/list", |
| 71 | "pages/book/smsbatch/result", | 92 | "pages/book/smsbatch/result", |
| 72 | "pages/book/roomtype/roomtype", | 93 | "pages/book/roomtype/roomtype", |
| 73 | - "pages/book/b_reserve" | 94 | + "pages/book/b_reserve", |
| 95 | + "pages/checkout/index", | ||
| 96 | + "pages/checkout/invoice" | ||
| 74 | ] | 97 | ] |
| 75 | } | 98 | } |
| 76 | ], | 99 | ], |
| @@ -133,6 +156,10 @@ | @@ -133,6 +156,10 @@ | ||
| 133 | "haowu": { | 156 | "haowu": { |
| 134 | "version": "3.2.0", | 157 | "version": "3.2.0", |
| 135 | "provider": "wx56c8f077de74b07c" | 158 | "provider": "wx56c8f077de74b07c" |
| 159 | + }, | ||
| 160 | + "vktool": { | ||
| 161 | + "version": "2.1.9", | ||
| 162 | + "provider": "wxd3dc4206c76f14fc" | ||
| 136 | } | 163 | } |
| 137 | }, | 164 | }, |
| 138 | "navigateToMiniProgramAppIdList": [ | 165 | "navigateToMiniProgramAppIdList": [ |
| @@ -144,8 +171,7 @@ | @@ -144,8 +171,7 @@ | ||
| 144 | } | 171 | } |
| 145 | }, | 172 | }, |
| 146 | "usingComponents": { | 173 | "usingComponents": { |
| 147 | - "layout": "/components/layout", | ||
| 148 | - "fb": "/components/common/feedback" | 174 | + "layout": "/components/layout" |
| 149 | }, | 175 | }, |
| 150 | "debug": true, | 176 | "debug": true, |
| 151 | "sitemapLocation": "sitemap.json" | 177 | "sitemapLocation": "sitemap.json" |
| @@ -225,7 +225,8 @@ image{ | @@ -225,7 +225,8 @@ image{ | ||
| 225 | } | 225 | } |
| 226 | 226 | ||
| 227 | .Medium{ | 227 | .Medium{ |
| 228 | - font-weight: 400; | 228 | + font-family:PingFangSC-Medium,PingFang SC; |
| 229 | + font-weight: 500; | ||
| 229 | } | 230 | } |
| 230 | .button-none { | 231 | .button-none { |
| 231 | display: inline-block; | 232 | display: inline-block; |
| @@ -252,7 +253,7 @@ image{ | @@ -252,7 +253,7 @@ image{ | ||
| 252 | .more{ | 253 | .more{ |
| 253 | width: 12rpx; | 254 | width: 12rpx; |
| 254 | height: 22rpx; | 255 | height: 22rpx; |
| 255 | - background-image: url("http://qn.colorcun.com/custom/lite-yd/image/click.png"); | 256 | + background-image: url("http://nosqn.colorcun.com/custom/lite-yd/image/click.png"); |
| 256 | background-size: 100% 100%; | 257 | background-size: 100% 100%; |
| 257 | min-width: 12rpx; | 258 | min-width: 12rpx; |
| 258 | background-repeat: no-repeat; | 259 | background-repeat: no-repeat; |
components/activity/enter.js
0 → 100644
| 1 | +// components/activity/enter.js | ||
| 2 | +import util from '../../utils/util'; | ||
| 3 | +import App from '../../utils/api'; | ||
| 4 | +Component({ | ||
| 5 | + /** | ||
| 6 | + * 组件的属性列表 | ||
| 7 | + */ | ||
| 8 | + properties: { | ||
| 9 | + hasInHome:Boolean, | ||
| 10 | + floclass:String, | ||
| 11 | + }, | ||
| 12 | + | ||
| 13 | + /** | ||
| 14 | + * 组件的初始数据 | ||
| 15 | + */ | ||
| 16 | + data: { | ||
| 17 | + activity:null, | ||
| 18 | + displayType:0,//0|1 浮层|弹框 | ||
| 19 | + }, | ||
| 20 | + | ||
| 21 | + /** | ||
| 22 | + * 组件的方法列表 | ||
| 23 | + */ | ||
| 24 | + methods: { | ||
| 25 | + close(){ | ||
| 26 | + this.setData({ | ||
| 27 | + displayType:0, | ||
| 28 | + }) | ||
| 29 | + }, | ||
| 30 | + hasActivity(e){//有通知就可以参加活动 | ||
| 31 | + console.log('hasActivity.enter',e) | ||
| 32 | + this.getActivity() | ||
| 33 | + }, | ||
| 34 | + getActivity(){ | ||
| 35 | + //hasInHome 金额少于1000 只显示小图 | ||
| 36 | + App.Task.GetTaskInfo({pos:'home'}).then(res=>{ | ||
| 37 | + let time=new Date()/1000 | ||
| 38 | + let activity=res.data.activity | ||
| 39 | + if(!activity) return; | ||
| 40 | + activity.task=res.data.task | ||
| 41 | + let displayType=0//浮层 | ||
| 42 | + if(activity.status==1 && activity.starttime<time && time<activity.endtime){ | ||
| 43 | + if(activity.balance>1000){ | ||
| 44 | + if(activity.task.status!=2){ | ||
| 45 | + displayType=1//弹框 | ||
| 46 | + App.Task.SetTaskInfo({//领取任务 | ||
| 47 | + aid:activity.id, | ||
| 48 | + tid:activity.task.id, | ||
| 49 | + }) | ||
| 50 | + } | ||
| 51 | + }else{ | ||
| 52 | + if(!this.data.hasInHome){//非首页浮层也不显示 | ||
| 53 | + activity=null | ||
| 54 | + } | ||
| 55 | + } | ||
| 56 | + this.setData({ | ||
| 57 | + displayType:displayType, | ||
| 58 | + activity:activity | ||
| 59 | + }) | ||
| 60 | + } | ||
| 61 | + }) | ||
| 62 | + }, | ||
| 63 | + } | ||
| 64 | +}) |
components/activity/enter.json
0 → 100644
components/activity/enter.wxml
0 → 100644
| 1 | +<!--components/activity/enter.wxml--> | ||
| 2 | +<has bindevent="hasActivity"></has> | ||
| 3 | +<block wx:if="{{activity}}"> | ||
| 4 | + <view class="mask" wx:if="{{displayType==1}}"> | ||
| 5 | + <view class="close" bindtap="close"></view> | ||
| 6 | + <view class="activity" bindcatch="bindcatch"> | ||
| 7 | + <view class="enter"> | ||
| 8 | + <view class="enter-txt">请客订包间,就用周到安排</view> | ||
| 9 | + <view class="enter-hot flex-cc"> | ||
| 10 | + <view class="enter-icon lt"></view> | ||
| 11 | + <view class="enter-hot-txt">开工专享红包</view> | ||
| 12 | + <view class="enter-icon gt"></view> | ||
| 13 | + </view> | ||
| 14 | + </view> | ||
| 15 | + <view class="money"> | ||
| 16 | + <view class="money-tip flex-cc">订包间,消费抵现金</view> | ||
| 17 | + <view class="money-views flex-bc"> | ||
| 18 | + <view class="money-number">{{activity.task.price}}</view> | ||
| 19 | + <view class="money-dw">元</view> | ||
| 20 | + </view> | ||
| 21 | + <navigator url="/pack-activity/pages/index?id={{activity.id}}" | ||
| 22 | + bindtap="close" | ||
| 23 | + hover-class="navigator-hover"> | ||
| 24 | + <view class="money-button flex-cc">开心收下</view> | ||
| 25 | + </navigator> | ||
| 26 | + </view> | ||
| 27 | + </view> | ||
| 28 | + </view> | ||
| 29 | + <navigator wx:else="" hover-class="navigator-hover" | ||
| 30 | + url="/pack-activity/pages/index?id={{activity.id}}" > | ||
| 31 | + <view class="mask-tips {{floclass}}" style="background-image: url({{activity.task.flo_url}})"></view> | ||
| 32 | + </navigator> | ||
| 33 | +</block> | ||
| 34 | + |
components/activity/enter.wxss
0 → 100644
| 1 | +/* components/activity/enter.wxss */ | ||
| 2 | +@import "../../app.wxss"; | ||
| 3 | +.mask{ | ||
| 4 | + z-index: 99999; | ||
| 5 | +} | ||
| 6 | +.close{ | ||
| 7 | + width: 60rpx; | ||
| 8 | + height: 60rpx; | ||
| 9 | + background-image: url("http://nosqn.colorcun.com/activity/images/enter/close.png"); | ||
| 10 | + background-size: 100% 100%; | ||
| 11 | + margin-top: 200rpx; | ||
| 12 | + margin-left: calc(100% - 100rpx); | ||
| 13 | +} | ||
| 14 | +.activity{ | ||
| 15 | + position: relative; | ||
| 16 | + margin-top: 20rpx; | ||
| 17 | +} | ||
| 18 | +.enter{ | ||
| 19 | + width: 564rpx; | ||
| 20 | + height: 471.3rpx; | ||
| 21 | + background-image: url("http://nosqn.colorcun.com/activity/images/enter/enter.png"); | ||
| 22 | + background-size: 100% 100%; | ||
| 23 | + margin-left:calc(50% - 282rpx); | ||
| 24 | + box-sizing: border-box; | ||
| 25 | + padding-top: 146rpx; | ||
| 26 | +} | ||
| 27 | +.enter-txt{ | ||
| 28 | + height:34rpx; | ||
| 29 | + font-size:24rpx; | ||
| 30 | + font-weight:500; | ||
| 31 | + color:rgba(255,227,192,1); | ||
| 32 | + line-height:34rpx; | ||
| 33 | + letter-spacing:1rpx; | ||
| 34 | + text-align: center; | ||
| 35 | +} | ||
| 36 | +.enter-hot{ | ||
| 37 | + height:50rpx; | ||
| 38 | + font-size:36rpx; | ||
| 39 | + font-weight:600; | ||
| 40 | + color:rgba(255,227,192,1); | ||
| 41 | + line-height:50rpx; | ||
| 42 | + letter-spacing:2rpx; | ||
| 43 | + margin-top: 46rpx; | ||
| 44 | +} | ||
| 45 | +.enter-hot-txt{ | ||
| 46 | + width:236rpx; | ||
| 47 | + overflow: hidden; | ||
| 48 | + white-space: nowrap; | ||
| 49 | + margin: 0 20rpx 0; | ||
| 50 | + text-align: center; | ||
| 51 | +} | ||
| 52 | +.enter-icon{ | ||
| 53 | + background-size: 100% 100%; | ||
| 54 | + width:70rpx; | ||
| 55 | + height:16rpx; | ||
| 56 | +} | ||
| 57 | +.enter-icon.lt{ | ||
| 58 | + background-image: url("http://nosqn.colorcun.com/activity/images/enter/lt-1.png"); | ||
| 59 | +} | ||
| 60 | +.enter-icon.gt{ | ||
| 61 | + background-image: url("http://nosqn.colorcun.com/activity/images/enter/gt-1.png"); | ||
| 62 | +} | ||
| 63 | +.money{ | ||
| 64 | + width: 400rpx; | ||
| 65 | + height: 360rpx; | ||
| 66 | + background-image: url("http://nosqn.colorcun.com/activity/images/enter/money.png"); | ||
| 67 | + background-size: 100% 100%; | ||
| 68 | + margin-left:calc(50% - 200rpx + 13rpx); | ||
| 69 | + margin-top: -143rpx; | ||
| 70 | + box-sizing: border-box; | ||
| 71 | + padding-top: 40rpx; | ||
| 72 | +} | ||
| 73 | + | ||
| 74 | +.money-tip{ | ||
| 75 | + height:34rpx; | ||
| 76 | + font-size:24rpx; | ||
| 77 | + font-weight:600; | ||
| 78 | + color:rgba(204,17,39,1); | ||
| 79 | + line-height:34rpx; | ||
| 80 | + letter-spacing:1rpx; | ||
| 81 | +} | ||
| 82 | +.money-views{ | ||
| 83 | + height:106rpx; | ||
| 84 | + font-size:76rpx; | ||
| 85 | + font-weight:600; | ||
| 86 | + color:rgba(204,17,39,1); | ||
| 87 | + line-height:106rpx; | ||
| 88 | + letter-spacing:1rpx; | ||
| 89 | + margin-top: 16rpx; | ||
| 90 | +} | ||
| 91 | +.money-dw{ | ||
| 92 | + width:26rpx; | ||
| 93 | + height:34rpx; | ||
| 94 | + font-size:24rpx; | ||
| 95 | + font-weight:600; | ||
| 96 | + color:rgba(204,17,39,1); | ||
| 97 | + line-height:34rpx; | ||
| 98 | + letter-spacing:1rpx; | ||
| 99 | + margin-left: 10rpx; | ||
| 100 | +} | ||
| 101 | +.money-button{ | ||
| 102 | + width:290rpx; | ||
| 103 | + height:70rpx; | ||
| 104 | + background:linear-gradient(180deg,rgba(231,66,88,1) 0%,rgba(243,53,78,1) 100%); | ||
| 105 | + box-shadow:0rpx 2rpx 2rpx 0rpx rgba(209,33,54,1); | ||
| 106 | + border-radius:35rpx; | ||
| 107 | + font-size:32rpx; | ||
| 108 | + font-weight:600; | ||
| 109 | + color:rgba(255,227,192,1); | ||
| 110 | + letter-spacing:1rpx; | ||
| 111 | + text-shadow:0rpx 4rpx 8rpx rgba(207,31,51,1); | ||
| 112 | + position: relative; | ||
| 113 | + margin-top: 60rpx; | ||
| 114 | + margin-left: 54rpx; | ||
| 115 | +} | ||
| 116 | +.money-button:after{ | ||
| 117 | + display: block; | ||
| 118 | + position: absolute; | ||
| 119 | + content: ""; | ||
| 120 | + width:36rpx; | ||
| 121 | + height:36rpx; | ||
| 122 | + background-size: 100% 100%; | ||
| 123 | + background-image: url("http://nosqn.colorcun.com/activity/images/enter/more.png"); | ||
| 124 | + top:16rpx; | ||
| 125 | + right:28rpx; | ||
| 126 | +} | ||
| 127 | +.mask-tips{ | ||
| 128 | + width: 110rpx; | ||
| 129 | + height: 140rpx; | ||
| 130 | + position: fixed; | ||
| 131 | + left: 20rpx; | ||
| 132 | + bottom: 520rpx; | ||
| 133 | + /*background-image: url("http://nosqn.colorcun.com/activity/images/fl.png");*/ | ||
| 134 | + background-size: 100% 100%; | ||
| 135 | +} | ||
| 136 | +.mask-tips.detail_owner{ | ||
| 137 | + width: 120rpx; | ||
| 138 | + height: 160rpx; | ||
| 139 | + bottom: 320rpx; | ||
| 140 | +} |
components/activity/hasActivity.js
0 → 100644
| 1 | +// components/activity/hasActivity.js | ||
| 2 | +const TSPOS={ | ||
| 3 | + latitude:[ | ||
| 4 | + 39.8380681800, | ||
| 5 | + 39.4711852300, | ||
| 6 | + ], | ||
| 7 | + longitude:[ | ||
| 8 | + 117.9670715300, | ||
| 9 | + 118.4078979500, | ||
| 10 | + ] | ||
| 11 | +} | ||
| 12 | +Component({ | ||
| 13 | + /** | ||
| 14 | + * 组件的属性列表 | ||
| 15 | + */ | ||
| 16 | + properties: { | ||
| 17 | + | ||
| 18 | + }, | ||
| 19 | + | ||
| 20 | + /** | ||
| 21 | + * 组件的初始数据 | ||
| 22 | + */ | ||
| 23 | + data: { | ||
| 24 | + | ||
| 25 | + }, | ||
| 26 | + lifetimes: { | ||
| 27 | + // 生命周期函数,可以为函数,或一个在methods段中定义的方法名 | ||
| 28 | + attached: function () { | ||
| 29 | + this.selectComponent('#getpos').getPos(); | ||
| 30 | + }, | ||
| 31 | + moved: function () { }, | ||
| 32 | + detached: function () { }, | ||
| 33 | + }, | ||
| 34 | + /** | ||
| 35 | + * 组件的方法列表 | ||
| 36 | + */ | ||
| 37 | + methods: { | ||
| 38 | + onpos(e){ | ||
| 39 | + let location=e.detail | ||
| 40 | + location.latitude=39.6242016100 | ||
| 41 | + location.longitude=118.1174469000 | ||
| 42 | + //console.log('hasActivity',location); | ||
| 43 | + if(location.latitude && location.longitude){ | ||
| 44 | + TSPOS.latitude.push(location.latitude) | ||
| 45 | + TSPOS.longitude.push(location.longitude) | ||
| 46 | + TSPOS.latitude=TSPOS.latitude.sort(($1,$2)=>{ return $1-$2}) | ||
| 47 | + TSPOS.longitude=TSPOS.longitude.sort(($1,$2)=>{ return $1-$2}) | ||
| 48 | + console.log('hasActivity',TSPOS); | ||
| 49 | + if(TSPOS.latitude[1]==location.latitude | ||
| 50 | + && TSPOS.longitude[1]==location.longitude){ | ||
| 51 | + //console.log('hasActivity.event',location); | ||
| 52 | + this.triggerEvent('event',location) | ||
| 53 | + } | ||
| 54 | + } | ||
| 55 | + }, | ||
| 56 | + } | ||
| 57 | +}) |
components/activity/hasActivity.json
0 → 100644
components/activity/hasActivity.wxml
0 → 100644
components/activity/hasActivity.wxss
0 → 100644
| 1 | +/* components/activity/hasActivity.wxss */ |
components/activity/tips.js
0 → 100644
| 1 | +// components/activity/tips.js | ||
| 2 | +import util from '../../utils/util'; | ||
| 3 | +import App from '../../utils/api'; | ||
| 4 | +Component({ | ||
| 5 | + /** | ||
| 6 | + * 组件的属性列表 | ||
| 7 | + */ | ||
| 8 | + properties: { | ||
| 9 | + pos:String, | ||
| 10 | + str:String, | ||
| 11 | + cla:String, | ||
| 12 | + }, | ||
| 13 | + | ||
| 14 | + /** | ||
| 15 | + * 组件的初始数据 | ||
| 16 | + */ | ||
| 17 | + data: { | ||
| 18 | + activity:null, | ||
| 19 | + }, | ||
| 20 | + lifetimes: { | ||
| 21 | + // 生命周期函数,可以为函数,或一个在methods段中定义的方法名 | ||
| 22 | + attached: function () { }, | ||
| 23 | + moved: function () { }, | ||
| 24 | + detached: function () { }, | ||
| 25 | + }, | ||
| 26 | + /** | ||
| 27 | + * 组件的方法列表 | ||
| 28 | + */ | ||
| 29 | + methods: { | ||
| 30 | + hasActivity(e){//有通知就可以参加活动 | ||
| 31 | + console.log('hasActivity.enter',e) | ||
| 32 | + this.getActivity() | ||
| 33 | + }, | ||
| 34 | + getActivity(){ | ||
| 35 | + //hasInHome 金额少于1000 只显示小图 | ||
| 36 | + App.Task.GetTaskInfo({pos:this.data.pos}).then(res=>{ | ||
| 37 | + let time=new Date()/1000 | ||
| 38 | + let activity=res.data.activity | ||
| 39 | + activity.task=res.data.task | ||
| 40 | + if(activity.status==1 && activity.starttime<time && time<activity.endtime){ | ||
| 41 | + if(activity.balance>1000 && activity.task.status!=2){ | ||
| 42 | + //通知页面显示tips | ||
| 43 | + this.setData({ | ||
| 44 | + activity:activity, | ||
| 45 | + msg:this.data.str.replace("¥price","¥"+activity.task.price) | ||
| 46 | + }) | ||
| 47 | + } | ||
| 48 | + } | ||
| 49 | + }) | ||
| 50 | + }, | ||
| 51 | + } | ||
| 52 | +}) | ||
| 53 | + |
components/activity/tips.json
0 → 100644
components/activity/tips.wxml
0 → 100644
components/activity/tips.wxss
0 → 100644
| 1 | +/* components/activity/tips.wxss */ | ||
| 2 | +.tips{ | ||
| 3 | + position: fixed; | ||
| 4 | + z-index: 9999; | ||
| 5 | + background:rgba(84,83,84,0.8); | ||
| 6 | + font-size:24rpx; | ||
| 7 | + font-weight:500; | ||
| 8 | + color:rgba(255,255,255,1); | ||
| 9 | +} | ||
| 10 | +.tips .msg{ | ||
| 11 | + height: 70rpx; | ||
| 12 | + line-height: 70rpx; | ||
| 13 | + padding: 0 24rpx; | ||
| 14 | + position: relative; | ||
| 15 | +} | ||
| 16 | +.jiao{ | ||
| 17 | + width: 26rpx; | ||
| 18 | + height: 10rpx; | ||
| 19 | + background-image: url("http://nosqn.colorcun.com/activity/images/jiao2.png"); | ||
| 20 | + background-size: 100% 100%; | ||
| 21 | + position: absolute; | ||
| 22 | + bottom: -10rpx; | ||
| 23 | + left:30rpx; | ||
| 24 | +} | ||
| 25 | +.tips.reserve-detail{ | ||
| 26 | + bottom:122rpx; | ||
| 27 | + right:30rpx; | ||
| 28 | +} | ||
| 29 | +.tips.reserve-detail .jiao{ | ||
| 30 | + right:80rpx; | ||
| 31 | + left:auto; | ||
| 32 | +} | ||
| 33 | +.tips.reserve-detail .msg{ | ||
| 34 | + color: #FEDE68; | ||
| 35 | +} | ||
| 36 | +.tips.reserve-detail .msg:before{ | ||
| 37 | + content: "现在预订即可获得"; | ||
| 38 | + color:rgba(255,255,255,1); | ||
| 39 | +} | ||
| 40 | +.tips.reserve-detail .msg:after{ | ||
| 41 | + content: "红包"; | ||
| 42 | + color:rgba(255,255,255,1); | ||
| 43 | +} | ||
| 44 | + | ||
| 45 | +.tips.detail-invitation{ | ||
| 46 | + bottom:112rpx; | ||
| 47 | + left:28rpx; | ||
| 48 | +} | ||
| 49 | +.tips.detail-invitation .msg{ | ||
| 50 | + color: #ECD9B7; | ||
| 51 | + font-weight: bold; | ||
| 52 | +} | ||
| 53 | +.tips.detail-invitation .msg:before{ | ||
| 54 | + content: "订包间即可获得"; | ||
| 55 | + color:rgba(236,217,183,1); | ||
| 56 | + font-weight: normal; | ||
| 57 | +} | ||
| 58 | +.tips.detail-invitation .msg:after{ | ||
| 59 | + content: "红包"; | ||
| 60 | + color:rgba(236,217,183,1); | ||
| 61 | + font-weight: normal; | ||
| 62 | +} | ||
| 63 | +.tips.detail-invitation .jiao{ | ||
| 64 | + left:80rpx; | ||
| 65 | +} |
components/common/feedback.wxml
deleted
100644 → 0
components/common/feedback.wxss
deleted
100644 → 0
| 1 | -/* components/common/feedback.wxss */ | ||
| 2 | -.feedback{ | ||
| 3 | - position: fixed; | ||
| 4 | - right: 20rpx; | ||
| 5 | - box-sizing: border-box; | ||
| 6 | - width: 80rpx; | ||
| 7 | - height: 80rpx; | ||
| 8 | - top:50%; | ||
| 9 | - background-color: rgba(200,0,0,0.2); | ||
| 10 | - z-index: 9999; | ||
| 11 | - padding: 0; | ||
| 12 | - line-height: 80rpx; | ||
| 13 | - border-radius: 50%; | ||
| 14 | -} | ||
| 15 | -.button-none{ | ||
| 16 | - box-sizing: border-box; | ||
| 17 | - width: 80rpx; | ||
| 18 | - height: 80rpx; | ||
| 19 | - background-color: rgba(200,0,0,0.2); | ||
| 20 | - color: #fefefe; | ||
| 21 | - font-size: 24rpx; | ||
| 22 | - font-weight: bold; | ||
| 23 | - border-radius: 50%; | ||
| 24 | - line-height: 80rpx; | ||
| 25 | - padding: 0; | ||
| 26 | -} |
| @@ -4,7 +4,7 @@ | @@ -4,7 +4,7 @@ | ||
| 4 | <icon type="success_no_circle" class="icon-success" color="#fff" size="40"></icon> | 4 | <icon type="success_no_circle" class="icon-success" color="#fff" size="40"></icon> |
| 5 | </block> | 5 | </block> |
| 6 | <block wx:else> | 6 | <block wx:else> |
| 7 | - <image src="http://qn.colorcun.com/custom/lite/image/{{imgurl}}" class="reminder-image"></image> | 7 | + <image src="http://nosqn.colorcun.com/custom/lite/image/{{imgurl}}" class="reminder-image"></image> |
| 8 | </block> | 8 | </block> |
| 9 | <view class="white smooth fsize16" style="line-height:1.2;margin-top:{{icon==true ? '-10rpx' : '20rpx'}};padding: 0 10px;text-align: center;">{{action_title}}</view> | 9 | <view class="white smooth fsize16" style="line-height:1.2;margin-top:{{icon==true ? '-10rpx' : '20rpx'}};padding: 0 10px;text-align: center;">{{action_title}}</view> |
| 10 | <view class="white smooth fsize16" style="line-height:1.2;margin-top:10rpx;">{{action_so}}</view> | 10 | <view class="white smooth fsize16" style="line-height:1.2;margin-top:10rpx;">{{action_so}}</view> |
| @@ -41,22 +41,22 @@ | @@ -41,22 +41,22 @@ | ||
| 41 | height: 100%; | 41 | height: 100%; |
| 42 | } | 42 | } |
| 43 | .tabBar .reserve{ | 43 | .tabBar .reserve{ |
| 44 | - background-image: url("http://qn.colorcun.com/manager-invitation/wx2/%E9%80%9A%E7%9F%A5%E5%AE%A2%E6%88%B7-%E6%9C%AA%E7%82%B9%E5%87%BB.png"); | 44 | + background-image: url("http://nosqn.colorcun.com/manager-invitation/wx2/%E9%80%9A%E7%9F%A5%E5%AE%A2%E6%88%B7-%E6%9C%AA%E7%82%B9%E5%87%BB.png"); |
| 45 | } | 45 | } |
| 46 | .tabBar .checked .reserve{ | 46 | .tabBar .checked .reserve{ |
| 47 | - background-image: url("http://qn.colorcun.com/manager-invitation/wx2/%E9%80%9A%E7%9F%A5%E5%AE%A2%E6%88%B7-%E7%82%B9%E5%87%BB.png"); | 47 | + background-image: url("http://nosqn.colorcun.com/manager-invitation/wx2/%E9%80%9A%E7%9F%A5%E5%AE%A2%E6%88%B7-%E7%82%B9%E5%87%BB.png"); |
| 48 | } | 48 | } |
| 49 | .tabBar .book{ | 49 | .tabBar .book{ |
| 50 | - background-image: url("http://qn.colorcun.com/custom/lite-yd/image/seller-tabs2-book.png"); | 50 | + background-image: url("http://nosqn.colorcun.com/custom/lite-yd/image/seller-tabs2-book.png"); |
| 51 | } | 51 | } |
| 52 | .tabBar .checked .book { | 52 | .tabBar .checked .book { |
| 53 | - background-image: url("http://qn.colorcun.com/custom/lite-yd/image/seller-tabs2-book-checked.png"); | 53 | + background-image: url("http://nosqn.colorcun.com/custom/lite-yd/image/seller-tabs2-book-checked.png"); |
| 54 | } | 54 | } |
| 55 | .tabBar .setting{ | 55 | .tabBar .setting{ |
| 56 | width: 34rpx; | 56 | width: 34rpx; |
| 57 | height: 34rpx; | 57 | height: 34rpx; |
| 58 | - background-image: url("http://qn.colorcun.com/manager-invitation/wx2/%E6%88%91%E7%9A%84.png"); | 58 | + background-image: url("http://nosqn.colorcun.com/manager-invitation/wx2/%E6%88%91%E7%9A%84.png"); |
| 59 | } | 59 | } |
| 60 | .tabBar .checked .setting { | 60 | .tabBar .checked .setting { |
| 61 | - background-image: url("http://qn.colorcun.com/manager-invitation/wx2/%E6%88%91%E7%9A%84-%E9%80%89%E4%B8%AD.png"); | 61 | + background-image: url("http://nosqn.colorcun.com/manager-invitation/wx2/%E6%88%91%E7%9A%84-%E9%80%89%E4%B8%AD.png"); |
| 62 | } | 62 | } |
| @@ -6,11 +6,11 @@ | @@ -6,11 +6,11 @@ | ||
| 6 | <view class="opt flex-ll"> | 6 | <view class="opt flex-ll"> |
| 7 | <view class="back flex-vc" bindtap="back" wx:if="{{disBack}}"> | 7 | <view class="back flex-vc" bindtap="back" wx:if="{{disBack}}"> |
| 8 | <image class="back-image" | 8 | <image class="back-image" |
| 9 | - src="http://qn.colorcun.com/custom/lite-yd/image/back{{backgroundColor!='#ffffff'?'-light':''}}.png"></image> | 9 | + src="http://nosqn.colorcun.com/custom/lite-yd/image/back{{backgroundColor!='#ffffff'?'-light':''}}.png"></image> |
| 10 | </view> | 10 | </view> |
| 11 | <view class="home flex-vc" bindtap="home" wx:if="{{disHome}}"> | 11 | <view class="home flex-vc" bindtap="home" wx:if="{{disHome}}"> |
| 12 | <image class="home-image" | 12 | <image class="home-image" |
| 13 | - src="http://qn.colorcun.com/custom/lite-yd/image/home{{backgroundColor!='#ffffff'?'-light':''}}.svg"></image> | 13 | + src="http://nosqn.colorcun.com/custom/lite-yd/image/home{{backgroundColor!='#ffffff'?'-light':''}}.svg"></image> |
| 14 | </view> | 14 | </view> |
| 15 | </view> | 15 | </view> |
| 16 | <view class="title" bindtap="home"> | 16 | <view class="title" bindtap="home"> |
| @@ -23,5 +23,4 @@ | @@ -23,5 +23,4 @@ | ||
| 23 | 23 | ||
| 24 | </view> | 24 | </view> |
| 25 | </view> | 25 | </view> |
| 26 | -</view> | ||
| 27 | -<fb></fb> | ||
| 26 | +</view> |
| 1 | <view wx:if="{{!network}}" class="no-network"> | 1 | <view wx:if="{{!network}}" class="no-network"> |
| 2 | <view class="no-network-box flex-vc" style="background:#fff;width:100%;height:500px;"> | 2 | <view class="no-network-box flex-vc" style="background:#fff;width:100%;height:500px;"> |
| 3 | - <image src="http://qn.colorcun.com/custom/lite/image/reminder.png" class="network-image"></image> | 3 | + <image src="http://nosqn.colorcun.com/custom/lite/image/reminder.png" class="network-image"></image> |
| 4 | <view style="font-size:30rpx;margin-top:10rpx;color:#666;">网络不给力呀~</view> | 4 | <view style="font-size:30rpx;margin-top:10rpx;color:#666;">网络不给力呀~</view> |
| 5 | <button type="warn" bindtap="refresh" style="margin-top:120px; width: 70%; background-color: #E14553; font-size: 34rpx; height: 80rpx;"> | 5 | <button type="warn" bindtap="refresh" style="margin-top:120px; width: 70%; background-color: #E14553; font-size: 34rpx; height: 80rpx;"> |
| 6 | 再试一次 | 6 | 再试一次 |
| @@ -5,7 +5,7 @@ | @@ -5,7 +5,7 @@ | ||
| 5 | <cover-view class="close"></cover-view> | 5 | <cover-view class="close"></cover-view> |
| 6 | <cover-view class="title Semibold">选择菜系</cover-view> | 6 | <cover-view class="title Semibold">选择菜系</cover-view> |
| 7 | <cover-view class="close"> | 7 | <cover-view class="close"> |
| 8 | - <cover-image src="http://qn.colorcun.com/reserve/images/%E5%85%B3%20%20%E9%97%AD.png"></cover-image> | 8 | + <cover-image src="http://nosqn.colorcun.com/reserve/images/%E5%85%B3%20%20%E9%97%AD.png"></cover-image> |
| 9 | </cover-view> | 9 | </cover-view> |
| 10 | </cover-view> | 10 | </cover-view> |
| 11 | <cover-view class="caixi-view flex-auto-ll"> | 11 | <cover-view class="caixi-view flex-auto-ll"> |
| @@ -13,7 +13,7 @@ | @@ -13,7 +13,7 @@ | ||
| 13 | bindtap="active" data-index="{{index}}" | 13 | bindtap="active" data-index="{{index}}" |
| 14 | wx:for="{{multiArray[0]}}" wx:key="multiArray.key"> | 14 | wx:for="{{multiArray[0]}}" wx:key="multiArray.key"> |
| 15 | {{item}} | 15 | {{item}} |
| 16 | - <cover-image class="number" wx:if="{{index>=1 && index<4}}" src="http://qn.colorcun.com/reserve/images/cx{{index}}.png"></cover-image> | 16 | + <cover-image class="number" wx:if="{{index>=1 && index<4}}" src="http://nosqn.colorcun.com/reserve/images/cx{{index}}.png"></cover-image> |
| 17 | </cover-view> | 17 | </cover-view> |
| 18 | </cover-view> | 18 | </cover-view> |
| 19 | </cover-view> | 19 | </cover-view> |
| @@ -25,7 +25,7 @@ | @@ -25,7 +25,7 @@ | ||
| 25 | text-align: center; | 25 | text-align: center; |
| 26 | } | 26 | } |
| 27 | .discount-name .close{ | 27 | .discount-name .close{ |
| 28 | - background-image: url("http://qn.colorcun.com/reserve/images/%E5%85%B3%20%20%E9%97%AD.png"); | 28 | + background-image: url("http://nosqn.colorcun.com/reserve/images/%E5%85%B3%20%20%E9%97%AD.png"); |
| 29 | width: 32rpx; | 29 | width: 32rpx; |
| 30 | height: 32rpx; | 30 | height: 32rpx; |
| 31 | position: absolute; | 31 | position: absolute; |
| @@ -49,7 +49,7 @@ | @@ -49,7 +49,7 @@ | ||
| 49 | width: 100%; | 49 | width: 100%; |
| 50 | max-width: 690rpx; | 50 | max-width: 690rpx; |
| 51 | height: 190rpx; | 51 | height: 190rpx; |
| 52 | - background-image: url("http://qn.colorcun.com/reserve/images/%E4%BC%98%E6%83%A0%E5%88%B8.png"); | 52 | + background-image: url("http://nosqn.colorcun.com/reserve/images/%E4%BC%98%E6%83%A0%E5%88%B8.png"); |
| 53 | margin-top: 40rpx; | 53 | margin-top: 40rpx; |
| 54 | } | 54 | } |
| 55 | .item .left{ | 55 | .item .left{ |
| @@ -38,7 +38,7 @@ | @@ -38,7 +38,7 @@ | ||
| 38 | .timePicker .close{ | 38 | .timePicker .close{ |
| 39 | width: 32rpx; | 39 | width: 32rpx; |
| 40 | height: 32rpx; | 40 | height: 32rpx; |
| 41 | - background-image: url("http://qn.colorcun.com/reserve/images/ddate-close.png"); | 41 | + background-image: url("http://nosqn.colorcun.com/reserve/images/ddate-close.png"); |
| 42 | background-size: 100% 100%; | 42 | background-size: 100% 100%; |
| 43 | } | 43 | } |
| 44 | .title{ | 44 | .title{ |
| @@ -28,7 +28,7 @@ | @@ -28,7 +28,7 @@ | ||
| 28 | margin-bottom: 60rpx; | 28 | margin-bottom: 60rpx; |
| 29 | } | 29 | } |
| 30 | .close{ | 30 | .close{ |
| 31 | - background-image: url("http://qn.colorcun.com/reserve/images/close.png"); | 31 | + background-image: url("http://nosqn.colorcun.com/reserve/images/close.png"); |
| 32 | background-size: 100% 100%; | 32 | background-size: 100% 100%; |
| 33 | width: 32rpx; | 33 | width: 32rpx; |
| 34 | height: 32rpx; | 34 | height: 32rpx; |
| @@ -48,7 +48,7 @@ | @@ -48,7 +48,7 @@ | ||
| 48 | margin-right: 20rpx; | 48 | margin-right: 20rpx; |
| 49 | width: 22rpx; | 49 | width: 22rpx; |
| 50 | height:26rpx; | 50 | height:26rpx; |
| 51 | - background-image: url("http://qn.colorcun.com/reserve/images/addr.png"); | 51 | + background-image: url("http://nosqn.colorcun.com/reserve/images/addr.png"); |
| 52 | background-size: 100% 100%; | 52 | background-size: 100% 100%; |
| 53 | min-width: 22rpx; | 53 | min-width: 22rpx; |
| 54 | } | 54 | } |
| @@ -63,7 +63,7 @@ | @@ -63,7 +63,7 @@ | ||
| 63 | padding: 20rpx; | 63 | padding: 20rpx; |
| 64 | } | 64 | } |
| 65 | .item-1 .icon { | 65 | .item-1 .icon { |
| 66 | - background-image: url("http://qn.colorcun.com/reserve/images/sea-se.png"); | 66 | + background-image: url("http://nosqn.colorcun.com/reserve/images/sea-se.png"); |
| 67 | width: 36rpx; | 67 | width: 36rpx; |
| 68 | height: 36rpx; | 68 | height: 36rpx; |
| 69 | min-width: 36rpx; | 69 | min-width: 36rpx; |
| @@ -100,13 +100,13 @@ | @@ -100,13 +100,13 @@ | ||
| 100 | width: 20rpx; | 100 | width: 20rpx; |
| 101 | height: 24rpx; | 101 | height: 24rpx; |
| 102 | min-width: 20rpx; | 102 | min-width: 20rpx; |
| 103 | - background-image: url("http://qn.colorcun.com/reserve/images/addr.png"); | 103 | + background-image: url("http://nosqn.colorcun.com/reserve/images/addr.png"); |
| 104 | } | 104 | } |
| 105 | .history .icon-1{ | 105 | .history .icon-1{ |
| 106 | width: 24rpx; | 106 | width: 24rpx; |
| 107 | height: 18rpx; | 107 | height: 18rpx; |
| 108 | min-width: 24rpx; | 108 | min-width: 24rpx; |
| 109 | - background-image: url("http://qn.colorcun.com/reserve/images/his-se.png"); | 109 | + background-image: url("http://nosqn.colorcun.com/reserve/images/his-se.png"); |
| 110 | } | 110 | } |
| 111 | .activity{ | 111 | .activity{ |
| 112 | position: relative; | 112 | position: relative; |
| @@ -118,7 +118,7 @@ | @@ -118,7 +118,7 @@ | ||
| 118 | width: 32rpx; | 118 | width: 32rpx; |
| 119 | margin-left: 10rpx; | 119 | margin-left: 10rpx; |
| 120 | min-width: 32rpx; | 120 | min-width: 32rpx; |
| 121 | - background-image: url("http://qn.colorcun.com/reserve/images/huizi.png"); | 121 | + background-image: url("http://nosqn.colorcun.com/reserve/images/huizi.png"); |
| 122 | background-size: 100% 100%; | 122 | background-size: 100% 100%; |
| 123 | top:4rpx; | 123 | top:4rpx; |
| 124 | } | 124 | } |
| @@ -3,7 +3,7 @@ | @@ -3,7 +3,7 @@ | ||
| 3 | <cover-view class="mask" hidden="{{hidden}}"> | 3 | <cover-view class="mask" hidden="{{hidden}}"> |
| 4 | <cover-view class="header flex-lr" style="height: {{titleBarHeight}}px;padding-top: {{statusBarHeight}}px;" catchtap="hide"> | 4 | <cover-view class="header flex-lr" style="height: {{titleBarHeight}}px;padding-top: {{statusBarHeight}}px;" catchtap="hide"> |
| 5 | <cover-view class="searchList flex-ll"> | 5 | <cover-view class="searchList flex-ll"> |
| 6 | - <cover-image class="icon" src="http://qn.colorcun.com/reserve/images/hasMap.png"></cover-image> | 6 | + <cover-image class="icon" src="http://nosqn.colorcun.com/reserve/images/hasMap.png"></cover-image> |
| 7 | <cover-view class="title">地图</cover-view> | 7 | <cover-view class="title">地图</cover-view> |
| 8 | </cover-view> | 8 | </cover-view> |
| 9 | <cover-view class="title" style="line-height: {{titleBarHeight}}px;height:{{titleBarHeight}}px;">一键订</cover-view> | 9 | <cover-view class="title" style="line-height: {{titleBarHeight}}px;height:{{titleBarHeight}}px;">一键订</cover-view> |
| @@ -85,11 +85,11 @@ | @@ -85,11 +85,11 @@ | ||
| 85 | margin-right: 10rpx; | 85 | margin-right: 10rpx; |
| 86 | } | 86 | } |
| 87 | .picker .more{ | 87 | .picker .more{ |
| 88 | - background-image: url("http://qn.colorcun.com/reserve/images/%E8%8F%9C%E7%B3%BB.png"); | 88 | + background-image: url("http://nosqn.colorcun.com/reserve/images/%E8%8F%9C%E7%B3%BB.png"); |
| 89 | width: 12rpx; | 89 | width: 12rpx; |
| 90 | height: 16rpx; | 90 | height: 16rpx; |
| 91 | min-width:12rpx; | 91 | min-width:12rpx; |
| 92 | } | 92 | } |
| 93 | .tags.active .picker .more{ | 93 | .tags.active .picker .more{ |
| 94 | - background-image: url("http://qn.colorcun.com/reserve/images/%E8%8F%9C%E7%B3%BB%E9%80%89%E4%B8%AD.png"); | 94 | + background-image: url("http://nosqn.colorcun.com/reserve/images/%E8%8F%9C%E7%B3%BB%E9%80%89%E4%B8%AD.png"); |
| 95 | } | 95 | } |
| @@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
| 2 | <cover-view class="seller flex-ll {{sellerStyle}}" > | 2 | <cover-view class="seller flex-ll {{sellerStyle}}" > |
| 3 | <cover-view class="image"> | 3 | <cover-view class="image"> |
| 4 | <cover-image mode="aspectFill" | 4 | <cover-image mode="aspectFill" |
| 5 | - src="{{seller.seller_image?seller.seller_image+'?imageView2/2/w/320/interlace/0/q/100':'http://qn.colorcun.com/custom/lite-online/image/seller-def.png'}}"></cover-image> | 5 | + src="{{seller.seller_image?seller.seller_image+'?imageView2/2/w/320/interlace/0/q/100':'http://nosqn.colorcun.com/custom/lite-online/image/seller-def.png'}}"></cover-image> |
| 6 | <view class="room_num" wx:if="{{seller.room_num>0}}">{{seller.room_num}}个包间</view> | 6 | <view class="room_num" wx:if="{{seller.room_num>0}}">{{seller.room_num}}个包间</view> |
| 7 | </cover-view> | 7 | </cover-view> |
| 8 | <cover-view class="info flex-tb"> | 8 | <cover-view class="info flex-tb"> |
| @@ -36,7 +36,7 @@ | @@ -36,7 +36,7 @@ | ||
| 36 | <block wx:if="{{seller.average>0 && hasAverage}}">¥{{seller.average}}元/人</block> | 36 | <block wx:if="{{seller.average>0 && hasAverage}}">¥{{seller.average}}元/人</block> |
| 37 | </cover-view> | 37 | </cover-view> |
| 38 | <cover-view class="phone flex-ll" id="reserve-button" catchtap="tapButton" data-type="oncall"> | 38 | <cover-view class="phone flex-ll" id="reserve-button" catchtap="tapButton" data-type="oncall"> |
| 39 | - <cover-image src="http://qn.colorcun.com/custom/lite-online/image/phone.png"></cover-image> | 39 | + <cover-image src="http://nosqn.colorcun.com/custom/lite-online/image/phone.png"></cover-image> |
| 40 | <cover-view class="reserve-text">预订</cover-view> | 40 | <cover-view class="reserve-text">预订</cover-view> |
| 41 | </cover-view> | 41 | </cover-view> |
| 42 | </cover-view> | 42 | </cover-view> |
| @@ -168,7 +168,7 @@ | @@ -168,7 +168,7 @@ | ||
| 168 | white-space:nowrap; | 168 | white-space:nowrap; |
| 169 | } | 169 | } |
| 170 | .activity-swiper .icon-hui{ | 170 | .activity-swiper .icon-hui{ |
| 171 | - background-image: url("http://qn.colorcun.com/reserve/images/%E6%83%A0.png"); | 171 | + background-image: url("http://nosqn.colorcun.com/reserve/images/%E6%83%A0.png"); |
| 172 | background-size: 100% 100%; | 172 | background-size: 100% 100%; |
| 173 | height: 32rpx; | 173 | height: 32rpx; |
| 174 | width: 32rpx; | 174 | width: 32rpx; |
| @@ -3,7 +3,7 @@ | @@ -3,7 +3,7 @@ | ||
| 3 | <view class="seller flex-ll {{sellerStyle}}" > | 3 | <view class="seller flex-ll {{sellerStyle}}" > |
| 4 | <view class="image"> | 4 | <view class="image"> |
| 5 | <image mode="aspectFill" | 5 | <image mode="aspectFill" |
| 6 | - src="{{seller.seller_image?seller.seller_image+'?imageView2/2/w/320/interlace/0/q/100':'http://qn.colorcun.com/reserve/images/3x/%E6%9A%82%E6%97%A0.png'}}"></image> | 6 | + src="{{seller.seller_image?seller.seller_image+'?imageView2/2/w/320/interlace/0/q/100':'http://nosqn.colorcun.com/reserve/images/3x/%E6%9A%82%E6%97%A0.png'}}"></image> |
| 7 | <view class="room_num" wx:if="{{false}}">{{seller.room_num}}个包间</view> | 7 | <view class="room_num" wx:if="{{false}}">{{seller.room_num}}个包间</view> |
| 8 | <view class="room_num hasBrand Semibold" wx:if="{{hasBrand && seller.brand}}">{{seller.brand.name}}</view> | 8 | <view class="room_num hasBrand Semibold" wx:if="{{hasBrand && seller.brand}}">{{seller.brand.name}}</view> |
| 9 | </view> | 9 | </view> |
| @@ -11,7 +11,8 @@ | @@ -11,7 +11,8 @@ | ||
| 11 | <view style="max-width: 100%;width: 100%;"> | 11 | <view style="max-width: 100%;width: 100%;"> |
| 12 | <view class="name Semibold flex-ll"> | 12 | <view class="name Semibold flex-ll"> |
| 13 | <view class="sellername">{{seller.sellername}}</view> | 13 | <view class="sellername">{{seller.sellername}}</view> |
| 14 | - <view class="ActivityShort" wx:if="{{hasActivityShort && seller.activity.length>0}}"></view> | 14 | + <view class="ActivityShort" wx:if="{{hasActivityShort && seller.is_discount>0}}"></view> |
| 15 | + <view class="isopen_md" wx:if="{{hasActivityShort && seller.isopen_md==1}}">买单</view> | ||
| 15 | </view> | 16 | </view> |
| 16 | <view wx:if="{{hasSlogan && seller.slogan}}" class="slogan">“{{seller.slogan}}”</view> | 17 | <view wx:if="{{hasSlogan && seller.slogan}}" class="slogan">“{{seller.slogan}}”</view> |
| 17 | <view class="text flex-ll" wx:if="{{seller.cate.length>0}}"> | 18 | <view class="text flex-ll" wx:if="{{seller.cate.length>0}}"> |
| @@ -177,7 +177,7 @@ | @@ -177,7 +177,7 @@ | ||
| 177 | white-space:nowrap; | 177 | white-space:nowrap; |
| 178 | } | 178 | } |
| 179 | .activity-swiper .icon-hui{ | 179 | .activity-swiper .icon-hui{ |
| 180 | - background-image: url("http://qn.colorcun.com/reserve/images/%E6%83%A0.png"); | 180 | + background-image: url("http://nosqn.colorcun.com/reserve/images/%E6%83%A0.png"); |
| 181 | background-size: 100% 100%; | 181 | background-size: 100% 100%; |
| 182 | height: 32rpx; | 182 | height: 32rpx; |
| 183 | width: 32rpx; | 183 | width: 32rpx; |
| @@ -194,7 +194,7 @@ | @@ -194,7 +194,7 @@ | ||
| 194 | width: 32rpx; | 194 | width: 32rpx; |
| 195 | margin-left: 10rpx; | 195 | margin-left: 10rpx; |
| 196 | min-width: 32rpx; | 196 | min-width: 32rpx; |
| 197 | - background-image: url("http://qn.colorcun.com/reserve/images/huizi.png"); | 197 | + background-image: url("http://nosqn.colorcun.com/reserve/images/huizi.png"); |
| 198 | background-size: 100% 100%; | 198 | background-size: 100% 100%; |
| 199 | } | 199 | } |
| 200 | .seller .image .room_num.hasBrand{ | 200 | .seller .image .room_num.hasBrand{ |
| @@ -228,9 +228,22 @@ | @@ -228,9 +228,22 @@ | ||
| 228 | max-width: 320rpx; | 228 | max-width: 320rpx; |
| 229 | } | 229 | } |
| 230 | .reserve-icon{ | 230 | .reserve-icon{ |
| 231 | - background-image: url("http://qn.colorcun.com/reserve/images/ding.png"); | 231 | + background-image: url("http://nosqn.colorcun.com/reserve/images/ding.png"); |
| 232 | width: 24rpx; | 232 | width: 24rpx; |
| 233 | height: 24rpx; | 233 | height: 24rpx; |
| 234 | background-size: 100% 100%; | 234 | background-size: 100% 100%; |
| 235 | margin-right: 10rpx; | 235 | margin-right: 10rpx; |
| 236 | +} | ||
| 237 | +.isopen_md{ | ||
| 238 | + width:52rpx; | ||
| 239 | + height:32rpx; | ||
| 240 | + border-radius:4rpx; | ||
| 241 | + border:2rpx solid rgba(146,231,61,1); | ||
| 242 | + font-size:20rpx; | ||
| 243 | + font-family:PingFangSC-Semibold,PingFang SC; | ||
| 244 | + font-weight:600; | ||
| 245 | + color:rgba(125,199,66,1); | ||
| 246 | + line-height:32rpx; | ||
| 247 | + text-align: center; | ||
| 248 | + margin-left: 6rpx; | ||
| 236 | } | 249 | } |
| @@ -11,7 +11,7 @@ | @@ -11,7 +11,7 @@ | ||
| 11 | <cover-view class="type">潮汕火锅</cover-view> | 11 | <cover-view class="type">潮汕火锅</cover-view> |
| 12 | </cover-view> | 12 | </cover-view> |
| 13 | <cover-view class="info flex-ll"> | 13 | <cover-view class="info flex-ll"> |
| 14 | - <cover-image src="http://qn.colorcun.com/custom/lite-yd/image/add-act.png" style="width: 30rpx; height: 30rpx; background-color: #F4A22A"></cover-image> | 14 | + <cover-image src="http://nosqn.colorcun.com/custom/lite-yd/image/add-act.png" style="width: 30rpx; height: 30rpx; background-color: #F4A22A"></cover-image> |
| 15 | <cover-view class="type">在线订座买单8折起</cover-view> | 15 | <cover-view class="type">在线订座买单8折起</cover-view> |
| 16 | </cover-view> | 16 | </cover-view> |
| 17 | <cover-view class="info flex-ll"> | 17 | <cover-view class="info flex-ll"> |
| @@ -19,7 +19,7 @@ | @@ -19,7 +19,7 @@ | ||
| 19 | <cover-view class="type">赠送精美小菜和饮品</cover-view> | 19 | <cover-view class="type">赠送精美小菜和饮品</cover-view> |
| 20 | </cover-view> | 20 | </cover-view> |
| 21 | <cover-view class="info flex-ll" style="margin-top: 22rpx;"> | 21 | <cover-view class="info flex-ll" style="margin-top: 22rpx;"> |
| 22 | - <cover-image src="http://qn.colorcun.com/custom/lite-yd/image/gps-icon.png" style="width: 26rpx; height: 32rpx;"></cover-image> | 22 | + <cover-image src="http://nosqn.colorcun.com/custom/lite-yd/image/gps-icon.png" style="width: 26rpx; height: 32rpx;"></cover-image> |
| 23 | <cover-view class="type" catchtap="lookLocation">{{seller.map_address}}</cover-view> | 23 | <cover-view class="type" catchtap="lookLocation">{{seller.map_address}}</cover-view> |
| 24 | </cover-view> | 24 | </cover-view> |
| 25 | <cover-view class="body"></cover-view> | 25 | <cover-view class="body"></cover-view> |
components/reserve/seller/discount.js
0 → 100644
| 1 | +// components/reserve/discount.js | ||
| 2 | +import App from '../../../utils/api' | ||
| 3 | +Component({ | ||
| 4 | + /** | ||
| 5 | + * 组件的属性列表 | ||
| 6 | + */ | ||
| 7 | + properties: { | ||
| 8 | + cla:String, | ||
| 9 | + seller:{ | ||
| 10 | + type:Object, | ||
| 11 | + value:{} | ||
| 12 | + } | ||
| 13 | + }, | ||
| 14 | + | ||
| 15 | + /** | ||
| 16 | + * 组件的初始数据 | ||
| 17 | + */ | ||
| 18 | + data: { | ||
| 19 | + display:false, | ||
| 20 | + hiddenAni:'', | ||
| 21 | + mycards:[], | ||
| 22 | + money:0,//最大优惠 | ||
| 23 | + red_envelopes_price:0,//获得金额 | ||
| 24 | + }, | ||
| 25 | + lifetimes: { | ||
| 26 | + // 生命周期函数,可以为函数,或一个在methods段中定义的方法名 | ||
| 27 | + attached: function () { | ||
| 28 | + App.Customer.SetCardRel({ | ||
| 29 | + sid:this.data.seller.id | ||
| 30 | + }).then(res=>{ | ||
| 31 | + if(!res.data) return; | ||
| 32 | + this.setData({ | ||
| 33 | + red_envelopes_price:res.data.red_envelopes_price, | ||
| 34 | + money:res.data.money, | ||
| 35 | + mycards:res.data.list, | ||
| 36 | + }) | ||
| 37 | + if(res.data.red_envelopes_price>0){ | ||
| 38 | + setTimeout(()=>{ | ||
| 39 | + this.setData({ | ||
| 40 | + red_envelopes_price:0, | ||
| 41 | + }) | ||
| 42 | + },3000) | ||
| 43 | + } | ||
| 44 | + }) | ||
| 45 | + }, | ||
| 46 | + moved: function () { }, | ||
| 47 | + detached: function () { }, | ||
| 48 | + }, | ||
| 49 | + /** | ||
| 50 | + * 组件的方法列表 | ||
| 51 | + */ | ||
| 52 | + methods: { | ||
| 53 | + hide(){ | ||
| 54 | + this.setData({ | ||
| 55 | + hiddenAni:'discountHide', | ||
| 56 | + }) | ||
| 57 | + this.triggerEvent('hide') | ||
| 58 | + setTimeout(()=>{ | ||
| 59 | + this.setData({ | ||
| 60 | + display:false, | ||
| 61 | + hiddenAni:'', | ||
| 62 | + }) | ||
| 63 | + },250) | ||
| 64 | + }, | ||
| 65 | + show(){ | ||
| 66 | + this.setData({ | ||
| 67 | + display:true, | ||
| 68 | + hiddenAni:'', | ||
| 69 | + }) | ||
| 70 | + this.triggerEvent('show') | ||
| 71 | + }, | ||
| 72 | + useCard(){ | ||
| 73 | + this.hide() | ||
| 74 | + this.triggerEvent('event',{type:'gotoReserve'}) | ||
| 75 | + }, | ||
| 76 | + }, | ||
| 77 | +}) |
components/reserve/seller/discount.json
0 → 100644
components/reserve/seller/discount.wxml
0 → 100644
| 1 | +<!--components/reserve/discount.wxml--> | ||
| 2 | +<view class="toast flex-vc" wx:if="{{red_envelopes_price>0}}"> | ||
| 3 | + <view style="text-align: center;">恭喜您获得<text>{{red_envelopes_price}}元红包</text></view> | ||
| 4 | +</view> | ||
| 5 | +<view class="{{cla?cla:'tips reserve-detail'}}" wx:if="{{money>0 && red_envelopes_price==0 && seller.isopen_md==1}}"> | ||
| 6 | + <view class="msg"> | ||
| 7 | + {{money}}元 | ||
| 8 | + <view class="jiao"></view> | ||
| 9 | + </view> | ||
| 10 | +</view> | ||
| 11 | +<view class="mask" bindtap="hide" wx:if="{{display}}"> | ||
| 12 | + <view class="discount {{hiddenAni}}" catchtap=""> | ||
| 13 | + <view class="discount-name Medium" bindtap="hide"> | ||
| 14 | + 优惠 | ||
| 15 | + <view class="close"></view> | ||
| 16 | + </view> | ||
| 17 | + <view class="discount-content"> | ||
| 18 | + <view class="activity"> | ||
| 19 | + <view class="txt">活动</view> | ||
| 20 | + <view class="flex-ll activity-item" wx:if="{{seller.receive_condition_2}}" | ||
| 21 | + style="align-items: flex-start"> | ||
| 22 | + <view class="activity-left">消费返</view> | ||
| 23 | + <view class="activity-right">在线买单{{seller.receive_condition_str}}红包</view> | ||
| 24 | + </view> | ||
| 25 | + <view class="flex-ll activity-item" wx:if="{{seller.isopen_md==1}}" | ||
| 26 | + style="align-items: flex-start"> | ||
| 27 | + <view class="activity-left">平台红包</view> | ||
| 28 | + <view class="activity-right">可叠加使用平台红包</view> | ||
| 29 | + </view> | ||
| 30 | + </view> | ||
| 31 | + <block wx:if="{{mycards.length>0}}"> | ||
| 32 | + <view class="mycards-txt">已领取的红包</view> | ||
| 33 | + <view class="mycards"> | ||
| 34 | + <view class="mycards-item" wx:for="{{mycards}}" wx:key="mycards"> | ||
| 35 | + <quan quan="{{item}}"> | ||
| 36 | + <view class="button-use" bindtap="useCard">立即使用</view> | ||
| 37 | + </quan> | ||
| 38 | + <view class="quan-tips">仅可在预订包间、在线买单时使用</view> | ||
| 39 | + </view> | ||
| 40 | + </view> | ||
| 41 | + </block> | ||
| 42 | + </view> | ||
| 43 | + </view> | ||
| 44 | +</view> |
components/reserve/seller/discount.wxss
0 → 100644
| 1 | +/* components/reserve/discount.wxss */ | ||
| 2 | +@import "../../../app.wxss"; | ||
| 3 | +.discount{ | ||
| 4 | + position: fixed; | ||
| 5 | + bottom: 0; | ||
| 6 | + background-color: #ffffff; | ||
| 7 | + border-radius: 40rpx 40rpx 0rpx 0rpx; | ||
| 8 | + color: #353535; | ||
| 9 | + width: 100%; | ||
| 10 | + padding: 20rpx 40rpx 40rpx; | ||
| 11 | + animation: discountShow 0.3s; | ||
| 12 | + box-sizing: border-box; | ||
| 13 | + min-height: 648rpx; | ||
| 14 | +} | ||
| 15 | +.discount-content{ | ||
| 16 | + max-height: 792rpx; | ||
| 17 | + overflow-y: auto; | ||
| 18 | +} | ||
| 19 | +.discount.discountHide{ | ||
| 20 | + animation: discountHide 0.3s; | ||
| 21 | +} | ||
| 22 | +.discount view{ | ||
| 23 | + background-size: 100% 100%; | ||
| 24 | +} | ||
| 25 | +.discount-name{ | ||
| 26 | + font-size: 32rpx; | ||
| 27 | + height: 84rpx; | ||
| 28 | + line-height: 84rpx; | ||
| 29 | + width: 100%; | ||
| 30 | + position: relative; | ||
| 31 | + text-align: center; | ||
| 32 | +} | ||
| 33 | +.discount-name .close{ | ||
| 34 | + background-image: url("http://nosqn.colorcun.com/sellerbaobao/close.png"); | ||
| 35 | + width: 28rpx; | ||
| 36 | + height: 29rpx; | ||
| 37 | + position: absolute; | ||
| 38 | + right:0; | ||
| 39 | + top:6rpx; | ||
| 40 | +} | ||
| 41 | +.activity{ | ||
| 42 | + margin-top: 40rpx; | ||
| 43 | +} | ||
| 44 | +.activity .txt{ | ||
| 45 | + width:60rpx; | ||
| 46 | + height:42rpx; | ||
| 47 | + font-size:30rpx; | ||
| 48 | + font-family:PingFangSC-Regular,PingFang SC; | ||
| 49 | + font-weight:400; | ||
| 50 | + color:rgba(136,136,136,1); | ||
| 51 | + line-height:42rpx; | ||
| 52 | +} | ||
| 53 | +.activity-item{ | ||
| 54 | + margin-top: 20rpx; | ||
| 55 | +} | ||
| 56 | +.activity-left{ | ||
| 57 | + height:28rpx; | ||
| 58 | + border-radius:4rpx; | ||
| 59 | + border:2rpx solid rgba(248,164,135,1); | ||
| 60 | + font-size:20rpx; | ||
| 61 | + font-family:PingFangSC-Medium,PingFang SC; | ||
| 62 | + font-weight:500; | ||
| 63 | + color:rgba(240,88,36,1); | ||
| 64 | + line-height:28rpx; | ||
| 65 | + padding: 0 6rpx; | ||
| 66 | + min-width: 60rpx; | ||
| 67 | + text-align: center; | ||
| 68 | +} | ||
| 69 | +.activity-right{ | ||
| 70 | + font-size:26rpx; | ||
| 71 | + font-family:PingFangSC-Medium,PingFang SC; | ||
| 72 | + font-weight:500; | ||
| 73 | + color:rgba(53,53,53,1); | ||
| 74 | + line-height:36rpx; | ||
| 75 | + margin-left: 40rpx; | ||
| 76 | +} | ||
| 77 | +.mycards-txt{ | ||
| 78 | + height:42rpx; | ||
| 79 | + font-size:30rpx; | ||
| 80 | + font-family:PingFangSC-Regular,PingFang SC; | ||
| 81 | + font-weight:400; | ||
| 82 | + color:rgba(136,136,136,1); | ||
| 83 | + line-height:42rpx; | ||
| 84 | + margin-top: 50rpx; | ||
| 85 | +} | ||
| 86 | +.mycards{ | ||
| 87 | + margin-top: 20rpx; | ||
| 88 | + /*max-height: 430rpx;*/ | ||
| 89 | +} | ||
| 90 | +.quan-tips{ | ||
| 91 | + height:50rpx; | ||
| 92 | + background:rgba(245,245,245,1); | ||
| 93 | + border-radius:0rpx 0rpx 10rpx 10rpx; | ||
| 94 | + font-size:22rpx; | ||
| 95 | + font-family:PingFangSC-Regular,PingFang SC; | ||
| 96 | + font-weight:400; | ||
| 97 | + color:rgba(136,136,136,1); | ||
| 98 | + line-height:50rpx; | ||
| 99 | + padding-left: 36rpx; | ||
| 100 | + width: 100%; | ||
| 101 | + box-sizing: border-box; | ||
| 102 | +} | ||
| 103 | +.mycards-item{ | ||
| 104 | + margin-bottom: 20rpx; | ||
| 105 | +} | ||
| 106 | +.button-use{ | ||
| 107 | + width:120rpx; | ||
| 108 | + height:44rpx; | ||
| 109 | + background:linear-gradient(180deg,rgba(231,66,88,1) 0%,rgba(243,53,78,1) 100%); | ||
| 110 | + border-radius:6rpx; | ||
| 111 | + font-size:24rpx; | ||
| 112 | + font-family:PingFangSC-Medium,PingFang SC; | ||
| 113 | + font-weight:500; | ||
| 114 | + color:rgba(255,227,192,1); | ||
| 115 | + line-height:44rpx; | ||
| 116 | + text-align: center; | ||
| 117 | +} | ||
| 118 | +@keyframes discountShow | ||
| 119 | +{ | ||
| 120 | + from {bottom: -876rpx;} | ||
| 121 | + to {bottom: 0rpx;} | ||
| 122 | +} | ||
| 123 | +@keyframes discountHide | ||
| 124 | +{ | ||
| 125 | + from {bottom: 0;} | ||
| 126 | + to {bottom: -876rpx;} | ||
| 127 | +} | ||
| 128 | + | ||
| 129 | +.toast{ | ||
| 130 | + min-height:80rpx; | ||
| 131 | + min-width:380rpx; | ||
| 132 | + background:rgba(53,53,53,0.8); | ||
| 133 | + border-radius:20rpx; | ||
| 134 | + | ||
| 135 | + font-size:32rpx; | ||
| 136 | + font-family:PingFangSC-Medium,PingFang SC; | ||
| 137 | + font-weight:500; | ||
| 138 | + color:rgba(255,255,255,1); | ||
| 139 | + line-height:44rpx; | ||
| 140 | + position: fixed; | ||
| 141 | + top:60%; | ||
| 142 | + left:calc(50% - 190rpx); | ||
| 143 | + padding: 10rpx 20rpx; | ||
| 144 | + box-sizing: border-box; | ||
| 145 | + z-index: 9999; | ||
| 146 | +} | ||
| 147 | +.toast text{ | ||
| 148 | + color:#FEDE68; | ||
| 149 | +} | ||
| 150 | + | ||
| 151 | +.tips{ | ||
| 152 | + position: fixed; | ||
| 153 | + z-index: 9999; | ||
| 154 | + background:rgba(84,83,84,0.8); | ||
| 155 | + font-size:24rpx; | ||
| 156 | + font-weight:500; | ||
| 157 | + color:rgba(255,255,255,1); | ||
| 158 | +} | ||
| 159 | +.tips .msg{ | ||
| 160 | + height: 70rpx; | ||
| 161 | + line-height: 70rpx; | ||
| 162 | + padding: 0 24rpx; | ||
| 163 | + position: relative; | ||
| 164 | +} | ||
| 165 | +.jiao{ | ||
| 166 | + width: 26rpx; | ||
| 167 | + height: 10rpx; | ||
| 168 | + background-image: url("http://nosqn.colorcun.com/activity/images/jiao2.png"); | ||
| 169 | + background-size: 100% 100%; | ||
| 170 | + position: absolute; | ||
| 171 | + bottom: -10rpx; | ||
| 172 | + left:30rpx; | ||
| 173 | +} | ||
| 174 | +.tips.reserve-detail{ | ||
| 175 | + bottom:122rpx; | ||
| 176 | + right:30rpx; | ||
| 177 | +} | ||
| 178 | +.tips.reserve-detail .jiao{ | ||
| 179 | + right:80rpx; | ||
| 180 | + left:auto; | ||
| 181 | +} | ||
| 182 | +.tips.reserve-detail .msg{ | ||
| 183 | + color: #FEDE68; | ||
| 184 | +} | ||
| 185 | +.tips.reserve-detail .msg:before{ | ||
| 186 | + content: "预订买单,立即抵扣"; | ||
| 187 | + color:rgba(255,255,255,1); | ||
| 188 | +} | ||
| 189 | + | ||
| 190 | +.detail_owner .jiao{ | ||
| 191 | + display: none; | ||
| 192 | +} | ||
| 193 | +.detail_owner .msg:after{ | ||
| 194 | + content: "红包待用"; | ||
| 195 | + text-indent: -4rpx; | ||
| 196 | + display: inline-block; | ||
| 197 | +} | ||
| 198 | + | ||
| 199 | +.money-tips{ | ||
| 200 | + min-width:184rpx; | ||
| 201 | + height:34rpx; | ||
| 202 | + padding: 0 20rpx; | ||
| 203 | + background:rgba(240,85,34,1); | ||
| 204 | + border-radius:16rpx 16rpx 16rpx 0rpx; | ||
| 205 | + | ||
| 206 | + font-size:20rpx; | ||
| 207 | + font-weight:500; | ||
| 208 | + color:rgba(255,255,255,1); | ||
| 209 | + line-height:34rpx; | ||
| 210 | + | ||
| 211 | + position: absolute; | ||
| 212 | + top:-28rpx; | ||
| 213 | + right:-16rpx; | ||
| 214 | +} | ||
| 215 | + | ||
| 216 | +.checkout-button-money-tips{ | ||
| 217 | + min-width:184rpx; | ||
| 218 | + padding: 0 20rpx; | ||
| 219 | + height:34rpx; | ||
| 220 | + background:rgba(240,85,34,1); | ||
| 221 | + border-radius:16rpx 16rpx 16rpx 0rpx; | ||
| 222 | + | ||
| 223 | + font-size:20rpx; | ||
| 224 | + font-weight:500; | ||
| 225 | + color:rgba(255,255,255,1); | ||
| 226 | + line-height:34rpx; | ||
| 227 | + | ||
| 228 | + position: absolute; | ||
| 229 | + top:-28rpx; | ||
| 230 | + right:40rpx; | ||
| 231 | +} | ||
| 232 | + | ||
| 233 | +.seller-reserve{ | ||
| 234 | + display: none; | ||
| 235 | +} |
| 1 | -// components/common/feedback.js | ||
| 2 | -const mans=[ | ||
| 3 | - 'oB-xJ5KJCIasaEdgMRckqoL1cwg8', //vking.wang | ||
| 4 | - //'oB-xJ5BjnTvdgQGLHsjioNHH0eE8', | ||
| 5 | - 'oB-xJ5MEi2mTMrBTiYImD9cpGH6o', //xiao qin qin | ||
| 6 | - 'oB-xJ5OE1pM_17vNyWSMGqLH1vOg', //驴肉火烧多少钱一斤 MI 8 | ||
| 7 | - 'oB-xJ5DIWrC6MECaXfql2GvTmQTU', //红旗 Redmi Note 7 Pro | ||
| 8 | - 'oB-xJ5I39RVWOWq-IGoBDxcFY-3s', //曹可 iPhone 6s Plus<iPhone8,2> | ||
| 9 | -]; | 1 | +// components/reserve/seller/quan.js |
| 10 | Component({ | 2 | Component({ |
| 11 | /** | 3 | /** |
| 12 | * 组件的属性列表 | 4 | * 组件的属性列表 |
| 13 | */ | 5 | */ |
| 14 | properties: { | 6 | properties: { |
| 15 | - | 7 | + quan:Object, |
| 8 | + cla:String, | ||
| 16 | }, | 9 | }, |
| 17 | 10 | ||
| 18 | /** | 11 | /** |
| 19 | * 组件的初始数据 | 12 | * 组件的初始数据 |
| 20 | */ | 13 | */ |
| 21 | data: { | 14 | data: { |
| 22 | - hasDispaly:false, | ||
| 23 | - top:(Math.random()*70+10) | ||
| 24 | - }, | ||
| 25 | - ready: function() { | ||
| 26 | - if(!console.hasRewrite){ | ||
| 27 | - const logger =wx.getLogManager() | ||
| 28 | - let consoleLog=console.log | ||
| 29 | - console.hasRewrite=true | ||
| 30 | - console.log.prototype=function(){ | ||
| 31 | - console.log(...arguments) | ||
| 32 | - logger.debug(...arguments) | ||
| 33 | - }; | ||
| 34 | - } | ||
| 35 | - let openid=wx.getStorageSync('customer_openid'); | ||
| 36 | - if(!openid) return; | ||
| 37 | - if(mans.includes(openid)){ | ||
| 38 | - this.setData({ | ||
| 39 | - hasDispaly:true, | ||
| 40 | - top:(Math.random()*70+10) | ||
| 41 | - }) | ||
| 42 | - } | 15 | + |
| 43 | }, | 16 | }, |
| 17 | + | ||
| 44 | /** | 18 | /** |
| 45 | * 组件的方法列表 | 19 | * 组件的方法列表 |
| 46 | */ | 20 | */ |
components/reserve/seller/quan.wxml
0 → 100644
| 1 | +<!--components/reserve/seller/quan.wxml--> | ||
| 2 | +<wxs src="../../../utils/util.wxs" module="util" /> | ||
| 3 | +<view class="quan flex-lr {{cla}}"> | ||
| 4 | + <view class="money Semibold flex-cc money-{{util.toFixed(quan.price,0).length}}" style="align-items: flex-end"> | ||
| 5 | + <view class="dot">¥</view> | ||
| 6 | + <view class="number">{{util.toFixed(quan.price,0)}}</view> | ||
| 7 | + </view> | ||
| 8 | + <view class="line"></view> | ||
| 9 | + <view class="type"> | ||
| 10 | + <view class="card_title">{{quan.card_title}}</view> | ||
| 11 | + <view class="card-date" wx:if="{{quan.start_time>0}}"> | ||
| 12 | + {{util.unixtoTime(quan.start_time,"YYYY.MM.DD")}}-{{util.unixtoTime(quan.end_time,"YYYY.MM.DD")}} | ||
| 13 | + </view> | ||
| 14 | + <view class="card-date" wx:else=""> | ||
| 15 | + 长期有效 | ||
| 16 | + </view> | ||
| 17 | + </view> | ||
| 18 | + <view class="opt"> | ||
| 19 | + <slot></slot> | ||
| 20 | + </view> | ||
| 21 | +</view> |
components/reserve/seller/quan.wxss
0 → 100644
| 1 | +/* components/reserve/seller/quan.wxss */ | ||
| 2 | +@import "/app.wxss"; | ||
| 3 | +.quan{ | ||
| 4 | + width:100%; | ||
| 5 | + height:170rpx; | ||
| 6 | + background:rgba(255,239,223,1); | ||
| 7 | + box-sizing: border-box; | ||
| 8 | + padding: 36rpx; | ||
| 9 | + padding-right: 22rpx; | ||
| 10 | + padding-left: 0; | ||
| 11 | + border-radius:10rpx 10rpx 0rpx 0rpx; | ||
| 12 | + border-right: 14rpx solid #fefefe; | ||
| 13 | + position: relative; | ||
| 14 | +} | ||
| 15 | +.quan:after{ | ||
| 16 | + background-size: 100% 100%; | ||
| 17 | + background-image: url("http://nosqn.colorcun.com/sellerbaobao/rp2.png"); | ||
| 18 | + position: absolute; | ||
| 19 | + top:0; | ||
| 20 | + right:-14rpx; | ||
| 21 | + width: 16rpx; | ||
| 22 | + height: 170rpx; | ||
| 23 | + content: ""; | ||
| 24 | +} | ||
| 25 | +.quan .money{ | ||
| 26 | + min-width: 186rpx; | ||
| 27 | + width: 186rpx; | ||
| 28 | + overflow: hidden; | ||
| 29 | +} | ||
| 30 | +.quan .money-4,.quan .money-5{ | ||
| 31 | + min-width: 226rpx; | ||
| 32 | + width: 226rpx; | ||
| 33 | + overflow: hidden; | ||
| 34 | +} | ||
| 35 | +.quan .type{ | ||
| 36 | + width: 80%; | ||
| 37 | +} | ||
| 38 | +.dot{ | ||
| 39 | + width:22rpx; | ||
| 40 | + height:50rpx; | ||
| 41 | + font-size:36rpx; | ||
| 42 | + font-family:PingFangSC-Semibold,PingFang SC; | ||
| 43 | + font-weight:600; | ||
| 44 | + color:rgba(204,65,17,1); | ||
| 45 | + line-height:50rpx; | ||
| 46 | + margin-bottom: 10rpx; | ||
| 47 | +} | ||
| 48 | +.number{ | ||
| 49 | + height:90rpx; | ||
| 50 | + font-size:64rpx; | ||
| 51 | + font-family:PingFangSC-Semibold,PingFang SC; | ||
| 52 | + font-weight:600; | ||
| 53 | + color:rgba(204,65,17,1); | ||
| 54 | + line-height:90rpx; | ||
| 55 | + margin-left: 10rpx; | ||
| 56 | +} | ||
| 57 | +.line{ | ||
| 58 | + height: 100rpx; | ||
| 59 | + width:2rpx; | ||
| 60 | + margin-right: 38rpx; | ||
| 61 | + background-image: url("http://nosqn.colorcun.com/sellerbaobao/l-o2.png"); | ||
| 62 | + background-size: 2rpx 16rpx; | ||
| 63 | +} | ||
| 64 | +.card_title{ | ||
| 65 | + height:40rpx; | ||
| 66 | + font-size:28rpx; | ||
| 67 | + font-family:PingFangSC-Medium,PingFang SC; | ||
| 68 | + font-weight:500; | ||
| 69 | + color:rgba(187,113,50,1); | ||
| 70 | + line-height:40rpx; | ||
| 71 | +} | ||
| 72 | +.card-date{ | ||
| 73 | + height:32rpx; | ||
| 74 | + font-size:22rpx; | ||
| 75 | + font-family:PingFangSC-Regular,PingFang SC; | ||
| 76 | + font-weight:400; | ||
| 77 | + color:rgba(187,113,50,1); | ||
| 78 | + line-height:32rpx; | ||
| 79 | + margin-top: 10rpx; | ||
| 80 | +} | ||
| 81 | + | ||
| 82 | +.quan-pt{ | ||
| 83 | + background:rgba(255,227,227,1); | ||
| 84 | +} | ||
| 85 | +.quan-pt:after{ | ||
| 86 | + background-image: url("http://nosqn.colorcun.com/sellerbaobao/rs2.png"); | ||
| 87 | +} | ||
| 88 | +.quan-pt .dot,.quan-pt .number{ | ||
| 89 | + color:rgba(204,17,17,1); | ||
| 90 | +} | ||
| 91 | +.quan-pt .line{ | ||
| 92 | + background-image: url("http://nosqn.colorcun.com/sellerbaobao/l-r2.png"); | ||
| 93 | +} | ||
| 94 | +.quan-pt .card_title,.quan-pt .card-date{ | ||
| 95 | + color:rgba(187,80,50,1); | ||
| 96 | +} | ||
| 97 | + | ||
| 98 | +.quan.bg-f5f5f5{ | ||
| 99 | + border-right: 14rpx solid #f5f5f5; | ||
| 100 | +} | ||
| 101 | + | ||
| 102 | +.quan-disabled{ | ||
| 103 | + background:rgba(245,245,245,1); | ||
| 104 | +} | ||
| 105 | +.quan-disabled:after{ | ||
| 106 | + background-image: url("http://nosqn.colorcun.com/sellerbaobao/rx2.png"); | ||
| 107 | +} | ||
| 108 | +.quan-disabled .dot,.quan-disabled .number{ | ||
| 109 | + color:rgba(136,136,136,1); | ||
| 110 | +} | ||
| 111 | +.quan-disabled .line{ | ||
| 112 | + background-image: url("http://nosqn.colorcun.com/sellerbaobao/l-g2.png"); | ||
| 113 | +} | ||
| 114 | +.quan-disabled .card_title,.quan-disabled .card-date{ | ||
| 115 | + color:rgba(136,136,136,1); | ||
| 116 | +} |
| @@ -14,16 +14,16 @@ | @@ -14,16 +14,16 @@ | ||
| 14 | background-size: 100% 100%; | 14 | background-size: 100% 100%; |
| 15 | } | 15 | } |
| 16 | .share-img.wechat{ | 16 | .share-img.wechat{ |
| 17 | - background-image: url("http://qn.colorcun.com/reserve/share/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_201906251004331.png"); | 17 | + background-image: url("http://nosqn.colorcun.com/reserve/share/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_201906251004331.png"); |
| 18 | } | 18 | } |
| 19 | .share-img.quanzi{ | 19 | .share-img.quanzi{ |
| 20 | - background-image: url("http://qn.colorcun.com/reserve/share/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20190625100433.png"); | 20 | + background-image: url("http://nosqn.colorcun.com/reserve/share/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20190625100433.png"); |
| 21 | } | 21 | } |
| 22 | .share-img.qrcode{ | 22 | .share-img.qrcode{ |
| 23 | - background-image: url("http://qn.colorcun.com/reserve/share/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_201906251004332.png"); | 23 | + background-image: url("http://nosqn.colorcun.com/reserve/share/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_201906251004332.png"); |
| 24 | } | 24 | } |
| 25 | .share-img.hwq{ | 25 | .share-img.hwq{ |
| 26 | - background-image: url("http://qn.colorcun.com/reserve/images/hwq.png"); | 26 | + background-image: url("http://nosqn.colorcun.com/reserve/images/hwq.png"); |
| 27 | } | 27 | } |
| 28 | .share-name{ | 28 | .share-name{ |
| 29 | margin-top: 20rpx; | 29 | margin-top: 20rpx; |
| @@ -13,7 +13,7 @@ | @@ -13,7 +13,7 @@ | ||
| 13 | {{showStatusStr}} | 13 | {{showStatusStr}} |
| 14 | </view> | 14 | </view> |
| 15 | <view class="more" wx:else=""> | 15 | <view class="more" wx:else=""> |
| 16 | - <image src="http://qn.colorcun.com/custom/lite-yd/image/click.png"></image> | 16 | + <image src="http://nosqn.colorcun.com/custom/lite-yd/image/click.png"></image> |
| 17 | </view> | 17 | </view> |
| 18 | </view> | 18 | </view> |
| 19 | </formids> | 19 | </formids> |
| @@ -39,7 +39,7 @@ | @@ -39,7 +39,7 @@ | ||
| 39 | </formids> | 39 | </formids> |
| 40 | <view class="seller address flex-ll" catchtap="lookLocation" wx:if="{{hasAddress}}"> | 40 | <view class="seller address flex-ll" catchtap="lookLocation" wx:if="{{hasAddress}}"> |
| 41 | <view class="gps-icon"> | 41 | <view class="gps-icon"> |
| 42 | - <image src="http://qn.colorcun.com/custom/lite-yd/image/gps-icon.png"></image> | 42 | + <image src="http://nosqn.colorcun.com/custom/lite-yd/image/gps-icon.png"></image> |
| 43 | </view> | 43 | </view> |
| 44 | <view class="address-txt"> | 44 | <view class="address-txt"> |
| 45 | {{seller.map_address}} | 45 | {{seller.map_address}} |
| @@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
| 2 | <view class="flex-ll"> | 2 | <view class="flex-ll"> |
| 3 | <view class="stat"> | 3 | <view class="stat"> |
| 4 | <view class="bg" style="background-color: {{color}};width: {{statnum}}%"></view> | 4 | <view class="bg" style="background-color: {{color}};width: {{statnum}}%"></view> |
| 5 | - <image src="http://qn.colorcun.com/custom/lite-online/image/%E9%95%82%E7%A9%BA%E6%98%9F%E6%98%9F.png"></image> | 5 | + <image src="http://nosqn.colorcun.com/custom/lite-online/image/%E9%95%82%E7%A9%BA%E6%98%9F%E6%98%9F.png"></image> |
| 6 | </view> | 6 | </view> |
| 7 | <view class="stat-text" wx:if="{{hasShowText}}">{{stat}} 分</view> | 7 | <view class="stat-text" wx:if="{{hasShowText}}">{{stat}} 分</view> |
| 8 | </view> | 8 | </view> |
| @@ -51,13 +51,13 @@ | @@ -51,13 +51,13 @@ | ||
| 51 | color:rgba(121,79,40,1); | 51 | color:rgba(121,79,40,1); |
| 52 | } | 52 | } |
| 53 | .tip.yellow .more{ | 53 | .tip.yellow .more{ |
| 54 | - background-image: url("http://qn.colorcun.com/reserve/images/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_201911181208295.png"); | 54 | + background-image: url("http://nosqn.colorcun.com/reserve/images/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_201911181208295.png"); |
| 55 | } | 55 | } |
| 56 | .tip.yellow .close{ | 56 | .tip.yellow .close{ |
| 57 | - background-image: url("http://qn.colorcun.com/reserve/images/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20191118120829.png"); | 57 | + background-image: url("http://nosqn.colorcun.com/reserve/images/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20191118120829.png"); |
| 58 | } | 58 | } |
| 59 | .tip.yellow .jian{ | 59 | .tip.yellow .jian{ |
| 60 | - background-image: url("http://qn.colorcun.com/reserve/images/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_201911181208293.png"); | 60 | + background-image: url("http://nosqn.colorcun.com/reserve/images/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_201911181208293.png"); |
| 61 | } | 61 | } |
| 62 | 62 | ||
| 63 | .tip.black{ | 63 | .tip.black{ |
| @@ -82,11 +82,11 @@ | @@ -82,11 +82,11 @@ | ||
| 82 | right:150rpx; | 82 | right:150rpx; |
| 83 | margin-left: 0; | 83 | margin-left: 0; |
| 84 | z-index: 9999; | 84 | z-index: 9999; |
| 85 | - background-image: url("http://qn.colorcun.com/reserve/images/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_201911181208292.png"); | 85 | + background-image: url("http://nosqn.colorcun.com/reserve/images/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_201911181208292.png"); |
| 86 | } | 86 | } |
| 87 | .tip.black .close{ | 87 | .tip.black .close{ |
| 88 | - background-image: url("http://qn.colorcun.com/reserve/images/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_201911181208291.png"); | 88 | + background-image: url("http://nosqn.colorcun.com/reserve/images/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_201911181208291.png"); |
| 89 | } | 89 | } |
| 90 | .tip.black .more{ | 90 | .tip.black .more{ |
| 91 | - background-image: url("http://qn.colorcun.com/reserve/images/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_201911181208294.png"); | 91 | + background-image: url("http://nosqn.colorcun.com/reserve/images/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_201911181208294.png"); |
| 92 | } | 92 | } |
| 1 | <!--components/tips/add-to-lite.wxml--> | 1 | <!--components/tips/add-to-lite.wxml--> |
| 2 | -<cover-view class="discount" style="top:{{statusBarHeightFull+a2lHeight}}px;width:{{hidden?'100rpx':'720rpx'}};" bindtap="gotoDiscount"> | ||
| 3 | - <cover-view style="position: relative;height: 100%;"> | ||
| 4 | - <cover-image class="discount-img" src="http://qn.colorcun.com/reserve/images/%E6%83%A03.png"></cover-image> | ||
| 5 | - <cover-view style="position: relative;" wx:if="{{!hidden}}"> | ||
| 6 | - <cover-image src="http://qn.colorcun.com/reserve/images/%E4%BC%98%E6%83%A0%E6%B4%BB%E5%8A%A83.png"></cover-image> | ||
| 7 | - <cover-view class="discount-view"> | ||
| 8 | - <cover-view class="text">精选折扣,周到安排用户专享</cover-view> | ||
| 9 | - <cover-view class="close" catchtap="hide"></cover-view> | ||
| 10 | - </cover-view> | ||
| 11 | - </cover-view> | ||
| 12 | - </cover-view> | ||
| 13 | -</cover-view> | ||
| 2 | +<view class="discount" style="top:{{statusBarHeightFull+a2lHeight}}px;width:{{hidden?'100rpx':'720rpx'}};" bindtap="gotoDiscount"> | ||
| 3 | + <view style="position: relative;height: 100%;"> | ||
| 4 | + <image class="discount-img" src="http://nosqn.colorcun.com/reserve/images/%E6%83%A03.png"></image> | ||
| 5 | + <view style="position: relative;" wx:if="{{!hidden}}"> | ||
| 6 | + <image class="discount-imgmax" | ||
| 7 | + src="http://nosqn.colorcun.com/reserve/images/%E4%BC%98%E6%83%A0%E6%B4%BB%E5%8A%A83.png"></image> | ||
| 8 | + <view class="discount-view"> | ||
| 9 | + <view class="text">精选折扣,周到安排用户专享</view> | ||
| 10 | + <view class="close" catchtap="hide"></view> | ||
| 11 | + </view> | ||
| 12 | + </view> | ||
| 13 | + </view> | ||
| 14 | +</view> |
| @@ -7,6 +7,7 @@ const properties={ | @@ -7,6 +7,7 @@ const properties={ | ||
| 7 | confirmColor:{type:String,value:'#fff'}, | 7 | confirmColor:{type:String,value:'#fff'}, |
| 8 | header:{type:String,value:'确认信息'}, | 8 | header:{type:String,value:'确认信息'}, |
| 9 | body:{type:String,value:'确认信息'}, | 9 | body:{type:String,value:'确认信息'}, |
| 10 | + cla:String, | ||
| 10 | }; | 11 | }; |
| 11 | Component({ | 12 | Component({ |
| 12 | options: { | 13 | options: { |
| 1 | <!--components/showModal/showModal.wxml--> | 1 | <!--components/showModal/showModal.wxml--> |
| 2 | -<view class="mask flex-vc" hidden="{{!hasShow}}"> | 2 | +<view class="mask flex-vc {{cla}}" hidden="{{!hasShow}}"> |
| 3 | <view class="showModal"> | 3 | <view class="showModal"> |
| 4 | <view class="header"> | 4 | <view class="header"> |
| 5 | {{opt.header}} | 5 | {{opt.header}} |
| @@ -57,4 +57,22 @@ | @@ -57,4 +57,22 @@ | ||
| 57 | .footer .button-none.confirm{ | 57 | .footer .button-none.confirm{ |
| 58 | } | 58 | } |
| 59 | .footer .button-none.cancel{ | 59 | .footer .button-none.cancel{ |
| 60 | +} | ||
| 61 | +.checkout .body{ | ||
| 62 | + font-size:32rpx; | ||
| 63 | + font-weight:500; | ||
| 64 | + color:rgba(53,53,53,1); | ||
| 65 | + line-height:44rpx; | ||
| 66 | + margin-top: 32rpx; | ||
| 67 | +} | ||
| 68 | +.checkout .confirm{ | ||
| 69 | + width:320rpx; | ||
| 70 | + height:80rpx; | ||
| 71 | + background:rgba(36,35,32,1); | ||
| 72 | + border-radius:10rpx; | ||
| 73 | + font-size:32rpx; | ||
| 74 | + font-family:PingFangSC-Semibold,PingFang SC; | ||
| 75 | + font-weight:600; | ||
| 76 | + color:rgba(255,255,255,1); | ||
| 77 | + line-height:80rpx; | ||
| 60 | } | 78 | } |
components/userinfo/invoice.js
0 → 100644
| 1 | +// component/menu/addDelete.js | ||
| 2 | +import util from '../../utils/util'; | ||
| 3 | +import App from '../../utils/api'; | ||
| 4 | + | ||
| 5 | +Component({ | ||
| 6 | + /** | ||
| 7 | + * 组件的属性列表 | ||
| 8 | + */ | ||
| 9 | + properties: { | ||
| 10 | + filePath:String, | ||
| 11 | + }, | ||
| 12 | + | ||
| 13 | + /** | ||
| 14 | + * 组件的初始数据 | ||
| 15 | + */ | ||
| 16 | + data: { | ||
| 17 | + | ||
| 18 | + }, | ||
| 19 | + attached(){ | ||
| 20 | + | ||
| 21 | + }, | ||
| 22 | + ready () { | ||
| 23 | + | ||
| 24 | + }, | ||
| 25 | + detached(){ | ||
| 26 | + | ||
| 27 | + }, | ||
| 28 | + /** | ||
| 29 | + * 组件的方法列表 | ||
| 30 | + */ | ||
| 31 | + methods: { | ||
| 32 | + Invoice(){ | ||
| 33 | + wx.chooseInvoiceTitle({ | ||
| 34 | + success:(res)=>{ | ||
| 35 | + console.log('wx.chooseInvoiceTitle',res) | ||
| 36 | + this.triggerEvent('event',res) | ||
| 37 | + }, | ||
| 38 | + fail:(efail)=>{ | ||
| 39 | + console.log('wx.chooseInvoiceTitle',efail) | ||
| 40 | + if(efail.errMsg== "chooseInvoiceTitle:fail cancel") return; | ||
| 41 | + wx.showModal({ | ||
| 42 | + title: '授权提示', | ||
| 43 | + content: '您拒绝了获取发票抬头,请点击确定打开授权', | ||
| 44 | + confirmColor: '#199095', | ||
| 45 | + cancelColor: '#999', | ||
| 46 | + success: function (res) { | ||
| 47 | + if (res.confirm) { | ||
| 48 | + util.setting(); | ||
| 49 | + } | ||
| 50 | + } | ||
| 51 | + }) | ||
| 52 | + }, | ||
| 53 | + }) | ||
| 54 | + }, | ||
| 55 | + } | ||
| 56 | +}) |
components/userinfo/invoice.json
0 → 100644
components/userinfo/invoice.wxml
0 → 100644
components/userinfo/invoice.wxss
0 → 100644
| 1 | +@import "../../app.wxss"; |
| @@ -3,6 +3,7 @@ import util from '../../utils/util'; | @@ -3,6 +3,7 @@ import util from '../../utils/util'; | ||
| 3 | import App from '../../utils/api'; | 3 | import App from '../../utils/api'; |
| 4 | const subscribe=[ | 4 | const subscribe=[ |
| 5 | 'ZwAkHfP8xUvBZKJn4VXsjRxUDTuCMjWqd8lTsdCPdks',//包厢预订通知 状态、预订门店、包厢名称、备注 | 5 | 'ZwAkHfP8xUvBZKJn4VXsjRxUDTuCMjWqd8lTsdCPdks',//包厢预订通知 状态、预订门店、包厢名称、备注 |
| 6 | + 'Pf1iEkCA8TnfeqEMkf-_338U78d4Js36pk6sbB0yem0',//消费金额反馈提醒 消费总额、包间名称、餐厅名称、预订日期 | ||
| 6 | ] | 7 | ] |
| 7 | Component({ | 8 | Component({ |
| 8 | /** | 9 | /** |
| @@ -76,11 +77,14 @@ Component({ | @@ -76,11 +77,14 @@ Component({ | ||
| 76 | tplid:accept.toString() | 77 | tplid:accept.toString() |
| 77 | }) | 78 | }) |
| 78 | },800) | 79 | },800) |
| 80 | + this.triggerEvent('event',{type:'success'}) | ||
| 79 | }else{ | 81 | }else{ |
| 80 | util.toast('订阅失败,请在设置中打开','none') | 82 | util.toast('订阅失败,请在设置中打开','none') |
| 83 | + this.triggerEvent('event',{type:'fail'}) | ||
| 81 | } | 84 | } |
| 82 | }, | 85 | }, |
| 83 | fail:(efail)=>{ | 86 | fail:(efail)=>{ |
| 87 | + this.triggerEvent('event',{type:'fail'}) | ||
| 84 | console.log('wx.requestSubscribeMessage.fail',efail) | 88 | console.log('wx.requestSubscribeMessage.fail',efail) |
| 85 | if(efail.errMsg.indexOf('not ended')) return; | 89 | if(efail.errMsg.indexOf('not ended')) return; |
| 86 | wx.showModal({ | 90 | wx.showModal({ |
pack-activity/pack/list.js
0 → 100644
| 1 | +// pack-activity/pages/money.js | ||
| 2 | +import util from '../../utils/util'; | ||
| 3 | +import App from '../../utils/api'; | ||
| 4 | +Page({ | ||
| 5 | + | ||
| 6 | + /** | ||
| 7 | + * 页面的初始数据 | ||
| 8 | + */ | ||
| 9 | + data: { | ||
| 10 | + list:[], | ||
| 11 | + status:1, | ||
| 12 | + }, | ||
| 13 | + page:1, | ||
| 14 | + size:10, | ||
| 15 | + hasMore:true, | ||
| 16 | + /** | ||
| 17 | + * 生命周期函数--监听页面加载 | ||
| 18 | + */ | ||
| 19 | + onLoad: function (options) { | ||
| 20 | + this.GetUserCard() | ||
| 21 | + }, | ||
| 22 | + | ||
| 23 | + /** | ||
| 24 | + * 生命周期函数--监听页面初次渲染完成 | ||
| 25 | + */ | ||
| 26 | + onReady: function () { | ||
| 27 | + | ||
| 28 | + }, | ||
| 29 | + | ||
| 30 | + /** | ||
| 31 | + * 生命周期函数--监听页面显示 | ||
| 32 | + */ | ||
| 33 | + onShow: function () { | ||
| 34 | + | ||
| 35 | + }, | ||
| 36 | + | ||
| 37 | + /** | ||
| 38 | + * 生命周期函数--监听页面隐藏 | ||
| 39 | + */ | ||
| 40 | + onHide: function () { | ||
| 41 | + | ||
| 42 | + }, | ||
| 43 | + | ||
| 44 | + /** | ||
| 45 | + * 生命周期函数--监听页面卸载 | ||
| 46 | + */ | ||
| 47 | + onUnload: function () { | ||
| 48 | + | ||
| 49 | + }, | ||
| 50 | + | ||
| 51 | + /** | ||
| 52 | + * 页面相关事件处理函数--监听用户下拉动作 | ||
| 53 | + */ | ||
| 54 | + onPullDownRefresh: function () { | ||
| 55 | + | ||
| 56 | + }, | ||
| 57 | + | ||
| 58 | + /** | ||
| 59 | + * 页面上拉触底事件的处理函数 | ||
| 60 | + */ | ||
| 61 | + onReachBottom: function () { | ||
| 62 | + if(this.hasMore){ | ||
| 63 | + this.page+=1 | ||
| 64 | + this.GetUserCard() | ||
| 65 | + } | ||
| 66 | + | ||
| 67 | + }, | ||
| 68 | + GetUserCard(){ | ||
| 69 | + App.Customer.GetUserCard({ | ||
| 70 | + status:this.data.status, | ||
| 71 | + page:this.page, | ||
| 72 | + size:this.size, | ||
| 73 | + }).then(res=> { | ||
| 74 | + let list=this.data.list | ||
| 75 | + list=list.concat(res.data) | ||
| 76 | + if(res.data.length<this.size){ | ||
| 77 | + this.hasMore=false | ||
| 78 | + } | ||
| 79 | + this.setData({ | ||
| 80 | + list: list | ||
| 81 | + }) | ||
| 82 | + }) | ||
| 83 | + }, | ||
| 84 | + searchInit(){ | ||
| 85 | + this.page=1; | ||
| 86 | + this.hasMore=true; | ||
| 87 | + }, | ||
| 88 | + switchTab(e){ | ||
| 89 | + let status=util.attr(e,'status') | ||
| 90 | + if(status==this.data.status) return; | ||
| 91 | + this.searchInit(); | ||
| 92 | + this.setData({ | ||
| 93 | + status:status, | ||
| 94 | + list:[], | ||
| 95 | + }) | ||
| 96 | + setTimeout(()=>{ | ||
| 97 | + this.GetUserCard() | ||
| 98 | + },0) | ||
| 99 | + }, | ||
| 100 | +}) |
pack-activity/pack/list.json
0 → 100644
pack-activity/pack/list.wxml
0 → 100644
| 1 | +<!--pack-activity/pages/money.wxml--> | ||
| 2 | +<wxs src="../../utils/util.wxs" module="util" /> | ||
| 3 | +<nav hasHome>我的红包</nav> | ||
| 4 | +<view class="tabs flex-lr"> | ||
| 5 | + <view class="tabs-item flex-vc {{status==2?'':'active'}}" bindtap="switchTab" data-status="1"> | ||
| 6 | + <view class="tabs-txt">已使用</view> | ||
| 7 | + </view> | ||
| 8 | + <view class="tabs-item flex-vc {{status==2?'active':''}}" bindtap="switchTab" data-status="2"> | ||
| 9 | + <view class="tabs-txt">已失效</view> | ||
| 10 | + </view> | ||
| 11 | +</view> | ||
| 12 | +<view class="pages" wx:if="{{list.length>0}}"> | ||
| 13 | + <view class="list-view list-view-{{item.sid}}" wx:for="{{list}}" wx:key="list"> | ||
| 14 | + <view class="quan"> | ||
| 15 | + <quan quan="{{item}}" cla="quan-disabled"> | ||
| 16 | + <view class="button-use status-{{item.status}}"></view> | ||
| 17 | + </quan> | ||
| 18 | + <view class="quan-tips" wx:if="{{item.sid==0}}">适用于平台所有商家,预订包间、在线买单时使用</view> | ||
| 19 | + <view class="quan-tips" wx:else="">仅可在预订包间、在线买单时使用</view> | ||
| 20 | + </view> | ||
| 21 | + </view> | ||
| 22 | +</view> | ||
| 23 | +<view class="flex-vc" wx:else=""> | ||
| 24 | + <view class="empty-img"></view> | ||
| 25 | + <view class="empty-txt">{{status==1?'暂时没有已经使用的哦':'暂时没有已经失效的哦'}}</view> | ||
| 26 | +</view> |
pack-activity/pack/list.wxss
0 → 100644
| 1 | +/* pack-activity/pages/money.wxss */ | ||
| 2 | +.pages{ | ||
| 3 | + padding-bottom: 50rpx; | ||
| 4 | + padding-top: 80rpx; | ||
| 5 | +} | ||
| 6 | +.list-view{ | ||
| 7 | + width: calc(100% - 40rpx); | ||
| 8 | + margin-left: 20rpx; | ||
| 9 | + background:rgba(255,255,255,1); | ||
| 10 | + border-radius:20rpx; | ||
| 11 | + box-sizing: border-box; | ||
| 12 | + padding: 20rpx 20rpx 0rpx; | ||
| 13 | +} | ||
| 14 | +.sellername{ | ||
| 15 | + height:40rpx; | ||
| 16 | + font-size:28rpx; | ||
| 17 | + font-family:PingFangSC-Regular,PingFang SC; | ||
| 18 | + font-weight:400; | ||
| 19 | + color:rgba(53,53,53,1); | ||
| 20 | + line-height:40rpx; | ||
| 21 | +} | ||
| 22 | +.more{ | ||
| 23 | + margin-left: 10rpx; | ||
| 24 | +} | ||
| 25 | +.quan{ | ||
| 26 | + margin-top: 10rpx; | ||
| 27 | +} | ||
| 28 | +.quan-tips{ | ||
| 29 | + height:50rpx; | ||
| 30 | + background:rgba(250,250,250,1); | ||
| 31 | + border-radius:0rpx 0rpx 10rpx 10rpx; | ||
| 32 | + font-size:22rpx; | ||
| 33 | + font-family:PingFangSC-Regular,PingFang SC; | ||
| 34 | + font-weight:400; | ||
| 35 | + color:rgba(174,174,174,1); | ||
| 36 | + line-height:50rpx; | ||
| 37 | + padding-left: 36rpx; | ||
| 38 | + width: 100%; | ||
| 39 | + box-sizing: border-box; | ||
| 40 | +} | ||
| 41 | + | ||
| 42 | +.button-use{ | ||
| 43 | + position: absolute; | ||
| 44 | + top:-12rpx; | ||
| 45 | + right:14rpx; | ||
| 46 | + width:117rpx; | ||
| 47 | + height:117rpx; | ||
| 48 | + background-size: 100% 100%; | ||
| 49 | +} | ||
| 50 | +.status-1{ | ||
| 51 | + background-image: url("http://nosqn.colorcun.com/sellerbaobao/use.png"); | ||
| 52 | +} | ||
| 53 | +.status-2{ | ||
| 54 | + background-image: url("http://nosqn.colorcun.com/sellerbaobao/lose.png"); | ||
| 55 | +} | ||
| 56 | +.empty-img{ | ||
| 57 | + background-image: url("http://nosqn.colorcun.com/sellerbaobao/empty2.png"); | ||
| 58 | + background-size: 100% 100%; | ||
| 59 | + width:302rpx; | ||
| 60 | + height:408rpx; | ||
| 61 | + margin-top: 300rpx; | ||
| 62 | +} | ||
| 63 | +.empty-txt{ | ||
| 64 | + height:44rpx; | ||
| 65 | + font-size:32rpx; | ||
| 66 | + font-family:PingFangSC-Regular,PingFang SC; | ||
| 67 | + font-weight:400; | ||
| 68 | + color:rgba(53,53,53,1); | ||
| 69 | + line-height:44rpx; | ||
| 70 | + margin-top: 40rpx; | ||
| 71 | +} | ||
| 72 | + | ||
| 73 | +.tabs{ | ||
| 74 | + height: 80rpx; | ||
| 75 | + line-height: 80rpx; | ||
| 76 | + border-bottom: 2rpx solid #F5F5F5; | ||
| 77 | + box-sizing: border-box; | ||
| 78 | + width: 100%; | ||
| 79 | + position: fixed; | ||
| 80 | + background-color: #fefefe; | ||
| 81 | + z-index: 2; | ||
| 82 | +} | ||
| 83 | +.tabs-item{ | ||
| 84 | + width: 50%; | ||
| 85 | + height: 80rpx; | ||
| 86 | +} | ||
| 87 | +.tabs-txt{ | ||
| 88 | + height: 80rpx; | ||
| 89 | + width: 120rpx; | ||
| 90 | + box-sizing: border-box; | ||
| 91 | + text-align: center; | ||
| 92 | +} | ||
| 93 | +.active .tabs-txt{ | ||
| 94 | + border-bottom: 4rpx solid #C0A369; | ||
| 95 | + color:#C0A369; | ||
| 96 | +} |
pack-activity/pack/pack.js
0 → 100644
| 1 | +// pack-activity/pages/money.js | ||
| 2 | +import util from '../../utils/util'; | ||
| 3 | +import App from '../../utils/api'; | ||
| 4 | +Page({ | ||
| 5 | + | ||
| 6 | + /** | ||
| 7 | + * 页面的初始数据 | ||
| 8 | + */ | ||
| 9 | + data: { | ||
| 10 | + list:[], | ||
| 11 | + }, | ||
| 12 | + | ||
| 13 | + /** | ||
| 14 | + * 生命周期函数--监听页面加载 | ||
| 15 | + */ | ||
| 16 | + onLoad: function (options) { | ||
| 17 | + //this.GetUserCard() | ||
| 18 | + }, | ||
| 19 | + | ||
| 20 | + /** | ||
| 21 | + * 生命周期函数--监听页面初次渲染完成 | ||
| 22 | + */ | ||
| 23 | + onReady: function () { | ||
| 24 | + this.selectComponent('#getpos').getPos(); | ||
| 25 | + }, | ||
| 26 | + | ||
| 27 | + /** | ||
| 28 | + * 生命周期函数--监听页面显示 | ||
| 29 | + */ | ||
| 30 | + onShow: function () { | ||
| 31 | + | ||
| 32 | + }, | ||
| 33 | + | ||
| 34 | + /** | ||
| 35 | + * 生命周期函数--监听页面隐藏 | ||
| 36 | + */ | ||
| 37 | + onHide: function () { | ||
| 38 | + | ||
| 39 | + }, | ||
| 40 | + | ||
| 41 | + /** | ||
| 42 | + * 生命周期函数--监听页面卸载 | ||
| 43 | + */ | ||
| 44 | + onUnload: function () { | ||
| 45 | + | ||
| 46 | + }, | ||
| 47 | + | ||
| 48 | + /** | ||
| 49 | + * 页面相关事件处理函数--监听用户下拉动作 | ||
| 50 | + */ | ||
| 51 | + onPullDownRefresh: function () { | ||
| 52 | + | ||
| 53 | + }, | ||
| 54 | + | ||
| 55 | + /** | ||
| 56 | + * 页面上拉触底事件的处理函数 | ||
| 57 | + */ | ||
| 58 | + onReachBottom: function () { | ||
| 59 | + if(this.hasMore){ | ||
| 60 | + this.page+=1; | ||
| 61 | + this.GetUserCard() | ||
| 62 | + } | ||
| 63 | + | ||
| 64 | + }, | ||
| 65 | + page:1, | ||
| 66 | + size:10, | ||
| 67 | + hasMore:true, | ||
| 68 | + GetUserCard(){ | ||
| 69 | + App.Customer.GetUserCard({ | ||
| 70 | + page:this.page, | ||
| 71 | + size:this.size, | ||
| 72 | + status:0, | ||
| 73 | + lat:this.location.latitude, | ||
| 74 | + lng:this.location.longitude, | ||
| 75 | + }).then(res=> { | ||
| 76 | + let list=this.data.list | ||
| 77 | + list=list.concat(res.data) | ||
| 78 | + if(res.data.length<this.size){ | ||
| 79 | + this.hasMore=false; | ||
| 80 | + } | ||
| 81 | + this.setData({ | ||
| 82 | + list: list | ||
| 83 | + }) | ||
| 84 | + }) | ||
| 85 | + }, | ||
| 86 | + useCard(e){ | ||
| 87 | + let sid=util.attr(e,'sid') | ||
| 88 | + if(sid>0) { | ||
| 89 | + wx.navigateTo({ | ||
| 90 | + url: '/pages/reserve/detail?id=' + sid + '&activeTab=reserve' | ||
| 91 | + }) | ||
| 92 | + }else{ | ||
| 93 | + //lat=39.62420161&lng=118.1174469&multiIndex=0¢re_pos=39.62420161,118.1174469&hasSuggestion= | ||
| 94 | + wx.navigateTo({ | ||
| 95 | + url: util.http_build_query({ | ||
| 96 | + lat:this.location.latitude, | ||
| 97 | + lng:this.location.longitude, | ||
| 98 | + centre_pos:`${this.location.latitude},${this.location.longitude}`, | ||
| 99 | + keyword:' ', | ||
| 100 | + isopen_md:1, | ||
| 101 | + multiIndex:0, | ||
| 102 | + },'/pages/reserve/indexList'), | ||
| 103 | + }) | ||
| 104 | + } | ||
| 105 | + }, | ||
| 106 | + location:null, | ||
| 107 | + onpos(e){ | ||
| 108 | + console.log('onpos',e); | ||
| 109 | + this.location=e.detail | ||
| 110 | + this.GetUserCard(); | ||
| 111 | + }, | ||
| 112 | +}) |
pack-activity/pack/pack.json
0 → 100644
pack-activity/pack/pack.wxml
0 → 100644
| 1 | +<!--pack-activity/pages/money.wxml--> | ||
| 2 | +<wxs src="../../utils/util.wxs" module="util" /> | ||
| 3 | +<nav hasHome>我的红包</nav> | ||
| 4 | +<view class="pages" wx:if="{{list.length>0}}"> | ||
| 5 | + <view class="list-view list-view-{{item.sid}}" wx:for="{{list}}" wx:key="list"> | ||
| 6 | + <navigator url="/pages/reserve/detail?id={{item.sid}}" hover-class="navigator-hover" wx:if="{{item.sid>0}}"> | ||
| 7 | + <view class="sellername flex-lr"> | ||
| 8 | + <view>{{item.sellername}}</view> | ||
| 9 | + <view class="flex-rr"> | ||
| 10 | + 点击进店 | ||
| 11 | + <view class="more"></view> | ||
| 12 | + </view> | ||
| 13 | + </view> | ||
| 14 | + </navigator> | ||
| 15 | + <view class="quan" wx:for="{{item.card_list}}" wx:key="card_list" wx:for-item="quan"> | ||
| 16 | + <quan quan="{{quan}}" cla="{{item.sid==0?'quan-pt bg-f5f5f5':''}}"> | ||
| 17 | + <view class="button-use" bindtap="useCard" data-sid="{{item.sid}}">立即使用</view> | ||
| 18 | + </quan> | ||
| 19 | + <view class="quan-tips pingtai" wx:if="{{item.sid==0}}">适用于平台所有商家,预订包间、在线买单时使用</view> | ||
| 20 | + <view class="quan-tips" wx:else="">仅可在预订包间、在线买单时使用</view> | ||
| 21 | + </view> | ||
| 22 | + </view> | ||
| 23 | +</view> | ||
| 24 | +<view class="flex-vc" wx:else=""> | ||
| 25 | + <view class="empty-img"></view> | ||
| 26 | + <view class="empty-txt">哎呀一个红包都没有呢</view> | ||
| 27 | +</view> | ||
| 28 | +<navigator url="./list" hover-class="navigator-hover"> | ||
| 29 | + <view class="more-link flex-cc"> | ||
| 30 | + <view>查看红包历史记录</view> | ||
| 31 | + <view class="more"></view> | ||
| 32 | + </view> | ||
| 33 | +</navigator> | ||
| 34 | +<getpos bindpos="onpos" id="getpos" hasAllowFail hasAllowLoading="{{false}}"></getpos> |
pack-activity/pack/pack.wxss
0 → 100644
| 1 | +/* pack-activity/pages/money.wxss */ | ||
| 2 | +page{ | ||
| 3 | + background-color: #F5F5F5; | ||
| 4 | +} | ||
| 5 | +.pages{ | ||
| 6 | + padding-bottom: 150rpx; | ||
| 7 | +} | ||
| 8 | +.list-view{ | ||
| 9 | + width: calc(100% - 40rpx); | ||
| 10 | + margin-left: 20rpx; | ||
| 11 | + background:rgba(255,255,255,1); | ||
| 12 | + border-radius:20rpx; | ||
| 13 | + box-sizing: border-box; | ||
| 14 | + padding: 20rpx 20rpx 40rpx; | ||
| 15 | + margin-bottom: 20rpx; | ||
| 16 | +} | ||
| 17 | +.list-view-0{ | ||
| 18 | + background: none; | ||
| 19 | + margin-top: 0rpx; | ||
| 20 | + padding-bottom: 20rpx; | ||
| 21 | +} | ||
| 22 | +.sellername{ | ||
| 23 | + height:40rpx; | ||
| 24 | + font-size:28rpx; | ||
| 25 | + font-family:PingFangSC-Regular,PingFang SC; | ||
| 26 | + font-weight:400; | ||
| 27 | + color:rgba(53,53,53,1); | ||
| 28 | + line-height:40rpx; | ||
| 29 | +} | ||
| 30 | +.more{ | ||
| 31 | + margin-left: 10rpx; | ||
| 32 | +} | ||
| 33 | +.quan{ | ||
| 34 | + margin-top: 20rpx; | ||
| 35 | +} | ||
| 36 | +.quan-tips{ | ||
| 37 | + height:50rpx; | ||
| 38 | + background:rgba(245,245,245,1); | ||
| 39 | + border-radius:0rpx 0rpx 10rpx 10rpx; | ||
| 40 | + font-size:22rpx; | ||
| 41 | + font-family:PingFangSC-Regular,PingFang SC; | ||
| 42 | + font-weight:400; | ||
| 43 | + color:rgba(136,136,136,1); | ||
| 44 | + line-height:50rpx; | ||
| 45 | + padding-left: 36rpx; | ||
| 46 | + width: 100%; | ||
| 47 | + box-sizing: border-box; | ||
| 48 | +} | ||
| 49 | +.pingtai{ | ||
| 50 | + background:rgba(255,255,255,1); | ||
| 51 | + color:rgba(136,136,136,1); | ||
| 52 | +} | ||
| 53 | + | ||
| 54 | +.button-use{ | ||
| 55 | + width:120rpx; | ||
| 56 | + height:44rpx; | ||
| 57 | + background:linear-gradient(180deg,rgba(231,66,88,1) 0%,rgba(243,53,78,1) 100%); | ||
| 58 | + border-radius:6rpx; | ||
| 59 | + font-size:24rpx; | ||
| 60 | + font-family:PingFangSC-Medium,PingFang SC; | ||
| 61 | + font-weight:500; | ||
| 62 | + color:rgba(255,227,192,1); | ||
| 63 | + line-height:44rpx; | ||
| 64 | + text-align: center; | ||
| 65 | +} | ||
| 66 | +.more-link{ | ||
| 67 | + height:120rpx; | ||
| 68 | + background:rgba(255,255,255,1); | ||
| 69 | + box-shadow:0rpx -4rpx 10rpx 0rpx rgba(219,219,219,1); | ||
| 70 | + position: fixed; | ||
| 71 | + bottom:0; | ||
| 72 | + left:0; | ||
| 73 | + width: 100%; | ||
| 74 | + line-height: 120rpx; | ||
| 75 | + | ||
| 76 | + font-size:30rpx; | ||
| 77 | + font-family:PingFangSC-Regular,PingFang SC; | ||
| 78 | + font-weight:400; | ||
| 79 | + color:rgba(153,153,153,1); | ||
| 80 | +} | ||
| 81 | +.more-link .more{ | ||
| 82 | + margin-left: 20rpx; | ||
| 83 | +} | ||
| 84 | +.empty-img{ | ||
| 85 | + background-image: url("http://nosqn.colorcun.com/sellerbaobao/empty.png"); | ||
| 86 | + background-size: 100% 100%; | ||
| 87 | + width:302rpx; | ||
| 88 | + height:408rpx; | ||
| 89 | + margin-top: 300rpx; | ||
| 90 | +} | ||
| 91 | +.empty-txt{ | ||
| 92 | + height:44rpx; | ||
| 93 | + font-size:32rpx; | ||
| 94 | + font-family:PingFangSC-Regular,PingFang SC; | ||
| 95 | + font-weight:400; | ||
| 96 | + color:rgba(53,53,53,1); | ||
| 97 | + line-height:44rpx; | ||
| 98 | + margin-top: 40rpx; | ||
| 99 | +} |
pack-activity/pages/index.js
0 → 100644
| 1 | +// pack-activity/pages/index.js | ||
| 2 | +import util from '../../utils/util'; | ||
| 3 | +import App from '../../utils/api'; | ||
| 4 | +Page({ | ||
| 5 | + | ||
| 6 | + /** | ||
| 7 | + * 页面的初始数据 | ||
| 8 | + */ | ||
| 9 | + data: { | ||
| 10 | + activity:null, | ||
| 11 | + count:0, | ||
| 12 | + }, | ||
| 13 | + | ||
| 14 | + /** | ||
| 15 | + * 生命周期函数--监听页面加载 | ||
| 16 | + */ | ||
| 17 | + onLoad: function (options) { | ||
| 18 | + this.options=options | ||
| 19 | + let sys=wx.getSystemInfoSync(); | ||
| 20 | + if("wxwork"==sys.environment){ | ||
| 21 | + console.log('wxwork run pack-activity',options) | ||
| 22 | + App.Task.GetTaskByOpenid({ | ||
| 23 | + ...options | ||
| 24 | + }).then(res=>{ | ||
| 25 | + this.options.id=options.aid | ||
| 26 | + if(res.ret==200){ | ||
| 27 | + util.toast('恭喜获得红包','none') | ||
| 28 | + setTimeout(()=>{ | ||
| 29 | + this.GetTaskInfos() | ||
| 30 | + },300) | ||
| 31 | + } | ||
| 32 | + }) | ||
| 33 | + } | ||
| 34 | + }, | ||
| 35 | + | ||
| 36 | + /** | ||
| 37 | + * 生命周期函数--监听页面初次渲染完成 | ||
| 38 | + */ | ||
| 39 | + onReady: function () { | ||
| 40 | + | ||
| 41 | + }, | ||
| 42 | + | ||
| 43 | + /** | ||
| 44 | + * 生命周期函数--监听页面显示 | ||
| 45 | + */ | ||
| 46 | + onShow: function () { | ||
| 47 | + this.GetTaskInfos() | ||
| 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 | + | ||
| 76 | + }, | ||
| 77 | + | ||
| 78 | + /** | ||
| 79 | + * 用户点击右上角分享 | ||
| 80 | + */ | ||
| 81 | + onShareAppMessage: function () { | ||
| 82 | + return { | ||
| 83 | + title:this.data.activity.title, | ||
| 84 | + path:'/pages/reserve/index', | ||
| 85 | + imageUrl:this.data.activity.bgurl+'.share.jpg', | ||
| 86 | + } | ||
| 87 | + }, | ||
| 88 | + GetTaskInfos(){ | ||
| 89 | + App.Task.GetTaskInfos({ | ||
| 90 | + aid:this.options.id, | ||
| 91 | + }).then(res=>{ | ||
| 92 | + let activity=res.data.activity | ||
| 93 | + activity.list=res.data.task | ||
| 94 | + let count=0 | ||
| 95 | + activity.list.forEach(t=>{ | ||
| 96 | + if(t.status==2){ | ||
| 97 | + count+=(t.price*1) | ||
| 98 | + } | ||
| 99 | + }) | ||
| 100 | + this.setData({ | ||
| 101 | + count:count.toFixed(2), | ||
| 102 | + activity:activity | ||
| 103 | + }) | ||
| 104 | + }) | ||
| 105 | + }, | ||
| 106 | + taskNextDo(e){ | ||
| 107 | + let index=util.attr(e,'index') | ||
| 108 | + let task=this.data.activity.list[index] | ||
| 109 | + let tid=task.id | ||
| 110 | + ,path=util.http_build_query({aid:this.data.activity.id,tid:tid},task.task_url||'/pack-activity/pages/yuding') | ||
| 111 | + console.log(path) | ||
| 112 | + if(task.status==0){ | ||
| 113 | + App.Task.SetTaskInfo({//领取任务 | ||
| 114 | + aid:this.data.activity.id, | ||
| 115 | + tid:tid, | ||
| 116 | + }).then(()=>{ | ||
| 117 | + this.GetTaskInfos() | ||
| 118 | + wx.navigateTo({ | ||
| 119 | + url: path | ||
| 120 | + }) | ||
| 121 | + }) | ||
| 122 | + }else if(task.status==1){ | ||
| 123 | + wx.navigateTo({ | ||
| 124 | + url: path | ||
| 125 | + }) | ||
| 126 | + }else{ | ||
| 127 | + wx.navigateTo({ | ||
| 128 | + url: '/pack-activity/pack/pack' | ||
| 129 | + }) | ||
| 130 | + } | ||
| 131 | + }, | ||
| 132 | +}) |
pack-activity/pages/index.json
0 → 100644
pack-activity/pages/index.wxml
0 → 100644
| 1 | +<!--pack-activity/pages/index.wxml--> | ||
| 2 | +<nav hasHome>周到安排</nav> | ||
| 3 | +<view class="pages" style="background-color: {{activity.element}}"> | ||
| 4 | + <view class="banner"> | ||
| 5 | + <image mode="widthFix" src="{{activity.bgurl}}" style="width: 100%"></image> | ||
| 6 | + <navigator url="/pack-activity/pages/rule?id={{activity.id}}" hover-class="navigator-hover"> | ||
| 7 | + <view class="guize">活动 规则</view> | ||
| 8 | + </navigator> | ||
| 9 | + <view class="nomoney" wx:if="{{activity.balance<=1000}}"></view> | ||
| 10 | + </view> | ||
| 11 | + <view class="content"> | ||
| 12 | + <navigator url="/pack-activity/pack/pack" hover-class="navigator-hover"> | ||
| 13 | + <view class="tips flex-lr"> | ||
| 14 | + <view>活动累计收入:{{count}}元</view> | ||
| 15 | + <view class="flex-rr"> | ||
| 16 | + 查看余额 | ||
| 17 | + <view class="more"></view> | ||
| 18 | + </view> | ||
| 19 | + </view> | ||
| 20 | + </navigator> | ||
| 21 | + <view class="list"> | ||
| 22 | + <view class="header flex-cc"> | ||
| 23 | + <view class="header-img lt"></view> | ||
| 24 | + <view class="header-txt">完成任务得红包</view> | ||
| 25 | + <view class="header-img gt"></view> | ||
| 26 | + </view> | ||
| 27 | + <view class="item flex-lr" wx:for="{{activity.list}}" wx:key="list"> | ||
| 28 | + <image class="icon" src="{{item.icon_url}}" mode="aspectFit"></image> | ||
| 29 | + <view class="item-content"> | ||
| 30 | + <view class="item-title">{{item.title}}</view> | ||
| 31 | + <view class="item-desc">{{item.desc}}</view> | ||
| 32 | + </view> | ||
| 33 | + <view class="opt" bindtap="taskNextDo" data-index="{{index}}" wx:if="{{activity.balance>1000}}"> | ||
| 34 | + <view class="opt-button status{{item.status}}">{{['领取','去完成','已完成'][item.status]}}</view> | ||
| 35 | + <view class="opt-money">{{item.price}}元红包</view> | ||
| 36 | + </view> | ||
| 37 | + </view> | ||
| 38 | + </view> | ||
| 39 | + <view class="share-but"> | ||
| 40 | + <button class="button-none" open-type="share">分享活动</button> | ||
| 41 | + </view> | ||
| 42 | + </view> | ||
| 43 | +</view> |
pack-activity/pages/index.wxss
0 → 100644
| 1 | +/* pack-activity/pages/index.wxss */ | ||
| 2 | +.pages{ | ||
| 3 | +} | ||
| 4 | +.banner{ | ||
| 5 | + width:100%; | ||
| 6 | + background:linear-gradient(202deg,rgba(213,45,182,1) 0%,rgba(240,72,102,1) 100%); | ||
| 7 | + position: relative; | ||
| 8 | +} | ||
| 9 | +.content{ | ||
| 10 | + height: 1020rpx; | ||
| 11 | + width: calc(100% - 40rpx); | ||
| 12 | + margin: 0 20rpx 0; | ||
| 13 | +} | ||
| 14 | +.tips{ | ||
| 15 | + width:100%; | ||
| 16 | + height:50rpx; | ||
| 17 | + background:rgba(53,53,53,0.3); | ||
| 18 | + border-radius:30rpx; | ||
| 19 | + box-sizing: border-box; | ||
| 20 | + padding: 0 28rpx 0 40rpx; | ||
| 21 | + | ||
| 22 | + font-size:24rpx; | ||
| 23 | + font-weight:500; | ||
| 24 | + color:rgba(255,255,255,1); | ||
| 25 | + line-height:50rpx; | ||
| 26 | +} | ||
| 27 | +.more{ | ||
| 28 | + background-image: url("http://nosqn.colorcun.com/activity/images/more.png"); | ||
| 29 | + margin-left: 22rpx; | ||
| 30 | +} | ||
| 31 | +.guize{ | ||
| 32 | + width:40rpx; | ||
| 33 | + height:120rpx; | ||
| 34 | + background:rgba(53,53,53,0.29); | ||
| 35 | + border-radius:10rpx 0rpx 0rpx 10rpx; | ||
| 36 | + padding: 2rpx 10rpx 0; | ||
| 37 | + box-sizing: border-box; | ||
| 38 | + | ||
| 39 | + font-size:20rpx; | ||
| 40 | + font-weight:500; | ||
| 41 | + color:rgba(255,255,255,1); | ||
| 42 | + line-height:28rpx; | ||
| 43 | + position: absolute; | ||
| 44 | + top:20rpx; | ||
| 45 | + right:0; | ||
| 46 | +} | ||
| 47 | +.nomoney{ | ||
| 48 | + background-image: url("http://nosqn.colorcun.com/activity/images/nomoney.png"); | ||
| 49 | + width:176rpx; | ||
| 50 | + height:144rpx; | ||
| 51 | + right:24rpx; | ||
| 52 | + bottom: 42rpx; | ||
| 53 | + position: absolute; | ||
| 54 | + background-size: 100% 100%; | ||
| 55 | +} | ||
| 56 | +.list{ | ||
| 57 | + background:rgba(255,255,255,1); | ||
| 58 | + box-shadow:4rpx 4rpx 6rpx 4rpx rgba(218,61,69,1); | ||
| 59 | + border-radius:20rpx; | ||
| 60 | + margin-top: 20rpx; | ||
| 61 | + box-sizing: border-box; | ||
| 62 | + padding-top: 60rpx; | ||
| 63 | + padding-bottom: 60rpx; | ||
| 64 | +} | ||
| 65 | + | ||
| 66 | +.header{ | ||
| 67 | + margin-bottom: 60rpx; | ||
| 68 | +} | ||
| 69 | +.header .header-txt{ | ||
| 70 | + width:236rpx; | ||
| 71 | + height:44rpx; | ||
| 72 | + font-size:32rpx; | ||
| 73 | + font-weight:600; | ||
| 74 | + color:rgba(204,17,39,1); | ||
| 75 | + line-height:44rpx; | ||
| 76 | + margin: 0 20rpx; | ||
| 77 | +} | ||
| 78 | +.header-img{ | ||
| 79 | + background-size: 100% 100%; | ||
| 80 | + width: 70rpx; | ||
| 81 | + height: 16rpx; | ||
| 82 | +} | ||
| 83 | +.header-img.gt{ | ||
| 84 | + background-image: url("http://nosqn.colorcun.com/activity/images/lt.png"); | ||
| 85 | +} | ||
| 86 | +.header-img.lt{ | ||
| 87 | + background-image: url("http://nosqn.colorcun.com/activity/images/gt.png"); | ||
| 88 | +} | ||
| 89 | +.list .item{ | ||
| 90 | + margin-bottom: 60rpx; | ||
| 91 | + height: 94rpx; | ||
| 92 | + padding: 0 20rpx; | ||
| 93 | + box-sizing: border-box; | ||
| 94 | +} | ||
| 95 | +.list .item:last-child{ | ||
| 96 | + margin-bottom: 0; | ||
| 97 | +} | ||
| 98 | +.item .icon{ | ||
| 99 | + width: 94rpx; | ||
| 100 | + height: 94rpx; | ||
| 101 | + min-width: 94rpx; | ||
| 102 | +} | ||
| 103 | +.item-content{ | ||
| 104 | + margin-left: 10rpx; | ||
| 105 | + width: 100%; | ||
| 106 | +} | ||
| 107 | +.opt{ | ||
| 108 | + width: 130rpx; | ||
| 109 | + min-width: 130rpx; | ||
| 110 | +} | ||
| 111 | +.item-title{ | ||
| 112 | + height:44rpx; | ||
| 113 | + font-size:32rpx; | ||
| 114 | + font-weight:600; | ||
| 115 | + color:rgba(53,53,53,1); | ||
| 116 | + line-height:44rpx; | ||
| 117 | +} | ||
| 118 | +.item-desc{ | ||
| 119 | + height:34rpx; | ||
| 120 | + font-size:24rpx; | ||
| 121 | + font-weight:500; | ||
| 122 | + color:rgba(153,153,153,1); | ||
| 123 | + line-height:34rpx; | ||
| 124 | + margin-top: 10rpx; | ||
| 125 | +} | ||
| 126 | +.opt-money{ | ||
| 127 | + height:28rpx; | ||
| 128 | + font-size:20rpx; | ||
| 129 | + font-weight:600; | ||
| 130 | + color:rgba(230,34,57,1); | ||
| 131 | + line-height:28rpx; | ||
| 132 | + margin-top: 10rpx; | ||
| 133 | +} | ||
| 134 | +.opt-button{ | ||
| 135 | + box-sizing: border-box; | ||
| 136 | + width:130rpx; | ||
| 137 | + height:50rpx; | ||
| 138 | + border-radius:25rpx; | ||
| 139 | + border:2rpx solid rgba(235,41,65,1); | ||
| 140 | + | ||
| 141 | + font-size:24rpx; | ||
| 142 | + font-weight:600; | ||
| 143 | + color:rgba(230,34,57,1); | ||
| 144 | + line-height:50rpx; | ||
| 145 | + text-align: center; | ||
| 146 | +} | ||
| 147 | +.opt-button.status0,.opt-button.status1{ | ||
| 148 | + background:linear-gradient(180deg,rgba(225,27,49,1) 0%,rgba(243,53,78,1) 100%); | ||
| 149 | + box-shadow:0rpx 2rpx 4rpx 0rpx rgba(232,37,60,1),2rpx 0rpx 6rpx 0rpx rgba(255,172,171,1); | ||
| 150 | + color:rgba(255,227,192,1); | ||
| 151 | +} | ||
| 152 | +.share-but{ | ||
| 153 | + width:400rpx; | ||
| 154 | + height:80rpx; | ||
| 155 | + background:linear-gradient(180deg,rgba(252,190,38,1) 0%,rgba(255,233,128,1) 100%); | ||
| 156 | + box-shadow:0rpx 4rpx 8rpx 0rpx rgba(182,43,68,1); | ||
| 157 | + border-radius:40rpx; | ||
| 158 | + margin-top: 40rpx; | ||
| 159 | + | ||
| 160 | + font-size:32rpx; | ||
| 161 | + font-weight:600; | ||
| 162 | + color:rgba(230,34,57,1); | ||
| 163 | + line-height:80rpx; | ||
| 164 | + text-align: center; | ||
| 165 | + margin-left: calc(50% - 200rpx); | ||
| 166 | +} | ||
| 167 | +.share-but .button-none{ | ||
| 168 | + height: 80rpx; | ||
| 169 | + line-height:80rpx; | ||
| 170 | +} |
pack-activity/pages/kefu.js
0 → 100644
| 1 | +// pack-activity/pages/money.js | ||
| 2 | +import util from '../../utils/util'; | ||
| 3 | +import App from '../../utils/api'; | ||
| 4 | +Page({ | ||
| 5 | + | ||
| 6 | + /** | ||
| 7 | + * 页面的初始数据 | ||
| 8 | + */ | ||
| 9 | + data: { | ||
| 10 | + | ||
| 11 | + }, | ||
| 12 | + | ||
| 13 | + /** | ||
| 14 | + * 生命周期函数--监听页面加载 | ||
| 15 | + */ | ||
| 16 | + onLoad: function (options) { | ||
| 17 | + | ||
| 18 | + }, | ||
| 19 | + | ||
| 20 | + /** | ||
| 21 | + * 生命周期函数--监听页面初次渲染完成 | ||
| 22 | + */ | ||
| 23 | + onReady: function () { | ||
| 24 | + | ||
| 25 | + }, | ||
| 26 | + | ||
| 27 | + /** | ||
| 28 | + * 生命周期函数--监听页面显示 | ||
| 29 | + */ | ||
| 30 | + onShow: function () { | ||
| 31 | + | ||
| 32 | + }, | ||
| 33 | + | ||
| 34 | + /** | ||
| 35 | + * 生命周期函数--监听页面隐藏 | ||
| 36 | + */ | ||
| 37 | + onHide: function () { | ||
| 38 | + | ||
| 39 | + }, | ||
| 40 | + | ||
| 41 | + /** | ||
| 42 | + * 生命周期函数--监听页面卸载 | ||
| 43 | + */ | ||
| 44 | + onUnload: function () { | ||
| 45 | + | ||
| 46 | + }, | ||
| 47 | + | ||
| 48 | + /** | ||
| 49 | + * 页面相关事件处理函数--监听用户下拉动作 | ||
| 50 | + */ | ||
| 51 | + onPullDownRefresh: function () { | ||
| 52 | + | ||
| 53 | + }, | ||
| 54 | + | ||
| 55 | + /** | ||
| 56 | + * 页面上拉触底事件的处理函数 | ||
| 57 | + */ | ||
| 58 | + onReachBottom: function () { | ||
| 59 | + | ||
| 60 | + }, | ||
| 61 | +}) |
pack-activity/pages/kefu.json
0 → 100644
pack-activity/pages/kefu.wxml
0 → 100644
| 1 | +<!--pack-activity/pages/money.wxml--> | ||
| 2 | +<wxs src="../../utils/util.wxs" module="util" /> | ||
| 3 | +<nav hasHome>关注公众号</nav> | ||
| 4 | +<view class="pages"> | ||
| 5 | + <view class="pages-view"> | ||
| 6 | + <view class="text">进入客服消息后,点击右下角快捷图片,长 按图片关注【周到安排】</view> | ||
| 7 | + <image src="http://nosqn.colorcun.com/activity/images/kefux.png" mode="widthFix" style="width: 100%;"></image> | ||
| 8 | + </view> | ||
| 9 | +</view> | ||
| 10 | +<view class="bottom"> | ||
| 11 | + <view class="bottom-view flex-vc"> | ||
| 12 | + <button class="button-love" open-type="contact" | ||
| 13 | + send-message-title="关注公众号" | ||
| 14 | + send-message-img="http://nosqn.colorcun.com/activity/images/kefu.jpg" | ||
| 15 | + show-message-card>去客服页面关注</button> | ||
| 16 | + <view class="tips">关注公众号,及时获取订包间专属优惠信息</view> | ||
| 17 | + </view> | ||
| 18 | +</view> |
pack-activity/pages/kefu.wxss
0 → 100644
| 1 | +/* pack-activity/pages/money.wxss */ | ||
| 2 | +page{ | ||
| 3 | + background-color: #ffffff; | ||
| 4 | +} | ||
| 5 | +.pages{ | ||
| 6 | + background-image: url("http://nosqn.colorcun.com/activity/images/money-header.png"); | ||
| 7 | + background-size: 100% auto; | ||
| 8 | + background-repeat: no-repeat; | ||
| 9 | + min-height: 500rpx; | ||
| 10 | + padding-top: 80rpx; | ||
| 11 | +} | ||
| 12 | +.pages-view{ | ||
| 13 | + width: calc(100% - 40rpx); | ||
| 14 | + margin-left: 20rpx; | ||
| 15 | + height:340rpx; | ||
| 16 | + background:#ffffff; | ||
| 17 | + border-radius:20rpx; | ||
| 18 | + box-sizing: border-box; | ||
| 19 | + padding: 40rpx 20rpx; | ||
| 20 | +} | ||
| 21 | +.text{ | ||
| 22 | + padding: 0 30rpx; | ||
| 23 | + font-size:32rpx; | ||
| 24 | + font-weight:600; | ||
| 25 | + color:rgba(53,53,53,1); | ||
| 26 | + line-height:44rpx; | ||
| 27 | + margin-bottom: 80rpx; | ||
| 28 | +} | ||
| 29 | +.bottom{ | ||
| 30 | + position: fixed; | ||
| 31 | + bottom: 0; | ||
| 32 | + height: 220rpx; | ||
| 33 | + width: 100%; | ||
| 34 | +} | ||
| 35 | +.bottom-view{ | ||
| 36 | + width: 100%; | ||
| 37 | +} | ||
| 38 | +.button-love{ | ||
| 39 | + width:674rpx; | ||
| 40 | + height:80rpx; | ||
| 41 | + background:linear-gradient(360deg,rgba(220,44,75,1) 0%,rgba(244,143,161,1) 100%); | ||
| 42 | + border-radius:40rpx; | ||
| 43 | + font-size:32rpx; | ||
| 44 | + font-weight:600; | ||
| 45 | + color:rgba(255,255,255,1); | ||
| 46 | + line-height:80rpx; | ||
| 47 | + letter-spacing:1rpx; | ||
| 48 | +} | ||
| 49 | +.tips{ | ||
| 50 | + margin-top: 24rpx; | ||
| 51 | + height:36rpx; | ||
| 52 | + font-size:26rpx; | ||
| 53 | + font-weight:500; | ||
| 54 | + color:rgba(153,153,153,1); | ||
| 55 | + line-height:36rpx; | ||
| 56 | +} |
pack-activity/pages/money.js
0 → 100644
| 1 | +// pack-activity/pages/money.js | ||
| 2 | +import util from '../../utils/util'; | ||
| 3 | +import App from '../../utils/api'; | ||
| 4 | +Page({ | ||
| 5 | + | ||
| 6 | + /** | ||
| 7 | + * 页面的初始数据 | ||
| 8 | + */ | ||
| 9 | + data: { | ||
| 10 | + | ||
| 11 | + }, | ||
| 12 | + | ||
| 13 | + /** | ||
| 14 | + * 生命周期函数--监听页面加载 | ||
| 15 | + */ | ||
| 16 | + onLoad: function (options) { | ||
| 17 | + App.User.GetBalance().then(res=>{ | ||
| 18 | + this.setData({ | ||
| 19 | + user:res.data | ||
| 20 | + }) | ||
| 21 | + }) | ||
| 22 | + App.User.GetConsume().then(res=>{ | ||
| 23 | + this.setData({ | ||
| 24 | + list:res.data | ||
| 25 | + }) | ||
| 26 | + }) | ||
| 27 | + }, | ||
| 28 | + | ||
| 29 | + /** | ||
| 30 | + * 生命周期函数--监听页面初次渲染完成 | ||
| 31 | + */ | ||
| 32 | + onReady: function () { | ||
| 33 | + | ||
| 34 | + }, | ||
| 35 | + | ||
| 36 | + /** | ||
| 37 | + * 生命周期函数--监听页面显示 | ||
| 38 | + */ | ||
| 39 | + onShow: function () { | ||
| 40 | + | ||
| 41 | + }, | ||
| 42 | + | ||
| 43 | + /** | ||
| 44 | + * 生命周期函数--监听页面隐藏 | ||
| 45 | + */ | ||
| 46 | + onHide: function () { | ||
| 47 | + | ||
| 48 | + }, | ||
| 49 | + | ||
| 50 | + /** | ||
| 51 | + * 生命周期函数--监听页面卸载 | ||
| 52 | + */ | ||
| 53 | + onUnload: function () { | ||
| 54 | + | ||
| 55 | + }, | ||
| 56 | + | ||
| 57 | + /** | ||
| 58 | + * 页面相关事件处理函数--监听用户下拉动作 | ||
| 59 | + */ | ||
| 60 | + onPullDownRefresh: function () { | ||
| 61 | + | ||
| 62 | + }, | ||
| 63 | + | ||
| 64 | + /** | ||
| 65 | + * 页面上拉触底事件的处理函数 | ||
| 66 | + */ | ||
| 67 | + onReachBottom: function () { | ||
| 68 | + | ||
| 69 | + }, | ||
| 70 | + | ||
| 71 | +}) |
pack-activity/pages/money.json
0 → 100644
pack-activity/pages/money.wxml
0 → 100644
| 1 | +<!--pack-activity/pages/money.wxml--> | ||
| 2 | +<wxs src="../../utils/util.wxs" module="util" /> | ||
| 3 | +<nav hasHome>我的余额</nav> | ||
| 4 | +<view class="pages"> | ||
| 5 | + <view class="pages-view"> | ||
| 6 | + <view class="money-block"> | ||
| 7 | + <view class="money-views-top"> | ||
| 8 | + <view class="txt">我的余额</view> | ||
| 9 | + </view> | ||
| 10 | + <view class="money-views flex-bc"> | ||
| 11 | + <view class="money-number">{{user.price}}</view> | ||
| 12 | + <view class="money-dw">元</view> | ||
| 13 | + </view> | ||
| 14 | + <navigator url="/pages/reserve/index" open-type="switchTab" hover-class="other-navigator-hover"> | ||
| 15 | + <view class="yuding flex-cc"> | ||
| 16 | + <view class="icon"></view> | ||
| 17 | + 去订包间 | ||
| 18 | + </view> | ||
| 19 | + </navigator> | ||
| 20 | + </view> | ||
| 21 | + </view> | ||
| 22 | + <view class="list-view" wx:if="{{list.length>0}}"> | ||
| 23 | + <view class="item" wx:for="{{list}}" wx:key="list"> | ||
| 24 | + <view class="flex-lr name"> | ||
| 25 | + <view>{{item.remark}}</view> | ||
| 26 | + <view>{{item.type==1?'+':'-'}}{{item.consumeprice}}</view> | ||
| 27 | + </view> | ||
| 28 | + <view class="flex-lr date"> | ||
| 29 | + <view>{{util.unixtoTime(item.createtime,"MM-DD HH:II")}}</view> | ||
| 30 | + <view>余额 {{item.currprice}}</view> | ||
| 31 | + </view> | ||
| 32 | + </view> | ||
| 33 | + </view> | ||
| 34 | +</view> |
pack-activity/pages/money.wxss
0 → 100644
| 1 | +/* pack-activity/pages/money.wxss */ | ||
| 2 | +page{ | ||
| 3 | + background-color: #F5F5F5; | ||
| 4 | +} | ||
| 5 | +.pages{ | ||
| 6 | + /*background-image: url("http://nosqn.colorcun.com/activity/images/money-header.png");*/ | ||
| 7 | + background-image: url("http://nosqn.colorcun.com/activity/images/bg-black.png"); | ||
| 8 | + background-size: 100% auto; | ||
| 9 | + background-repeat: no-repeat; | ||
| 10 | + min-height: 500rpx; | ||
| 11 | + padding-top: 80rpx; | ||
| 12 | +} | ||
| 13 | +.pages-view{ | ||
| 14 | + width: calc(100% - 40rpx); | ||
| 15 | + margin-left: 20rpx; | ||
| 16 | + height:340rpx; | ||
| 17 | + background:#ffffff; | ||
| 18 | + border-radius:20rpx; | ||
| 19 | + box-sizing: border-box; | ||
| 20 | + padding: 20rpx; | ||
| 21 | +} | ||
| 22 | +.money-block{ | ||
| 23 | + height:300rpx; | ||
| 24 | + background:rgba(255,255,255,1); | ||
| 25 | + border-radius:20rpx; | ||
| 26 | + padding-top: 40rpx; | ||
| 27 | + box-sizing: border-box; | ||
| 28 | +} | ||
| 29 | +.money-views-top{ | ||
| 30 | + width: 258rpx; | ||
| 31 | + height: 40rpx; | ||
| 32 | + font-size:28rpx; | ||
| 33 | + margin-left: calc(50% - 126rpx); | ||
| 34 | + text-align: center; | ||
| 35 | + font-weight:500; | ||
| 36 | + color:rgba(153,153,153,1); | ||
| 37 | + line-height:40rpx; | ||
| 38 | + position: relative; | ||
| 39 | +} | ||
| 40 | +.money-views-top:before{ | ||
| 41 | + position: absolute; | ||
| 42 | + display: block; | ||
| 43 | + content: ""; | ||
| 44 | + width: 100%; | ||
| 45 | + height: 2rpx; | ||
| 46 | + left:0; | ||
| 47 | + top:19rpx; | ||
| 48 | + background-color: #E0E0E0; | ||
| 49 | +} | ||
| 50 | +.money-views-top .txt{ | ||
| 51 | + width: 138rpx; | ||
| 52 | + background-color: #ffffff; | ||
| 53 | + left:60rpx; | ||
| 54 | + position: absolute; | ||
| 55 | +} | ||
| 56 | + | ||
| 57 | +.money-views{ | ||
| 58 | + height:100rpx; | ||
| 59 | + font-size:72rpx; | ||
| 60 | + font-weight:600; | ||
| 61 | + color:#353535; | ||
| 62 | + line-height:100rpx; | ||
| 63 | + margin-top: 10rpx; | ||
| 64 | +} | ||
| 65 | +.money-dw{ | ||
| 66 | + width:32rpx; | ||
| 67 | + height:44rpx; | ||
| 68 | + font-size:32rpx; | ||
| 69 | + font-weight:600; | ||
| 70 | + color:#353535; | ||
| 71 | + line-height:44rpx; | ||
| 72 | + margin-left: 20rpx; | ||
| 73 | +} | ||
| 74 | +.list-view{ | ||
| 75 | + width: calc(100% - 40rpx); | ||
| 76 | + margin-left: 20rpx; | ||
| 77 | + background:rgba(255,255,255,1); | ||
| 78 | + border-radius:20rpx; | ||
| 79 | + box-sizing: border-box; | ||
| 80 | + padding: 2rpx 40rpx 0; | ||
| 81 | + margin-top: 20rpx; | ||
| 82 | +} | ||
| 83 | +.item{ | ||
| 84 | + height: 166rpx; | ||
| 85 | + box-sizing: border-box; | ||
| 86 | + border-bottom: 2rpx solid #F5F5F5; | ||
| 87 | + line-height: 166rpx; | ||
| 88 | + padding-top: 40rpx; | ||
| 89 | +} | ||
| 90 | +.item:last-child{ | ||
| 91 | + border-bottom-width: 0; | ||
| 92 | +} | ||
| 93 | +.item .name{ | ||
| 94 | + height:44rpx; | ||
| 95 | + font-size:32rpx; | ||
| 96 | + font-weight:500; | ||
| 97 | + color:rgba(53,53,53,1); | ||
| 98 | + line-height:44rpx; | ||
| 99 | + box-sizing: border-box; | ||
| 100 | +} | ||
| 101 | +.item .date{ | ||
| 102 | + height:34rpx; | ||
| 103 | + font-size:24rpx; | ||
| 104 | + font-weight:500; | ||
| 105 | + color:rgba(153,153,153,1); | ||
| 106 | + line-height:34rpx; | ||
| 107 | + margin-top: 10rpx; | ||
| 108 | +} | ||
| 109 | + | ||
| 110 | +.yuding{ | ||
| 111 | + width:320rpx; | ||
| 112 | + height:70rpx; | ||
| 113 | + background:linear-gradient(360deg,rgba(192,163,105,1) 0%,rgba(252,210,167,1) 100%); | ||
| 114 | + border-radius:35rpx; | ||
| 115 | + font-size:32rpx; | ||
| 116 | + font-family:PingFangSC-Semibold,PingFang SC; | ||
| 117 | + font-weight:600; | ||
| 118 | + color:rgba(123,81,42,1); | ||
| 119 | + line-height:70rpx; | ||
| 120 | + margin-left: calc(50% - 160rpx); | ||
| 121 | + margin-top: 40rpx; | ||
| 122 | +} | ||
| 123 | +.yuding .icon{ | ||
| 124 | + background-size: 100% 100%; | ||
| 125 | + width: 30rpx; | ||
| 126 | + height: 30rpx; | ||
| 127 | + background-image: url("http://nosqn.colorcun.com/activity/images/addr.png"); | ||
| 128 | + margin-right: 20rpx; | ||
| 129 | +} |
pack-activity/pages/qiye.js
0 → 100644
| 1 | +// pack-activity/pages/money.js | ||
| 2 | +import util from '../../utils/util'; | ||
| 3 | +import App from '../../utils/api'; | ||
| 4 | +Page({ | ||
| 5 | + | ||
| 6 | + /** | ||
| 7 | + * 页面的初始数据 | ||
| 8 | + */ | ||
| 9 | + data: { | ||
| 10 | + | ||
| 11 | + }, | ||
| 12 | + | ||
| 13 | + /** | ||
| 14 | + * 生命周期函数--监听页面加载 | ||
| 15 | + */ | ||
| 16 | + onLoad: function (options) { | ||
| 17 | + | ||
| 18 | + }, | ||
| 19 | + | ||
| 20 | + /** | ||
| 21 | + * 生命周期函数--监听页面初次渲染完成 | ||
| 22 | + */ | ||
| 23 | + onReady: function () { | ||
| 24 | + | ||
| 25 | + }, | ||
| 26 | + | ||
| 27 | + /** | ||
| 28 | + * 生命周期函数--监听页面显示 | ||
| 29 | + */ | ||
| 30 | + onShow: function () { | ||
| 31 | + | ||
| 32 | + }, | ||
| 33 | + | ||
| 34 | + /** | ||
| 35 | + * 生命周期函数--监听页面隐藏 | ||
| 36 | + */ | ||
| 37 | + onHide: function () { | ||
| 38 | + | ||
| 39 | + }, | ||
| 40 | + | ||
| 41 | + /** | ||
| 42 | + * 生命周期函数--监听页面卸载 | ||
| 43 | + */ | ||
| 44 | + onUnload: function () { | ||
| 45 | + | ||
| 46 | + }, | ||
| 47 | + | ||
| 48 | + /** | ||
| 49 | + * 页面相关事件处理函数--监听用户下拉动作 | ||
| 50 | + */ | ||
| 51 | + onPullDownRefresh: function () { | ||
| 52 | + | ||
| 53 | + }, | ||
| 54 | + | ||
| 55 | + /** | ||
| 56 | + * 页面上拉触底事件的处理函数 | ||
| 57 | + */ | ||
| 58 | + onReachBottom: function () { | ||
| 59 | + | ||
| 60 | + }, | ||
| 61 | +}) |
pack-activity/pages/qiye.json
0 → 100644
pack-activity/pages/qiye.wxml
0 → 100644
| 1 | +<!--pack-activity/pages/money.wxml--> | ||
| 2 | +<wxs src="../../utils/util.wxs" module="util" /> | ||
| 3 | +<nav hasHome>添加企业微信</nav> | ||
| 4 | +<view class="pages"> | ||
| 5 | + <view class="pages-view"> | ||
| 6 | + <view class="text">【周到安排】已为您分配专属客服,订包间相关的任何问题,都可以撩我</view> | ||
| 7 | + <image src="http://nosqn.colorcun.com/activity/images/kefux.png" mode="widthFix" style="width: 100%;"></image> | ||
| 8 | + </view> | ||
| 9 | +</view> | ||
| 10 | +<view class="bottom"> | ||
| 11 | + <view class="bottom-view flex-vc"> | ||
| 12 | + <button class="button-love" open-type="contact" | ||
| 13 | + send-message-title="添加企业微信" | ||
| 14 | + send-message-img="http://nosqn.colorcun.com/activity/images/kefu.jpg" | ||
| 15 | + show-message-card>去客服页面关注</button> | ||
| 16 | + <view class="tips">添加企业微信,及时获知红包领取详情</view> | ||
| 17 | + </view> | ||
| 18 | +</view> |
pack-activity/pages/qiye.wxss
0 → 100644
| 1 | +/* pack-activity/pages/money.wxss */ | ||
| 2 | +page{ | ||
| 3 | + background-color: #ffffff; | ||
| 4 | +} | ||
| 5 | +.pages{ | ||
| 6 | + background-image: url("http://nosqn.colorcun.com/activity/images/money-header.png"); | ||
| 7 | + background-size: 100% auto; | ||
| 8 | + background-repeat: no-repeat; | ||
| 9 | + min-height: 500rpx; | ||
| 10 | + padding-top: 80rpx; | ||
| 11 | +} | ||
| 12 | +.pages-view{ | ||
| 13 | + width: calc(100% - 40rpx); | ||
| 14 | + margin-left: 20rpx; | ||
| 15 | + height:340rpx; | ||
| 16 | + background:#ffffff; | ||
| 17 | + border-radius:20rpx; | ||
| 18 | + box-sizing: border-box; | ||
| 19 | + padding: 40rpx 20rpx; | ||
| 20 | +} | ||
| 21 | +.text{ | ||
| 22 | + padding: 0 30rpx; | ||
| 23 | + font-size:32rpx; | ||
| 24 | + font-weight:600; | ||
| 25 | + color:rgba(53,53,53,1); | ||
| 26 | + line-height:44rpx; | ||
| 27 | + margin-bottom: 80rpx; | ||
| 28 | +} | ||
| 29 | +.bottom{ | ||
| 30 | + position: fixed; | ||
| 31 | + bottom: 0; | ||
| 32 | + height: 220rpx; | ||
| 33 | + width: 100%; | ||
| 34 | +} | ||
| 35 | +.bottom-view{ | ||
| 36 | + width: 100%; | ||
| 37 | +} | ||
| 38 | +.button-love{ | ||
| 39 | + width:674rpx; | ||
| 40 | + height:80rpx; | ||
| 41 | + background:linear-gradient(360deg,rgba(220,44,75,1) 0%,rgba(244,143,161,1) 100%); | ||
| 42 | + border-radius:40rpx; | ||
| 43 | + font-size:32rpx; | ||
| 44 | + font-weight:600; | ||
| 45 | + color:rgba(255,255,255,1); | ||
| 46 | + line-height:80rpx; | ||
| 47 | + letter-spacing:1rpx; | ||
| 48 | +} | ||
| 49 | +.tips{ | ||
| 50 | + margin-top: 24rpx; | ||
| 51 | + height:36rpx; | ||
| 52 | + font-size:26rpx; | ||
| 53 | + font-weight:500; | ||
| 54 | + color:rgba(153,153,153,1); | ||
| 55 | + line-height:36rpx; | ||
| 56 | +} |
pack-activity/pages/rule.js
0 → 100644
| 1 | +// pack-activity/pages/index.js | ||
| 2 | +import util from '../../utils/util'; | ||
| 3 | +import App from '../../utils/api'; | ||
| 4 | +Page({ | ||
| 5 | + | ||
| 6 | + /** | ||
| 7 | + * 页面的初始数据 | ||
| 8 | + */ | ||
| 9 | + data: { | ||
| 10 | + activity:null, | ||
| 11 | + }, | ||
| 12 | + | ||
| 13 | + /** | ||
| 14 | + * 生命周期函数--监听页面加载 | ||
| 15 | + */ | ||
| 16 | + onLoad: function (options) { | ||
| 17 | + this.options=options | ||
| 18 | + let sys=wx.getSystemInfoSync(); | ||
| 19 | + this.setData({ | ||
| 20 | + height:sys.windowHeight, | ||
| 21 | + }) | ||
| 22 | + this.GetTaskInfos() | ||
| 23 | + }, | ||
| 24 | + | ||
| 25 | + /** | ||
| 26 | + * 生命周期函数--监听页面初次渲染完成 | ||
| 27 | + */ | ||
| 28 | + onReady: function () { | ||
| 29 | + | ||
| 30 | + }, | ||
| 31 | + | ||
| 32 | + /** | ||
| 33 | + * 生命周期函数--监听页面显示 | ||
| 34 | + */ | ||
| 35 | + onShow: function () { | ||
| 36 | + this.GetTaskInfos() | ||
| 37 | + }, | ||
| 38 | + | ||
| 39 | + /** | ||
| 40 | + * 生命周期函数--监听页面隐藏 | ||
| 41 | + */ | ||
| 42 | + onHide: function () { | ||
| 43 | + | ||
| 44 | + }, | ||
| 45 | + | ||
| 46 | + /** | ||
| 47 | + * 生命周期函数--监听页面卸载 | ||
| 48 | + */ | ||
| 49 | + onUnload: function () { | ||
| 50 | + | ||
| 51 | + }, | ||
| 52 | + | ||
| 53 | + /** | ||
| 54 | + * 页面相关事件处理函数--监听用户下拉动作 | ||
| 55 | + */ | ||
| 56 | + onPullDownRefresh: function () { | ||
| 57 | + | ||
| 58 | + }, | ||
| 59 | + | ||
| 60 | + /** | ||
| 61 | + * 页面上拉触底事件的处理函数 | ||
| 62 | + */ | ||
| 63 | + onReachBottom: function () { | ||
| 64 | + | ||
| 65 | + }, | ||
| 66 | + | ||
| 67 | + /** | ||
| 68 | + * 用户点击右上角分享 | ||
| 69 | + */ | ||
| 70 | + onShareAppMessage: function () { | ||
| 71 | + return { | ||
| 72 | + title:this.data.activity.title, | ||
| 73 | + path:'/pages/reserve/index', | ||
| 74 | + imageUrl:this.data.activity.bgurl+'.share.jpg', | ||
| 75 | + } | ||
| 76 | + }, | ||
| 77 | + GetTaskInfos(){ | ||
| 78 | + App.Task.GetTaskInfos({ | ||
| 79 | + aid:this.options.id, | ||
| 80 | + }).then(res=>{ | ||
| 81 | + let activity=res.data.activity | ||
| 82 | + activity.list=res.data.task | ||
| 83 | + let count=0 | ||
| 84 | + activity.list.forEach(t=>{ | ||
| 85 | + if(t.status==2){ | ||
| 86 | + count+=(t.price*1) | ||
| 87 | + } | ||
| 88 | + }) | ||
| 89 | + this.setData({ | ||
| 90 | + count:count.toFixed(2), | ||
| 91 | + activity:activity | ||
| 92 | + }) | ||
| 93 | + }) | ||
| 94 | + }, | ||
| 95 | + taskNextDo(e){ | ||
| 96 | + let index=util.attr(e,'index') | ||
| 97 | + let task=this.data.activity.list[index] | ||
| 98 | + let tid=task.id | ||
| 99 | + ,path=util.http_build_query({aid:this.data.activity.id,tid:tid},task.task_url||'/pack-activity/pages/yuding') | ||
| 100 | + console.log(path) | ||
| 101 | + if(task.status==0){ | ||
| 102 | + App.Task.SetTaskInfo({//领取任务 | ||
| 103 | + aid:this.data.activity.id, | ||
| 104 | + tid:tid, | ||
| 105 | + }).then(()=>{ | ||
| 106 | + this.GetTaskInfos() | ||
| 107 | + wx.navigateTo({ | ||
| 108 | + url: path | ||
| 109 | + }) | ||
| 110 | + }) | ||
| 111 | + }else if(task.status==1){ | ||
| 112 | + wx.navigateTo({ | ||
| 113 | + url: path | ||
| 114 | + }) | ||
| 115 | + }else{ | ||
| 116 | + wx.navigateTo({ | ||
| 117 | + url: '/pack-activity/pack/pack' | ||
| 118 | + }) | ||
| 119 | + } | ||
| 120 | + }, | ||
| 121 | +}) |
pack-activity/pages/rule.json
0 → 100644
pack-activity/pages/rule.wxml
0 → 100644
| 1 | +<!--pack-activity/pages/index.wxml--> | ||
| 2 | +<nav hasHome>周到安排</nav> | ||
| 3 | +<view class="pages" | ||
| 4 | + wx:if="{{activity}}" | ||
| 5 | + style="background-color: {{activity.element}};background-image:url('{{activity.bgurl}}.rule.png')"> | ||
| 6 | + <view class="content"> | ||
| 7 | + <view class="list"> | ||
| 8 | + <view class="header flex-cc"> | ||
| 9 | + <view class="header-img lt"></view> | ||
| 10 | + <view class="header-txt">活动规则</view> | ||
| 11 | + <view class="header-img gt"></view> | ||
| 12 | + </view> | ||
| 13 | + <view class="item"> | ||
| 14 | + <text space="nbsp" class="desc">{{activity.desc}}</text> | ||
| 15 | + </view> | ||
| 16 | + </view> | ||
| 17 | + </view> | ||
| 18 | +</view> |
pack-activity/pages/rule.wxss
0 → 100644
| 1 | +/* pack-activity/pages/index.wxss */ | ||
| 2 | +.pages{ | ||
| 3 | + padding: 78rpx 0 52rpx; | ||
| 4 | + background-size: 100% auto; | ||
| 5 | + background-repeat: no-repeat; | ||
| 6 | +} | ||
| 7 | +.content{ | ||
| 8 | + width: calc(100% - 40rpx); | ||
| 9 | + margin: 0 20rpx 0; | ||
| 10 | +} | ||
| 11 | + | ||
| 12 | +.list{ | ||
| 13 | + background:rgba(255,255,255,1); | ||
| 14 | + box-shadow:4rpx 4rpx 6rpx 4rpx rgba(218,61,69,1); | ||
| 15 | + border-radius:10rpx; | ||
| 16 | + padding-top: 72rpx; | ||
| 17 | + padding-bottom: 44rpx; | ||
| 18 | +} | ||
| 19 | + | ||
| 20 | +.header{ | ||
| 21 | + margin-bottom: 40rpx; | ||
| 22 | +} | ||
| 23 | +.header .header-txt{ | ||
| 24 | + width:128rpx; | ||
| 25 | + height:44rpx; | ||
| 26 | + font-size:32rpx; | ||
| 27 | + font-weight:600; | ||
| 28 | + color:rgba(53,53,53,1); | ||
| 29 | + line-height:44rpx; | ||
| 30 | + margin: 0 20rpx; | ||
| 31 | +} | ||
| 32 | +.header-img{ | ||
| 33 | + background-size: 100% 100%; | ||
| 34 | + width: 88rpx; | ||
| 35 | + height: 8rpx; | ||
| 36 | +} | ||
| 37 | +.header-img.gt{ | ||
| 38 | + background-image: url("http://nosqn.colorcun.com/activity/images/rule.gt.png"); | ||
| 39 | +} | ||
| 40 | +.header-img.lt{ | ||
| 41 | + background-image: url("http://nosqn.colorcun.com/activity/images/rule.lt.png"); | ||
| 42 | +} | ||
| 43 | +.list .item{ | ||
| 44 | + margin-bottom: 60rpx; | ||
| 45 | + padding: 0 20rpx; | ||
| 46 | + box-sizing: border-box; | ||
| 47 | +} | ||
| 48 | +.list .item:last-child{ | ||
| 49 | + margin-bottom: 0; | ||
| 50 | +} | ||
| 51 | +.item .icon{ | ||
| 52 | + width: 94rpx; | ||
| 53 | + height: 94rpx; | ||
| 54 | + min-width: 94rpx; | ||
| 55 | +} | ||
| 56 | +.item-content{ | ||
| 57 | + margin-left: 10rpx; | ||
| 58 | + width: 100%; | ||
| 59 | +} | ||
| 60 | +.desc{ | ||
| 61 | + font-size:28rpx; | ||
| 62 | + font-weight:500; | ||
| 63 | + color:rgba(53,53,53,1); | ||
| 64 | + line-height:40rpx; | ||
| 65 | +} |
pack-activity/pages/yuding.js
0 → 100644
| 1 | +// pack-activity/pages/index.js | ||
| 2 | +import util from '../../utils/util'; | ||
| 3 | +import App from '../../utils/api'; | ||
| 4 | +Page({ | ||
| 5 | + | ||
| 6 | + /** | ||
| 7 | + * 页面的初始数据 | ||
| 8 | + */ | ||
| 9 | + data: { | ||
| 10 | + | ||
| 11 | + }, | ||
| 12 | + | ||
| 13 | + /** | ||
| 14 | + * 生命周期函数--监听页面加载 | ||
| 15 | + */ | ||
| 16 | + onLoad: function (options) { | ||
| 17 | + this.options=options | ||
| 18 | + }, | ||
| 19 | + | ||
| 20 | + /** | ||
| 21 | + * 生命周期函数--监听页面初次渲染完成 | ||
| 22 | + */ | ||
| 23 | + onReady: function () { | ||
| 24 | + | ||
| 25 | + }, | ||
| 26 | + | ||
| 27 | + /** | ||
| 28 | + * 生命周期函数--监听页面显示 | ||
| 29 | + */ | ||
| 30 | + onShow: function () { | ||
| 31 | + }, | ||
| 32 | + | ||
| 33 | + /** | ||
| 34 | + * 生命周期函数--监听页面隐藏 | ||
| 35 | + */ | ||
| 36 | + onHide: function () { | ||
| 37 | + | ||
| 38 | + }, | ||
| 39 | + | ||
| 40 | + /** | ||
| 41 | + * 生命周期函数--监听页面卸载 | ||
| 42 | + */ | ||
| 43 | + onUnload: function () { | ||
| 44 | + | ||
| 45 | + }, | ||
| 46 | + | ||
| 47 | + /** | ||
| 48 | + * 页面相关事件处理函数--监听用户下拉动作 | ||
| 49 | + */ | ||
| 50 | + onPullDownRefresh: function () { | ||
| 51 | + | ||
| 52 | + }, | ||
| 53 | + | ||
| 54 | + /** | ||
| 55 | + * 页面上拉触底事件的处理函数 | ||
| 56 | + */ | ||
| 57 | + onReachBottom: function () { | ||
| 58 | + | ||
| 59 | + }, | ||
| 60 | +}) |
pack-activity/pages/yuding.json
0 → 100644
pack-activity/pages/yuding.wxml
0 → 100644
| 1 | +<!--pack-activity/pages/index.wxml--> | ||
| 2 | +<nav hasHome>订包间</nav> | ||
| 3 | +<view class="pages"> | ||
| 4 | + <image src="http://nosqn.colorcun.com/activity/images/yuding.png" style="width: 100%;" mode="widthFix"></image> | ||
| 5 | + <navigator url="/pages/reserve/index" open-type="switchTab" hover-class="other-navigator-hover"> | ||
| 6 | + <view class="content flex-cc"> | ||
| 7 | + <view class="share-but"> | ||
| 8 | + <button class="button-none">去订包间</button> | ||
| 9 | + </view> | ||
| 10 | + </view> | ||
| 11 | + </navigator> | ||
| 12 | +</view> |
pack-activity/pages/yuding.wxss
0 → 100644
| 1 | +/* pack-activity/pages/index.wxss */ | ||
| 2 | +.pages{ | ||
| 3 | + | ||
| 4 | +} | ||
| 5 | +.content{ | ||
| 6 | + position: fixed; | ||
| 7 | + bottom: 80rpx; | ||
| 8 | + width: 100%; | ||
| 9 | +} | ||
| 10 | +.share-but{ | ||
| 11 | + height:80rpx; | ||
| 12 | + background:linear-gradient(360deg,rgba(220,44,75,1) 0%,rgba(244,143,161,1) 100%); | ||
| 13 | + border-radius:40rpx; | ||
| 14 | + | ||
| 15 | + font-size:32rpx; | ||
| 16 | + font-weight:600; | ||
| 17 | + color:rgba(255,255,255,1); | ||
| 18 | + line-height:44rpx; | ||
| 19 | + letter-spacing:1rpx; | ||
| 20 | + text-align: center; | ||
| 21 | + width: calc(100% - 76rpx); | ||
| 22 | +} | ||
| 23 | +.share-but .button-none{ | ||
| 24 | + height: 80rpx; | ||
| 25 | + line-height:80rpx; | ||
| 26 | +} |
| @@ -210,7 +210,8 @@ image{ | @@ -210,7 +210,8 @@ image{ | ||
| 210 | } | 210 | } |
| 211 | 211 | ||
| 212 | .Medium{ | 212 | .Medium{ |
| 213 | - font-weight: 400; | 213 | + font-family:PingFangSC-Medium,PingFang SC; |
| 214 | + font-weight: 500; | ||
| 214 | } | 215 | } |
| 215 | .button-none { | 216 | .button-none { |
| 216 | display: inline-block; | 217 | display: inline-block; |
| @@ -237,7 +238,7 @@ image{ | @@ -237,7 +238,7 @@ image{ | ||
| 237 | .more{ | 238 | .more{ |
| 238 | width: 12rpx; | 239 | width: 12rpx; |
| 239 | height: 22rpx; | 240 | height: 22rpx; |
| 240 | - background-image: url("http://qn.colorcun.com/custom/lite-yd/image/click.png"); | 241 | + background-image: url("http://nosqn.colorcun.com/custom/lite-yd/image/click.png"); |
| 241 | background-size: 100%; | 242 | background-size: 100%; |
| 242 | min-width: 12rpx; | 243 | min-width: 12rpx; |
| 243 | } | 244 | } |
| 1 | <view style="height:{{height}}px;" class="nothing-page flex-vc bg-white"> | 1 | <view style="height:{{height}}px;" class="nothing-page flex-vc bg-white"> |
| 2 | - <image class="nothing-booklist" src="http://qn.colorcun.com/custom/lite-yd/image/nothing-booklist.png"></image> | 2 | + <image class="nothing-booklist" src="http://nosqn.colorcun.com/custom/lite-yd/image/nothing-booklist.png"></image> |
| 3 | <view class="black-font font34r smooth nothing-content">暂无内容</view> | 3 | <view class="black-font font34r smooth nothing-content">暂无内容</view> |
| 4 | </view> | 4 | </view> |
| @@ -7,15 +7,15 @@ Component({ | @@ -7,15 +7,15 @@ Component({ | ||
| 7 | data: { | 7 | data: { |
| 8 | list: [ | 8 | list: [ |
| 9 | { | 9 | { |
| 10 | - imgurl: 'http://qn.colorcun.com/custom/lite-yd/image/notice-wx.png', | 10 | + imgurl: 'http://nosqn.colorcun.com/custom/lite-yd/image/notice-wx.png', |
| 11 | title: '微信' | 11 | title: '微信' |
| 12 | }, | 12 | }, |
| 13 | { | 13 | { |
| 14 | - imgurl: 'http://qn.colorcun.com/custom/lite-yd/image/notice-msg.png', | 14 | + imgurl: 'http://nosqn.colorcun.com/custom/lite-yd/image/notice-msg.png', |
| 15 | title: '短信' | 15 | title: '短信' |
| 16 | }, | 16 | }, |
| 17 | { | 17 | { |
| 18 | - imgurl: 'http://qn.colorcun.com/custom/lite-yd/image/notice-call.png', | 18 | + imgurl: 'http://nosqn.colorcun.com/custom/lite-yd/image/notice-call.png', |
| 19 | title: '电话' | 19 | title: '电话' |
| 20 | } | 20 | } |
| 21 | ], | 21 | ], |
| @@ -26,10 +26,10 @@ Component({ | @@ -26,10 +26,10 @@ Component({ | ||
| 26 | let list=this.data.list | 26 | let list=this.data.list |
| 27 | let pl = this.data.bookInfo.phone ? this.data.bookInfo.phone.length : 0; | 27 | let pl = this.data.bookInfo.phone ? this.data.bookInfo.phone.length : 0; |
| 28 | if (pl < 3) { | 28 | if (pl < 3) { |
| 29 | - list[2].imgurl='http://qn.colorcun.com/custom/lite-yd/image/notice-call-disabled.png' | 29 | + list[2].imgurl='http://nosqn.colorcun.com/custom/lite-yd/image/notice-call-disabled.png' |
| 30 | } | 30 | } |
| 31 | if (!/^1\d{10}$/.test(this.data.bookInfo.phone)) { | 31 | if (!/^1\d{10}$/.test(this.data.bookInfo.phone)) { |
| 32 | - list[1].imgurl='http://qn.colorcun.com/custom/lite-yd/image/notice-msg-disabled.png' | 32 | + list[1].imgurl='http://nosqn.colorcun.com/custom/lite-yd/image/notice-msg-disabled.png' |
| 33 | } | 33 | } |
| 34 | this.setData({ | 34 | this.setData({ |
| 35 | list:list, | 35 | list:list, |
| 1 | <view class="selected-time flex-cc"> | 1 | <view class="selected-time flex-cc"> |
| 2 | <view class="flex-vc padding-topbottom padding-left25" bindtap="reducePnum"> | 2 | <view class="flex-vc padding-topbottom padding-left25" bindtap="reducePnum"> |
| 3 | - <image src="http://qn.colorcun.com/custom/lite-yd/image/reduce-act.png" class="select-act"></image> | 3 | + <image src="http://nosqn.colorcun.com/custom/lite-yd/image/reduce-act.png" class="select-act"></image> |
| 4 | </view> | 4 | </view> |
| 5 | <input value="{{pnum}}" class="select-input flex-cc green-font font34r" bindunput="editpnum"/> | 5 | <input value="{{pnum}}" class="select-input flex-cc green-font font34r" bindunput="editpnum"/> |
| 6 | <view class="flex-vc padding-topbottom padding-right25" bindtap="addPnum"> | 6 | <view class="flex-vc padding-topbottom padding-right25" bindtap="addPnum"> |
| 7 | - <image src="http://qn.colorcun.com/custom/lite-yd/image/add-act.png" class="select-act"></image> | 7 | + <image src="http://nosqn.colorcun.com/custom/lite-yd/image/add-act.png" class="select-act"></image> |
| 8 | </view> | 8 | </view> |
| 9 | </view> | 9 | </view> |
| @@ -3,7 +3,7 @@ | @@ -3,7 +3,7 @@ | ||
| 3 | <view class="cancel" catchtap="catchtap"> | 3 | <view class="cancel" catchtap="catchtap"> |
| 4 | <view class="flex-rr"> | 4 | <view class="flex-rr"> |
| 5 | <view class="close" bindtap="hide"> | 5 | <view class="close" bindtap="hide"> |
| 6 | - <image src="http://qn.colorcun.com/custom/lite-yd/image/close.png"></image> | 6 | + <image src="http://nosqn.colorcun.com/custom/lite-yd/image/close.png"></image> |
| 7 | </view> | 7 | </view> |
| 8 | </view> | 8 | </view> |
| 9 | <view class="title Semibold flex-vc">请选择取消原因</view> | 9 | <view class="title Semibold flex-vc">请选择取消原因</view> |
| @@ -39,32 +39,32 @@ | @@ -39,32 +39,32 @@ | ||
| 39 | height: 100%; | 39 | height: 100%; |
| 40 | } | 40 | } |
| 41 | .tabBar .reserve{ | 41 | .tabBar .reserve{ |
| 42 | - background-image: url("http://qn.colorcun.com/custom/lite-yd/image/seller-tabs2-reserve.png"); | 42 | + background-image: url("http://nosqn.colorcun.com/custom/lite-yd/image/seller-tabs2-reserve.png"); |
| 43 | } | 43 | } |
| 44 | .tabBar .checked .reserve{ | 44 | .tabBar .checked .reserve{ |
| 45 | - background-image: url("http://qn.colorcun.com/custom/lite-yd/image/seller-tabs2-reserve-checked.png"); | 45 | + background-image: url("http://nosqn.colorcun.com/custom/lite-yd/image/seller-tabs2-reserve-checked.png"); |
| 46 | } | 46 | } |
| 47 | .tabBar .book{ | 47 | .tabBar .book{ |
| 48 | - background-image: url("http://qn.colorcun.com/custom/lite-yd/image/seller-tabs2-book.png"); | 48 | + background-image: url("http://nosqn.colorcun.com/custom/lite-yd/image/seller-tabs2-book.png"); |
| 49 | } | 49 | } |
| 50 | .tabBar .checked .book { | 50 | .tabBar .checked .book { |
| 51 | - background-image: url("http://qn.colorcun.com/custom/lite-yd/image/seller-tabs2-book-checked.png"); | 51 | + background-image: url("http://nosqn.colorcun.com/custom/lite-yd/image/seller-tabs2-book-checked.png"); |
| 52 | } | 52 | } |
| 53 | .tabBar .setting{ | 53 | .tabBar .setting{ |
| 54 | - background-image: url("http://qn.colorcun.com/custom/lite-yd/image/seller-tabs2-setting.png"); | 54 | + background-image: url("http://nosqn.colorcun.com/custom/lite-yd/image/seller-tabs2-setting.png"); |
| 55 | } | 55 | } |
| 56 | .tabBar .checked .setting { | 56 | .tabBar .checked .setting { |
| 57 | - background-image: url("http://qn.colorcun.com/custom/lite-yd/image/seller-tabs2-setting-checked.png"); | 57 | + background-image: url("http://nosqn.colorcun.com/custom/lite-yd/image/seller-tabs2-setting-checked.png"); |
| 58 | } | 58 | } |
| 59 | .tabBar .board{ | 59 | .tabBar .board{ |
| 60 | - background-image: url("http://qn.colorcun.com/custom/lite-yd/image/seller-tabs2-boards.png"); | 60 | + background-image: url("http://nosqn.colorcun.com/custom/lite-yd/image/seller-tabs2-boards.png"); |
| 61 | } | 61 | } |
| 62 | .tabBar .checked .board { | 62 | .tabBar .checked .board { |
| 63 | - background-image: url("http://qn.colorcun.com/custom/lite-yd/image/seller-tabs2-boards-checked.png"); | 63 | + background-image: url("http://nosqn.colorcun.com/custom/lite-yd/image/seller-tabs2-boards-checked.png"); |
| 64 | } | 64 | } |
| 65 | .tabBar .order{ | 65 | .tabBar .order{ |
| 66 | - background-image: url("http://qn.colorcun.com/custom/lite-yd/image/order.png?2"); | 66 | + background-image: url("http://nosqn.colorcun.com/custom/lite-yd/image/order.png?2"); |
| 67 | } | 67 | } |
| 68 | .tabBar .checked .order { | 68 | .tabBar .checked .order { |
| 69 | - background-image: url("http://qn.colorcun.com/custom/lite-yd/image/order-checked.png?2"); | 69 | + background-image: url("http://nosqn.colorcun.com/custom/lite-yd/image/order-checked.png?2"); |
| 70 | } | 70 | } |
| @@ -13,7 +13,7 @@ | @@ -13,7 +13,7 @@ | ||
| 13 | bindtap="calendarShow"> | 13 | bindtap="calendarShow"> |
| 14 | <view style="width: 80%" class="item-text">{{checked==2?util.unixtoTime(list[2].time,"MM-DD"):'其他'}}</view> | 14 | <view style="width: 80%" class="item-text">{{checked==2?util.unixtoTime(list[2].time,"MM-DD"):'其他'}}</view> |
| 15 | <image | 15 | <image |
| 16 | - src="http://qn.colorcun.com/custom/lite-yd/image/date{{checked==2?'.selected':''}}.png" | 16 | + src="http://nosqn.colorcun.com/custom/lite-yd/image/date{{checked==2?'.selected':''}}.png" |
| 17 | style="min-width: 36rpx;width: 36rpx;height: 36rpx; margin-right: 22rpx;"></image> | 17 | style="min-width: 36rpx;width: 36rpx;height: 36rpx; margin-right: 22rpx;"></image> |
| 18 | </view> | 18 | </view> |
| 19 | </view> | 19 | </view> |
| @@ -7,7 +7,7 @@ | @@ -7,7 +7,7 @@ | ||
| 7 | style="height:100%;" wx:if="{{timePickerMask}}"> | 7 | style="height:100%;" wx:if="{{timePickerMask}}"> |
| 8 | <view class="timePicker"> | 8 | <view class="timePicker"> |
| 9 | <view class="flex-rr"> | 9 | <view class="flex-rr"> |
| 10 | - <image class="close" src="http://qn.colorcun.com/custom/lite-yd/image/add-act.png" bindtap="calendarClose"></image> | 10 | + <image class="close" src="http://nosqn.colorcun.com/custom/lite-yd/image/add-act.png" bindtap="calendarClose"></image> |
| 11 | </view> | 11 | </view> |
| 12 | <view class="flex-cc" style="margin-bottom: 56rpx; font-size: 30rpx;"> | 12 | <view class="flex-cc" style="margin-bottom: 56rpx; font-size: 30rpx;"> |
| 13 | <view bindtap="calendarClose">{{ddate_solt==1?'午市':ddate_solt==2?'晚市':'早市'}}</view> | 13 | <view bindtap="calendarClose">{{ddate_solt==1?'午市':ddate_solt==2?'晚市':'早市'}}</view> |
| 1 | +// pack-book/components/checkout/confirm-price.js | ||
| 2 | +import util from '../../../utils/util' | ||
| 3 | +import App from '../../../utils/api' | ||
| 4 | +Component({ | ||
| 5 | + /** | ||
| 6 | + * 组件的属性列表 | ||
| 7 | + */ | ||
| 8 | + properties: { | ||
| 9 | + price:Number, | ||
| 10 | + }, | ||
| 11 | + | ||
| 12 | + /** | ||
| 13 | + * 组件的初始数据 | ||
| 14 | + */ | ||
| 15 | + data: { | ||
| 16 | + hidden:true, | ||
| 17 | + }, | ||
| 18 | + | ||
| 19 | + /** | ||
| 20 | + * 组件的方法列表 | ||
| 21 | + */ | ||
| 22 | + methods: { | ||
| 23 | + show(rid,files){ | ||
| 24 | + if(this.data.price<=0){ | ||
| 25 | + return util.toast('请设置金额','none') | ||
| 26 | + } | ||
| 27 | + let bill_list=[] | ||
| 28 | + if(files.length>0){ | ||
| 29 | + let hasNok=false | ||
| 30 | + files.some(f=>{ | ||
| 31 | + if(f.progress==100 && f.remote && f.remote.url){ | ||
| 32 | + bill_list.push(f.remote.url) | ||
| 33 | + }else{ | ||
| 34 | + hasNok=true | ||
| 35 | + } | ||
| 36 | + }) | ||
| 37 | + if(hasNok){ | ||
| 38 | + return util.toast('请等待图片上传完成','none') | ||
| 39 | + } | ||
| 40 | + } | ||
| 41 | + this.rid=rid | ||
| 42 | + this.bill_list=bill_list | ||
| 43 | + this.hasSubmit=true | ||
| 44 | + this.setData({ | ||
| 45 | + hidden:false, | ||
| 46 | + }) | ||
| 47 | + }, | ||
| 48 | + hide(){ | ||
| 49 | + this.setData({ | ||
| 50 | + hidden:true, | ||
| 51 | + }) | ||
| 52 | + }, | ||
| 53 | + hasSubmit:true, | ||
| 54 | + submit(){ | ||
| 55 | + this.hide() | ||
| 56 | + if(!this.hasSubmit) return; | ||
| 57 | + this.hasSubmit=false, | ||
| 58 | + App.Customer.UpdateOrderInfo({ | ||
| 59 | + rid:this.rid, | ||
| 60 | + bill_list:JSON.stringify(this.bill_list), | ||
| 61 | + price:this.data.price, | ||
| 62 | + }).then(()=>{ | ||
| 63 | + this.triggerEvent('event') | ||
| 64 | + this.hasSubmit=true | ||
| 65 | + }).catch(()=>{ | ||
| 66 | + this.triggerEvent('event') | ||
| 67 | + this.hasSubmit=true | ||
| 68 | + }) | ||
| 69 | + }, | ||
| 70 | + } | ||
| 71 | +}) |
| 1 | +<!--pack-book/components/checkout/confirm-price.wxml--> | ||
| 2 | +<view class="mask flex-vc" wx:if="{{!hidden}}"> | ||
| 3 | + <view class="confirm-price"> | ||
| 4 | + <view class="title flex-rr" bindtap="hide"> | ||
| 5 | + <view class="bg-img bg-c1"></view> | ||
| 6 | + </view> | ||
| 7 | + <view class="center flex-vc"> | ||
| 8 | + <view class="tips">应收金额</view> | ||
| 9 | + <view class="price">¥ {{price}}</view> | ||
| 10 | + <view class="submit" bindtap="submit">确认发送</view> | ||
| 11 | + </view> | ||
| 12 | + </view> | ||
| 13 | +</view> |
| 1 | +/* pack-book/components/checkout/confirm-price.wxss */ | ||
| 2 | +@import "/app.wxss"; | ||
| 3 | +.bg-img{ | ||
| 4 | + background-image: url("http://nosqn.colorcun.com/checkout/images/css_sprites.png"); | ||
| 5 | + zoom: 33.5%; | ||
| 6 | +} | ||
| 7 | +.bg-c1 { | ||
| 8 | + width: 36px; height: 36px; | ||
| 9 | + background: url('http://nosqn.colorcun.com/checkout/images/css_sprites.png') -209px -111px; | ||
| 10 | +} | ||
| 11 | +.confirm-price{ | ||
| 12 | + width: calc(100% - 144rpx); | ||
| 13 | + height:426rpx; | ||
| 14 | + background:rgba(255,255,255,1); | ||
| 15 | + border-radius:10rpx; | ||
| 16 | +} | ||
| 17 | +.title{ | ||
| 18 | + height: 92rpx; | ||
| 19 | + line-height: 92rpx; | ||
| 20 | + padding: 0 36rpx; | ||
| 21 | +} | ||
| 22 | +.tips{ | ||
| 23 | + height:42rpx; | ||
| 24 | + font-size:30rpx; | ||
| 25 | + font-family:PingFangSC-Medium,PingFang SC; | ||
| 26 | + font-weight:500; | ||
| 27 | + color:rgba(112,112,112,1); | ||
| 28 | + line-height:42rpx; | ||
| 29 | +} | ||
| 30 | +.price{ | ||
| 31 | + height:92rpx; | ||
| 32 | + font-size:66rpx; | ||
| 33 | + font-family:PingFangSC-Medium,PingFang SC; | ||
| 34 | + font-weight:500; | ||
| 35 | + color:rgba(53,53,53,1); | ||
| 36 | + line-height:92rpx; | ||
| 37 | + margin-top: 16rpx; | ||
| 38 | +} | ||
| 39 | +.submit{ | ||
| 40 | + width:334rpx; | ||
| 41 | + height:84rpx; | ||
| 42 | + background:rgba(25,144,149,1); | ||
| 43 | + border-radius:10rpx; | ||
| 44 | + font-size:34rpx; | ||
| 45 | + font-family:PingFangSC-Medium,PingFang SC; | ||
| 46 | + font-weight:500; | ||
| 47 | + color:rgba(254,254,254,1); | ||
| 48 | + line-height:84rpx; | ||
| 49 | + text-align: center; | ||
| 50 | + margin-top: 40rpx; | ||
| 51 | +} |
| @@ -11,7 +11,7 @@ | @@ -11,7 +11,7 @@ | ||
| 11 | <view class="single-date gray-deep-font flex-vc"> | 11 | <view class="single-date gray-deep-font flex-vc"> |
| 12 | <view class="font30r">更多</view> | 12 | <view class="font30r">更多</view> |
| 13 | <view class="date-num flex-vc"> | 13 | <view class="date-num flex-vc"> |
| 14 | - <image src="http://qn.colorcun.com/custom/lite-yd/image/more-dot.png" class="more-dot"></image> | 14 | + <image src="http://nosqn.colorcun.com/custom/lite-yd/image/more-dot.png" class="more-dot"></image> |
| 15 | </view> | 15 | </view> |
| 16 | </view> | 16 | </view> |
| 17 | </view> | 17 | </view> |
-
Please register or login to post a comment