From 0c259d01199e54f47b75b148e13b5edae4f551e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=81=E5=8F=B6?= Date: Thu, 30 Mar 2023 15:44:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=97=E9=95=BF=EF=BC=8C=E6=8E=8C=E6=9F=9C?= =?UTF-8?q?=EF=BC=8C=E6=B8=A0=E9=81=93=E7=BB=8F=E7=90=86=E5=BC=80=E5=8F=91?= =?UTF-8?q?=E5=88=9B=E5=BB=BA=E8=AE=A2=E5=8D=95=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/customer/detail/index.js | 13 +++++++++++++ pages/customer/detail/index.wxml | 2 +- pages/order/edit/index2.js | 4 ++-- pages/order/edit/index2.wxml | 6 +++--- pages/order/register/index.js | 4 ++-- pages/order/register/index.wxml | 4 ++-- 6 files changed, 23 insertions(+), 10 deletions(-) diff --git a/pages/customer/detail/index.js b/pages/customer/detail/index.js index 619a7a6..3001986 100644 --- a/pages/customer/detail/index.js +++ b/pages/customer/detail/index.js @@ -58,6 +58,8 @@ Page({ isShowCall:false,//是否显示拨打电话确认弹框 phoneNumber:'',//拨打的电话号码 + + userInfo:'', }, onLoad(options) { for (let key in options) { @@ -85,6 +87,8 @@ Page({ this.getTimePicker() + this.getUserInfo() + }, onshow() { @@ -100,6 +104,15 @@ Page({ this.offaudio() }, + //获取用户信息 + getUserInfo(){ + _.apiQuery.getUserInfo().then(res => { + this.setData({ + userInfo: res, + }) + }); + }, + //候取当前月日历 getTimePicker(){ let date = new Date(); diff --git a/pages/customer/detail/index.wxml b/pages/customer/detail/index.wxml index 7651969..3df1618 100644 --- a/pages/customer/detail/index.wxml +++ b/pages/customer/detail/index.wxml @@ -211,7 +211,7 @@ 客户跟进 - + 生成订单 diff --git a/pages/order/edit/index2.js b/pages/order/edit/index2.js index c6d7476..c45250a 100644 --- a/pages/order/edit/index2.js +++ b/pages/order/edit/index2.js @@ -77,7 +77,7 @@ Page({ packageList:[],//车辆选装包 options_ids:[],//选装包id数组 options_total:0,//选装包费用 - if_zero_firstpay:0,//是否0首付 + if_zero_firstpay:0,//是否零首付 }, //生命周期函数--监听页面加载 onLoad: function (options) { @@ -1373,7 +1373,7 @@ Page({ }) }, - //是否0首付 + //是否零首付 switchZeroFirstpay:function(e){ this.setData({ if_zero_firstpay:e.detail.value ? 1 :0, diff --git a/pages/order/edit/index2.wxml b/pages/order/edit/index2.wxml index c6cebed..6eb7866 100644 --- a/pages/order/edit/index2.wxml +++ b/pages/order/edit/index2.wxml @@ -119,7 +119,7 @@ - 0首付 + 零首付 {{if_zero_firstpay==1?'是':'否'}} @@ -133,7 +133,7 @@ - 0首付 + 零首付 @@ -374,7 +374,7 @@ {{priceinfo.price_coplus}} - 0首付 + 零首付 {{if_zero_firstpay==1?'是':'否'}} diff --git a/pages/order/register/index.js b/pages/order/register/index.js index b0c863b..99f1726 100644 --- a/pages/order/register/index.js +++ b/pages/order/register/index.js @@ -101,7 +101,7 @@ Page({ packageList:[],//车辆选装包 options_ids:[],//选装包id数组 options_total:0,//选装包费用 - if_zero_firstpay:0,//是否0首付 + if_zero_firstpay:0,//是否零首付 }, //生命周期函数--监听页面加载 onLoad: function (options) { @@ -1477,7 +1477,7 @@ Page({ }) }, - //是否0首付 + //是否零首付 switchZeroFirstpay:function(e){ this.setData({ if_zero_firstpay:e.detail.value ? 1 :0, diff --git a/pages/order/register/index.wxml b/pages/order/register/index.wxml index 2fdc17b..cdd1d5c 100644 --- a/pages/order/register/index.wxml +++ b/pages/order/register/index.wxml @@ -236,7 +236,7 @@ {{priceinfo.price_coplus}} - 0首付 + 零首付 @@ -504,7 +504,7 @@ {{priceinfo.price_coplus}} - 0首付 + 零首付 {{if_zero_firstpay==1?'是':'否'}}