Commit 7d343be4f0d993faa63932f77aabe26d74a0618e

Authored by pengye
1 parent 3fcb5106

邀请函新模板

... ... @@ -142,17 +142,10 @@ Page({
// 支付失败回调 types 1邀请函 2提前点餐 3商家端app分享
callbackFun() {
let that = this;
let url = '/pages/customer/detail_owner_invitation_new1?id=' + that.data.opt.detail.oid;
let url = '/pages/customer/detail_owner_invitation1?id=' + that.data.opt.detail.oid;
if(that.data.opt.types == '1'){
console.log('StyleType',this.data.StyleType);
switch (this.data.StyleType) {
case '1':
url = '/pages/customer/detail_owner_invitation_new1?id=' + that.data.opt.detail.oid;
break;
case '2':
url = '/pages/customer/detail_owner_invitation_new2?id=' + that.data.opt.detail.oid;
break;
}
url = `/pages/customer/detail_owner_invitation${that.data.StyleType}?id=${that.data.opt.detail.oid}`;
}
if (that.data.opt.types == '2') {
let data={}
... ... @@ -178,17 +171,8 @@ Page({
console.log('充值完成跳转', this.data.opt.detail.oid);
console.log('StyleType',this.data.StyleType);
this.closeModal()
let url=`/pages/customer/detail_owner_invitation_new1?id=${this.data.opt.detail.oid}&hasInvitation=1&hasSellerShare=1&tplid=1`
switch (this.data.StyleType) {
case '1':
url = `/pages/customer/detail_owner_invitation_new1?id=${this.data.opt.detail.oid}&hasInvitation=1&hasSellerShare=1&tplid=1`
break;
case '2':
url = `/pages/customer/detail_owner_invitation_new2?id=${this.data.opt.detail.oid}&hasInvitation=1&hasSellerShare=1&tplid=1`
break;
}
wx.reLaunch({
url
url:`/pages/customer/detail_owner_invitation${this.data.StyleType}?id=${this.data.opt.detail.oid}&hasInvitation=1&hasSellerShare=1&tplid=1`
})
},
// 绑定名称
... ... @@ -355,17 +339,8 @@ Page({
navEvent() {
// 1 邀请函 2 提前点餐 3商家端分享
if (this.data.opt.types == '1') {
let url='/pages/customer/detail_owner_invitation_new1?id=' + this.data.opt.detail.oid;
switch (this.data.StyleType) {
case '1':
url = '/pages/customer/detail_owner_invitation_new1?id=' + this.data.opt.detail.oid;
break;
case '2':
url = '/pages/customer/detail_owner_invitation_new1?id=' + this.data.opt.detail.oid;
break;
}
return wx.reLaunch({
url,
url:`/pages/customer/detail_owner_invitation${this.data.StyleType}?id=${this.data.opt.detail.oid}`
})
}
if (this.data.opt.types == '2') {
... ...
... ... @@ -67,17 +67,8 @@ Page({
App.Seller.GetSellerTemplateConf({
sid:this.detail.seller.id
}).then(res => {
let url=`/pages/customer/detail_owner_invitation_new1?id=${detail.id}}&hasInvitation=1&hasSellerShare=1&tplid=1`
switch (res.data.type) {
case '1':
url = `/pages/customer/detail_owner_invitation_new1?id=${detail.id}}&hasInvitation=1&hasSellerShare=1&tplid=1`
break;
case '2':
url = `/pages/customer/detail_owner_invitation_new2?id=${detail.id}}&hasInvitation=1&hasSellerShare=1&tplid=1`
break;
}
wx.navigateTo({
url,
url:`/pages/customer/detail_owner_invitation${this.data.StyleType}?id=${detail.id}&hasInvitation=1&hasSellerShare=1&tplid=1`
})
})
},
... ...
/* pages/customer/detail_customer.wxss */
@import "../tpl/tpls.wxss";
.pages{
width: 100%;
background-size: 100%;
font-size: 34rpx;
position: fixed;
left: 0;
top: 0;
bottom: 0;
}
image{
width: 100%;
height: 100%;
}
.buts-share{
background-image: url("http://nosqn.colorcun.com/manager-invitation/wx2/%E5%8F%91%E9%82%80%E8%AF%B7%E5%87%BD.png");
}
.buts-share.customer{
background-image: url("http://nosqn.colorcun.com/manager-invitation/wx/%E7%A1%AE%E8%AE%A4%E6%94%B6%E5%88%B0.png");
}
.shangwu{
margin-top: 52rpx;
}
.shangwu .seller{
margin-bottom: 42rpx;
}
.shangwu .invit-logo.owner{
width: 380rpx;
height: 200rpx;
background-image: url("http://nosqn.colorcun.com/manager-invitation/wx2/%E9%A2%84%E8%AE%A2%E5%AE%89%E6%8E%92.png");
}
.shangwu .invit-logo.customer{
width: 352rpx;
height: 164rpx;
background-image: url("http://nosqn.colorcun.com/custom/lite-yd/image/invit-logo.png");
}
.wenxin-mask{
margin-top: 20rpx;
}
.wenxin-baitou{
margin-top: 20rpx;
}
.wenxin .seller{
margin-bottom: 22rpx;
}
.wenxin .invit-logo.owner{
width: 340rpx;
height: 184rpx;
background-image: url("http://nosqn.colorcun.com/manager-invitation/wx2/%E9%A2%84%E8%AE%A2%E5%AE%89%E6%8E%92-%E6%B8%A9%E9%A6%A8.png");
}
.wenxin .invit-logo.customer{
width: 344rpx;
height: 198rpx;
background-image: url("http://nosqn.colorcun.com/manager-invitation/wx/%E9%82%80%E8%AF%B7%E5%87%BD.png");
}
.bottom{
position: fixed;
bottom: 0;
height: 90rpx;
line-height: 90rpx;
background-color: #ECD9B7;
width: 100%;
font-size: 30rpx;
box-sizing: border-box;
}
.bottom .dingbaojian{
background-color: #262628;
color: #ECD9B7;
min-width: 160rpx;
height: 90rpx;
line-height: 90rpx;
border-top: 2rpx solid #ECD9B7;
box-sizing: border-box;
}
.bottom .dingbaojian .icon{
width: 30rpx;
height: 30rpx;
}
.bottom .dingbaojian .text{
height:34rpx;
font-size:24rpx;
color:rgba(236,217,183,1);
line-height:34rpx;
margin-top: 8rpx;
}
.bottom .sendmsg{
background-color: #262628;
color: #ECD9B7;
min-width: 25%;
}
.bottom .diancan{
text-align: center;
color: #794F28;
height: 66rpx;
line-height: 66rpx;
min-width: 33%;
width: 100%;
}
.bottom .diancan .buts-text{
height: 66rpx;
line-height: 66rpx;
}
.bottom .diancan.left-border{
border-left: 2rpx solid #D3BF9C;
}
.bottom .jiushui{
text-align: center;
color: #794F28;
height: 90rpx;
line-height: 90rpx;
min-width: 33%;
width: 70%;
}
.bottom .diancan .icon{
width: 40rpx;
height: 34rpx;
margin-right: 40rpx;
}
.bottom .jiushui .icon{
width: 32rpx;
height: 38rpx;
margin-right: 40rpx;
}
.buts-text{
height: 90rpx;
line-height: 90rpx;
}
.vline{
background-color: #D3BF9C;
width: 6rpx;
height: 66rpx;
min-width: 6rpx;
}
.opt-view-tip{
font-size: 30rpx;
color:#ccc;
}
.service-view{
width:88rpx;
height:64rpx;
background:rgba(0,0,0,0.15);
border-radius:50rpx;
border:1rpx solid rgba(255,255,255,0.25);
box-sizing: border-box;
margin-right: 20rpx;
}
.service-icon{
background-image: url("http://nosqn.colorcun.com/shead2.png");
background-size: 100% 100%;
width:36rpx;
height:36rpx;
}
.coupon{
.pages {
width: 100%;
background-size: 100%;
font-size: 34rpx;
position: fixed;
left: 0;
top: 0;
bottom: 0;
}
image {
width: 100%;
height: 100%;
}
.buts-share {
background-image: url("http://nosqn.colorcun.com/manager-invitation/wx2/%E5%8F%91%E9%82%80%E8%AF%B7%E5%87%BD.png");
}
.buts-share.customer {
background-image: url("http://nosqn.colorcun.com/manager-invitation/wx/%E7%A1%AE%E8%AE%A4%E6%94%B6%E5%88%B0.png");
}
.shangwu {
margin-top: 52rpx;
}
.shangwu .seller {
margin-bottom: 42rpx;
}
.shangwu .invit-logo.owner {
width: 380rpx;
height: 200rpx;
background-image: url("http://nosqn.colorcun.com/manager-invitation/wx2/%E9%A2%84%E8%AE%A2%E5%AE%89%E6%8E%92.png");
}
.shangwu .invit-logo.customer {
width: 352rpx;
height: 164rpx;
background-image: url("http://nosqn.colorcun.com/custom/lite-yd/image/invit-logo.png");
}
.wenxin-mask {
margin-top: 20rpx;
}
.wenxin-baitou {
margin-top: 20rpx;
}
.wenxin .seller {
margin-bottom: 22rpx;
}
.wenxin .invit-logo.owner {
width: 340rpx;
height: 184rpx;
background-image: url("http://nosqn.colorcun.com/manager-invitation/wx2/%E9%A2%84%E8%AE%A2%E5%AE%89%E6%8E%92-%E6%B8%A9%E9%A6%A8.png");
}
.wenxin .invit-logo.customer {
width: 344rpx;
height: 198rpx;
background-image: url("http://nosqn.colorcun.com/manager-invitation/wx/%E9%82%80%E8%AF%B7%E5%87%BD.png");
}
.bottom {
position: fixed;
bottom: 0;
height: 90rpx;
line-height: 90rpx;
background-color: #ECD9B7;
width: 100%;
font-size: 30rpx;
box-sizing: border-box;
}
.bottom .dingbaojian {
background-color: #262628;
color: #ECD9B7;
min-width: 160rpx;
height: 90rpx;
line-height: 90rpx;
border-top: 2rpx solid #ECD9B7;
box-sizing: border-box;
}
.bottom .dingbaojian .icon {
width: 30rpx;
height: 30rpx;
}
.bottom .dingbaojian .text {
height: 34rpx;
font-size: 24rpx;
color: rgba(236, 217, 183, 1);
line-height: 34rpx;
margin-top: 8rpx;
}
.bottom .sendmsg {
background-color: #262628;
color: #ECD9B7;
min-width: 25%;
}
.bottom .diancan {
text-align: center;
color: #794F28;
height: 66rpx;
line-height: 66rpx;
min-width: 33%;
width: 100%;
}
.bottom .diancan .buts-text {
height: 66rpx;
line-height: 66rpx;
}
.bottom .diancan.left-border {
border-left: 2rpx solid #D3BF9C;
}
.bottom .jiushui {
text-align: center;
color: #794F28;
height: 90rpx;
line-height: 90rpx;
min-width: 33%;
width: 70%;
}
.bottom .diancan .icon {
width: 40rpx;
height: 34rpx;
margin-right: 40rpx;
}
.bottom .jiushui .icon {
width: 32rpx;
height: 38rpx;
margin-right: 40rpx;
}
.buts-text {
height: 90rpx;
line-height: 90rpx;
}
.vline {
background-color: #D3BF9C;
width: 6rpx;
height: 66rpx;
min-width: 6rpx;
}
.opt-view-tip {
font-size: 30rpx;
color: #ccc;
}
.service-view {
width: 88rpx;
height: 64rpx;
background: rgba(0, 0, 0, 0.15);
border-radius: 50rpx;
border: 1rpx solid rgba(255, 255, 255, 0.25);
box-sizing: border-box;
margin-right: 20rpx;
}
.service-icon {
background-image: url("http://nosqn.colorcun.com/shead2.png");
background-size: 100% 100%;
width: 36rpx;
height: 36rpx;
}
.coupon {
position: fixed;
left: 0;
right: 0;
top: 0;
bottom: 0;
background: rgba(0,0,0,.5);
background: rgba(0, 0, 0, .5);
}
.coupon-content{
.coupon-content {
width: 658rpx;
position: absolute;
left: 0;
... ... @@ -173,13 +199,15 @@ image{
top: 50%;
margin: auto;
}
.coupon-bg{
.coupon-bg {
width: 658rpx;
height: 468rpx;
background: url(http://nosqn.colorcun.com/coupon.jpg) center center no-repeat;
background-size:contain;
background-size: contain;
}
.coupon-info{
.coupon-info {
width: 502rpx;
border-radius: 20rpx;
overflow: hidden;
... ... @@ -188,76 +216,92 @@ image{
top: -152rpx;
margin: 0 auto;
}
.coupon-header{
.coupon-header {
width: 100%;
height: 152rpx;
}
.coupon-header>view:first-child{
.coupon-header>view:first-child {
font-size: 48rpx;
}
.coupon-header>view{
.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{
.coupon-button {
width: 100%;
padding: 20rpx 0;
line-height: 34rpx;
position: relative;
}
.coupon-list{
.coupon-list {
width: 502rpx;
max-height: 360rpx;
overflow-y: scroll;
}
.coupon-single{
.coupon-single {
width: 452rpx;
height: 134rpx;
border-radius: 20rpx;
line-height: 1.4;
margin:0 auto 16rpx;
margin: 0 auto 16rpx;
background: #FFFFFF;
}
.coupon-main{
.coupon-main {
width: 310rpx;
height: 100%;
padding-left: 30rpx;
box-sizing: border-box;
}
.coupon-border{
.coupon-border {
width: 32rpx;
height: 100%;
}
.circle{
.circle {
width: 20rpx;
height: 10rpx;
background: #F65636;
border:2rpx solid #F65636;
border: 2rpx solid #F65636;
}
.circle-top{
.circle-top {
border-radius: 10rpx 10rpx 0 0;
}
.coupon-line{
.coupon-line {
width: 2rpx;
height: 114rpx;
background: rgba(246,86,54,.2);
background: rgba(246, 86, 54, .2);
}
.circle-bottom{
.circle-bottom {
border-radius: 0 0 10rpx 10rpx;
}
.use-button{
.use-button {
width: 92rpx;
height: 44rpx;
border-radius: 22rpx;
background: #E84033;
color: #FFFFFF;
}
::-webkit-scrollbar {
display: none; /* Chrome Safari */
display: none;
/* Chrome Safari */
}
.care{
.care {
width: 380px;
height: 84px;
/* position: absolute;
... ... @@ -267,11 +311,13 @@ image{
box-sizing: border-box;
background: #E84033;
}
.get-button{
.get-button {
background: transparent;
padding: 30rpx 0;
}
.menu{
.menu {
width: 100rpx;
height: 100rpx;
border-radius: 50%;
... ... @@ -281,28 +327,32 @@ image{
background: url(http://nosqn.colorcun.com/invite_menu.png) center center no-repeat;
background-size: contain;
}
.menu-list{
.menu-list {
position: fixed;
left: 0;
right: 0;
top: 0;
bottom: 0;
background: rgba(0,0,0,.69);
background: rgba(0, 0, 0, .69);
z-index: 100;
padding-left: 40rpx;
padding-bottom: 40rpx;
box-sizing: border-box;
}
.menu-item{
.menu-item {
height: 100rpx;
margin-bottom: 40rpx;
}
.menu-item-image{
.menu-item-image {
width: 100rpx;
height: 100rpx;
margin-right: 20rpx;
border-radius: 50%;
}
/* .menu-item-book{
width: 100rpx;
height: 100rpx;
... ... @@ -313,53 +363,62 @@ image{
background: url(http://nosqn.colorcun.com/invite_menu.png) center center no-repeat;
background-size: contain;
} */
.menu-list{
.menu-list {
position: fixed;
left: 0;
right: 0;
top: 0;
bottom: 0;
background: rgba(0,0,0,.69);
background: rgba(0, 0, 0, .69);
z-index: 100;
padding-left: 40rpx;
padding-bottom: 40rpx;
box-sizing: border-box;
}
.menu-item{
.menu-item {
height: 100rpx;
margin-bottom: 40rpx;
}
.menu-item-image{
.menu-item-image {
width: 100rpx;
height: 100rpx;
margin-right: 20rpx;
border-radius: 50%;
}
.menu-item-book{
.menu-item-book {
background: url(http://nosqn.colorcun.com/menu-book.png) center center no-repeat;
background-size: contain;
}
.menu-item-buy{
.menu-item-buy {
background: url(http://nosqn.colorcun.com/menu-buy.png) center center no-repeat;
background-size: contain;
}
.menu-item-buy-nouse{
.menu-item-buy-nouse {
background: url(http://nosqn.colorcun.com/menu-buy-nouse.png) center center no-repeat;
background-size: contain;
}
.menu-item-check{
.menu-item-check {
background: url(http://nosqn.colorcun.com/menu-check.png) center center no-repeat;
background-size: contain;
}
.menu-item-check-nouse{
.menu-item-check-nouse {
background: url(http://nosqn.colorcun.com/menu-check-nouse.png) center center no-repeat;
background-size: contain;
}
.menu-item-back{
.menu-item-back {
background: url(http://nosqn.colorcun.com/menu-back.png) center center no-repeat;
background-size: contain;
}
.click-icon{
.click-icon {
width: 12rpx;
height: 12rpx;
border-top: 2rpx solid #FFFFFF;
... ... @@ -367,30 +426,37 @@ image{
transform: rotate(45deg);
margin-left: -6rpx;
}
.gray-font{
.gray-font {
color: #999999;
}
.menu-item-buy{
.menu-item-buy {
background: url(http://nosqn.colorcun.com/menu-buy.png) center center no-repeat;
background-size: contain;
}
.menu-item-buy-nouse{
.menu-item-buy-nouse {
background: url(http://nosqn.colorcun.com/menu-buy-nouse.png) center center no-repeat;
background-size: contain;
}
.menu-item-check{
.menu-item-check {
background: url(http://nosqn.colorcun.com/menu-check.png) center center no-repeat;
background-size: contain;
}
.menu-item-check-nouse{
.menu-item-check-nouse {
background: url(http://nosqn.colorcun.com/menu-check-nouse.png) center center no-repeat;
background-size: contain;
}
.menu-item-back{
.menu-item-back {
background: url(http://nosqn.colorcun.com/menu-back.png) center center no-repeat;
background-size: contain;
}
.click-icon{
.click-icon {
width: 12rpx;
height: 12rpx;
border-top: 2rpx solid #FFFFFF;
... ... @@ -398,18 +464,21 @@ image{
transform: rotate(45deg);
margin-left: -6rpx;
}
.gray-font{
.gray-font {
color: #999999;
}
.last-book-food{
.last-book-food {
width: 202rpx;
height: 62rpx;
background: linear-gradient(to right,#E1B275,#FEEFBC,#E1B275);
background: linear-gradient(to right, #E1B275, #FEEFBC, #E1B275);
border-radius: 32rpx;
position: relative;
z-index: 100;
}
.notice{
.notice {
width: 20rpx;
height: 20rpx;
border-radius: 50%;
... ...
... ... @@ -360,7 +360,7 @@ Page({
let data = res.data
console.log('data', data);
let coupon_dataList = []
let themeColor, themeSixteen, home, chef, marketing, coupon, reserve, swich_phone, is_comments, signboard, store, priceInfo, certificate, scoreInfo, recharge_list, stringifyUse;
let themeColor, StyleType, themeSixteen, home, chef, marketing, coupon, reserve, swich_phone, is_comments, signboard, store, priceInfo, certificate, scoreInfo, recharge_list, stringifyUse;
chef = util.determine(data.chef);
reserve = util.determine(data.reserve);
marketing = util.determine(data.marketing);
... ... @@ -368,6 +368,7 @@ Page({
store = util.determine(data.store);
home = util.determine(data.home);
themeColor = data.lite_class;
StyleType = data.type;
swich_phone = reserve && reserve.swich_phone ? reserve.swich_phone : '';
if (marketing) {
is_comments = marketing.is_comments ? marketing.is_comments : '';
... ... @@ -410,7 +411,7 @@ Page({
coupon_dataList,
swich_phone,
is_comments,
StyleType: res.data.type,
StyleType,
themeColor,
}
console.log('获取数据', {
... ... @@ -452,7 +453,7 @@ Page({
scoreInfo,
swich_phone,
is_comments,
StyleType: res.data.type,
StyleType,
themeColor,
themeSixteen,
})
... ...
... ... @@ -67,7 +67,6 @@
.handle {
display: flex;
flex-direction: column;
color: #999999;
font-family: PingFang SC;
font-weight: 500;
font-size: 26rpx;
... ...
... ... @@ -361,7 +361,7 @@ Page({
let data = res.data
console.log('data', data);
let coupon_dataList = []
let themeColor, whiteBj, home, chef, marketing, coupon, reserve, swich_phone, is_comments, signboard, store, priceInfo, certificate, scoreInfo, recharge_list, stringifyUse;
let themeColor, StyleType, whiteBj, home, chef, marketing, coupon, reserve, swich_phone, is_comments, signboard, store, priceInfo, certificate, scoreInfo, recharge_list, stringifyUse;
chef = util.determine(data.chef);
reserve = util.determine(data.reserve);
marketing = util.determine(data.marketing);
... ... @@ -369,6 +369,7 @@ Page({
store = util.determine(data.store);
home = util.determine(data.home);
themeColor = data.lite_class;
StyleType = data.type;
swich_phone = reserve && reserve.swich_phone ? reserve.swich_phone : '';
if (marketing) {
is_comments = marketing.is_comments ? marketing.is_comments : '';
... ... @@ -411,7 +412,7 @@ Page({
coupon_dataList,
swich_phone,
is_comments,
StyleType: res.data.type,
StyleType,
themeColor,
}
console.log('获取数据', {
... ... @@ -458,7 +459,7 @@ Page({
scoreInfo,
swich_phone,
is_comments,
StyleType: res.data.type,
StyleType,
themeColor,
whiteBj,
})
... ...
... ... @@ -361,7 +361,7 @@ Page({
let data = res.data
console.log('data', data);
let coupon_dataList = []
let themeColor, whiteBj, home, chef, marketing, coupon, reserve, swich_phone, is_comments, signboard, store, priceInfo, certificate, scoreInfo, recharge_list, stringifyUse;
let themeColor, StyleType, whiteBj, home, chef, marketing, coupon, reserve, swich_phone, is_comments, signboard, store, priceInfo, certificate, scoreInfo, recharge_list, stringifyUse;
chef = util.determine(data.chef);
reserve = util.determine(data.reserve);
marketing = util.determine(data.marketing);
... ... @@ -369,6 +369,7 @@ Page({
store = util.determine(data.store);
home = util.determine(data.home);
themeColor = data.lite_class;
StyleType = data.type;
swich_phone = reserve && reserve.swich_phone ? reserve.swich_phone : '';
if (marketing) {
is_comments = marketing.is_comments ? marketing.is_comments : '';
... ... @@ -411,7 +412,7 @@ Page({
coupon_dataList,
swich_phone,
is_comments,
StyleType: res.data.type,
StyleType,
themeColor,
}
console.log('获取数据', {
... ... @@ -458,7 +459,7 @@ Page({
scoreInfo,
swich_phone,
is_comments,
StyleType: res.data.type,
StyleType,
themeColor,
whiteBj,
})
... ...
... ... @@ -360,7 +360,7 @@ Page({
let data = res.data
console.log('data', data);
let coupon_dataList = []
let themeColor, whiteBj, home, chef, marketing, coupon, reserve, swich_phone, is_comments, signboard, store, priceInfo, certificate, scoreInfo, recharge_list, stringifyUse;
let themeColor, StyleType, whiteBj, home, chef, marketing, coupon, reserve, swich_phone, is_comments, signboard, store, priceInfo, certificate, scoreInfo, recharge_list, stringifyUse;
chef = util.determine(data.chef);
reserve = util.determine(data.reserve);
marketing = util.determine(data.marketing);
... ... @@ -368,6 +368,7 @@ Page({
store = util.determine(data.store);
home = util.determine(data.home);
themeColor = data.lite_class;
StyleType = data.type;
swich_phone = reserve && reserve.swich_phone ? reserve.swich_phone : '';
if (marketing) {
is_comments = marketing.is_comments ? marketing.is_comments : '';
... ... @@ -410,7 +411,7 @@ Page({
coupon_dataList,
swich_phone,
is_comments,
StyleType: res.data.type,
StyleType,
themeColor,
}
console.log('获取数据', {
... ... @@ -457,7 +458,7 @@ Page({
scoreInfo,
swich_phone,
is_comments,
StyleType: res.data.type,
StyleType,
themeColor,
whiteBj,
})
... ...
... ... @@ -307,7 +307,7 @@ Page({
let data = res.data
console.log('data', data);
let coupon_dataList = []
let themeColor, whiteBj, home, chef, marketing, coupon, reserve, swich_phone, is_comments, signboard, store, priceInfo, certificate, scoreInfo, recharge_list, stringifyUse;
let themeColor, StyleType, whiteBj, home, chef, marketing, coupon, reserve, swich_phone, is_comments, signboard, store, priceInfo, certificate, scoreInfo, recharge_list, stringifyUse;
chef = util.determine(data.chef);
reserve = util.determine(data.reserve);
marketing = util.determine(data.marketing);
... ... @@ -315,6 +315,7 @@ Page({
store = util.determine(data.store);
home = util.determine(data.home);
themeColor = data.lite_class;
StyleType = data.type;
swich_phone = reserve && reserve.swich_phone ? reserve.swich_phone : '';
if (marketing) {
is_comments = marketing.is_comments ? marketing.is_comments : '';
... ... @@ -357,7 +358,7 @@ Page({
coupon_dataList,
swich_phone,
is_comments,
StyleType: res.data.type,
StyleType,
themeColor,
}
console.log('获取数据', {
... ... @@ -404,7 +405,7 @@ Page({
scoreInfo,
swich_phone,
is_comments,
StyleType: res.data.type,
StyleType,
themeColor,
whiteBj,
})
... ...
... ... @@ -10,7 +10,7 @@
{{home.slogan}}
</view>
</view>
<image wx:if="{{home.image}}" src="{{home.image}}" class="homeImage" mode="aspectFill"></image>
<image wx:if="{{home.image && (!home.id_first_image || home.id_first_image!='0')}}" src="{{home.image}}" class="homeImage" mode="aspectFill"></image>
<view class="reservationInfo flex-ll">
<view class="line">
</view>
... ... @@ -249,10 +249,7 @@
<view wx:if="{{marketing.is_link}}" class="font24r favouredPolicy" bindtap="gotoFavourableList">
点击了解更多会员优惠政策
</view>
<image wx:if="{{marketing && marketing.logo}}" src="{{marketing.logo?marketing.logo:''}}" mode="heightFix" />
<view class="news" wx:if="{{marketing && marketing.wecomle}}">
{{marketing?marketing.wecomle:''}}
</view>
<image wx:if="{{marketing && marketing.logo && (!marketing.is_logo || marketing.is_logo!='0')}}" src="{{marketing.logo?marketing.logo:''}}" mode="heightFix" />
</view>
<view class="more" wx:if="{{showMoreTip}}">
<view class="moreText">滑动查看更多</view>
... ...
... ... @@ -521,14 +521,6 @@
padding-bottom: 180rpx;
}
.vips .news {
text-align: center;
color: #000000;
font-family: FangSong;
font-size: 40rpx;
margin: 0 0 100rpx 0;
}
.vips .text {
text-align: center;
color: #515151;
... ...
... ... @@ -360,14 +360,15 @@ Page({
let data = res.data
console.log('data', data);
let coupon_dataList = []
let themeColor, home, chef, marketing, coupon, reserve, swich_phone, is_comments, signboard, store, priceInfo, certificate, scoreInfo, recharge_list, stringifyUse;
let themeColor, StyleType, home, chef, marketing, coupon, reserve, swich_phone, is_comments, signboard, store, priceInfo, certificate, scoreInfo, recharge_list, stringifyUse;
chef = util.determine(data.chef);
reserve = util.determine(data.reserve);
marketing = util.determine(data.marketing);
signboard = util.determine(data.signboard);
store = util.determine(data.store);
home = util.determine(data.home);
themeColor = data.lite_class
themeColor = data.lite_class;
StyleType = data.type;
swich_phone = reserve && reserve.swich_phone ? reserve.swich_phone : '';
if (marketing) {
is_comments = marketing.is_comments ? marketing.is_comments : '';
... ... @@ -410,7 +411,7 @@ Page({
coupon_dataList,
swich_phone,
is_comments,
StyleType: res.data.type,
StyleType,
themeColor,
}
console.log('获取数据', {
... ... @@ -452,7 +453,7 @@ Page({
scoreInfo,
swich_phone,
is_comments,
StyleType: res.data.type,
StyleType,
themeColor,
})
}).catch(res => {
... ...
... ... @@ -3,7 +3,7 @@
<nav hasHome class="navhome" place="{{true}}"></nav>
<scroll-view scroll-y class="{{themeColor}}">
<view class="reservationInfo">
<image wx:if="{{home.image}}" src="{{home.image}}" class="homeImage" mode="aspectFill"></image>
<image wx:if="{{home.image && (!home.id_first_image || home.id_first_image!='0')}}" src="{{home.image}}" class="homeImage" mode="aspectFill"></image>
<view class="begin">
<view class="font40r">尊敬的贵宾,您好!非常感谢您选择</view>
<view class="centerBox font40r">【{{seller.name?seller.name:reserve.seller_name}}】</view>
... ...
... ... @@ -168,7 +168,7 @@ Page({
},
gotoDetailHan(e){
console.log(util.attr(e,'id'))
let url='/pages/customer/detail_owner_invitation_new1?id='+util.attr(e,'id')+'&hasInvitation=1&hasSellerShare=1&tplid=1'
let url='/pages/customer/detail_owner_invitation1?id='+util.attr(e,'id')+'&hasInvitation=1&hasSellerShare=1&tplid=1'
wx.navigateTo({
url:url,
})
... ...
... ... @@ -29,17 +29,8 @@ Page({
App.Seller.GetSellerTemplateConf({
sid:this.data.sid
}).then(res => {
let url='/pages/customer/detail_owner_invitation_new1?id='+that.data.oid
switch (res.data.type) {
case '1':
url = '/pages/customer/detail_owner_invitation_new1?id='+that.data.oid
break;
case '2':
url = '/pages/customer/detail_owner_invitation_new2?id='+that.data.oid
break;
}
return wx.reLaunch({
url,
url:`/pages/customer/detail_owner_invitation${res.data.type}?id=${that.data.oid}`
})
})
},
... ...
... ... @@ -628,14 +628,14 @@
{
"name": "邀请函-----6",
"pathName": "pages/customer/detail_owner_invitation6",
"query": "id=400386&hasInvitation=1&hasSellerShare=1&tplid=1",
"query": "id=400725&hasInvitation=1&hasSellerShare=1&tplid=1",
"launchMode": "default",
"scene": null
},
{
"name": "邀请函-----7",
"pathName": "pages/customer/detail_owner_invitation7",
"query": "id=400725&hasInvitation=1&hasSellerShare=1&tplid=1",
"query": "id=400386&hasInvitation=1&hasSellerShare=1&tplid=1",
"launchMode": "default",
"scene": null
},
... ...