Browse Source

Merge branch 'master' into dev_master

master
jiazhipeng 9 months ago
parent
commit
742b90153d
  1. 2
      pages/index/index.js
  2. 6
      pages/index/index.wxml
  3. 7
      pages/index/index.wxss
  4. 3
      pages/order/components/contact/index.js
  5. 34
      pages/order/components/contact/index.wxss
  6. 2
      pages/user/address/index.js
  7. 3
      pages/user/linkman/index.js
  8. 2
      pages/user/profile/index.js

2
pages/index/index.js

@ -871,7 +871,7 @@ Page({
tag_id: 85,offset: 0,limit: 5, tag_id: 85,offset: 0,limit: 5,
}).then(res=>{ }).then(res=>{
let resData = res.data.list || [] 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}) this.setData({ list: resData})
}) })
}, },

6
pages/index/index.wxml

@ -249,11 +249,11 @@
<view class="hot-list-item" wx:for="{{2}}" wx:for-index="number" wx:key="number"> <view class="hot-list-item" wx:for="{{2}}" wx:for-index="number" wx:key="number">
<view wx:for="{{repurchaseList}}" wx:if="{{index%2==number}}" bindtap="gotoDetail" data-item="{{item}}" wx:key="id"> <view wx:for="{{repurchaseList}}" wx:if="{{index%2==number}}" bindtap="gotoDetail" data-item="{{item}}" wx:key="id">
<view class="hot-item"> <view class="hot-item">
<view style="position:relative"> <view style="position:relative;flex-shrink: 0;">
<common-image width="100%" src="{{item.headimg}}" mode="widthFix"></common-image> <common-image width="100%" src="{{item.headimg}}" mode="aspectFill"></common-image>
</view> </view>
<view class="hot-info"> <view class="hot-info">
<view class="hot-title">{{item.title}}</view> <view class="hot-title textOver2">{{item.title}}</view>
<view class="com-flex" style="justify-content: space-between;margin-top: 26rpx;"> <view class="com-flex" style="justify-content: space-between;margin-top: 26rpx;">
<view class="hot-price"> <view class="hot-price">
<text>¥</text><text>{{item.price/100}}</text><text>起</text> <text>¥</text><text>{{item.price/100}}</text><text>起</text>

7
pages/index/index.wxss

@ -477,14 +477,21 @@
/* box-shadow: -1rpx 1rpx 16rpx 0px rgba(6, 0, 1, 0.1); */ /* box-shadow: -1rpx 1rpx 16rpx 0px rgba(6, 0, 1, 0.1); */
border-radius: 15rpx; border-radius: 15rpx;
margin-bottom: 15rpx; margin-bottom: 15rpx;
height: 498rpx;
} }
.hot-item image:nth-child(1) { .hot-item image:nth-child(1) {
display: block; display: block;
width: 100%; width: 100%;
height: 327rpx;
border-radius: 15rpx 15rpx 0 0; border-radius: 15rpx 15rpx 0 0;
} }
.hot-item .hot-info { .hot-item .hot-info {
padding: 12rpx; padding: 12rpx;
height: 170rpx;
display: flex;
flex-direction: column;
justify-content: space-between;
box-sizing: border-box;
} }
.hot-item .hot-title { .hot-item .hot-title {
font-weight: bold; font-weight: bold;

3
pages/order/components/contact/index.js

@ -433,7 +433,8 @@ Component({
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=>{

34
pages/order/components/contact/index.wxss

@ -277,4 +277,36 @@
font-size: 29rpx; font-size: 29rpx;
color: #000000; color: #000000;
flex-shrink: 0; flex-shrink: 0;
} }
.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;
}

2
pages/user/address/index.js

@ -48,7 +48,7 @@ Page({
user.user_post("user/getContactOrConsignee",{ user.user_post("user/getContactOrConsignee",{
contactType:"CONSIGNEE", contactType:"CONSIGNEE",
offset: this.data.list.length, offset: this.data.list.length,
limit:10 limit:10,
}).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){

3
pages/user/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){

2
pages/user/profile/index.js

@ -183,7 +183,7 @@ Page({
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
onShow: function () { onShow: function () {
userApi.user_post("user/getMyInfo",{}).then(res=>{ userApi.user_post("user/getMyInfo",{tm_flag: true}).then(res=>{
this.setData({ this.setData({
info:res.data, info:res.data,
avatar:res.data.avatar, avatar:res.data.avatar,

Loading…
Cancel
Save