1.上线2.0 解决问题 修改问题

master
杨杰 2 years ago
parent a328ef6454
commit 3bae60abf9
  1. 11
      high-unionPay/Utils/Api.js
  2. 2
      high-unionPay/member-Recharge/home/home.vue
  3. 7
      high-unionPay/member-Recharge/rec-confirmation/rec-confirmation.vue
  4. 5
      high-unionPay/pages/goods/refuel-confirm/refuel-confirm.vue
  5. 6
      high-unionPay/pages/goods/refuel-details/refuel-details.vue
  6. 17
      high-unionPay/pages/login/register.vue
  7. 25
      high-unionPay/pages/order/confirmation.vue
  8. 7
      high-unionPay/pages/tabBar/home/home.vue
  9. 7
      high-unionPay/pages/tabBar/user/user.vue
  10. 3
      high-unionPay/pages/unionPay/unionComfirmation/unionComfirmation.vue
  11. 7
      high-unionPay/pages/user/coupon/coupon.vue
  12. 2
      high-unionPay/pages/user/order_details/order_details.vue
  13. 5
      high-unionPay/qianzhu-KFC/confirmOrder/confirmOrder.vue
  14. 2
      high-unionPay/qianzhu-KFC/order-details/order-details.vue
  15. 8
      high-unionPay/uni.scss

@ -539,10 +539,17 @@ export const getOrderByOrderNo = params => {
} }
//----------------我的页面接口 //----------------我的页面接口
// 获取登录验证码
// 手机号登录 export const getLoginSMSCode = params => {
return POST('POST', `${userbase}/sms/getLoginSMSCode`, params).then(res => res.data);
}
// 银联授权登录
export const unionPhoneLogin = params => { export const unionPhoneLogin = params => {
return POST('POST', `${userbase}/login/union`, params).then(res => res.data); return POST('POST', `${userbase}/login/union`, params).then(res => res.data);
}
// 手机号登录
export const phone = params => {
return POST('POST', `${userbase}/login/phone`, params).then(res => res.data);
} }
// 获取用户信息 // 获取用户信息

@ -12,7 +12,7 @@
:currentSwiperLineActiveWidth="currentSwiperLineActiveWidth" :currentSwiperLineActiveWidth="currentSwiperLineActiveWidth"
:currentSwiperLineActiveHeight="currentSwiperLineActiveHeight" :currentSwiperLineActiveHeight="currentSwiperLineActiveHeight"
:currentSwiperLineActiveBg="currentSwiperLineActiveBg" :currentSwiperLineActiveBg="currentSwiperLineActiveBg"
:currentSwiperLineAnimatie="currentSwiperLineAnimatie" v-if=" swiperTabList.length > 1 " :currentSwiperLineAnimatie="currentSwiperLineAnimatie" v-if=" swiperTabList.length > 0 "
@change="CurrentTab"> @change="CurrentTab">
</swiperNavBar> </swiperNavBar>
<!--组件--> <!--组件-->

