Commit 3d8d4052ab9d315795b4e4f511491a41a285d3a3

Authored by liuxuqing
1 parent 5dbbf3a5

no message

Showing 61 changed files with 1219 additions and 64 deletions
... ... @@ -9,6 +9,7 @@
"pages/customer/invite",
"pages/customer/list",
"pages/customer/remind",
"pages/customer/care",
"pages/reserve/index",
"pages/reserve/index_yy",
"pages/me/index",
... ... @@ -20,6 +21,7 @@
"pages/reserve/searchKeyword",
"pages/reserve/detail",
"pages/me/follow",
"pages/me/coupon",
"pages/manager-invitation/index",
"pages/manager-invitation/review",
"pages/manager-invitation/editor",
... ... @@ -55,7 +57,8 @@
"root": "pack-checkout",
"name": "支付",
"pages": [
"pages/index"
"pages/index",
"pages/use"
]
},
{
... ... @@ -122,9 +125,9 @@
"window": {
"navigationStyle": "custom",
"backgroundTextStyle": "light",
"navigationBarBackgroundColor": "#199095",
"navigationBarTitleText": "点餐商户端",
"navigationBarTextStyle": "white"
"navigationBarBackgroundColor": "#FFFFFF",
"navigationBarTitleText": "周到安排",
"navigationBarTextStyle": "black"
},
"networkTimeout": {
"request": 10000,
... ...
... ... @@ -114,6 +114,12 @@
.font44r{
font-size:44rpx;
}
.font48r{
font-size:48rpx;
}
.font50r{
font-size:50rpx;
}
.font20r{
font-size:20rpx;
}
... ...
... ... @@ -51,7 +51,7 @@ Component({
}
//console.log('dur-dataset',dataset)
setTimeout(()=>{
this.checked({currentTarget:{dataset:dataset}})
this.checked({currentTarget:{dataset:dataset}},)
},0)
}
... ...
... ... @@ -38,10 +38,10 @@ module.exports = Behavior({
checkedDefEvent(){
console.log('this.type',this.type)
let type=this.type
let ckdata = {}
let ckdata = {};
if (!this.data.ckdata) {//初始化值
if(type == 'dur') return;
let index, val
let index, val;
if (type == 'pnum') {
index = 3
val = this.data.items[index]
... ...
... ... @@ -13,10 +13,6 @@ Component({
type:Object,
value:null,
},
autoCon:{
type:Boolean,
value:false
}
},
/**
... ... @@ -34,7 +30,7 @@ Component({
})
setTimeout(()=>{
if(!this.data.findSellerData){
this.submit()
this.submit('auto')
}
},300)
... ... @@ -53,7 +49,7 @@ Component({
console.log('paramEvent',e.detail.type,e.detail)
this.params[e.detail.type]=e.detail;
},
submit(){
submit(action="click"){
console.log('this.params',this.params)
let paramObj={}
if(this.params['date']){
... ... @@ -72,6 +68,7 @@ Component({
paramStr:util.unixtoTime(this.params['date'].val,'MM月DD日(`DAY/周WW`)')
+' '+{1:'早餐',2:'午餐',3:'晚餐'}[this.params['dur'].val]
+' '+this.params['pnum'].val+'位',
action:action
})
},
show(){
... ...
... ... @@ -39,7 +39,7 @@
</block>
<view class="cu-tag round line-white text-blue view cu-tag-end"></view>
</view>
<view class="view button-view flex justify-end" bindtap="reserve">
<view class="view button-view flex justify-end" catchtap="reserve">
<view class="cu-btn bg-blue text-white round reserve-button text-df text-bold view padding-xs">订包间</view>
</view>
</view>
... ...
... ... @@ -16,8 +16,14 @@ Component({
data:{
shownotice:false,
},
attached(){
this.getautomenu();
pageLifetimes: {
show: function() {
// 页面被展示
this.getautomenu();
},
attached(){
this.getautomenu();
},
},
methods:{
gotoList(e){
... ... @@ -35,11 +41,9 @@ Component({
limit:1,
size:1,
}).then(res=>{
if(res.data.length>0){
this.setData({
shownotice:true
})
}
this.setData({
shownotice:res.data.length ? true : false
})
})
},
}
... ...
<cover-view style="top:{{pos.top}}rpx;left:{{pos.left}}rpx;right:{{pos.right}}rpx;" class="notice-cover" bindtap="gotoList" data-type="5" wx:if="{{shownotice}}">
<cover-view class="taocan-notice flex-lr">
<cover-view class="font28r" style="color:#FA7268;font-weight: bold;">您有一个套餐券待使用</cover-view>
<cover-view class="notice-look font26r flex-cc">查看</cover-view>
</cover-view>
<cover-image src="http://nosqn.colorcun.com/nouse.jpg" class="taocan-image"></cover-image>
</cover-view>
<view style="top:{{pos.top}}rpx;left:{{pos.left}}rpx;right:{{pos.right}}rpx;" class="notice-cover" bindtap="gotoList" data-type="5" wx:if="{{shownotice}}">
<view class="taocan-notice flex-lr">
<view class="font28r" style="color:#FA7268;font-weight: bold;">您有一个套餐券待使用</view>
<view class="notice-look font26r flex-cc">查看</view>
</view>
<image src="http://nosqn.colorcun.com/nouse.jpg" class="taocan-image"></image>
</view>
... ...
Component({
properties:{
mark:{
type:String,
value:'canuse'
},
item:Object
},
methods:{
todetail(e){
if(this.data.mark=='used'){
wx.showToast({
title:'该劵不能再使用',
icon:'none',
duration:2000
})
}else{
let aid=e.currentTarget.dataset.id;
console.log(aid)
wx.navigateTo({
url:'./coupon_detail?aid='+aid
})
}
}
}
})
\ No newline at end of file
... ...
{
}
\ No newline at end of file
... ...
<wxs src="../../utils/util.wxs" module="util" />
<view class="card flex-ll bg-white {{mark}}" bindtap="todetail" data-id="{{item.aid}}">
<view class="flex-vl {{mark=='canuse' ? 'black-font' : 'gray-font'}} card-main {{mark}}" style="justify-content:space-between;">
<view class="seller-info flex-ll">
<image class="seller-image"></image>
<view class="smooth font-siny font24r">{{item.sellername}}</view>
</view>
<view class="font34r font-bold">{{item.aname}}</view>
<view class="{{mark=='canuse' ? 'gray-deep-font' : 'gray-font'}} font24r smooth">有效时间:{{util.unixtoTime(item.stime,'YYYY.MM.DD')}}-{{util.unixtoTime(item.etime,'YYYY.MM.DD HH:II')}}</view>
</view>
<view class="flex-cc card-info font30r font-bold smooth" style="color:{{mark=='canuse' ? '#5EB2FF' : '#999999'}};">{{mark=='used' ? (item.status==1 ? '已使用' : '已过期') : '去使用'}}</view>
<view class="circle-pos flex-vl" style="justify-content:space-between;">
<view class="circle circle-bottom bg-white"></view>
<view class="circle circle-top bg-white"></view>
</view>
</view>
\ No newline at end of file
... ...
@import "../../app.wxss";
.card{
width: 690rpx;
height: 164rpx;
border-radius: 6rpx;
margin: 0 auto 30rpx;
background: rgba(87,160,255,.08);
overflow: hidden;
position: relative;
}
.card.canuse{
background: rgba(87,160,255,.08);
}
.card.used{
background: #F5F5F5;
}
.card-main{
width: 78%;
height: 100%;
/* background: linear-gradient(90deg, #3BBFF5 0%, #57A0FF 100%); */
padding: 14rpx 24rpx;
box-sizing: border-box;
}
.card-main.canuse{
border-right: 2rpx dashed #5EB2FF;
}
.card-main.used{
border-right: 2rpx dashed #CCCCCC;
}
.seller-image{
width: 30rpx;
height: 30rpx;
border-radius: 50%;
background: #EEEEEE;
margin-right: 10rpx;
}
.card-info{
width: 22%;
height: 100%;
box-sizing: border-box;
}
.use-button{
width: 160rpx;
height: 44rpx;
border-radius: 24rpx;
border: 2rpx solid #5EB2FF;
}
/* .circle{
width: 30rpx;
height: 30rpx;
border:2rpx solid #ECD9B7;
border-radius: 50%;
box-sizing: border-box;
} */
/* .introduce{
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
} */
.circle-pos{
width: 24rpx;
height: 100%;
position: absolute;
left: 78%;
top: 0;
margin-left: -14rpx;
}
.circle{
width: 24rpx;
height: 12rpx;
background: #FFFFFF;
}
.circle-top{
border-radius: 12rpx 12rpx 0 0;
}
.circle-bottom{
border-radius: 0 0 12rpx 12rpx;
}
\ No newline at end of file
... ...
... ... @@ -15,7 +15,11 @@ Component({
hasHome: {
type: Boolean,
value: false
}
},
place:{
type:Boolean,
value:true
}
},
/**
... ...
<!--components/nav/nav.wxml-->
<view class="nav-main-space" style="height: {{statusBarHeightFull}}px;">
<view class="nav-main" style="background-color: {{backgroundColor}};color:{{color}};">
<view class="nav-main" style="background-color: {{backgroundColor}};color:{{color}};">
<view class="nav" style="margin-top: {{statusBarHeight}}px;">
<view class="flex-lr part" style="height: {{titleBarHeight}}px; line-height: {{titleBarHeight}}px">
<view class="opt flex-ll">
... ... @@ -25,4 +24,6 @@
</view>
</view>
<view class="nav-main-space" style="height: {{statusBarHeightFull}}px;" wx:if="{{place}}">
</view>
\ No newline at end of file
... ...
... ... @@ -27,7 +27,7 @@
</block>
<block wx:else="">
<block wx:if="{{item.isFull && item.isFull==1}}">
<view class="room-select black-font font24r flex-cc gray">置满</view>
<view class="room-full black-font font24r">订满</view>
</block>
<block wx:if="{{item.isorderFull && item.isorderFull==1}}">
<view class="room-full black-font font24r">订满</view>
... ...
... ... @@ -70,7 +70,7 @@
<view wx:if="{{hasActivityTese && se.label_cstr}}" class="activity hasActivityTese flex-ll">
<text class="activity-item">{{se.label_cstr}}</text>
</view>
<view wx:if="{{(hasActivityRed && se.label_carr.length>0) || hasNewActivityList}}" class="activity flex-ll">
<view wx:if="{{hasActivityRed && se.label_carr.length>0}}" class="activity flex-ll">
<view wx:for="{{se.label_carr}}" class="activity-item flex-vc activity-item-{{item.type}}" wx:key="selleractivitykey">{{item.name}}</view>
<view class="activity-item flex-vc activity-item-0" wx:if="{{seller.is_card==1}}">商家补贴</view>
</view>
... ...
Component({
properties:{
item:Object,
}
})
\ No newline at end of file
... ...
{
"component": true
}
\ No newline at end of file
... ...
<view class="taocan-card bg-white flex-vc">
<navigator url="/pages/taocan/index?sid={{item.sid}}&pid={{item.id}}" hover-class="navigator-hover" class="flex-ll taocan-main">
<image mode="aspectFill"
src="{{item.main_url?item.main_url+'?imageView2/2/w/320/interlace/0/q/100':'http://nosqn.colorcun.com/reserve/images/3x/%E6%9A%82%E6%97%A0.png'}}" class="taocan-image"></image>
<view class="taocan-info flex-vl">
<view class="black-font font36r font-bold font-more" style="line-height: 50rpx;margin-bottom: 6rpx;width:100%;">{{item.name}}</view>
<view class="gray-deep-font font28r" style="line-height: 40rpx;margin-bottom: 6rpx;">{{item.service}}</view>
<view class="flex-ll" style="align-items: flex-end;">
<view class="text-orange" style="margin-right: 20rpx;">
<text class="font28r">¥</text>
<text class="font40r font-bold" style="line-height: 56rpx;">{{item.sale_price}}</text>
</view>
<view class="text-gray" style="text-decoration:line-through;margin-bottom: 4rpx; ">
<text class="font20r">¥</text>
<text class="font28r" style="line-height: 40rpx;">{{item.market_price}}</text>
</view>
</view>
<view class="view flex text-orange align-end" style="margin-top: 6rpx;" wx:if="{{item.discount>0}}">
<view class="view tag" style="margin-bottom: 6rpx;"></view>
<view class="view margin-left-xs txt-24-h">{{item.discount}}折</view>
</view>
<view class="button txt-28-h text-bold flex align-center justify-center">抢购</view>
</view>
</navigator>
<navigator url="./detail?id={{item.sid}}" hover-class="navigator-hover" class="taocan-seller flex-lr">
<view class="flex-ll">
<image mode="aspectFill" src="{{item.seller_image ? item.seller_image+'?imageView2/2/w/84/interlace/0/q/100' : 'http://nosqn.colorcun.com/reserve/images/3x/%E6%9A%82%E6%97%A0.png'}}" style="width: 84rpx;height: 80rpx;border-radius:6rpx;"></image>
<view class="flex-vl seller-info">
<view class="font-bold font26r black-font font-more" style="line-height: 36rpx;margin-bottom: 6rpx;width:100%;">{{item.sellername}}</view>
<view class="gray-font font24r font-more" style="line-height: 34rpx;width:100%;">{{item.map_address}}</view>
</view>
</view>
<view class="more"></view>
</navigator>
</view>
\ No newline at end of file
... ...
@import "../../../app.wxss";
@import "../../../colorui/main.wxss";
.taocan-card{
width:710rpx;
padding: 30rpx;
border-radius:6rpx;
box-sizing: border-box;
box-shadow: 0 0 8rpx 0 #E0E0E0;
overflow: hidden;
}
.taocan-main{
width: 100%;
margin-bottom: 20rpx;
}
.taocan-image{
width: 200rpx;
height: 200rpx;
background-color: #4C4E4F;
min-width: 200rpx;
position: relative;
border-radius: 10rpx;
}
.taocan-info{
width: 450rpx;
height: 200rpx;
padding-left: 30rpx;
box-sizing: border-box;
position: relative;
}
.tag{
width: 22rpx;
height: 22rpx;
background-image: url("http://nosqn.colorcun.com/taocan/1%20%281%29.png");
}
.button{
position: absolute;
right: 0;
bottom: 0;
width: 124rpx;
height: 56rpx;
border-radius: 28rpx;
background: linear-gradient(#F98E47,#F05522);
color: #ffffff;
}
.taocan-seller{
width: 100%;
padding: 20rpx;
box-sizing: border-box;
background:#F8F8F8;
border-radius:10rpx;
}
.seller-info{
width: 496rpx;
padding-left: 20rpx;
box-sizing: border-box;
position: relative;
}
\ No newline at end of file
... ...
... ... @@ -137,7 +137,8 @@ Page({
fromid:getApp().openid,
hasSellerShare:1,
hasInvitation:1,
},'/pages/customer/index')
},'/pages/customer/index');
console.log(path,'yyyyyyy')
return {
title: this.data.tpls[this.data.current].shareFirstTitle,
path: path,
... ... @@ -178,5 +179,11 @@ Page({
url: '/pack-book/pages/book/b_detail?id=' + this.detail.id
});
}
}
},
tolist(){
wx.navigateTo({
url:'./coupon'
})
},
})
\ No newline at end of file
... ...
... ... @@ -36,6 +36,14 @@
<userinfo-share binduserinfo="share" class="share Semibold">
通知客户
</userinfo-share>
<!-- <view class="white-font font28r smooth reminder" bindtap="tolist">
<view class="angel"></view>
<view class="rect"></view>
<view class="reminder-content flex-vc">
<view style="color:#EFEEFF;margin-bottom: 6rpx;" class="font26r">共赠送5张优惠券</view>
<view style="color:#794F28;" class="Semibold">点击查看</view>
</view>
</view> -->
</view>
<!--//商务-->
<template name="tpl-1">
... ...
... ... @@ -97,4 +97,41 @@ image{
width: 70%;
font-size: 36rpx;
color: #794F28;
}
.reminder{
width: 260rpx;
position: absolute;
right: 15%;
bottom:130rpx;
}
.reminder-content{
width: 100%;
padding: 20rpx 0;
border-radius: 8rpx;
background: #222222;
line-height:1.4;
box-shadow: 0 0 8rpx 0 #000000;
}
.angel{
width: 24rpx;
height: 24rpx;
position: absolute;
top: 102rpx;
left: 0;
right: 0;
background: #222222;
box-shadow: 0 0 8rpx 0 #000000;
margin: 0 auto;
transform: rotate(45deg);
border-radius: 2rpx;
}
.rect{
width: 60rpx;
height: 20rpx;
position: absolute;
bottom: 0;
left: 0;
right: 0;
background: #222222;
margin: 0 auto;
}
\ No newline at end of file
... ...
import util from '../../utils/util';
import App from '../../utils/api';
Page({
onLoad(opt){
console.log(opt);
let query=decodeURIComponent(opt.scene);
console.log(query)
query.split('&').forEach(q=>{
let _q=q.split('=');
opt[_q[0]]=_q[1];
})
this.opt=opt;
},
checkout(){
App.Activity.SetActivityStatus(this.opt).then((json)=>{
if(json.ret==200){
wx.showToast({
title:'已核销',
duration:2000,
mask:true,
})
}
})
}
})
\ No newline at end of file
... ...
{
"usingComponents": {
"nav":"/components/nav/nav"
}
}
\ No newline at end of file
... ...
<nav>核销优惠券</nav>
<view class="flex-vc" style="padding-top: 180rpx;line-height: 1.4;">
<view class="black-font font40r font-bold" style="margin-bottom: 10rpx;">优惠券一旦核销,将不能再使用</view>
<view class="black-font font40r font-bold">核销前请与客户确认</view>
<view class="white-font font32r flex-cc use-button" bindtap="checkout">核销</view>
<navigator open-type="exit" target="miniProgram" class="green-font font36r smooth know-button flex-cc">退出</navigator>
</view>
\ No newline at end of file
... ...
.use-button,.know-button{
width: 600rpx;
height: 80rpx;
border-radius: 10rpx;
}
.use-button{
background: #199095;
margin-top: 160rpx;
}
.know-button{
border: 2rpx solid #199095;
box-sizing: border-box;
margin-top: 60rpx;
}
\ No newline at end of file
... ...
Page({
onLoad(){
this.loadnum=0;
},
getdata(e){
console.log(e)
this.loadnum=1;
},
onShow(){
if(this.loadnum==1){
wx.navigateBack();
}
}
})
\ No newline at end of file
... ...
{}
\ No newline at end of file
... ...
<web-view src="https://xt04.colorcun.com/tarnsfer.html" bindload="getdata"></web-view>
\ No newline at end of file
... ...
... ... @@ -25,6 +25,8 @@ Page({
options: {tplid: ''},
hasOwner: true,//是否为发起人
animation: 'animation',
couponhidden:false,
getcoupon:false
},
id: null,
msgTpl:'',
... ... @@ -39,6 +41,7 @@ Page({
}
param.tpls=[TP.tpls(options.tplid)]
this.setData(param)
this.getactivity();
mta.Page.init({
"appID": "500667280",
"eventID": "500667287",
... ... @@ -308,4 +311,76 @@ Page({
url: '/pages/reserve/index'
})
},
load(e){
console.log(e,'care')
},
setcoupon(){
if(this.data.list && this.data.list.length>0){
let list=this.data.list,liststr=[];
list.forEach((v,i)=>{
liststr.push(v.id);
})
App.Activity.SetActivityAsReserve({aid:liststr.toString()}).then((json)=>{
if(json.ret==200){
this.setData({
getcoupon:true
})
}
})
}
},
tohref(){
let systemInfo = wx.getSystemInfoSync();
let reg = /ios/i;
if(reg.test(systemInfo.system)){
wx.showModal({
content:'关注"周到安排"公众号,及时获取更多优惠信息',
comfirmText:'去关注',
comfirmColor:'#5EB2FF',
cancelText:'取消',
cancelColor:'#999999',
success:(res)=>{
if(res.confirm){
wx.setClipboardData({
data: '周到安排',
success (res) {
wx.getClipboardData({
success (res) {
console.log(res.data) // data
}
})
}
})
}
}
})
}else{
wx.navigateTo({
url:'./care'
})
}
},
getactivity(){
App.Activity.GetActivityByRid({rid:this.id}).then((json)=>{
if(json.ret==200){
console.log(json.data);
this.setData({
list:json.data
})
}
})
},
todetail(e){
let aid=e.currentTarget.dataset.id;
console.log(aid)
wx.navigateTo({
url:'../me/coupon_detail?aid='+aid
})
},
close(){
this.setData({
couponhidden:true,
})
},
})
... ...
<!--pages/customer/detail_owner.wxml-->
<wxs src="../../utils/util.wxs" module="util" />
<import src="../tpl/invitation"></import>
<nav backgroundColor="rgba(0,0,0,0)" hasHome style="position: fixed;z-index: 1;" class="navhome">
<!--
... ... @@ -65,3 +66,57 @@
</template>
<ddate id="ddate" order="{{detail}}" wx:if="{{detail}}" bindevent="ddateEvent"></ddate>
<a2l bindshow="a2lshow" bindhide="a2lshow" key="INVIT-OWNER"></a2l>
<view class="coupon" wx:if="{{list && list.length>0}}" hidden="{{couponhidden}}" bindtap="close">
<view class="coupon-content flex-vc" style="margin-top: -{{360+(list.length>2 ? 180 : 75*list.length+1)}}rpx;">
<view class="coupon-bg"></view>
<view class="coupon-info">
<view class="coupon-header flex-vc">
<view class="font-bold">恭喜您获得</view>
<view class="font32r">{{list.length}}张代金券</view>
</view>
<view class="coupon-list">
<view class="coupon-single flex-ll bg-white" wx:for="{{list}}">
<view class="flex-vl coupon-main" style="justify-content: center;">
<view class="font36r font-bold" style="color:#E84033;">{{item.aname}}</view>
<view class="gray-font font20r">有效期至{{util.unixtoTime(item.etime,'YYYY.MM.DD HH:II')}}</view>
</view>
<view class="flex-vc coupon-border">
<view class="circle circle-bottom bg-white"></view>
<view class="coupon-line"></view>
<view class="circle circle-top bg-white"></view>
</view>
<block wx:if="{{getcoupon}}">
<view class="flex-cc" style="padding-right: 15rpx;" data-id="{{item.id}}" catchtap="todetail">
<view class="use-button flex-cc font20r">去使用</view>
</view>
</block>
<block wx:else>
<userinfo binduserinfo="setcoupon">
<view class="flex-cc" style="padding-right: 15rpx;">
<view class="use-button flex-cc font20r">领取</view>
</view>
</userinfo>
</block>
</view>
</view>
<block wx:if="{{getcoupon}}">
<view class="coupon-button font24r smooth white-font flex-cc" catchtap="tohref">
<view style="position: relative;z-index: 0;">在我的-卡券中可查看,<text style="color:#FFC807;">前往查看</text></view>
</view>
</block>
<block wx:else>
<userinfo binduserinfo="setcoupon">
<view class="coupon-button font32r smooth white-font flex-cc get-button font-bold">立即领取</view>
</userinfo>
</block>
<!-- <official-account class="care flex-ll" bindload="load"></official-account> -->
</view>
<view class="" style="padding: 20rpx;position: relative;top: -94rpx;" catchtap="close">
<image src="http://nosqn.colorcun.com/book-close.png" style="width: 60rpx;height: 60rpx;"></image>
</view>
</view>
</view>
... ...
... ... @@ -151,4 +151,118 @@ image{
background-size: 100% 100%;
width:36rpx;
height:36rpx;
}
\ No newline at end of file
}
.coupon{
position: fixed;
left: 0;
right: 0;
top: 0;
bottom: 0;
background: rgba(0,0,0,.5);
}
.coupon-content{
width: 658rpx;
position: absolute;
left: 0;
right: 0;
top: 50%;
margin: auto;
}
.coupon-bg{
width: 658rpx;
height: 468rpx;
background: url(http://nosqn.colorcun.com/coupon.jpg) center center no-repeat;
background-size:contain;
}
.coupon-info{
width: 502rpx;
border-radius: 20rpx;
overflow: hidden;
background: #F65636;
position: relative;
top: -152rpx;
margin: 0 auto;
}
.coupon-header{
width: 100%;
height: 152rpx;
}
.coupon-header>view:first-child{
font-size: 48rpx;
}
.coupon-header>view{
background: linear-gradient(to bottom, #FFFFFF, #FAECA5);
-webkit-background-clip: text;
line-height: 1.4;
-webkit-text-fill-color: transparent;
}
.coupon-button{
width: 100%;
padding: 20rpx 0;
line-height: 34rpx;
position: relative;
}
.coupon-list{
width: 502rpx;
max-height: 360rpx;
overflow-y: scroll;
}
.coupon-single{
width: 452rpx;
height: 134rpx;
border-radius: 20rpx;
line-height: 1.4;
margin:0 auto 16rpx;
background: #FFFFFF;
}
.coupon-main{
width: 310rpx;
height: 100%;
padding-left: 30rpx;
box-sizing: border-box;
}
.coupon-border{
width: 32rpx;
height: 100%;
}
.circle{
width: 20rpx;
height: 10rpx;
background: #F65636;
border:2rpx solid #F65636;
}
.circle-top{
border-radius: 10rpx 10rpx 0 0;
}
.coupon-line{
width: 2rpx;
height: 114rpx;
background: rgba(246,86,54,.2);
}
.circle-bottom{
border-radius: 0 0 10rpx 10rpx;
}
.use-button{
width: 92rpx;
height: 44rpx;
border-radius: 22rpx;
background: #E84033;
color: #FFFFFF;
}
::-webkit-scrollbar {
display: none; /* Chrome Safari */
}
.care{
width: 380px;
height: 84px;
/* position: absolute;
left: 0;
top: 0; */
/* padding-left: 100rpx; */
box-sizing: border-box;
background: #E84033;
}
.get-button{
background: transparent;
padding: 30rpx 0;
}
... ...
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<script src="https://res.wx.qq.com/open/js/jweixin-1.3.2.js"></script>
<script>
var storage = window.sessionStorage,num=1;
if(storage.getItem("num")){
num=storage.getItem("num")+1;
}
storage.setItem('num', num);
if(storage.getItem("num")==1){
window.location.href="https://mp.weixin.qq.com/mp/profile_ext?action=home&__biz=MzU1MTE4Njc4OQ==#wechat_redirect";
}else{
storage.removeItem("num");
wx.miniProgram.navigateBack();
}
</script>
</head>
<body>
</body>
</html>
... ...
{
"navigationBarBackgroundColor": "#ffffff",
"navigationBarTextStyle": "black",
"usingComponents": {
"nav":"/components/nav/nav",
"formids":"/components/formids/formids"
... ...
import util from '../../utils/util';
import App from '../../utils/api';
Page({
onLoad(){
this.init();
this.getlist();
},
getlist(){
App.Activity.ActivityListByOpenid().then((json)=>{
console.log(json);
if(json.ret==200){
this.setData({
list:json.data
})
}
})
},
init(){
let systemInfo = wx.getSystemInfoSync();
let reg = /ios/i;
let pt = 20;//导航状态栏上内边距
let h = 44;//导航状态栏高度
if(reg.test(systemInfo.system)){
pt = systemInfo.statusBarHeight;
h = 44;
}else{
pt = systemInfo.statusBarHeight;
h = 48;
}
this.setData({
contentHeight:systemInfo.windowHeight-pt-h
})
},
getnext(){
},
toused(){
wx.navigateTo({
url:'./used'
})
}
})
\ No newline at end of file
... ...
{
"usingComponents": {
"nav":"/components/nav/nav",
"coupon":"/components/coupon/coupon"
}
}
\ No newline at end of file
... ...
<nav>优惠券</nav>
<scroll-view class="list" style="height:{{contentHeight}}px;padding-bottom: 140rpx;" bindscrolltolower="getnext" scroll-y>
<!-- <view class="flex-rr">
<view class="flex-rr select-all font28r smooth">
<block wx:if="{{selectall}}">
<icon class="icon-box-img" type="success" size="30rpx" color="#ECD9B7"></icon>
</block>
<block wx:else>
<view class="circle"></view>
</block>
<view style="color:#ECD9B7;padding-left: 8rpx;">全选</view>
</view>
</view> -->
<block wx:for="{{list}}">
<coupon item="{{item}}" role="custom"></coupon>
</block>
</scroll-view>
<view class="card-used flex-cc bg-white gray-font font32r" bindtap="toused">查看卡券历史记录<view class="more" style="margin-left: 20rpx;"></view></view>
\ No newline at end of file
... ...
.list{
width: 100%;
padding-top: 20rpx;
box-sizing: border-box;
}
.select-all{
width: 200rpx;
padding:30rpx 20rpx;
box-sizing: border-box;
}
.circle{
width: 30rpx;
height: 30rpx;
border:2rpx solid #ECD9B7;
border-radius: 50%;
box-sizing: border-box;
}
.card-used{
width: 100%;
height: 120rpx;
box-shadow: 0 0 8rpx #EEF0F2;
background: #FFFFFF;
position: fixed;
left: 0;
bottom: 0;
}
\ No newline at end of file
... ...
import util from '../../utils/util';
import App from '../../utils/api';
Page({
data:{
statuslist:{
0:{
status:'待使用'
},
1:{
status:'已核销'
},
}
},
onLoad(opt){
this.opt=opt;
this.getdetail();
},
getdetail(){
App.Activity.ActivityListByOpenid({aid:this.opt.aid}).then((json)=>{
console.log(json);
if(json.ret==200){
this.setData({
couponinfo:json.data[0]
})
if(!this.data.couponinfo.qrcode){
this.getcode();
}
}
})
},
clickSeller(){
let seller_tel=this.data.couponinfo.seller_tel||this.data.couponinfo.phone
if(typeof seller_tel=='string'){
seller_tel=seller_tel.split(',')
}
this.selectComponent('#as').show({
seller_tel:seller_tel,
});
},
getcode(){
App.Activity.UseCreateQrcode({aid:this.opt.aid}).then((json)=>{
console.log(json)
if(json.ret==200){
this.setData({
'couponinfo.qrcode':json.data
})
}
})
}
})
\ No newline at end of file
... ...
{
"usingComponents": {
"nav":"/components/nav/nav",
"formids":"/components/formids/formids",
"as-phone":"/components/2.0/dialog/phone"
}
}
\ No newline at end of file
... ...
<!--pages/taocan/detail.wxml-->
<wxs src="../../utils/util.wxs" module="util" />
<view class="view bg-blue-img"></view>
<nav hasHome backgroundColor="rgba(0,0,0,0)" color="#ffffff"></nav>
<view class="view padding-lr padding-bottom-lg" style="position: relative">
<view class="text-white txt-40-h text-bold margin-top-sm">卡券{{statuslist[couponinfo.status].status}}</view>
<view class="text-white txt-28-h margin-bottom-lg" style="margin-top: 6rpx;">感谢您的支持,请您按尽快来店就餐哦</view>
<view class="view flex flex-direction justify-center align-center margin-top-lg bg-white code-cover">
<view class="header view flex align-center" bindtap="clickSeller">
<view class="view avatar margin-right-sm" style="background-image: url('{{order_info.seller_image}}?imageView2/2/w/320')"></view>
<view class="flex-treble" style="width: 450rpx;">
<view class="txt-32-h text-cut text-bold" style="margin-bottom: 2rpx;">{{couponinfo.sellername}}</view>
<view class="txt-24-h text-gray text-cut">{{couponinfo.real_address||couponinfo.address}}</view>
</view>
<view class="phone view"></view>
</view>
<view class="text-bold txt-36-h">{{couponinfo.aname}}</view>
<block wx:if="{{couponinfo.qrcode}}">
<image src="{{couponinfo.qrcode}}"
class="margin-tb-lg"
mode="heightFix" style="height: 340rpx;max-width: 365rpx;" ></image>
</block>
<block wx:else>
<image src=""
class="margin-tb-lg"
mode="heightFix" style="height: 340rpx;max-width: 365rpx;" ></image>
</block>
<view class="text-bold txt-30-h text-blue">请将此码出示给店员</view>
</view>
<navigator url="/pages/reserve/reserve?id={{couponinfo.sellerid}}&activeTab=reserve">
<view class="view card flex margin-tb-sm padding-lg justify-between">
<view class="view text-bold txt-32-h">您还可以预订包间</view>
<view class="view bg-blue-blue round text-bold" style="padding: 8rpx 20rpx;">订包间</view>
</view>
</navigator>
<view class="view card">
<view class="txt-30-h padding solid-bottom text-bold">使用须知</view>
<view class="view padding block">
<view class="flex align-center margin-bottom-sm">
<view class="dot"></view>
<view class="txt-30-h text-bold">有效期</view>
</view>
<view class="text-df">{{util.unixtoTime(couponinfo.stime,'YYYY.MM.DD')}}-{{util.unixtoTime(couponinfo.etime,'YYYY.MM.DD HH:II')}}</view>
</view>
<view class="view padding block">
<view class="flex align-center margin-bottom-sm">
<view class="dot"></view>
<view class="txt-30-h text-bold">使用时间</view>
</view>
<view class="text-df">{{couponinfo.use_time}}</view>
</view>
<view class="view padding block padding-bottom-sm">
<view class="flex align-center margin-bottom-sm">
<view class="dot"></view>
<view class="txt-30-h text-bold">使用规则</view>
</view>
<view class="text-df">
<text style="line-height: 40rpx;">{{couponinfo.explain}}</text>
</view>
<!-- <view class="flex justify-center align-center rule margin-top-sm margin-bottom-sm" bindtap="toggleRule">
<view class="txt-28-h">{{hasShowRule?'收起':'展开更多'}}</view>
<view class="view icon {{hasShowRule?'show':''}}"></view>
</view> -->
</view>
</view>
<!-- <view class="view card margin-top-sm padding-bottom-xs">
<view class="padding solid-bottom flex justify-between">
<view class="txt-30-h text-bold">订单信息</view>
<chatbot params="{{({act:'taocan',id:order_info.id,...order_tips})}}" wx:if="{{order_tips.optbut}}">
<view class="text-df order-opt-but order-opt-but{{order_info.status}} flex align-center justify-center">
{{order_tips.optbut}}
</view>
</chatbot>
</view>
<view class="view padding padding-lr-lg flex justify-between">
<view class="text-gray txt-28-h">商品总价</view>
<view class="txt-28-h">¥{{order_info.price}}</view>
</view>
<view class="view padding-bottom padding-lr-lg flex justify-between">
<view class="text-gray txt-28-h">实际付款</view>
<view class="txt-28-h">¥{{order_info.should_price}}</view>
</view>
<navigator url="/pages/taocan/orderHis?id={{order_info.id}}">
<view class="view padding-bottom padding-lr-lg flex justify-between">
<view class="text-gray txt-28-h">交易快照</view>
<view class="view txt-28-h flex-treble flex align-center justify-end">
<view class="padding-right-sm">发生交易纠纷时,可作为判断依据</view>
<view class="more"></view>
</view>
</view>
</navigator>
<view class="view padding-bottom padding-lr-lg flex justify-between">
<view class="text-gray txt-28-h">订单编号</view>
<view class="txt-28-h">{{order_info.order_no}}</view>
</view>
<view class="view padding-bottom padding-lr-lg flex justify-between">
<view class="text-gray txt-28-h">下单时间</view>
<view class="txt-28-h">{{util.unixtoTime(order_info.pay_time,'YYYY-MM-DD HH:II:SS')}}</view>
</view>
<view class="view padding-bottom padding-lr-lg flex justify-between" wx:if="{{order_info.status==3}}">
<view class="text-gray txt-28-h">使用时间</view>
<view class="txt-28-h">{{util.unixtoTime(order_info.use_time,'YYYY-MM-DD HH:II:SS')}}</view>
</view>
<view class="view padding-bottom padding-lr-lg flex justify-between" wx:if="{{order_info.status==5}}">
<view class="text-gray txt-28-h">退款时间</view>
<view class="txt-28-h">{{util.unixtoTime(order_info.refund_time,'YYYY-MM-DD HH:II:SS')}}</view>
</view>
</view> -->
</view>
<as-phone id="as"></as-phone>
... ...
/* pages/taocan/detail.wxss */
@import "../../colorui/main.wxss";
.bg-blue-img{
height: 390rpx;
color:#ffffff;
position: fixed;
top:0;
width: 100%;
background-image: url("http://nosqn.colorcun.com/taocan/1%20%2825%29.png");
}
.code-cover{
width: 690rpx;
border-radius: 10rpx;
margin: 0 auto;
padding: 60rpx 30rpx;
box-shadow: 0px 0px 30rpx 0px #E5E5E5;
box-sizing: border-box;
}
.header{
width: 100%;
margin-bottom: 50rpx;
}
.avatar{
width: 60rpx;
height: 60rpx;
border-radius: 50%;
background: #EEEEEE;
}
.phone{
width: 40rpx;
height: 40rpx;
background-image: url("http://nosqn.colorcun.com/taocan/1%20%2810%29.png");
margin-bottom: 44rpx;
}
.card{
width: 100%;
background: #FFFFFF;
box-shadow: 0px 0px 30rpx 0px #E5E5E5;
border-radius: 20rpx;
}
.block .dot{
width: 8rpx;
height: 26rpx;
background: linear-gradient(180deg, #3BBFF5 0%, #57A0FF 100%);
margin-right: 20rpx;
}
.rule .icon{
width: 22rpx;
height: 12rpx;
margin-left: 20rpx;
background-image: url("http://nosqn.colorcun.com/taocan/1%20%285%29.png");
}
.rule .icon.show{
background-image: url("http://nosqn.colorcun.com/taocan/1%20%286%29.png");
}
.overline{
text-decoration: line-through;
}
.order-opt-but{
width: 136rpx;
height: 48rpx;
border: 2rpx solid #CCCCCC;
color:#999999;
}
.order-opt-but6{
border: 2rpx solid #42A5FF;
color:#42A5FF;
}
\ No newline at end of file
... ...
... ... @@ -19,6 +19,7 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
this.getautomenu();
let systemInfo = wx.getSystemInfoSync();
console.log('hahha',systemInfo,systemInfo.statusBarHeight)
this.setData({
... ... @@ -118,6 +119,7 @@ Page({
limit:1,
size:1,
}).then(res=>{
console.log(res)
if(res.data.length>0){
this.setData({
shownotice:true
... ... @@ -125,4 +127,14 @@ Page({
}
})
},
getcode(){
wx.scanCode({
success:(res)=>{
console.log('success',res)
},
fail:()=>{
console.log('fail')
}
})
}
})
\ No newline at end of file
... ...
... ... @@ -31,6 +31,12 @@
<view class="money-title">红包</view>
</view>
</navigator>
<navigator url="./coupon" class="money-item">
<view class="flex-vc">
<view class="money-value">{{user.card}}</view>
<view class="money-title">卡券</view>
</view>
</navigator>
</view>
<view class="block-rev">
<navigator url="/pages/me/list" open-type="switchTab">
... ...
... ... @@ -30,6 +30,7 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
// if(getApp().meListType){
// this.tabType=getApp().meListType
// this.setData({
... ... @@ -119,8 +120,13 @@ Page({
}
this.setData({
[`list[`+tabType+`]`]: this.data.list[tabType].concat(data),
hasMore:this.hasMore
hasMore:this.hasMore,
})
if(tabType>4 && this.getOffset()==1){
this.setData({
shownotice:resData.length>0 ? true : false
})
}
// if(res.data.length==0){
// this.GetRecommendSellerLists()
// }
... ...
import util from '../../utils/util';
import App from '../../utils/api';
Page({
data:{
tablist:[
{
name:'已使用',
status:0
},
{
name:'已失效',
status:0
}
],
tabidx:0
},
onLoad(){
this.init();
this.getlist();
},
getlist(){
App.Activity.GetListByStatus().then((json)=>{
console.log(json);
if(json.ret==200){
this.setData({
list:json.data
})
}
})
},
init(){
let systemInfo = wx.getSystemInfoSync();
let reg = /ios/i;
let pt = 20;//导航状态栏上内边距
let h = 44;//导航状态栏高度
if(reg.test(systemInfo.system)){
pt = systemInfo.statusBarHeight;
h = 44;
}else{
pt = systemInfo.statusBarHeight;
h = 48;
}
this.setData({
headerHeight:pt+h,
contentHeight:systemInfo.windowHeight-pt-h
})
},
selecttab(e){
let idx=util.attr(e,'index');
this.setData({
tabidx:idx
})
}
})
\ No newline at end of file
... ...
{
"navigationBarBackgroundColor": "#ffffff",
"navigationBarTextStyle": "black",
"usingComponents": {
"nav":"/components/nav/nav",
"coupon":"/components/coupon/coupon"
}
}
\ No newline at end of file
... ...
<nav>历史记录</nav>
<view class="tablist flex-lr" style="top:{{headerHeight}}px;">
<block wx:for="{{tablist}}">
<view class="flex-vc tab-single" data-index="{{index}}" bindtap="selecttab">
<view class="{{tabidx===index ? 'blue-font font-bold' : 'black-font'}} font32r" style="line-height: 44rpx;padding: 10rpx 0;">{{item.name}}</view>
<view class="{{tabidx==index ? 'active' : ''}} tab-line"></view>
</view>
</block>
</view>
<view class="list" style="padding-top: 100rpx;">
<block wx:for="{{tabidx==0 ? list.use : list.over}}">
<coupon item="{{item}}" mark="used"></coupon>
</block>
</view>
\ No newline at end of file
... ...
.tablist{
width: 100%;
height: 80rpx;
padding: 6rpx 150rpx 0;
box-sizing: border-box;
position: fixed;
left: 0;
z-index: 2;
background: #FFFFFF;
}
.tab-single{
height: 100%;
padding: 0 20rpx;
}
.tab-line{
width: 60rpx;
height: 6rpx;
border-radius: 3rpx;
background: #FFFFFF;
}
.tab-line.active{
background: linear-gradient(to right, #3BBFF5 0%, #57A0FF 100%);
}
\ No newline at end of file
... ...
... ... @@ -4,10 +4,10 @@
<navigator open-type="navigateBack" wx:if="{{hasBack}}">
<view style="top:{{meTop}}px;"
class="me view flex flex-direction align-center justify-center round">
<image src="http://nosqn.colorcun.com/back-white.png" style="width: 18rpx;height: 32rpx;"></image>
<!-- <image src="http://nosqn.colorcun.com/back-white.png" style="width: 18rpx;height: 32rpx;"></image> -->
</view>
</navigator>
<nav hasHome wx:if="{{hasNav}}" id='nav'>{{seller.sellername}}</nav>
<nav hasHome id='nav' backgroundColor="{{hasNav ? '#ffffff' : 'transparent'}}" place="{{false}}">{{hasNav ? seller.sellername : ''}}</nav>
<view class="swiper-view">
<swiper class="swiper-image"
indicator-dots="{{false}}" autoplay="{{false}}"
... ...
... ... @@ -32,6 +32,7 @@ Page({
* 生命周期函数--监听页面加载
*/
options:null,
discountapi:[App.Foodset.GetListByFoodset,App.Customer.GetSellerListByActivity,App.Customer.GetSellerListByCheck],
onLoad: function (options) {
//latitude=34.215637&longitude=108.891264&scale=16&height=397
this.options=options;
... ... @@ -113,7 +114,7 @@ Page({
hasMore:true,
GetCollectionSellerList(){
this.city=JSON.parse(this.options.city)
App.Customer.GetActivitySellerListByFoods({
this.discountapi[this.data.tabidx]({
code:this.city.code,
pid:this.city.pid,
offset:this.offset,
... ... @@ -122,6 +123,11 @@ Page({
lat_extend:this.location.latitude,
lng_extend:this.location.longitude,
}).then(res=>{
if(this.offset==1){
this.setData({
sellers:[]
})
}
let sellers=res.data;
let sellersLength=sellers.length;
this.hasMore=sellersLength>=this.size
... ... @@ -137,6 +143,9 @@ Page({
// seller.distance += 'm';
// }
// }
if(seller.discount){
seller.discount=(Number(seller.discount)*10).toFixed(1);
}
if(seller.seller_tel){
seller.seller_tel=seller.seller_tel.split(',');
}else{
... ... @@ -179,6 +188,9 @@ Page({
let tabidx=util.attr(e,'tabidx');
this.setData({
tabidx:tabidx,
})
})
this.offset=1;
this.GetCollectionSellerList();
}
})
\ No newline at end of file
... ...
... ... @@ -7,6 +7,7 @@
"nav":"/components/nav/nav",
"getpos":"/components/userinfo/getpos",
"sb-tr":"/components/reserve/seller-box-transverse/seller-box",
"hasActivity":"/components/activity/hasActivity"
"hasActivity":"/components/activity/hasActivity",
"taocan":"/components/reserve/seller-box-transverse/taocan-card"
}
}
\ No newline at end of file
... ...
... ... @@ -18,13 +18,19 @@
</view>
</view>
<view class="follow" style="margin-top: {{activity?96:32}}rpx;">
<view class="biaoyu">{{discountlist[tabidx].slogan}}</view>
<view class="biaoyu" style="margin-bottom: {{sellers.length>0 ? 30 : 160}}rpx;">{{discountlist[tabidx].slogan}}</view>
<view class="seller" wx:for="{{sellers}}" wx:key="sellers.key"
bindtap="gotoDetail" data-sid="{{item.id}}" wx:if="{{item.hasFollow}}">
<sb-tr seller="{{item}}"
hasActivity="{{false}}" hasAverage="{{true}}"
hasBrand hasActivityRed hasActivityShort hasNewActivityList
hasSlogan="{{false}}" sellerStyle="noborder noshadow activity-list"></sb-tr>
bindtap="{{tabidx==0 ? '' : 'gotoDetail'}}" data-sid="{{item.id}}" wx:if="{{item.hasFollow}}">
<block wx:if="{{tabidx==0}}">
<taocan item="{{item}}"></taocan>
</block>
<block wx:else>
<sb-tr seller="{{item}}"
hasActivityTags="{{true}}" hasAverage="{{true}}"
hasBrand hasActivityShort hasNewActivityList
hasSlogan="{{false}}" sellerStyle="noborder noshadow activity-list"></sb-tr>
</block>
</view>
<view class="flex-vc" wx:if="{{!hasMore}}">没有更多了</view>
</view>
... ...
... ... @@ -47,7 +47,7 @@ page{
text-align: center;
margin-left: calc(50% - 264rpx);
position: relative;
margin-bottom: 160rpx;
/* margin-bottom: 160rpx; */
}
.biaoyu:after,.biaoyu:before{
content:"";
... ...
... ... @@ -20,8 +20,8 @@
<image class="moveToLocation-image" src="http://nosqn.colorcun.com/2.0/home%20%2811%29.png"></image>
</view>
</view>
<taocan-notice></taocan-notice>
<view class="view content padding-top-xs" style="height: 70vh;">
<taocan-notice></taocan-notice>
<filter-group height="{{height}}"
id="filter-group"
bindevent="filterGroupEvent"
... ... @@ -51,10 +51,8 @@
</view>
<view class="view flex flex-direction justify-center align-center empty-box empty-box-move margin-sm"
wx:else="">
<view class="view flex text-df tips align-center text-orange">
<view class="view icon"></view>
<view class="view">往任意方向拖动地图,可查找不同范围的餐厅</view>
</view>
<view class="view icon"></view>
<view class="view text-lg margin-top-sm">任意方向缩放或拖动地图</view>
<view class="view text-lg">地图显示范围无餐厅</view>
<view style="margin-top: 80rpx;"
bindtap="reduceMapScale" data-val="39.684670,118.176300"
... ... @@ -81,7 +79,7 @@
<view class="view">往任意方向拖动地图,可查找不同范围的餐厅</view>
</view> -->
<view class="view icon"></view>
<view class="view text-lg margin-top-sm">往任意方向拖动地图</view>
<view class="view text-lg margin-top-sm">任意方向缩放或拖动地图</view>
<view class="view text-24" style="margin-top: 16rpx;">可以查找更多餐厅</view>
</view>
<view class="view" style="height: 192rpx;"></view>
... ...
... ... @@ -17,7 +17,7 @@
</view>
</view>
<view class="view solid-bottom flex justify-around align-center" style="height: 110rpx;" bindtap="dispalySearchHow">
<view class="flex-treble txt-36-h {{findSellerData.paramStr ? 'text-bold' : ''}}" style="color: {{findSellerData.paramStr ? '#353535' : '#999999'}};">{{findSellerData.paramStr||'选择日期/时段/人数'}}</view>
<view class="flex-treble txt-36-h {{findSellerData.action=='auto' ? '' : 'text-bold'}}" style="color: {{findSellerData.action=='auto' ? '#999999' : '#353535'}};">{{findSellerData.action=='auto' ? '选择日期/时段/人数' : findSellerData.paramStr||'选择日期/时段/人数'}}</view>
<view class="more"></view>
</view>
<view class="view solid-bottom flex justify-around align-center"
... ... @@ -39,10 +39,10 @@
<view wx:if="{{IsSetActivityByFoods}}" class="margin-top-lg padding-lr-lg padding-top-lg">
<view class="txt-40-h text-bold margin-bottom">精选特惠</view>
<view class="flex justify-center align-center" >
<view class="view youhui-image image1" style="" data-tabidx="0" data-path="/pages/reserve/discount" bindtap="goPath"></view>
<view class="view youhui-image image1" style="" data-tabidx="2" data-path="/pages/reserve/discount" bindtap="goPath"></view>
<view class="margin-left-xs">
<view class="view youhui-image image2" data-tabidx="1" data-path="/pages/reserve/discount" bindtap="goPath"></view>
<view class="view youhui-image image3 margin-top-xs" data-tabidx="2" data-path="/pages/reserve/discount" bindtap="goPath"></view>
<view class="view youhui-image image3 margin-top-xs" data-tabidx="0" data-path="/pages/reserve/discount" bindtap="goPath"></view>
</view>
</view>
</view>
... ...
... ... @@ -3,7 +3,7 @@
"setting": {
"urlCheck": true,
"es6": true,
"enhance": false,
"enhance": true,
"postcss": true,
"preloadBackgroundData": false,
"minified": true,
... ... @@ -20,6 +20,7 @@
"compileHotReLoad": false,
"useMultiFrameRuntime": true,
"useApiHook": true,
"useApiHostProcess": true,
"babelSetting": {
"ignore": [],
"disablePlugins": [],
... ... @@ -32,11 +33,10 @@
"userConfirmedBundleSwitch": false,
"packNpmManually": false,
"packNpmRelationList": [],
"minifyWXSS": true,
"useApiHostProcess": true
"minifyWXSS": true
},
"compileType": "miniprogram",
"libVersion": "2.11.2",
"libVersion": "2.14.1",
"appid": "wxd3dc4206c76f14fc",
"projectname": "c%E7%AB%AF%E9%A2%84%E5%AE%9A",
"isGameTourist": false,
... ... @@ -88,10 +88,9 @@
"miniprogram": {
"list": [
{
"id": 0,
"name": "预订本-商家1",
"pathName": "pack-book/pages/book/b_index",
"query": "seller_id=1297&seller_openid= oZc-q05hV2N-knHfpxKg5dDUp5vU&manager_id=20612",
"query": "seller_id=1001&seller_openid= oZc-q05hV2N-knHfpxKg5dDUp5vU&manager_id=20612",
"scene": 1001
},
{
... ... @@ -691,6 +690,30 @@
"pathName": "pack-checkout/pages/index",
"query": "rid=153180&sid=1297",
"scene": null
},
{
"name": "pack-checkout/pages/use",
"pathName": "pack-checkout/pages/use",
"query": "seller_id=1297&seller_openid= oZc-q05hV2N-knHfpxKg5dDUp5vU&manager_id=20612",
"scene": null
},
{
"name": "pack-checkout/pages/use",
"pathName": "pack-checkout/pages/use",
"query": "scene=aid%3D9%26openid%3DoB-xJ5MEi2mTMrBTiYImD9cpGH6o",
"scene": null
},
{
"name": "pages/customer/detail_owner_invitation",
"pathName": "pages/customer/detail_owner_invitation",
"query": "id= 157347",
"scene": null
},
{
"name": "pages/customer/index",
"pathName": "pages/customer/index",
"query": "id=157589&tplid=1&fromid=oB-xJ5MEi2mTMrBTiYImD9cpGH6o&hasSellerShare=0&hasInvitation=1 ",
"scene": 1047
}
]
}
... ...
... ... @@ -561,4 +561,33 @@ export default {
'App.Customer.GetSellerPreferentialDocking':null,
//接单人,获得商家设置的接单人列表
'App.Customer.GetReceptionists':null,
//买单优惠
'App.Customer.GetSellerListByCheck':null,
//套餐优惠
'App.Foodset.GetListByFoodset':null,
//线下优惠
'App.Customer.GetSellerListByActivity':null,
//用户活动列表 不传aid查用户列表 传aid查详情
'App.Activity.ActivityListByOpenid':{
openid:'openid',
},
//点击使用 进优惠券详情时 调这个 创建核销码
'App.Activity.UseCreateQrcode':{
openid:'openid',
},
//扫码进页面 点核销 调这个
'App.Activity.SetActivityStatus':null,
//用户在小程序点前往查看 跳转到公众号后 前端调这个接口 程序自动调关联领取关系
'App.Activity.SetActivityAsReserve':{
openid:'openid',
},
//获取预定绑定活动
'App.Activity.GetActivityByRid':null,
//获取各状态列表
'App.Activity.GetListByStatus':{
openid:'openid',
}
}
\ No newline at end of file
... ...