Commit 462d6609 authored by zhengke's avatar zhengke

修改

parents cc886fef 73cfeaf3
...@@ -6,6 +6,8 @@ ...@@ -6,6 +6,8 @@
:current="current" :current="current"
@change="change" @change="change"
:active-color="mainColor" :active-color="mainColor"
bar-height='4'
height="100"
></u-tabs> ></u-tabs>
<u-empty v-if="g.length == 0" text="暂无相关卡券" mode="order"></u-empty> <u-empty v-if="g.length == 0" text="暂无相关卡券" mode="order"></u-empty>
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
:current="msg.UseState" :current="msg.UseState"
@change="change" @change="change"
:active-color="mainColor" :active-color="mainColor"
height="100"
></u-tabs> ></u-tabs>
<u-empty v-if="g.length == 0" text="暂无相关优惠券" mode="coupon"></u-empty> <u-empty v-if="g.length == 0" text="暂无相关优惠券" mode="coupon"></u-empty>
......
...@@ -602,7 +602,7 @@ ...@@ -602,7 +602,7 @@
}, },
methods: { methods: {
getscroll(e){ getscroll(e){
console.log(e.detail.scrollLeft) // console.log(e.detail.scrollLeft)
}, },
yuding(x){ yuding(x){
this.u = uni.getStorageSync("mall_UserInfo"); this.u = uni.getStorageSync("mall_UserInfo");
......
...@@ -253,9 +253,13 @@ ...@@ -253,9 +253,13 @@
return; return;
} }
var tempObj = uni.getStorageSync('basedata').mall.wechatmessage; var tempObj = uni.getStorageSync('basedata').mall.wechatmessage;
var tmplIds = ''; var tmplIds = [];
if(tempObj&&tempObj.length>0){ if(tempObj&&tempObj.length>0){
tmplIds = tempObj[0].MessageId; tempObj.forEach(x=>{
if(x.Name=='下单成功提醒'||x.Name=='订单取消提醒'){
tmplIds.push(x.MessageId)
}
})
} }
uni.requestSubscribeMessage({ uni.requestSubscribeMessage({
tmplIds: tmplIds, tmplIds: tmplIds,
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
font-size: 32rpx; font-size: 32rpx;
font-weight: bold; font-weight: bold;
width: 70%; width: 70%;
height: 25px; height: 24px;
overflow: hidden; overflow: hidden;
} }
...@@ -94,7 +94,7 @@ ...@@ -94,7 +94,7 @@
<template v-else> <template v-else>
<view class="jz_MyOrderMain" style="height: calc(100vh - 44px);overflow: hidden;"> <view class="jz_MyOrderMain" style="height: calc(100vh - 44px);overflow: hidden;">
<scroll-view :scroll-y="true" :enable-back-to-top="true" :enable-flex="true" @scrolltolower="lower" :style="{ height: '100%' }"> <scroll-view :scroll-y="true" :enable-back-to-top="true" :enable-flex="true" @scrolltolower="lower" :style="{ height: '100%' }">
<view class="jz_OrderList" v-for="(item,index) in dataList" :key="index"> <view class="jz_OrderList" v-for="(item,index) in dataList" :key="index" @click="goOrderDetail(item)">
<view class="jz_OrderTop"> <view class="jz_OrderTop">
<view class="jz_Oleft" :class="{'isShowAll':!item.isShowHalf}"> <view class="jz_Oleft" :class="{'isShowAll':!item.isShowHalf}">
{{item.title}} {{item.title}}
...@@ -190,6 +190,11 @@ ...@@ -190,6 +190,11 @@
}, },
methods: { methods: {
goOrderDetail(item){
uni.redirectTo({
url: "/pages/jiuzhai/jz_SureOrder?orderData="+encodeURIComponent(JSON.stringify(item))
});
},
change(i) { change(i) {
this.current = i; this.current = i;
this.msg.orderState = this.list[i].Id; this.msg.orderState = this.list[i].Id;
......
...@@ -239,9 +239,6 @@ ...@@ -239,9 +239,6 @@
line-height: 40rpx; line-height: 40rpx;
margin-right: 24rpx; margin-right: 24rpx;
} }
.jz_ReserveDisBtn{
background-color: gray;
}
</style> </style>
<template> <template>
<view class="jz_Reserve"> <view class="jz_Reserve">
...@@ -382,7 +379,10 @@ ...@@ -382,7 +379,10 @@
<text style="color:#6E6E6E;font-size:24rpx;">共计{{total}}</text> <text style="color:#6E6E6E;font-size:24rpx;">共计{{total}}</text>
</view> </view>
<view style="display:flex;margin-top:-2px;"> <view style="display:flex;margin-top:-2px;">
<view class="jz_OrderReNow" :class="{'jz_ReserveDisBtn':!isSubmit}" @click="goPay()">立即支付</view> <view class="jz_OrderReNow" @click="goPay()">
<text v-if="!submit">立即支付</text>
<u-loading v-if="submit" size="32" color="#f5f5f5"></u-loading>
</view>
</view> </view>
</view> </view>
</view> </view>
...@@ -396,6 +396,7 @@ ...@@ -396,6 +396,7 @@
}, },
data() { data() {
return { return {
submit:false,
pageTitle: '订单填写', pageTitle: '订单填写',
orderMsg: { orderMsg: {
ManNum: 0, //成人 ManNum: 0, //成人
...@@ -416,8 +417,8 @@ ...@@ -416,8 +417,8 @@
tips:"", tips:"",
contactMobile:"", contactMobile:"",
contactName:"", contactName:"",
//防止重复提交 orderInfo:{},
isSubmit: true, orderData:""
}; };
}, },
created() { created() {
...@@ -512,6 +513,7 @@ ...@@ -512,6 +513,7 @@
icon: 'none' icon: 'none'
}); });
}else{ }else{
this.submit=true
this.userInfo = uni.getStorageSync('mall_UserInfo'); this.userInfo = uni.getStorageSync('mall_UserInfo');
this.basedataObj = uni.getStorageSync('basedata').mall; this.basedataObj = uni.getStorageSync('basedata').mall;
var CustomerId = 0; var CustomerId = 0;
...@@ -576,33 +578,76 @@ ...@@ -576,33 +578,76 @@
OrderSource: 2, OrderSource: 2,
MiniAppUserId:this.userInfo.UserId MiniAppUserId:this.userInfo.UserId
} }
if(this.isSubmit){ this.apipost("sellorder_post_SetOrderInfoForB2B", msg,
this.isSubmit=false; res => {
uni.showLoading({ if (res.resultCode == 1) {
title: '下单中...' let data = res.data;
}) data.CoverImg = this.currentPriceInfo.CoverImg;
this.apipost("sellorder_post_SetOrderInfoForB2B", msg, let myData = JSON.stringify(data);
res => { this.orderData=encodeURIComponent(myData)
uni.hideLoading(); this.queren(data.OrderId)
this.isSubmit=true; } else {
if (res.resultCode == 1) {
let data = res.data;
data.CoverImg = this.currentPriceInfo.CoverImg;
let myData = JSON.stringify(data);
uni.navigateTo({
url: "/pages/jiuzhai/jz_SureOrder?orderData="+encodeURIComponent(myData)
});
} else {
}
},
err =>{
uni.hideLoading();
this.isSubmit=true;
} }
); this.submit=false
} },
e=>{
this.submit=false
}
);
} }
},
queren(OrderId){
let url='/api/WeChatPay/GetTravlePayInfo'
let GoodsName = this.currentPriceInfo.title;
GoodsName = GoodsName.slice(0, 10)
this.request2({
url: url,
data: {
OrderId:OrderId,
GoodsName:GoodsName,
OrderPayType:1,
OpenId:uni.getStorageSync('mall_UserInfo').OpenId,
}
},
res => {
this.orderInfo = JSON.parse(res.data);
this.Pay()
}
);
},
Pay(){
let that=this;
uni.requestPayment({
provider: 'wxpay',
timeStamp: this.orderInfo.timeStamp,
nonceStr: this.orderInfo.nonceStr,
package: this.orderInfo.package,
signType: this.orderInfo.signType,
paySign: this.orderInfo.sign,
success: function(res) {
console.log('success', res);
uni.showToast({
title: "支付成功"
})
setTimeout(()=>{
uni.redirectTo({
url: '/pages/jiuzhai/paysuccess?PreferPrice='+price
});
}, 100 )
},
fail: function(err) {
console.log('fail:', err);
uni.showToast({
title: "支付失败"
})
setTimeout(()=>{
uni.redirectTo({
url: "/pages/jiuzhai/jz_SureOrder?orderData="+this.orderData
});
}, 100 )
}
});
} }
} }
......
...@@ -141,7 +141,7 @@ ...@@ -141,7 +141,7 @@
<recommed-restaurant></recommed-restaurant> <recommed-restaurant></recommed-restaurant>
</view> --> </view> -->
</view> </view>
<u-popup v-model="showTimePopup" mode="bottom" border-radius="40" length="70%" <u-popup v-model="showTimePopup" mode="bottom" border-radius="40"
:safe-area-inset-bottom="true"> :safe-area-inset-bottom="true">
<view class="" style="margin-top: 40rpx;"> <view class="" style="margin-top: 40rpx;">
<calendar ref="calendar" :insert="true" :selected="calendar" @change="changeDate"></calendar> <calendar ref="calendar" :insert="true" :selected="calendar" @change="changeDate"></calendar>
......
...@@ -219,9 +219,10 @@ ...@@ -219,9 +219,10 @@
title: "支付成功" title: "支付成功"
}) })
setTimeout(()=>{ setTimeout(()=>{
let total=that.orderData.Unit_Price*that.order.BuyNum
uni.redirectTo({ uni.redirectTo({
url: '/pages/jiuzhai/allorderList' url: '/pages/jiuzhai/paysuccess?PreferPrice='+total
}); });
}, 100 ) }, 100 )
}, },
...@@ -231,6 +232,11 @@ ...@@ -231,6 +232,11 @@
title: "支付失败", title: "支付失败",
icon:'none' icon:'none'
}) })
setTimeout(()=>{
uni.redirectTo({
url: '/pages/jiuzhai/allorderList'
});
}, 100 )
} }
}); });
}, },
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<text class="font-small">{{nowMonth.year}}</text> <text class="font-small">{{nowMonth.year}}</text>
<uni-icons type="arrowdown" size="10"></uni-icons> <uni-icons type="arrowdown" size="10"></uni-icons>
</picker> </picker>
<text class="reset" @tap="reset">重置</text> <!-- <text class="reset" @tap="reset">重置</text> -->
</view> </view>
<scroll-view class="calenHead" scroll-x v-if="mode=='1'"> <scroll-view class="calenHead" scroll-x v-if="mode=='1'">
<view class="headItem" v-for="(date,index) in monthList" v-bind:key="index" :class="[current==index?'active':'']" @tap="headItemTap(index,date.getMonth()+1)"> <view class="headItem" v-for="(date,index) in monthList" v-bind:key="index" :class="[current==index?'active':'']" @tap="headItemTap(index,date.getMonth()+1)">
......
...@@ -35,6 +35,8 @@ ...@@ -35,6 +35,8 @@
<view class=""> <view class="">
客服 客服
</view> </view>
<button open-type="contact" :send-message-title="TicketName" :send-message-path="msgPath"
:send-message-img="TicketImg" :show-message-card="true"></button>
</view> </view>
<view class="subscribe-btn" @click="nextStep"> <view class="subscribe-btn" @click="nextStep">
...@@ -71,7 +73,11 @@ ...@@ -71,7 +73,11 @@
TicketName: { TicketName: {
type: String, type: String,
default: "" default: ""
} },
TicketImg: {
type: String,
default: ""
},
}, },
data() { data() {
return { return {
...@@ -83,6 +89,8 @@ ...@@ -83,6 +89,8 @@
peopleNum: 1, peopleNum: 1,
showAuth: false, showAuth: false,
u: {}, u: {},
msgPath:"",
} }
}, },
watch: { watch: {
...@@ -105,7 +113,25 @@ ...@@ -105,7 +113,25 @@
} }
} }
}, },
// onShareAppMessage(res) {
// let u = uni.getStorageSync("mall_UserInfo");
// let uid = u.UserId ? u.UserId : 0;
// if(uid==0){
// uid = uni.getStorageSync("pid")?uni.getStorageSync("pid").pid:0
// }
// let SmallShopId = u.SmallShopId ? u.SmallShopId : 0;
// if(SmallShopId == 0){//如果微店id为0 去找所属微店id
// SmallShopId = u.UserSmallShopId? u.UserSmallShopId:0
// }
// let Up = uni.getStorageSync("mall_UserInfo")?uni.getStorageSync("mall_UserInfo").UserPageType:0;
// return {
// title:'个人资料',
// path: "/pages/index/index?id=" + this.UserId + "&user_id=" + uid+ "&SmallShopId=" + SmallShopId+ "&Up=" + Up+'&JumpType=13',
// imageUrl:'',
// };
// },
mounted() { mounted() {
this.msgPath="/pages/ticketCoupons/detail?id="+options.id+'&TicketID'+this.TicketID+'&date'+this.defaultSelect
let year = new Date().getFullYear(); //年 let year = new Date().getFullYear(); //年
let month = new Date().getMonth() + 1; //月 let month = new Date().getMonth() + 1; //月
if (month < 10) { if (month < 10) {
...@@ -151,7 +177,8 @@ ...@@ -151,7 +177,8 @@
}, },
changeDate(data) { //选择日期事件 可以将data绑定到此页面以用来提交等操作 changeDate(data) { //选择日期事件 可以将data绑定到此页面以用来提交等操作
this.defaultSelect = data.date; this.defaultSelect = data.date;
this.price = data.price this.price = data.price;
this.msgPath="/pages/ticketCoupons/detail?id="+options.id+'&TicketID'+this.TicketID+'&date'+this.defaultSelect
this.$forceUpdate() this.$forceUpdate()
}, },
...@@ -207,7 +234,7 @@ ...@@ -207,7 +234,7 @@
<style lang="scss" scoped> <style lang="scss" scoped>
.subscribeTicket { .subscribeTicket {
height: 70vh; // height: 1020rpx;
margin: 45rpx 0; margin: 45rpx 0;
overflow-y: scroll; overflow-y: scroll;
overflow-x: hidden; overflow-x: hidden;
...@@ -281,15 +308,29 @@ ...@@ -281,15 +308,29 @@
.icon-box { .icon-box {
width: 44rpx; width: 44rpx;
height: 52rpx;
font-size: 22rpx; font-size: 22rpx;
font-family: PingFang SC; font-family: PingFang SC;
font-weight: 500; font-weight: 500;
color: #111111; color: #111111;
position: relative;
.kefu-iocn { .kefu-iocn {
width: 44rpx; width: 44rpx;
display: flex; display: flex;
justify-content: center; justify-content: center;
}
button {
width: 100%;
height: 100%;
position: absolute;
left: 0;
top: 0;
opacity: 0
} }
} }
......
...@@ -94,7 +94,7 @@ ...@@ -94,7 +94,7 @@
</view> </view>
<view class="ticket-nav" :class="{'check-ticket-nav':checkTicketNavIndex===3}" <view class="ticket-nav" :class="{'check-ticket-nav':checkTicketNavIndex===3}"
@click="changeCheckTicketNavIndex(3)"> @click="changeCheckTicketNavIndex(3)">
其他日期 {{otherDate}}
</view> </view>
<calendar ref="calendar" :insert="false" :selected="calendar" @confirm="confirm"></calendar> <calendar ref="calendar" :insert="false" :selected="calendar" @confirm="confirm"></calendar>
...@@ -185,8 +185,8 @@ ...@@ -185,8 +185,8 @@
</view> </view>
<!-- 填写订单弹出层 --> <!-- 填写订单弹出层 -->
<view> <view>
<u-popup v-model="showSubscribeTicketPop" mode="bottom" border-radius="40" :closeable="true" > <u-popup v-model="showSubscribeTicketPop" mode="bottom" border-radius="40">
<subscribeTicket :dateStr="Date" :TicketID="TicketID" :TitekCounponId="ID" :TicketName="TicketName" @close="showSubscribeTicketPop=false"></subscribeTicket> <subscribeTicket :dateStr="Date" :TicketID="TicketID" :TitekCounponId="ID" :TicketName="TicketName" @close="showSubscribeTicketPop=false" :TicketImg="details.AllPicList[0].TagPicList[0].Path"></subscribeTicket>
</u-popup> </u-popup>
</view> </view>
</view> </view>
...@@ -209,18 +209,7 @@ ...@@ -209,18 +209,7 @@
return { return {
ID: 0, ID: 0,
Date: "", //日期 Date: "", //日期
details: { details: {},
},
typeList: [{
Id: 0,
Name: '视频'
}, {
Id: 1,
Name: '图片'
}],
boxOption: 0,
navsOption: 0,
titleStyle: {}, titleStyle: {},
titleStyleFix: {}, titleStyleFix: {},
active: 0, active: 0,
...@@ -238,6 +227,7 @@ ...@@ -238,6 +227,7 @@
showSubscribeTicketPop: false,//订单弹出层 showSubscribeTicketPop: false,//订单弹出层
TicketID:0,//门票id TicketID:0,//门票id
TicketName:"", TicketName:"",
otherDate:"其他日期"
} }
}, },
onLoad(options) { onLoad(options) {
...@@ -246,6 +236,7 @@ ...@@ -246,6 +236,7 @@
this.ID = options.id this.ID = options.id
this.getDetail() this.getDetail()
} }
uni.getSystemInfo({ uni.getSystemInfo({
success(res) { success(res) {
that.titleStyle = { that.titleStyle = {
...@@ -279,12 +270,19 @@ ...@@ -279,12 +270,19 @@
let today = year+'-'+month+'-'+day let today = year+'-'+month+'-'+day
this.Date = today this.Date = today
this.calendar.date = today this.calendar.date = today
if(options.TicketID&&options.date){
this.TicketID=options.TicketID
this.Date=options.date
this.calendar.date=options.date
this.showSubscribeTicketPop=true
}
}, },
methods: { methods: {
//选择其他日期门票 //选择其他日期门票
confirm(e) { confirm(e) {
this.Date = e.fulldate this.Date = e.fulldate
this.calendar[0].date = e.fulldate this.calendar[0].date = e.fulldate
this.otherDate=e.fulldate
this.getDetailByDate(); this.getDetailByDate();
this.$forceUpdate() this.$forceUpdate()
}, },
...@@ -340,7 +338,6 @@ ...@@ -340,7 +338,6 @@
}, },
scroll(e) { scroll(e) {
this.boxOption = Math.floor((e.detail.scrollTop - 50) / 1.5);
this.titleStyle.opacity = ((e.detail.scrollTop - 100) < 0 ? 0 : Math.floor(e.detail.scrollTop - 100)) + this.titleStyle.opacity = ((e.detail.scrollTop - 100) < 0 ? 0 : Math.floor(e.detail.scrollTop - 100)) +
"%"; "%";
this.tooltipShow = false this.tooltipShow = false
......
...@@ -100,6 +100,9 @@ ...@@ -100,6 +100,9 @@
this.ID = options.id this.ID = options.id
this.getDetail() this.getDetail()
}, },
onPageScroll(res){
console.log(res.scrollTop);//距离页面顶部距离
},
methods: { methods: {
changeHandler(i) { changeHandler(i) {
this.active = i; this.active = i;
...@@ -112,9 +115,11 @@ ...@@ -112,9 +115,11 @@
toID="#tip" toID="#tip"
} }
uni.pageScrollTo({ uni.pageScrollTo({
// scrollTop: 0,
selector:toID, selector:toID,
duration: 300 duration: 300,
success:res=>{
}
}); });
}, },
//获取详情 //获取详情
......
<template> <template>
<view class="integralDStyle" :style="{ height: contentHeight }"> <view class="integralDStyle" :style="{ height: contentHeight }">
<u-tabs :list="list" :is-scroll="false" :current="current" @change="change" :active-color="mainColor"></u-tabs> <u-tabs :list="list" :is-scroll="false" :current="current" @change="change" :active-color="mainColor" height="100"></u-tabs>
<u-empty v-if="g.length == 0" text="暂无积分明细" mode="list"></u-empty> <u-empty v-if="g.length == 0" text="暂无积分明细" mode="list"></u-empty>
<view v-if="g.length > 0" style="height: calc(100vh - 50px);width: calc(100vw);overflow: hidden; "> <view v-if="g.length > 0" style="height: calc(100vh - 50px);width: calc(100vw);overflow: hidden; ">
<scroll-view :scroll-y="true" :enable-back-to-top="true" :enable-flex="true" @scrolltolower="lower" :style="{ height: '100%' }"> <scroll-view :scroll-y="true" :enable-back-to-top="true" :enable-flex="true" @scrolltolower="lower" :style="{ height: '100%' }">
......
...@@ -70,10 +70,10 @@ ...@@ -70,10 +70,10 @@
<text>{{couponsObj.name}}</text> <text>{{couponsObj.name}}</text>
</view> </view>
</view> </view>
<view class="ReceiptAdder" v-if="IsEducation!=1&&setting.is_show_korea!=undefined&&setting.is_show_korea==0" @click="goUrl('/pages/address/address')" :style="{top:modelstype==0?'160rpx':(modelstype==1?'180rpx':'160rpx')}"> <!-- <view class="ReceiptAdder" v-if="IsEducation!=1&&setting.is_show_korea!=undefined&&setting.is_show_korea==0" @click="goUrl('/pages/address/address')" :style="{top:modelstype==0?'160rpx':(modelstype==1?'180rpx':'160rpx')}">
<u-icon name="location" color="#fff" size="23"></u-icon> <u-icon name="location" color="#fff" size="23"></u-icon>
<Text style="color: #fff;font-size: 12px;margin-left: 20rpx;">收货地址</Text> <Text style="color: #fff;font-size: 12px;margin-left: 20rpx;">收货地址</Text>
</view> </view> -->
<view class="Receiptbalance" v-if="meueData.user_center&&meueData.user_center.is_account_status == 1"> <view class="Receiptbalance" v-if="meueData.user_center&&meueData.user_center.is_account_status == 1">
<view class="Receiptbalance_item" v-for="(item, index) in meueData.user_center.account" :key="index" v-if="item.link_url == '/pages/balance/balance'" <view class="Receiptbalance_item" v-for="(item, index) in meueData.user_center.account" :key="index" v-if="item.link_url == '/pages/balance/balance'"
@click="goUrl(item.link_url)"> @click="goUrl(item.link_url)">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment