Browse Source

优化

master
邓平艺 4 years ago
parent
commit
74fd2b3a51
  1. 3
      components/lf-payPassword/lf-payPassword.vue
  2. 6
      pages/business/center/center.vue
  3. 2
      pages/business/order/list.vue
  4. 2
      pages/index/activity/hot.vue
  5. 2
      pages/index/category/category.vue
  6. 11
      pages/index/openScreenAd/openScreenAd.vue
  7. 9
      pages/order/cashier/cashier.vue
  8. 1
      pages/order/confirm/confirm.vue
  9. 8
      pages/order/newdetail/newdetail.vue
  10. 1
      pages/order/pointconfirm/confirm.vue

3
components/lf-payPassword/lf-payPassword.vue

@ -62,6 +62,9 @@
}, },
inputVal(event){ inputVal(event){
this.code = event; this.code = event;
if(this.code.length >= 6){
this.comfirm();
}
}, },
comfirm(){ comfirm(){
if(this.code.length < 6){ if(this.code.length < 6){

6
pages/business/center/center.vue

@ -7,7 +7,7 @@
<view class="bg-right"></view> <view class="bg-right"></view>
<view class="head-content"> <view class="head-content">
<view class="lf-flex"> <view class="lf-flex">
<image class="head-img" mode="widthFix" :src="detail.brand.logo"></image>
<image class="head-img" :src="detail.brand.logo"></image>
<view class="head-title lf-line-3">{{ detail.brand.name }}</view> <view class="head-title lf-line-3">{{ detail.brand.name }}</view>
</view> </view>
<view class="lf-flex"> <view class="lf-flex">
@ -102,11 +102,11 @@
</view> </view>
<view class="lf-flex lf-m-t-50"> <view class="lf-flex lf-m-t-50">
<view class="item" :style="{width: 100 / 3 +'%'}" @click="$url('/pages/business/activity/add')"> <view class="item" :style="{width: 100 / 3 +'%'}" @click="$url('/pages/business/activity/add')">
<view class="lf-iconfont icon-bianji lf-font-60"></view>
<view class="lf-iconfont icon-a-Group21 lf-font-60 lf-color-333"></view>
<view>新增活动</view> <view>新增活动</view>
</view> </view>
<view class="item" :style="{width: 100 / 3 +'%'}" @click="$url('/pages/business/activity/list')"> <view class="item" :style="{width: 100 / 3 +'%'}" @click="$url('/pages/business/activity/list')">
<view class="lf-iconfont icon-fabujilu lf-font-60"></view>
<view class="lf-iconfont icon-a-Group16 lf-font-60 lf-color-333"></view>
<view>活动列表</view> <view>活动列表</view>
</view> </view>
</view> </view>

2
pages/business/order/list.vue

@ -189,7 +189,7 @@
let method_id = this.columns[this.select_index].id; let method_id = this.columns[this.select_index].id;
let express_no = this.expressNum; let express_no = this.expressNum;
let order_no = this.click_order_no; let order_no = this.click_order_no;
this.$http.get({
this.$http.post({
api: 'api/supplier/order/send', api: 'api/supplier/order/send',
data: { data: {
distribution_id: 0, distribution_id: 0,

2
pages/index/activity/hot.vue

@ -11,7 +11,7 @@
<view class="scroll-content"> <view class="scroll-content">
<view class="card" v-for="(item, index) in tab.list" :key="index" @click="goDetails(item.id)"> <view class="card" v-for="(item, index) in tab.list" :key="index" @click="goDetails(item.id)">
<view class="cover"> <view class="cover">
<image class="img" :src="item.image" mode="widthFix"></image>
<image class="img" :src="item.image" mode="aspectFill"></image>
</view> </view>
<view class="info"> <view class="info">
<view class="title">{{item.name}}</view> <view class="title">{{item.name}}</view>

2
pages/index/category/category.vue

@ -366,7 +366,7 @@
<style lang="scss" scoped> <style lang="scss" scoped>
.fixed-right{ .fixed-right{
position: fixed; position: fixed;
right: 32rpx;
right: 62rpx;
bottom: 400rpx; bottom: 400rpx;
width: max-content; width: max-content;
height: max-content; height: max-content;

11
pages/index/openScreenAd/openScreenAd.vue

@ -1,8 +1,9 @@
<template> <template>
<view class="content"> <view class="content">
<lf-nav bgColor="transparent" :spreadOut="false" @changeHeight="e => head_height = e"></lf-nav>
<block v-if="$isRight(full)"> <block v-if="$isRight(full)">
<image class="img" :src="full.image" mode="widthFix" @click="clickAd"></image>
<view class="tips" @click="next">跳过 {{ num }}s</view>
<image class="img" :src="full.image" @click="clickAd"></image>
<view class="tips" @click="next" :style="{top: 'calc('+ head_height +'px + 10rpx)'}">跳过 {{ num }}s</view>
</block> </block>
</view> </view>
</template> </template>
@ -13,7 +14,8 @@
return { return {
num: 5, num: 5,
timer: null, timer: null,
full: {}
full: {},
head_height: 0
} }
}, },
onLoad(){ onLoad(){
@ -79,7 +81,8 @@
.tips{ .tips{
position: absolute; position: absolute;
right: 32rpx; right: 32rpx;
top: 132rpx;
// top: 132rpx;
// top: 10vh;
width: 144rpx; width: 144rpx;
height: 55rpx; height: 55rpx;
background-color: rgba(0,0,0,0.5); background-color: rgba(0,0,0,0.5);

9
pages/order/cashier/cashier.vue

@ -20,7 +20,7 @@
</view> </view>
</template> </template>
</countdown-timer> --> </countdown-timer> -->
<countdown-time minute="5" second="0" :showDay="false" :showHour="false" color="#FF9D9D" splitorColor="#FF9D9D">
<countdown-time :minute="last_pay_time[2]" :second="last_pay_time[3]" :showDay="false" :showHour="false" color="#FF9D9D" splitorColor="#FF9D9D">
</countdown-time> </countdown-time>
</view> </view>
@ -72,15 +72,20 @@
token: '', token: '',
balance_sum: 0, balance_sum: 0,
show_pw: false, show_pw: false,
user_pw: ''
user_pw: '',
last_pay_time: []
} }
}, },
onLoad(options){ onLoad(options){
this.token = this.$cookieStorage.get('user_token'); this.token = this.$cookieStorage.get('user_token');
this.last_pay_time = this.$cookieStorage.get('last_pay_time') || [0,0,29,58];
this.amount = options.amount; this.amount = options.amount;
this.order_no = options.order_no; this.order_no = options.order_no;
this.getBalanceSum(); this.getBalanceSum();
}, },
onUnload(){
this.$cookieStorage.clear('last_pay_time');
},
methods: { methods: {
// //
getBalanceSum(){ getBalanceSum(){

1
pages/order/confirm/confirm.vue

@ -353,6 +353,7 @@
let url = '/pages/order/cashier/cashier'; let url = '/pages/order/cashier/cashier';
url += '?amount='+ this.totalPrice; url += '?amount='+ this.totalPrice;
url += '&order_no='+ order.order_no; url += '&order_no='+ order.order_no;
this.$cookieStorage.set('last_pay_time', order.last_pay_time);
this.$url(url, {type: 'redirect'}); this.$url(url, {type: 'redirect'});
}else{ }else{
this.$msg(res.data.message); this.$msg(res.data.message);

8
pages/order/newdetail/newdetail.vue

@ -183,7 +183,7 @@
</view> </view>
<view class="lf-flex"> <view class="lf-flex">
<view class="btn-gray lf-m-r-20" @click="cancelOrder">取消订单</view> <view class="btn-gray lf-m-r-20" @click="cancelOrder">取消订单</view>
<view class="btn-red" @click="$url('/pages/order/cashier/cashier?amount='+ order_details.total_yuan+'&order_no='+order_details.order_no)">立即付款</view>
<view class="btn-red" @click="toPay">立即付款</view>
</view> </view>
@ -274,6 +274,12 @@
} }
}, },
methods: { methods: {
//
toPay(){
let order_details = this.order_details;
this.$cookieStorage.set('last_pay_time', order_details.last_pay_time);
this.$url('/pages/order/cashier/cashier?amount='+ order_details.total_yuan+'&order_no='+order_details.order_no)
},
// //
confirmReceiving(){ confirmReceiving(){
this.$http.post({ this.$http.post({

1
pages/order/pointconfirm/confirm.vue

@ -292,6 +292,7 @@
let url = '/pages/order/cashier/cashier'; let url = '/pages/order/cashier/cashier';
url += '?amount='+ order.payable_freight_yuan; url += '?amount='+ order.payable_freight_yuan;
url += '&order_no='+ order.order_no; url += '&order_no='+ order.order_no;
this.$cookieStorage.set('last_pay_time', order.last_pay_time);
this.$url(url, {type: 'redirect'}); this.$url(url, {type: 'redirect'});
}else { }else {
this.$msg('兑换成功') this.$msg('兑换成功')

Loading…
Cancel
Save