@ -277,8 +277,7 @@
let datas = { let datas = {
"companyId": app.globalData.companyId, "companyId": app.globalData.companyId,
"price": this.payPrice, "price": this.payPrice,
"productId": 3, "type": 3,
"type": 4,
} }
getRebateIntegral(datas).then(res => { getRebateIntegral(datas).then(res => {
if (res.return_code == '000000') { if (res.return_code == '000000') {
@ -697,7 +696,9 @@
<style lang="scss"> <style lang="scss">
page { page {
background-color: #f0f0f0; background-color: #f0f0f0;
overflow: hidden;
overflow-y: auto;
} }
.headsbg { .headsbg {

@ -195,7 +195,7 @@
<view class="width50 flleft fcoreb5 padleft15 font15"> <view class="width50 flleft fcoreb5 padleft15 font15">
合计: <text class="font24">{{payPrice}}</text> 合计: <text class="font24">{{payPrice}}</text>
</view> </view>
<button class="reBtn flright" @click="addOrder">去支付</button> <button class="reBtn flright" @click="create">去支付</button>
</view> </view>
@ -348,8 +348,7 @@
let datas = { let datas = {
"companyId": app.globalData.companyId, "companyId": app.globalData.companyId,
"price": this.payPrice, "price": this.payPrice,
"productId": 1, "type": 6,
"type": 3,
} }
getRebateIntegral(datas).then(res => { getRebateIntegral(datas).then(res => {
if (res.return_code == '000000') { if (res.return_code == '000000') {

@ -112,14 +112,8 @@
v-if="priceVip != priceOfficial">优惠约:{{discountPrice}}</text> v-if="priceVip != priceOfficial">优惠约:{{discountPrice}}</text>
</view> </view>
<!-- #ifdef MP -->
<button class="reBtn flright" v-if="user.phone == null" @click="jumpPhone">去支付</button>
<button class="reBtn flright" v-else @click="postionIng">去支付</button>
<!-- #endif -->
<!-- #ifdef H5 -->
<button class="reBtn flright" v-if="user.phone == null" @click="jumpH5Bding">去支付</button> <button class="reBtn flright" v-if="user.phone == null" @click="jumpH5Bding">去支付</button>
<button class="reBtn flright" v-else @click="postionIng">去支付</button> <button class="reBtn flright" v-else @click="postionIng">去支付</button>
<!-- #endif -->
</view> </view>
<!-- 底部弹窗 --> <!-- 底部弹窗 -->

@ -33,9 +33,9 @@
<script> <script>
import md5 from "@/common/SDK/md5.min.js"; import md5 from "@/common/SDK/md5.min.js";
import { import {
sendSmsCodeByHw, getLoginSMSCode,
bindUserPhone, bindUserPhone,
H5login phone
} from "../../Utils/Api.js"; } from "../../Utils/Api.js";
let app = getApp(); let app = getApp();
export default { export default {
@ -73,10 +73,9 @@
title: '发送中...' title: '发送中...'
}) })
let params = { let params = {
phone: this.phoneNumber, phone: this.phoneNumber
HWMSG:3
} }
sendSmsCodeByHw(params).then(res => { getLoginSMSCode(params).then(res => {
if (res.return_code == '000000') { if (res.return_code == '000000') {
this.getCodeisWaiting = true; this.getCodeisWaiting = true;
this.getCodeBtnColor = "rgba(255,255,255,0.5)" this.getCodeBtnColor = "rgba(255,255,255,0.5)"
@ -128,10 +127,12 @@
}) })
let params = { let params = {
phone: this.phoneNumber, phone: this.phoneNumber,
code: this.code type: "SMS",
platform: "UNIONPAY",
smsCode: this.code
} }
if (this.Typeid == 1) { if (this.Typeid == 1) {
H5login(params).then(res => { phone(params).then(res => {
uni.hideLoading() uni.hideLoading()
if (res.return_code == '000000') { if (res.return_code == '000000') {
app.globalData.userInfo = res.return_data app.globalData.userInfo = res.return_data
@ -159,7 +160,7 @@
} }
}) })
} else { } else {
bindUserPhone(params).then(res => { phone(params).then(res => {
uni.hideLoading() uni.hideLoading()
if (res.return_code == '000000') { if (res.return_code == '000000') {
app.globalData.userInfo = res.return_data app.globalData.userInfo = res.return_data

@ -350,8 +350,7 @@
let datas = { let datas = {
"companyId": app.globalData.companyId, "companyId": app.globalData.companyId,
"price": this.paytheprice, "price": this.paytheprice,
"productId": 1, "type": 5,
"type": 1,
} }
getRebateIntegral(datas).then(res => { getRebateIntegral(datas).then(res => {
if (res.return_code == '000000') { if (res.return_code == '000000') {
@ -398,34 +397,34 @@
} else { // } else { //
this.isDiscont = true; this.isDiscont = true;
this.memDiscountId = item.id; this.memDiscountId = item.id;
if (item.highDiscount.discountType == 1) { if (item.discountType == 1) {
// //
if (this.orderPrice > item.highDiscount.discountCondition) { if (this.orderPrice > item.discountCondition) {
this.memDiscountId = item.id; this.memDiscountId = item.id;
// //
this.deductionPrice = item.highDiscount.discountPrice; this.deductionPrice = item.discountPrice;
let oldprice = this.orderPrice - this.deductionPrice; let oldprice = this.orderPrice - this.deductionPrice;
this.priceCaluc(oldprice); this.priceCaluc(oldprice);
} else { } else {
uni.showToast({ uni.showToast({
title: '请满' + item.highDiscount.discountCondition + '使用此券', title: '请满' + item.discountCondition + '使用此券',
icon: 'none', icon: 'none',
duration: 2000 duration: 2000
}) })
} }
} }
if (item.highDiscount.discountType == 2) { if (item.discountType == 2) {
// //
this.deductionPrice = item.highDiscount.discountPrice; this.deductionPrice = item.discountPrice;
let oldprice = this.orderPrice - this.deductionPrice; let oldprice = this.orderPrice - this.deductionPrice;
this.priceCaluc(oldprice); this.priceCaluc(oldprice);
} }
if (item.highDiscount.discountType == 3) { if (item.discountType == 3) {
// //
this.deductionPrice = parseFloat(this.orderPrice - (this.orderPrice * item.highDiscount this.deductionPrice = parseFloat(this.orderPrice - (this.orderPrice * item
.discountPrice)) .discountPrice))
.toFixed(2); .toFixed(2);
let oldprice = parseFloat(this.orderPrice * item.highDiscount.discountPrice).toFixed(2); let oldprice = parseFloat(this.orderPrice * item.discountPrice).toFixed(2);
this.priceCaluc(oldprice); this.priceCaluc(oldprice);
} }
} }
@ -780,7 +779,9 @@
<style lang="scss"> <style lang="scss">
page { page {
background-color: #f7f7f7; background-color: #f7f7f7;
overflow: hidden;
overflow-y: auto;
} }
.comorder { .comorder {

@ -184,7 +184,6 @@
}, },
onShow() { onShow() {
let that = this; let that = this;
that.hqaddress();
uni.getStorage({ uni.getStorage({
key: "user", key: "user",
success(e) { success(e) {
@ -199,7 +198,9 @@
} }
}) })
}, },
onLoad() {}, onLoad() {
this.hqaddress();
},
methods: { methods: {
// //
handleAnimation: function(anim) { handleAnimation: function(anim) {
@ -302,7 +303,7 @@
let params = { let params = {
companyId: app.globalData.companyId, companyId: app.globalData.companyId,
platform: 3, platform: 3,
categoryCode: 'CMS_HOME_POPOVER' categoryCode: 'CMS_HOME'
} }
getCmsContent(params).then(res => { getCmsContent(params).then(res => {
this.isdisplay = false; this.isdisplay = false;

@ -296,7 +296,8 @@
this.whetherCheckNum = res.return_data.whetherCheckNum; this.whetherCheckNum = res.return_data.whetherCheckNum;
this.orderPayNum = res.return_data.orderPayNum; this.orderPayNum = res.return_data.orderPayNum;
this.rechargeOrderNum = res.return_data.rechargeOrderNum; this.rechargeOrderNum = res.return_data.rechargeOrderNum;
this.geTel(this.user.phone); this.geTel(this.user.phone);
this.getUserOrderList();
uni.setStorage({ uni.setStorage({
key: "user", key: "user",
data: res.return_data data: res.return_data
@ -532,7 +533,9 @@
</script> </script>
<style lang="scss"> <style lang="scss">
page { page {
background-color: #f5f5f5; background-color: #f5f5f5;
overflow: hidden;
overflow-y: auto;
} }
.status { .status {

@ -303,8 +303,7 @@
let datas = { let datas = {
"companyId": app.globalData.companyId, "companyId": app.globalData.companyId,
"price": this.payPrice, "price": this.payPrice,
"productId": this.rechargeModel, "type": 9,
"type": 3,
} }
getRebateIntegral(datas).then(res => { getRebateIntegral(datas).then(res => {
if (res.return_code == '000000') { if (res.return_code == '000000') {

@ -469,7 +469,6 @@
.srollview { .srollview {
position: fixed; position: fixed;
z-index: 9999;
height: 60px; height: 60px;
background-color: #ffffff; background-color: #ffffff;
display: flex; display: flex;
@ -728,7 +727,7 @@
.left { .left {
background-color: #fff; background-color: #fff;
width: 72%; width: 72%;
background-image: radial-gradient(6px at top right, #f5f5f5 50px, #ffffff); background-image: radial-gradient(6px at top right, #ffffff 50px, #ffffff);
.title { .title {
width: 90%; width: 90%;
@ -738,7 +737,7 @@
.term { .term {
width: 95%; width: 95%;
background-image: radial-gradient(6px at bottom right, #f5f5f5 50px, #ffffff); background-image: radial-gradient(6px at bottom right, #ffffff 50px, #ffffff);
margin-left: 5%; margin-left: 5%;
font-size: 26upx; font-size: 26upx;
color: #999; color: #999;
@ -778,7 +777,7 @@
width: 28%; width: 28%;
color: #fff; color: #fff;
background: linear-gradient(to right, #66c4ff, #009DFF); background: linear-gradient(to right, #66c4ff, #009DFF);
background-image: radial-gradient(6px at bottom left, #f5f5f5 50px, #009DFF); background-image: radial-gradient(6px at bottom left, #009DFF 50px, #009DFF);
&.invalid { &.invalid {
background: linear-gradient(to right, #aaa, #999); background: linear-gradient(to right, #aaa, #999);

@ -600,7 +600,7 @@
if (res.return_data.orderStatus == 1) { if (res.return_data.orderStatus == 1) {
this.timers = setInterval(() => { this.timers = setInterval(() => {
this.showtime() this.showtime()
}) }, 1000)
} }
} }
}) })

@ -383,8 +383,7 @@
let datas = { let datas = {
"companyId": app.globalData.companyId, "companyId": app.globalData.companyId,
"price": this.payPrice, "price": this.payPrice,
"productId": this.productType, "type": this.productType
"type": 4,
} }
getRebateIntegral(datas).then(res => { getRebateIntegral(datas).then(res => {
if (res.return_code == '000000') { if (res.return_code == '000000') {
@ -942,6 +941,8 @@
<style lang="scss"> <style lang="scss">
page { page {
background-color: #f0f0f0; background-color: #f0f0f0;
overflow: hidden;
overflow-y: auto;
} }
.headsbg { .headsbg {

@ -269,7 +269,7 @@
if (this.orderList.orderStatus == 1) { if (this.orderList.orderStatus == 1) {
this.timer = setInterval(() => { this.timer = setInterval(() => {
this.showtime() this.showtime()
}) }, 1000)
} }
if (this.orderList.orderStatus == 2) { if (this.orderList.orderStatus == 2) {
this.setTimer(); this.setTimer();

@ -393,6 +393,11 @@ $uni-font-size-paragraph:30upx;
width: 30%; width: 30%;
margin-left: 3%; margin-left: 3%;
} }
.widthw30 {
width: 30%;
margin-left: 35%;
}
.width31{ .width31{
width: 31%; width: 31%;
margin-right: auto; margin-right: auto;
@ -562,6 +567,9 @@ $uni-font-size-paragraph:30upx;
.mart90 { .mart90 {
margin-top: 90px; margin-top: 90px;
} }
.mart110 {
margin-top: 110px;
}
.mart80{ .mart80{
margin-top: 80px; margin-top: 80px;

Loading…
Cancel
Save