订单
This commit is contained in:
@@ -30,8 +30,8 @@ api = {
|
||||
appCustomersTabs: "app/customers/tabs", //获取tab
|
||||
appCustomers: "app/customers", //获取客户列表 /新建客户 /修改状态和到店次数、试驾次数 /获取客户详情
|
||||
appCustomersFilter: "app/customers/filter", //获取列表筛选条件
|
||||
appSmsCustomer: "app/sms/customer", //发短信
|
||||
appSmsCusorder: "app/sms/cusorder", //发短信
|
||||
appSmsCustomer: "app/sms/customer", //客户发短信
|
||||
appSmsCusorder: "app/sms/cusorder", //订单发短信
|
||||
appCustomerlogs: "app/customerlogs", //获取日志
|
||||
appCustomerData: "app/customers/data", //获取客户详细信息
|
||||
|
||||
|
||||
@@ -152,13 +152,20 @@ apiQuery.putAppCustomers = function (params) {
|
||||
})
|
||||
}
|
||||
|
||||
//发短信
|
||||
//客户发短信
|
||||
apiQuery.postAppSmsCustomer = function (params) {
|
||||
return new Promise(function (resolve, reject) {
|
||||
HttpRequest(true, Config.api.appSmsCustomer, 2, params, "POST", resolve, reject)
|
||||
})
|
||||
}
|
||||
|
||||
//订单发短信
|
||||
apiQuery.postAppSmsCusorder = function (params) {
|
||||
return new Promise(function (resolve, reject) {
|
||||
HttpRequest(true, Config.api.appSmsCusorder, 2, params, "POST", resolve, reject)
|
||||
})
|
||||
}
|
||||
|
||||
//获取日志
|
||||
apiQuery.getAppCustomerlogs = function (params) {
|
||||
return new Promise(function (resolve, reject) {
|
||||
|
||||
@@ -105,6 +105,21 @@ Page({
|
||||
})
|
||||
},
|
||||
|
||||
//显示短信弹框
|
||||
showMessage(e){
|
||||
this.setData({
|
||||
isShowMessage:true,
|
||||
content:'',
|
||||
})
|
||||
},
|
||||
|
||||
//关闭短信弹框
|
||||
hideMessage(e){
|
||||
this.setData({
|
||||
isShowMessage:false,
|
||||
})
|
||||
},
|
||||
|
||||
// 输入
|
||||
inputTx(e) {
|
||||
this.setData({
|
||||
@@ -112,6 +127,36 @@ Page({
|
||||
})
|
||||
},
|
||||
|
||||
//发短信
|
||||
postAppSmsCusorder(){
|
||||
if (this.data.submitFlag) return;
|
||||
if (this.data.content == '') {
|
||||
wx.showToast({
|
||||
title: '请填写短信内容',
|
||||
icon: 'none'
|
||||
})
|
||||
} else {
|
||||
this.setData({
|
||||
submitFlag: true,
|
||||
})
|
||||
let params = {};
|
||||
params['id'] = this.data.id;
|
||||
params['content'] = this.data.content;
|
||||
_.apiQuery.postAppSmsCusorder(params).then(res=>{
|
||||
this.setData({
|
||||
isShowMessage:false,
|
||||
submitFlag:false,
|
||||
content:'',
|
||||
})
|
||||
wx.showToast({
|
||||
title: res.msg,
|
||||
icon: 'none'
|
||||
})
|
||||
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
//单选
|
||||
radioPicker(e){
|
||||
if(e.currentTarget.dataset.id != this.data.payway){
|
||||
|
||||
@@ -9,11 +9,11 @@
|
||||
<view class="font-32">{{info.name}}</view>
|
||||
<view class="mt5 font-22 color-666">手机号:{{info.mobile}}</view>
|
||||
</view>
|
||||
<view class="absolute right-0 box-middle pr40">
|
||||
<view class="inline-block relative img-55x55 bg-333 font-28 color-fff mr30 ulib-r750" catchtap="showMessage" data-id="{{item.id}}">
|
||||
<view class="absolute right-0 mr30 box-middle">
|
||||
<view class="inline-block relative img-55x55 bg-333 font-28 color-fff mr30 ulib-r750" catchtap="showMessage" data-id="{{detailinfo.id}}">
|
||||
<i class="absolute box-center-middle iconfont icon-liuyan"></i>
|
||||
</view>
|
||||
<view class="inline-block relative img-55x55 bg-333 font-28 color-fff ulib-r750" catchtap="{{item.call_type == 'xz'?'callXz':'call'}}" data-id="{{item.id}}" data-type="{{item.type}}">
|
||||
<view class="inline-block relative img-55x55 bg-333 font-28 color-fff ulib-r750" catchtap="call" data-id="{{detailinfo.id}}">
|
||||
<i class="absolute box-center-middle iconfont icon-dianhua"></i>
|
||||
</view>
|
||||
</view>
|
||||
@@ -169,8 +169,20 @@
|
||||
<lcb-msg isShow="{{isShowCode}}" isBottomOpt="{{true}}" closeWord="我知道了">
|
||||
<view slot="content" class="inner40">
|
||||
<view class="font-36 text-center">邀请客户扫码签名</view>
|
||||
<view class="inner40 text-center">
|
||||
<image class='img-250x250' lazy-load="{{true}}" mode="aspectFit" src="http://www.xmfish.com/images/chanel/www/index2/b_mobile.jpg"></image>
|
||||
<view class="pt40 text-center">
|
||||
<image class='inline-block img-250x250' lazy-load="{{true}}" mode="aspectFit" src="{{info.admin_img}}"></image>
|
||||
</view>
|
||||
</view>
|
||||
</lcb-msg>
|
||||
|
||||
<lcb-msg isShow="{{isShowMessage}}">
|
||||
<view slot="content">
|
||||
<view class="inner40">
|
||||
<textarea class="wp100 inner20 bds-1-eb font-28 ulib-r10" placeholder-class="color-ccc" maxlength='100' placeholder="请输入短信内容" bindinput='inputTx' data-key="content" name='content' value='{{content}}' />
|
||||
</view>
|
||||
<view class="fn-flex bts-1-eb text-center font-32 color-666">
|
||||
<view class="fn-flex-item pt25 pb25" bindtap="hideMessage">取消</view>
|
||||
<view class="fn-flex-item bls-1-eb pt25 pb25 color-36afa2" disabled="{{!submitFlag}}" bindtap="postAppSmsCusorder">确定</view>
|
||||
</view>
|
||||
</view>
|
||||
</lcb-msg>
|
||||
@@ -162,7 +162,7 @@ Page({
|
||||
},
|
||||
|
||||
//发短信
|
||||
postAppSmsCustomer(){
|
||||
postAppSmsCusorder(){
|
||||
if (this.data.submitFlag) return;
|
||||
if (this.data.content == '') {
|
||||
wx.showToast({
|
||||
@@ -176,7 +176,7 @@ Page({
|
||||
let params = {};
|
||||
params['id'] = this.data.messageId;
|
||||
params['content'] = this.data.content;
|
||||
_.apiQuery.postAppSmsCustomer(params).then(res=>{
|
||||
_.apiQuery.postAppSmsCusorder(params).then(res=>{
|
||||
this.setData({
|
||||
isShowMessage:false,
|
||||
submitFlag:false,
|
||||
|
||||
@@ -74,7 +74,7 @@
|
||||
</view>
|
||||
<view class="fn-flex bts-1-eb text-center font-32 color-666">
|
||||
<view class="fn-flex-item pt25 pb25" bindtap="hideMessage">取消</view>
|
||||
<view class="fn-flex-item bls-1-eb pt25 pb25 color-36afa2" disabled="{{!submitFlag}}" bindtap="postAppSmsCustomer">确定</view>
|
||||
<view class="fn-flex-item bls-1-eb pt25 pb25 color-36afa2" disabled="{{!submitFlag}}" bindtap="postAppSmsCusorder">确定</view>
|
||||
</view>
|
||||
</view>
|
||||
</lcb-msg>
|
||||
Reference in New Issue
Block a user