Commit 0f0ff7c6 authored by 吴春's avatar 吴春

11

parents ffdf1cc2 7d86f027
<template> <template>
<!-- v-if="setting&&setting.is_show_auth==1" -->
<div class="auth-page"> <div class="auth-page">
<u-popup <u-popup
v-model="showDialog" v-model="showDialog"
...@@ -21,7 +22,6 @@ ...@@ -21,7 +22,6 @@
v-if="AppConfig.TenantId!=18" v-if="AppConfig.TenantId!=18"
@tap="showLogin == true ? getUserProfile() : ''" @tap="showLogin == true ? getUserProfile() : ''"
></button> ></button>
<button v-else <button v-else
:style="sureStyle" :style="sureStyle"
class="hotsopt" class="hotsopt"
...@@ -63,6 +63,7 @@ export default { ...@@ -63,6 +63,7 @@ export default {
AppConfig:{ AppConfig:{
TenantId:0 TenantId:0
}, },
setting: {},
}; };
}, },
created() { created() {
...@@ -78,6 +79,9 @@ export default { ...@@ -78,6 +79,9 @@ export default {
let y = this.pageinfo.hotspot_cancel; let y = this.pageinfo.hotspot_cancel;
this.sureStyle = `height:${x.height}rpx;width:${x.width}rpx;left:${x.left}rpx;top:${x.top}rpx;`; this.sureStyle = `height:${x.height}rpx;width:${x.width}rpx;left:${x.left}rpx;top:${x.top}rpx;`;
this.cancelStyle = `height:${y.height}rpx;width:${y.width}rpx;left:${y.left}rpx;top:${y.top}rpx;`; this.cancelStyle = `height:${y.height}rpx;width:${y.width}rpx;left:${y.left}rpx;top:${y.top}rpx;`;
let set = uni.getStorageSync("basedata") ?
uni.getStorageSync("basedata").mall.setting : {};
this.setting = set;
}, },
methods: { methods: {
//授权获取手机号码 //授权获取手机号码
...@@ -209,6 +213,7 @@ export default { ...@@ -209,6 +213,7 @@ export default {
if (res.resultCode == 1) { if (res.resultCode == 1) {
obj.OpenId = res.data; obj.OpenId = res.data;
that.getLogin(obj); that.getLogin(obj);
} }
} }
); );
...@@ -289,7 +294,31 @@ export default { ...@@ -289,7 +294,31 @@ export default {
//不是相亲模式的时候去更新头像和昵称 //不是相亲模式的时候去更新头像和昵称
that.updateuserinfo(that.msg); //更新用户头像 that.updateuserinfo(that.msg); //更新用户头像
} }
if(uni.getStorageSync('jzTravelOpenId')){
that.SetMemberBindCustomer()
}
}
}
);
},
SetMemberBindCustomer(){
let that = this;
that.request2({
url: "/api/MemberUser/SetMemberBindCustomer",
data: {
Id: that.msg.Id,
CustomerOpenId: uni.getStorageSync('jzTravelOpenId')
},
},
(res) => {
if (res.resultCode == 1) {
uni.removeStorageSync('jzTravelOpenId');
} }
},(err) => {
// uni.showToast({
// title: err.message,
// icon: "none",
// });
} }
); );
}, },
......
...@@ -147,7 +147,11 @@ ...@@ -147,7 +147,11 @@
width: 24px; width: 24px;
text-align: right; text-align: right;
} }
.her_Two_study { overflow-x: auto !important; display: flex; white-space: nowrap; } .her_Two_study {
overflow-x: auto !important;
display: flex;
white-space: nowrap;
}
.style_five_label{ .style_five_label{
float:left; float:left;
padding: 0px 5px; padding: 0px 5px;
......
...@@ -136,7 +136,11 @@ ...@@ -136,7 +136,11 @@
width: 24px; width: 24px;
text-align: right; text-align: right;
} }
.her_Two_study { overflow-x: auto !important; display: flex; white-space: nowrap; } .her_Two_study {
overflow-x: auto !important;
display: flex;
white-space: nowrap;
}
.style_five_label{ .style_five_label{
float:left; float:left;
padding: 0px 5px; padding: 0px 5px;
......
This diff is collapsed.
...@@ -9,13 +9,12 @@ ...@@ -9,13 +9,12 @@
"> ">
<Text class="grid-text" v-if='IsEducation!=1'>商品库存有限,请尽快下单哦</Text> <Text class="grid-text" v-if='IsEducation!=1'>商品库存有限,请尽快下单哦</Text>
<Text class="grid-text" <Text class="grid-text"
v-if='IsEducation==1'>{{list[0].GoodsList.length?list[0].GoodsList.length:'0'}}个课程</Text> v-if='IsEducation==1'>{{list[0]&&list[0].GoodsList&&list[0].GoodsList.length?list[0].GoodsList.length:'0'}}个课程</Text>
<Text @click="edit" v-if="editType == false && list[0].GoodsList.length>0" class="grid-text_r">编辑</Text> <Text @click="edit" v-if="editType == false && list[0]&&list[0].GoodsList&&list[0].GoodsList.length>0" class="grid-text_r">编辑</Text>
<Text @click="edit" v-if="editType == true" class="grid-text_r">完成</Text> <Text @click="edit" v-if="editType == true" class="grid-text_r">完成</Text>
</view> </view>
<view style="width: 100%; height: 30rpx; background: #f7f7f7; margin: 20rpx 0;"></view> <view style="width: 100%; height: 30rpx; background: #f7f7f7; margin: 20rpx 0;"></view>
<u-empty v-if="emptyshow == true" text="购物车还是空的哦" mode="car"></u-empty> <u-empty v-if="emptyshow == true" text="购物车还是空的哦" mode="car"></u-empty>
<view v-if="list.length > 0" <view v-if="list.length > 0"
style="height: calc(100vh - 60px-30px-35px-20px);width: calc(100vw);overflow: hidden;padding-top: 10px;"> style="height: calc(100vh - 60px-30px-35px-20px);width: calc(100vw);overflow: hidden;padding-top: 10px;">
<scroll-view :scroll-y="true" :enable-back-to-top="true" :enable-flex="true" :style="{ height: '100%' }"> <scroll-view :scroll-y="true" :enable-back-to-top="true" :enable-flex="true" :style="{ height: '100%' }">
...@@ -77,7 +76,7 @@ ...@@ -77,7 +76,7 @@
<view class="The-title"> <view class="The-title">
{{ item.GoodsName}} {{ item.GoodsName}}
</view> </view>
<view v-if="item.EduData.ClassCondition.length>0" class="limit" @touchstart="mouseover()" @touchend="mouseLeave()"> <view v-if="item.EduData&&item.EduData.ClassCondition&&item.EduData.ClassCondition.length>0" class="limit" @touchstart="mouseover()" @touchend="mouseLeave()">
<u-icon name="lock" size="44" :color="mc" /> <u-icon name="lock" size="44" :color="mc" />
<view class="limit-box" v-show="limitShow"> <view class="limit-box" v-show="limitShow">
此课程有报名限制,请点击详情查看 此课程有报名限制,请点击详情查看
...@@ -113,7 +112,7 @@ ...@@ -113,7 +112,7 @@
<!-- <Text v-if='u.TenantId==27&&item.EduData.ClassTime' style="color: #a0a09d;font-size: 22rpx;margin-right: 5rpx;"> <!-- <Text v-if='u.TenantId==27&&item.EduData.ClassTime' style="color: #a0a09d;font-size: 22rpx;margin-right: 5rpx;">
上课时间:{{item.EduData.ClassTime}} 上课时间:{{item.EduData.ClassTime}}
</Text> --> </Text> -->
<view v-if="item.EduData.ClassTimeList.length>0&&u.TenantId==27" <view v-if="item.EduData&&item.EduData.ClassTimeList&&item.EduData.ClassTimeList.length>0&&u.TenantId==27"
style="color: #a0a09d;font-size: 22rpx;margin-right: 5rpx;"> style="color: #a0a09d;font-size: 22rpx;margin-right: 5rpx;">
<view v-if="!item.show"> <view v-if="!item.show">
<view style='display: flex; <view style='display: flex;
......
...@@ -112,7 +112,7 @@ ...@@ -112,7 +112,7 @@
<view class="triangle-up" :style="{ top: pagePaddingBottom }"></view> <view class="triangle-up" :style="{ top: pagePaddingBottom }"></view>
</view> </view>
<coupon v-if="showCoupons" :coupon-message="couponMessage" :cform="ComeFrom" @goLook="goLook" @closeBtn="closeBtn"></coupon> <coupon v-if="showCoupons" :coupon-message="couponMessage" :cform="ComeFrom" @goLook="goLook" @closeBtn="closeBtn"></coupon>
<template v-show="setting&&setting.is_show_auth==1"> <template v-if="setting&&setting.is_show_auth==1">
<auth v-if="showAuth" @changeuserinfo="reloadUserinfo" @gbAuth="gbAuth"></auth> <auth v-if="showAuth" @changeuserinfo="reloadUserinfo" @gbAuth="gbAuth"></auth>
</template> </template>
<official-account></official-account> <official-account></official-account>
...@@ -260,6 +260,9 @@ ...@@ -260,6 +260,9 @@
let c = this.$uiConfig.is_bang ? 78 : 50; let c = this.$uiConfig.is_bang ? 78 : 50;
this.boxpaddingbottom = c; this.boxpaddingbottom = c;
this.contentHeight = this.$utils.calcContentHeight(c); this.contentHeight = this.$utils.calcContentHeight(c);
if (options && options.jzTravelOpenId) {
uni.setStorageSync("jzTravelOpenId", options.jzTravelOpenId);
}
if (options && options.page_id) { if (options && options.page_id) {
this.pageId = options.page_id; this.pageId = options.page_id;
let queryString = ""; let queryString = "";
...@@ -440,6 +443,7 @@ ...@@ -440,6 +443,7 @@
} else { } else {
that.sharejump(); //4-9新加 that.sharejump(); //4-9新加
this.handleChengShuang(); this.handleChengShuang();
this.SetMemberBindCustomer()
} }
// #endif // #endif
...@@ -609,6 +613,27 @@ ...@@ -609,6 +613,27 @@
} }
}, },
methods: { methods: {
SetMemberBindCustomer(){
let that = this;
that.request2({
url: "/api/MemberUser/SetMemberBindCustomer",
data: {
Id: that.u.UserId,
CustomerOpenId: uni.getStorageSync('jzTravelOpenId')
},
},
(res) => {
if (res.resultCode == 1) {
uni.removeStorageSync('jzTravelOpenId');
}
},(err) => {
// uni.showToast({
// title: err.message,
// icon: "none",
// });
}
);
},
getunilogin(res) { getunilogin(res) {
let that = this; let that = this;
//静默登录操作 //静默登录操作
......
...@@ -222,7 +222,17 @@ ...@@ -222,7 +222,17 @@
<text class="bold">{{ ds.total_price }}</text> <text class="bold">{{ ds.total_price }}</text>
</view> </view>
<view class="right"> <view class="right">
<u-button :disabled="!address_enable" size="80" :ripple="true" shape="circle" @click="ds.promptNoSuperiorFY== true ? submitModel():submitOrderHandler()" <u-button v-if="ds.promptNoSuperiorFY== true" :disabled="!address_enable" size="80" :ripple="true" shape="circle" @click="submitModel()"
:custom-style="{
backgroundColor: mc,
height: '80rpx',
color: '#FFF',
fontSize: '14px'
}">
<u-loading mode="circle" style="margin-right: 5px;" v-if="submitOrder"></u-loading>
{{btntext}}
</u-button>
<u-button v-else :disabled="!address_enable" size="80" :ripple="true" shape="circle" @click="submitOrderHandler()"
:custom-style="{ :custom-style="{
backgroundColor: mc, backgroundColor: mc,
height: '80rpx', height: '80rpx',
...@@ -554,7 +564,7 @@ ...@@ -554,7 +564,7 @@
that.payInfo.total_price = that.ds.total_price; that.payInfo.total_price = that.ds.total_price;
} }
if (that.formdata.Use_Deposit_Id != 0 && that.ds.total_price == 0) { //如果使用了储蓄卡 就直接支付成功 跳入支付结果 if ((that.formdata.Use_Deposit_Id != 0 || that.formdata.use_integral != 0) && that.ds.total_price == 0) { //如果使用了储蓄卡 就直接支付成功 跳入支付结果
uni.reLaunch({ uni.reLaunch({
url: '/pages/order-submit/pay-success?payInfo=' + JSON.stringify(that.payInfo) url: '/pages/order-submit/pay-success?payInfo=' + JSON.stringify(that.payInfo)
}) })
......
...@@ -162,6 +162,10 @@ ...@@ -162,6 +162,10 @@
<view class="label">佣金抵扣</view> <view class="label">佣金抵扣</view>
<view class="content right">-¥{{ orders.DeductionCommission }}</view> <view class="content right">-¥{{ orders.DeductionCommission }}</view>
</view> </view>
<view class="field" v-if="orders.IntegralMoney>0">
<view class="label">积分抵扣</view>
<view class="content right">-¥{{ orders.IntegralMoney }}</view>
</view>
<view style="width: 100%;height: 1px;background: #f5f5f5;margin: 5px 0;"></view> <view style="width: 100%;height: 1px;background: #f5f5f5;margin: 5px 0;"></view>
<view class="field"> <view class="field">
<view class="label">&nbsp;</view> <view class="label">&nbsp;</view>
......
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