From da63c57bd3855171770d148ce4fc680f239b7b68 Mon Sep 17 00:00:00 2001 From: jiazhipeng Date: Wed, 9 Jul 2025 09:29:17 +0800 Subject: [PATCH 1/2] fix --- pages/index/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/index/index.js b/pages/index/index.js index d3b5d42..ffb6fd7 100644 --- a/pages/index/index.js +++ b/pages/index/index.js @@ -871,7 +871,7 @@ Page({ tag_id: 85,offset: 0,limit: 5, }).then(res=>{ let resData = res.data.list || [] - (resData).forEach(v=>{ v.pagePoint = {classification: 'hot', key_number: v.id} }) + resData.forEach(v=>{ v.pagePoint = {classification: 'hot', key_number: v.id} }) this.setData({ list: resData}) }) }, From 09be50975a17d291e0642a6f855f78073ed885f7 Mon Sep 17 00:00:00 2001 From: jiazhipeng Date: Wed, 9 Jul 2025 10:41:22 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=89=8B=E6=9C=BA=E5=8F=B7=E8=84=B1?= =?UTF-8?q?=E6=95=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/index.wxml | 6 ++-- pages/index/index.wxss | 7 +++++ pages/order/components/contact/index.js | 3 +- pages/order/components/contact/index.wxss | 34 ++++++++++++++++++++++- pages/user/address/index.js | 2 +- pages/user/linkman/index.js | 3 +- pages/user/profile/index.js | 2 +- utils/https.js | 4 +-- 8 files changed, 51 insertions(+), 10 deletions(-) diff --git a/pages/index/index.wxml b/pages/index/index.wxml index a303546..daf77b6 100644 --- a/pages/index/index.wxml +++ b/pages/index/index.wxml @@ -249,11 +249,11 @@ - - + + - {{item.title}} + {{item.title}} {{item.price/100}} diff --git a/pages/index/index.wxss b/pages/index/index.wxss index 4e3ef2f..d59b467 100644 --- a/pages/index/index.wxss +++ b/pages/index/index.wxss @@ -477,14 +477,21 @@ /* box-shadow: -1rpx 1rpx 16rpx 0px rgba(6, 0, 1, 0.1); */ border-radius: 15rpx; margin-bottom: 15rpx; + height: 498rpx; } .hot-item image:nth-child(1) { display: block; width: 100%; + height: 327rpx; border-radius: 15rpx 15rpx 0 0; } .hot-item .hot-info { padding: 12rpx; + height: 170rpx; + display: flex; + flex-direction: column; + justify-content: space-between; + box-sizing: border-box; } .hot-item .hot-title { font-weight: bold; diff --git a/pages/order/components/contact/index.js b/pages/order/components/contact/index.js index 27a8afe..8a12e4d 100644 --- a/pages/order/components/contact/index.js +++ b/pages/order/components/contact/index.js @@ -433,7 +433,8 @@ Component({ userApi.user_post("user/getContactOrConsignee",{ contactType:"CONTACT", offset:0, - limit:1000 + limit:1000, + tm_flag: true, }).then(res=>{ let list = res.data; // list.map(item=>{ diff --git a/pages/order/components/contact/index.wxss b/pages/order/components/contact/index.wxss index 8ac2731..46f557f 100644 --- a/pages/order/components/contact/index.wxss +++ b/pages/order/components/contact/index.wxss @@ -277,4 +277,36 @@ font-size: 29rpx; color: #000000; flex-shrink: 0; -} \ No newline at end of file +} +.input-box { + background: white; + margin: 20rpx; + font-size: 28rpx; + padding: 0 25rpx; + border-radius: 10rpx; + } + .input-item { + display: flex; + align-items: center; + height: 106rpx; + justify-content: space-between; + border-bottom: 1rpx solid #EEE; + } + .input-label { + width: 140rpx; + } + .input-item .weui-input { + flex: 1; + } + .btn { + margin: 0 20rpx; + margin-top: 100rpx; + width: 700rpx; + margin-bottom: 30rpx; + line-height: 72rpx; + border-radius: 35rpx; + text-align: center; + color: white; + font-size: 36rpx; + background: #D62828; + } \ No newline at end of file diff --git a/pages/user/address/index.js b/pages/user/address/index.js index dfc92c0..333927b 100644 --- a/pages/user/address/index.js +++ b/pages/user/address/index.js @@ -48,7 +48,7 @@ Page({ user.user_post("user/getContactOrConsignee",{ contactType:"CONSIGNEE", offset: this.data.list.length, - limit:10 + limit:10, }).then(res=>{ let list = this.data.list.concat(res.data), isMore = true; if(res.data.length<10){ diff --git a/pages/user/linkman/index.js b/pages/user/linkman/index.js index f5389e2..1428193 100644 --- a/pages/user/linkman/index.js +++ b/pages/user/linkman/index.js @@ -55,7 +55,8 @@ Page({ user.user_post("user/getContactOrConsignee", { contactType:"CONTACT", offset: this.data.list.length, - limit: 10 + limit: 10, + tm_flag: true, }).then(res => { let list = this.data.list.concat(res.data),isMore = true; if(res.data.length<10){ diff --git a/pages/user/profile/index.js b/pages/user/profile/index.js index ffd5591..027e653 100644 --- a/pages/user/profile/index.js +++ b/pages/user/profile/index.js @@ -183,7 +183,7 @@ Page({ * 生命周期函数--监听页面显示 */ onShow: function () { - userApi.user_post("user/getMyInfo",{}).then(res=>{ + userApi.user_post("user/getMyInfo",{tm_flag: true}).then(res=>{ this.setData({ info:res.data, avatar:res.data.avatar, diff --git a/utils/https.js b/utils/https.js index 4ecfe51..9dbc3ee 100644 --- a/utils/https.js +++ b/utils/https.js @@ -1,8 +1,8 @@ var app = getApp(); import util from "../utils/util" // import userApi from "../utils/https/user.js"; -// const baseUrl = "https://test.api.cloud.sz-trip.com/api/"; -let baseUrl = "https://api.cloud.sz-trip.com/api/"; +const baseUrl = "https://test.api.cloud.sz-trip.com/api/"; +// let baseUrl = "https://api.cloud.sz-trip.com/api/"; const env = wx.getAccountInfoSync().miniProgram.envVersion if (env == 'develop1') { baseUrl = "https://test.api.cloud.sz-trip.com/api/"