Browse Source

收货地址脱敏

master
jiazhipeng 9 months ago
parent
commit
f7732884fb
  1. 3
      pages/old/linkman/index.js
  2. 9
      pages/order/components/address/index.js
  3. 6
      pages/order/hotel/index.js
  4. 3
      pages/order/roadOrder/index.js
  5. 1
      pages/user/address/index.js

3
pages/old/linkman/index.js

@ -55,7 +55,8 @@ Page({
user.user_post("user/getContactOrConsignee", { user.user_post("user/getContactOrConsignee", {
contactType:"CONTACT", contactType:"CONTACT",
offset: this.data.list.length, offset: this.data.list.length,
limit: 10 limit: 10,
tm_flag: true,
}).then(res => { }).then(res => {
let list = this.data.list.concat(res.data),isMore = true; let list = this.data.list.concat(res.data),isMore = true;
if(res.data.length<10){ if(res.data.length<10){

9
pages/order/components/address/index.js

@ -34,7 +34,8 @@ Component({
this.getLinkmanList() this.getLinkmanList()
} else { } else {
userApi.user_post("user/getDefaultContact", { userApi.user_post("user/getDefaultContact", {
contactType: "CONSIGNEE" contactType: "CONSIGNEE",
tm_flag: true,
}).then(res => { }).then(res => {
this.setData({ this.setData({
selectLinkman: res.data selectLinkman: res.data
@ -162,7 +163,8 @@ Component({
userApi.user_post("user/getContactOrConsignee", { userApi.user_post("user/getContactOrConsignee", {
contactType: "CONSIGNEE", contactType: "CONSIGNEE",
offset: 0, offset: 0,
limit: 1000 limit: 1000,
tm_flag: true,
}).then(res => { }).then(res => {
let list = res.data; let list = res.data;
this.setData({ this.setData({
@ -251,7 +253,8 @@ Component({
commonApi.user_post("token/check").then(res => { commonApi.user_post("token/check").then(res => {
if (res.code == 1) { if (res.code == 1) {
userApi.user_post("user/getDefaultContact", { userApi.user_post("user/getDefaultContact", {
contactType: "CONSIGNEE" contactType: "CONSIGNEE",
tm_flag: true,
}).then(res => { }).then(res => {
console.log(res) console.log(res)
this.setData({ this.setData({

6
pages/order/hotel/index.js

@ -44,7 +44,8 @@ Page({
let CtripHotelCart = app.globalData.product; let CtripHotelCart = app.globalData.product;
// 获取默认联系人 // 获取默认联系人
userApi.user_post("user/getDefaultContact",{ userApi.user_post("user/getDefaultContact",{
contactType:"CONTACT" contactType:"CONTACT",
tm_flag: true,
}).then(res=>{ }).then(res=>{
if(res.data){ if(res.data){
this.setData({ this.setData({
@ -193,7 +194,8 @@ Page({
userApi.user_post("user/getContactOrConsignee",{ userApi.user_post("user/getContactOrConsignee",{
contactType:"CONTACT", contactType:"CONTACT",
offset:0, offset:0,
limit:1000 limit:1000,
tm_flag: true,
}).then(res=>{ }).then(res=>{
let list = res.data; let list = res.data;
list.map(item=>{ list.map(item=>{

3
pages/order/roadOrder/index.js

@ -103,7 +103,8 @@ Page({
userApi.user_post("user/getContactOrConsignee",{ userApi.user_post("user/getContactOrConsignee",{
contactType:"CONTACT", contactType:"CONTACT",
offset:0, offset:0,
limit:1000 limit:1000,
tm_flag: true,
}).then(res=>{ }).then(res=>{
let list = res.data; let list = res.data;
this.setData({ this.setData({

1
pages/user/address/index.js

@ -49,6 +49,7 @@ Page({
contactType:"CONSIGNEE", contactType:"CONSIGNEE",
offset: this.data.list.length, offset: this.data.list.length,
limit:10, limit:10,
tm_flag: true,
}).then(res=>{ }).then(res=>{
let list = this.data.list.concat(res.data), isMore = true; let list = this.data.list.concat(res.data), isMore = true;
if(res.data.length<10){ if(res.data.length<10){

Loading…
Cancel
Save