diff --git a/commons/js/config.js b/commons/js/config.js
index c35d060..38aa9a0 100644
--- a/commons/js/config.js
+++ b/commons/js/config.js
@@ -194,6 +194,7 @@ api = {
appRadar: "app/score/radar", //雷达图数据
appPaic: "app/paic", //平安用户
+ appCusorderDestroy: 'app/cusorderDestroy', //核销优惠券
}
//远程图片存储地址
@@ -258,4 +259,4 @@ export default {
subscribeTmpId,
white401UrlList,
v2OrderId,
-}
\ No newline at end of file
+}
diff --git a/commons/js/utils/apiQuery.js b/commons/js/utils/apiQuery.js
index 70977c6..9d45c29 100644
--- a/commons/js/utils/apiQuery.js
+++ b/commons/js/utils/apiQuery.js
@@ -1112,4 +1112,10 @@ apiQuery.getBizAccountLogs = function (params) {
HttpRequest(false, Config.api.appBizAccountLogs, 2, params, "GET", resolve, reject)
})
}
+//核销优惠券
+apiQuery.postAppCusorderDestroy = function (params) {
+ return new Promise(function (resolve, reject) {
+ HttpRequest(false, Config.api.appCusorderDestroy, 2, params, "POST", resolve, reject)
+ })
+}
export default apiQuery;
\ No newline at end of file
diff --git a/pages/customer/index.wxml b/pages/customer/index.wxml
index a383322..1260f56 100644
--- a/pages/customer/index.wxml
+++ b/pages/customer/index.wxml
@@ -1,3 +1,4 @@
+
@@ -91,7 +93,7 @@
({{item.mobile}})
- {{'距转派还剩'+tool.formatTime(item.left_time)}}
+ {{'距转派还剩'+item.left_time}}
diff --git a/pages/customer/score/index.js b/pages/customer/score/index.js
index f2bb8f7..4df1059 100644
--- a/pages/customer/score/index.js
+++ b/pages/customer/score/index.js
@@ -73,7 +73,15 @@ Page({
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
-
+ this.setData({
+ pageNo: 1,
+ list: [],
+ noData: false,
+ end: false,
+ load: true,
+ loading: false
+ })
+ this.getBizAccountLog();
},
/**
diff --git a/pages/customer/score/index.json b/pages/customer/score/index.json
index 8835af0..aeaeb4e 100644
--- a/pages/customer/score/index.json
+++ b/pages/customer/score/index.json
@@ -1,3 +1,9 @@
{
+ "navigationBarTitleText": "积分明细",
+ "enablePullDownRefresh": true,
+ "navigationBarTextStyle": "white",
+ "navigationBarBackgroundColor": "#1a1c26",
+ "backgroundColor": "#ffffff",
+ "backgroundColorTop": "#1a1c26",
"usingComponents": {}
}
\ No newline at end of file
diff --git a/pages/order/detail/index2.js b/pages/order/detail/index2.js
index 6c7e705..b11187f 100644
--- a/pages/order/detail/index2.js
+++ b/pages/order/detail/index2.js
@@ -29,6 +29,7 @@ Page({
confirm_count_down: 3,
wxTimerList: {},
wxTimer: null,
+ group_id_4s: 5 //角色类型4店铺
},
onLoad: function (options) {
for (let key in options) {
diff --git a/pages/order/detail/index2.wxml b/pages/order/detail/index2.wxml
index 5989684..7a2f9b5 100644
--- a/pages/order/detail/index2.wxml
+++ b/pages/order/detail/index2.wxml
@@ -98,63 +98,64 @@
-
-
- 订单合同
-
- {{info.status>0?'已审核':contract_img.length>0?'更新':'上传'}}
-
-
-
-
- 付款凭证
-
- {{info.status>0?'已审核':pay_img.value?'更新':'上传'}}
-
-
-
-
- 权益确认书
-
- {{info.status>0?'已审核':equity_ck_img.length>0?'更新':'上传'}}
-
-
-
-
- 发票
-
- {{info.status>1?'已审核':bill_img.value?'更新':'上传'}}
-
-
-
-
- 行驶证
-
- {{info.status>2?'已审核':car_img.value?'更新':'上传'}}
-
-
-
-
-
- 保险单
-
-
- 已审核
- {{imgInfo.imgs.accident_img.value||imgInfo.imgs.insurance_img.value||imgInfo.imgs.business_img.value?'更新':'上传'}}
-
+
+
+
+ 订单合同
+
+ {{info.status>0?'已审核':contract_img.length>0?'更新':'上传'}}
-
-
-
-
+
+ 付款凭证
+
+ {{info.status>0?'已审核':pay_img.value?'更新':'上传'}}
+
+
+
+
+ 权益确认书
+
+ {{info.status>0?'已审核':equity_ck_img.length>0?'更新':'上传'}}
+
+
+
+
+ 发票
+
+ {{info.status>1?'已审核':bill_img.value?'更新':'上传'}}
+
+
+
+
+ 行驶证
+
+ {{info.status>2?'已审核':car_img.value?'更新':'上传'}}
+
+
+
+
+
+ 保险单
+
+
+ 已审核
+ {{imgInfo.imgs.accident_img.value||imgInfo.imgs.insurance_img.value||imgInfo.imgs.business_img.value?'更新':'上传'}}
+
+
+
+
+
+
+
-
-
+
+
diff --git a/pages/order/edit/index2.js b/pages/order/edit/index2.js
index fd319e6..a5d87ce 100644
--- a/pages/order/edit/index2.js
+++ b/pages/order/edit/index2.js
@@ -61,7 +61,8 @@ Page({
confirm_amount: '', //定⾦
discount_amount: '', //⻋身优惠
business_type: 0,
- brand_page_show: false
+ brand_page_show: false,
+ group_id_4s: 5 //角色类型4店铺
},
//生命周期函数--监听页面加载
onLoad: function (options) {
@@ -307,6 +308,15 @@ Page({
this.setData({
userInfo: res,
})
+ if (res.group_id == this.data.group_id_4s) { //4s店铺
+ let tab = [{
+ title: '车辆信息',
+ step: 2,
+ }]
+ this.setData({
+ tab: tab
+ })
+ }
});
},
@@ -592,16 +602,16 @@ Page({
},
//显示选择品牌
- bindShowBrand(){
+ bindShowBrand() {
this.setData({
brand_page_show: true
})
},
//获取品牌信息
- getBrandData(e){
+ getBrandData(e) {
// console.log(e.detail)
- if(e.detail.index>-1&&e.detail.item){
+ if (e.detail.index > -1 && e.detail.item) {
this.setData({
brand_id: e.detail.item.id,
brand_name: e.detail.item.name,
diff --git a/pages/order/edit/index2.wxml b/pages/order/edit/index2.wxml
index 967c455..b356184 100644
--- a/pages/order/edit/index2.wxml
+++ b/pages/order/edit/index2.wxml
@@ -20,9 +20,9 @@
{{brandArray[brandIndex]}}
-->
- {{brand_name}}
- 请选择
-
+ {{brand_name}}
+ 请选择
+
@@ -148,9 +148,14 @@
-
-
-
+
+
+
+
+
+
+
+
diff --git a/pages/order/index.js b/pages/order/index.js
index 35cfdcd..87e2112 100644
--- a/pages/order/index.js
+++ b/pages/order/index.js
@@ -2,41 +2,41 @@ import _ from '../../commons/js/commons'
const app = getApp()
Page({
data: {
- searchInp:{
+ searchInp: {
value: '',
focus: false,
},
- key:'',//tab状态值
- list: [],//客户列表
+ key: '', //tab状态值
+ list: [], //客户列表
pageNo: 1,
noData: false,
end: false,
load: true,
loading: false,
- flag:1,
- content:'',//短信内容
- isRefresh:false,//判断返回是否需要刷新
+ flag: 1,
+ content: '', //短信内容
+ isRefresh: false, //判断返回是否需要刷新
isShowMobile: false,
- v2OrderId:_.config.v2OrderId,//订单id临界切换版本
+ v2OrderId: _.config.v2OrderId, //订单id临界切换版本
- isShowfilter:false,//是否显示筛查
- type:'',
- order_s_time:'',//开始时间
- order_e_time:'',//结束时间
+ isShowfilter: false, //是否显示筛查
+ type: '',
+ order_s_time: '', //开始时间
+ order_e_time: '', //结束时间
staffArray: [],
staffobj: [],
- employeeIndex:-1,//分配销售索引
- employee_id:'',//分配销售ID
+ employeeIndex: -1, //分配销售索引
+ employee_id: '', //分配销售ID
- brand_id:'',//品牌id
- car_id:'',//车系id
- v_id:'',//车辆版本id
- brandIndex:-1,//车辆品牌索引
- modelIndex:-1,//车系车型索引
- levelIndex:-1,//车辆版本索引
- brand_page_show:false,
- brand_name:''
+ brand_id: '', //品牌id
+ car_id: '', //车系id
+ v_id: '', //车辆版本id
+ brandIndex: -1, //车辆品牌索引
+ modelIndex: -1, //车系车型索引
+ levelIndex: -1, //车辆版本索引
+ brand_page_show: false,
+ brand_name: ''
},
onLoad: function (options) {
for (let key in options) {
@@ -58,9 +58,9 @@ Page({
getAppCusorderTabs() {
_.apiQuery.getAppCusorderTabs().then(res => {
this.setData({
- filters:res.data.filters,
- tab:res.data.tabs,
- key:this.data.key==''?res.data.tabs[0].key:this.data.key,
+ filters: res.data.filters,
+ tab: res.data.tabs,
+ key: this.data.key == '' ? res.data.tabs[0].key : this.data.key,
})
this.getAppCusorderList()
@@ -70,18 +70,18 @@ Page({
},
//切换tab
- changeTab(e){
+ changeTab(e) {
this.setData({
key: this.data.tab[e.currentTarget.dataset.index].key,
- type:'',
- order_s_time:'',
- order_e_time:'',
+ type: '',
+ order_s_time: '',
+ order_e_time: '',
})
this.searchSubmit()
},
// 显示弹框
- showMobileMsg(){
+ showMobileMsg() {
this.setData({
isShowMobile: true
})
@@ -96,11 +96,11 @@ Page({
let admin_ids = ''
this.data.staffobj.forEach(item => {
- if(item.checked){
- if(admin_ids==''){
- admin_ids=item.id
- }else{
- admin_ids=admin_ids+','+item.id
+ if (item.checked) {
+ if (admin_ids == '') {
+ admin_ids = item.id
+ } else {
+ admin_ids = admin_ids + ',' + item.id
}
}
})
@@ -109,26 +109,26 @@ Page({
params['page'] = this.data.pageNo;
params['size'] = 10;
params['status'] = this.data.key;
- if(this.data.searchInp.value != ''){
+ if (this.data.searchInp.value != '') {
params['keyword'] = this.data.searchInp.value;
}
- if(this.data.type != ''){
+ if (this.data.type != '') {
params['type'] = this.data.type;
}
- if(this.data.order_s_time != ''&&this.data.order_e_time != ''){
+ if (this.data.order_s_time != '' && this.data.order_e_time != '') {
params['order_s_time'] = this.data.order_s_time;
params['order_e_time'] = this.data.order_e_time;
}
- if(admin_ids!=''){
+ if (admin_ids != '') {
params['admin_ids'] = admin_ids;
}
- if(this.data.brand_id!=''){
+ if (this.data.brand_id != '') {
params['brand_id'] = this.data.brand_id;
}
- if(this.data.car_id!=''){
+ if (this.data.car_id != '') {
params['car_id'] = this.data.car_id;
}
- if(this.data.v_id!=''){
+ if (this.data.v_id != '') {
params['v_id'] = this.data.v_id;
}
_.apiQuery.getAppCusorderList(params).then(res => {
@@ -157,12 +157,12 @@ Page({
},
// 输入
- searchInput(e){
+ searchInput(e) {
this.setData({
'searchInp.value': e.detail.value
})
},
- searchFocus(){
+ searchFocus() {
this.setData({
'searchInp.focus': true,
})
@@ -175,7 +175,7 @@ Page({
},
//提交搜索
- searchSubmit(){
+ searchSubmit() {
this.setData({
list: [],
pageNo: 1,
@@ -197,14 +197,14 @@ Page({
},
//推送链接
- pushLink(e){
- if(e.currentTarget.dataset.url){
+ pushLink(e) {
+ if (e.currentTarget.dataset.url) {
_.$router.openUrlScheme(e.currentTarget.dataset.url)
}
},
//显示隐藏高级搜索
- optfilter(){
+ optfilter() {
this.setData({
isShowfilter: !this.data.isShowfilter
})
@@ -212,16 +212,16 @@ Page({
},
//显示高级搜索
- showfilter(){
+ showfilter() {
this.setData({
- isShowfilter:true,
+ isShowfilter: true,
})
},
//确定高级搜索
submitFilter() {
this.setData({
- isShowfilter:false,
+ isShowfilter: false,
})
this.searchSubmit()
},
@@ -234,45 +234,45 @@ Page({
})
this.setData({
- brand_name:'',
- brand_id:'',
- car_id:'',
- v_id:'',
- brandIndex:-1,
- modelIndex:-1,
- levelIndex:-1,
+ brand_name: '',
+ brand_id: '',
+ car_id: '',
+ v_id: '',
+ brandIndex: -1,
+ modelIndex: -1,
+ levelIndex: -1,
staffobj,
- type:'',
- order_s_time:'',
- order_e_time:'',
+ type: '',
+ order_s_time: '',
+ order_e_time: '',
})
},
//单选
- radioPicker(e){
- if(e.currentTarget.dataset.type == 'type'){
+ radioPicker(e) {
+ if (e.currentTarget.dataset.type == 'type') {
this.setData({
- type:e.currentTarget.dataset.key,
+ type: e.currentTarget.dataset.key,
})
}
},
//开始时间
- startDate(e){
+ startDate(e) {
this.setData({
order_s_time: e.detail.value,
})
},
//结束时间
- endDate(e){
+ endDate(e) {
this.setData({
order_e_time: e.detail.value,
})
},
//获取销售顾问
- getAppUserAdmins(){
+ getAppUserAdmins() {
let params = {};
params['page'] = 1;
params['size'] = 1000;
@@ -286,7 +286,7 @@ Page({
bizArray.push(item.name)
})
this.setData({
- staffArray:staffArray,
+ staffArray: staffArray,
staffobj: res.data.list,
})
});
@@ -295,42 +295,41 @@ Page({
//显示分配订单
showTransfer(e) {
this.setData({
- ids:[e.currentTarget.dataset.id],
- isShowTransfer:true,
+ ids: [e.currentTarget.dataset.id],
+ isShowTransfer: true,
})
},
//显示隐藏分配订单
optTransfer(e) {
this.setData({
- employee_id:'',
- employeeIndex:-1,
- isShowTransfer:!this.data.isShowTransfer,
+ employee_id: '',
+ employeeIndex: -1,
+ isShowTransfer: !this.data.isShowTransfer,
})
},
//选择店员
changeEmployee(e) {
let employee_id = ''
- if(e.detail.value >= 0){
+ if (e.detail.value >= 0) {
employee_id = this.data.staffobj[e.detail.value].id
}
this.setData({
employee_id,
- employeeIndex:e.detail.value,
+ employeeIndex: e.detail.value,
})
},
//分配订单
- putAppCusorderV2Admins(){
+ putAppCusorderV2Admins() {
let that = this
- if (that.data.employeeIndex == -1 ) {
+ if (that.data.employeeIndex == -1) {
wx.showToast({
title: '请选择车管家',
icon: 'none'
})
- }
- else{
+ } else {
that.setData({
submitFlag: true,
})
@@ -345,12 +344,12 @@ Page({
duration: 2000
})
that.setData({
- isShowTransfer:false,
- submitFlag:false,
+ isShowTransfer: false,
+ submitFlag: false,
})
that.onPullDownRefresh()
- }).catch(res=>{
+ }).catch(res => {
that.setData({
submitFlag: false,
})
@@ -359,60 +358,60 @@ Page({
},
//多选
- checkPicker(e){
+ checkPicker(e) {
this.setData({
- ['staffobj['+e.currentTarget.dataset.index+'].checked']:!this.data.staffobj[e.currentTarget.dataset.index].checked,
+ ['staffobj[' + e.currentTarget.dataset.index + '].checked']: !this.data.staffobj[e.currentTarget.dataset.index].checked,
})
},
//获取车型品牌
- getAppSeriesBrands(){
+ getAppSeriesBrands() {
_.apiQuery.getAppSeriesBrands().then(res => {
- if(res.data.list.length>0){
+ if (res.data.list.length > 0) {
let brandArray = []
res.data.list.forEach(item => {
brandArray.push(item.name)
})
this.setData({
- brandArray:brandArray,
- brandList:res.data.list,
+ brandArray: brandArray,
+ brandList: res.data.list,
})
}
});
},
//获取车系车型
- getAppSeries(){
+ getAppSeries() {
let params = {};
params['brand_id'] = this.data.brand_id;
_.apiQuery.getAppSeries(params).then(res => {
- if(res.data.list.length>0){
+ if (res.data.list.length > 0) {
let modelArray = []
res.data.list.forEach(item => {
modelArray.push(item.name)
})
this.setData({
- modelArray:modelArray,
- modelList:res.data.list,
+ modelArray: modelArray,
+ modelList: res.data.list,
})
}
});
},
//获取车辆版本
- getAppSeriesAttrslevel(){
+ getAppSeriesAttrslevel() {
let params = {};
params['id'] = this.data.car_id;
params['type'] = 0;
_.apiQuery.getAppSeriesAttrs(params).then(res => {
- if(res.data.total>0){
+ if (res.data.total > 0) {
let levelArray = []
res.data.list.forEach(item => {
levelArray.push(item.title)
})
this.setData({
- levelArray:levelArray,
- levelList:res.data.list,
+ levelArray: levelArray,
+ levelList: res.data.list,
})
}
});
@@ -420,14 +419,14 @@ Page({
//选择品牌
changeBrand(e) {
- if(this.data.brandIndex != e.detail.value && e.detail.value >= 0){
+ if (this.data.brandIndex != e.detail.value && e.detail.value >= 0) {
this.setData({
- brand_id:this.data.brandList[e.detail.value].id,
- brandIndex:e.detail.value,
- car_id:'',//车系id
- v_id:'',//车辆版本id
- modelIndex:-1,
- levelIndex:-1,
+ brand_id: this.data.brandList[e.detail.value].id,
+ brandIndex: e.detail.value,
+ car_id: '', //车系id
+ v_id: '', //车辆版本id
+ modelIndex: -1,
+ levelIndex: -1,
})
this.getAppSeries()
}
@@ -435,12 +434,12 @@ Page({
//选择车系
changeModel(e) {
- if(this.data.modelIndex != e.detail.value && e.detail.value >= 0){
+ if (this.data.modelIndex != e.detail.value && e.detail.value >= 0) {
this.setData({
- car_id:this.data.modelList[e.detail.value].id,
- modelIndex:e.detail.value,
- v_id:'',//车辆版本id
- levelIndex:-1,
+ car_id: this.data.modelList[e.detail.value].id,
+ modelIndex: e.detail.value,
+ v_id: '', //车辆版本id
+ levelIndex: -1,
})
this.getAppSeriesAttrslevel()
}
@@ -448,16 +447,16 @@ Page({
//车辆版本
changeLevel(e) {
- if(this.data.levelIndex != e.detail.value && e.detail.value >= 0){
+ if (this.data.levelIndex != e.detail.value && e.detail.value >= 0) {
this.setData({
- v_id:this.data.levelList[e.detail.value].id,
- levelIndex:e.detail.value,
+ v_id: this.data.levelList[e.detail.value].id,
+ levelIndex: e.detail.value,
})
}
},
//页面相关事件处理函数--监听用户下拉动作
- onPullDownRefresh(){
+ onPullDownRefresh() {
this.setData({
list: [],
pageNo: 1,
@@ -469,24 +468,24 @@ Page({
})
this.getAppCusorderTabs()
- this.getAppCusorderList()
+ // this.getAppCusorderList()
},
//页面上拉触底事件的处理函数
- onReachBottom(){
- if (this.data.noData || this.data.end||!this.data.load) return;
+ onReachBottom() {
+ if (this.data.noData || this.data.end || !this.data.load) return;
this.setData({
flag: this.data.flag + 1
})
this.getAppCusorderList()
},
- bindShowBrand(){
+ bindShowBrand() {
this.setData({
- brand_page_show:true
+ brand_page_show: true
})
},
- //获取品牌信息
- getBrandData(e) {
+ //获取品牌信息
+ getBrandData(e) {
console.log(e.detail)
if (e.detail.index > -1 && e.detail.item) {
this.setData({
@@ -504,38 +503,34 @@ Page({
}
},
// 同意核销
- bindAgreeCheckCode(e){
+ bindAgreeCheckCode(e) {
let that = this
let index = e.currentTarget.dataset.index
let item = that.data.list[index]
- let params = {}
- console.log(1111)
- // params['id'] = item.id
- // params['code'] = item.other_data.o_data_4['购车券'].value
- // _.apiQuery.putAppCusorderAgreeCheckCode(params).then(res => {
- // if(res.data.code == 0){
- // that.setData({
- // ['list['+index+'].other_data.o_data_4.购车券.value']:'已核销',
- // })
- // wx.showToast({
- // title: '核销成功',
- // icon: 'success',
- // duration: 2000
- // })
- // }
- // else{
- // wx.showToast({
- // title: res.data.msg,
- // icon: 'none',
- // duration: 2000
- // })
- // }
- // that.setData({
- // ['list['+index+'].other_data.o_data_4.购车券.disabled']:true,
- // })
- // that.setData({
- // ['list['+index+'].other_data.o_data_4.购车券.text']:'已核销',
- // })
- // })
+ let params = {
+ 'id': item.id
+ }
+ wx.showModal({
+ content: '确定核销该订单',
+ success: function (res) {
+ if (res.confirm) {
+ _.apiQuery.postAppCusorderDestroy(params).then(res => {
+ if (res.code == 200) {
+ wx.showToast({
+ title: res.msg,
+ icon: 'success',
+ duration: 2000
+ })
+ that.onPullDownRefresh()
+ }else{
+ wx.showToast({
+ title: res.msg,
+ duration: 2000
+ })
+ }
+ });
+ }
+ }
+ });
},
})
\ No newline at end of file
diff --git a/pages/order/index.wxml b/pages/order/index.wxml
index 1d13ef1..16d91e0 100644
--- a/pages/order/index.wxml
+++ b/pages/order/index.wxml
@@ -139,11 +139,11 @@
-
+
{{'购车券'}}
-
+
diff --git a/pages/order/register/index.js b/pages/order/register/index.js
index 1c8b310..eb096c7 100644
--- a/pages/order/register/index.js
+++ b/pages/order/register/index.js
@@ -18,7 +18,7 @@ Page({
step: 1,
name: '', //姓名
mobile: '', //手机号
- cardid: '', //身份证
+ cardid: '350822198911298152', //身份证
brand_id: '', //品牌
brand_name: '', //品牌名称
series_id: '', //车系id
@@ -67,7 +67,8 @@ Page({
register_amount: '', //上牌费
confirm_amount: '', //定⾦
discount_amount: '', //⻋身优惠
- brand_page_show: false
+ brand_page_show: false,
+ group_id_4s: 5 //角色类型4店铺
},
//生命周期函数--监听页面加载
onLoad: function (options) {
@@ -144,9 +145,13 @@ Page({
icon: 'none'
})
} else {
- this.setData({
- step: 3,
- })
+ if (this.data.userInfo.group_id == this.data.group_id_4s) {
+ this.showPreview();
+ } else {
+ this.setData({
+ step: 3,
+ })
+ }
}
break;
case 3:
@@ -156,46 +161,67 @@ Page({
icon: 'none'
})
} else {
- let that = this
- that.setData({
- isPreview: true,
- isFill: true,
- })
- wx.pageScrollTo({
- scrollTop: 0
- })
-
- that.setData({
- isShowcheck: true,
- checkCount: 2,
- checktext: 3 + 's'
- })
- let interval = setInterval(res => {
- if (that.data.checkCount > 0) {
- that.setData({
- checkCount: that.data.checkCount - 1,
- checktext: that.data.checkCount + 's'
- })
- } else {
- clearInterval(interval)
- that.setData({
- checkCount: 5,
- checktext: '我知道了'
- })
- }
- }, 1000)
+ this.showPreview();
}
break;
}
},
+ showPreview() {
+ let that = this
+ that.setData({
+ isPreview: true,
+ isFill: true,
+ })
+ wx.pageScrollTo({
+ scrollTop: 0
+ })
+ that.setData({
+ isShowcheck: true,
+ checkCount: 2,
+ checktext: 3 + 's'
+ })
+ let interval = setInterval(res => {
+ if (that.data.checkCount > 0) {
+ that.setData({
+ checkCount: that.data.checkCount - 1,
+ checktext: that.data.checkCount + 's'
+ })
+ } else {
+ clearInterval(interval)
+ that.setData({
+ checkCount: 5,
+ checktext: '我知道了'
+ })
+ }
+ }, 1000)
+ },
//获取用户信息
getUserInfo() {
_.apiQuery.getUserInfo().then(res => {
this.setData({
userInfo: res,
})
+ if (res.group_id == this.data.group_id_4s) { //4s店铺
+ let main = [{
+ title: '个人',
+ value: 0
+ }]
+ let tab = [{
+ title: '客户信息',
+ step: 1,
+ },
+ {
+ title: '车辆信息',
+ step: 2,
+ }
+ ]
+ this.setData({
+ main: main,
+ tab: tab
+ })
+ }
});
},
@@ -517,7 +543,7 @@ Page({
is_get_insure: e.detail.value ? 1 : 0
})
},
- //20240926是否投保买贵必赔
+ //20240926是否投保买贵必赔
changeIfEquity(e) {
this.setData({
if_equity: e.detail.value ? 1 : 0
@@ -525,16 +551,16 @@ Page({
},
//显示选择品牌
- bindShowBrand(){
+ bindShowBrand() {
this.setData({
brand_page_show: true
})
},
//获取品牌信息
- getBrandData(e){
+ getBrandData(e) {
// console.log(e.detail)
- if(e.detail.index>-1&&e.detail.item){
+ if (e.detail.index > -1 && e.detail.item) {
this.setData({
brand_id: e.detail.item.id,
brand_name: e.detail.item.name,
diff --git a/pages/order/register/index.wxml b/pages/order/register/index.wxml
index dcb8316..0a80410 100644
--- a/pages/order/register/index.wxml
+++ b/pages/order/register/index.wxml
@@ -206,7 +206,7 @@
-
+
@@ -215,9 +215,14 @@
-
-
-
+
+
+
+
+
+
+
+
@@ -266,16 +271,17 @@
内饰颜色
{{in_color}}
- 其他信息
-
- 付款方式
- {{payment[paymentIndex]}}
-
-
- 期望交付时间
- {{delry_time}}
-
-
-
- 定金
- {{confirm_amount}}元
-
-
- 车身优惠
- {{discount_amount}}元
-
-
-
- 投保买贵必赔
- {{if_equity?'是':'否'}}
+
+ 定金
+ {{confirm_amount}}元
-
-
-
- 是否店内投保
- {{is_get_insure?'是':'否'}}
+
+ 车身优惠
+ {{discount_amount}}元
-
-
-
- 是否店内上牌
- {{is_get_brand?'是':'否'}}
+
+
+ 投保买贵必赔
+ {{if_equity?'是':'否'}}
+
-
-
- 上牌费
- {{register_amount}}元
-
-
-
+
@@ -362,8 +369,10 @@
订单登记成功
--- 请及时上传 ---
- 订单合同
- 付款凭证
+
+ 订单合同
+ 付款凭证
+
客户身份证