3
0
Fork 0

feat(order): 移除奖衔展示,添加确认收货按钮

This commit is contained in:
woody 2025-06-20 14:30:25 +08:00
parent 3e3399c1ed
commit 41e3f87453
6 changed files with 106 additions and 71 deletions

View File

@ -50,3 +50,7 @@ export const validRelation = params =>
// 升级订单 // 升级订单
export const upgradeOrder = data => export const upgradeOrder = data =>
http.post('/sale/api/retail-order/confirm-upg-order', data) http.post('/sale/api/retail-order/confirm-upg-order', data)
// 确认收货
export const confirmReceipt = orderCode =>
http.put(`/sale/api/my-order/confirm/${orderCode}`)

View File

@ -20,7 +20,7 @@ module.exports = vm => {
//#ifdef DEV_SERVER //#ifdef DEV_SERVER
console.log('DEV_SERVER') console.log('DEV_SERVER')
config.baseURL = 'http://t-app.beida777.com/prod-api' config.baseURL = 'http://192.168.0.104:8080'
//#endif //#endif
//#ifdef QA_SERVER //#ifdef QA_SERVER

View File

@ -1,5 +1,5 @@
{ {
"name": "retail-h5", "name" : "retail-store-h5",
"appid" : "__UNI__31B4587", "appid" : "__UNI__31B4587",
"description" : "", "description" : "",
"versionName" : "1.0.0", "versionName" : "1.0.0",
@ -45,11 +45,7 @@
"<uses-feature android:name=\"android.hardware.camera\"/>", "<uses-feature android:name=\"android.hardware.camera\"/>",
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>" "<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
], ],
"abiFilters": [ "abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ]
"armeabi-v7a",
"arm64-v8a",
"x86"
]
}, },
/* ios */ /* ios */
"ios" : { "ios" : {
@ -93,7 +89,7 @@
}, },
"devServer" : { "devServer" : {
"https" : false, "https" : false,
"port": 8899, "port" : 8999,
"proxy" : { "proxy" : {
"/prod-api" : { "/prod-api" : {
"target" : "http://t-mana.beida777.com", "target" : "http://t-mana.beida777.com",

View File

@ -98,7 +98,7 @@
ref="child2" ref="child2"
@childMethodTrigger="callChildMethod" @childMethodTrigger="callChildMethod"
></znNewsPopup> ></znNewsPopup>
<RegionSelect v-if="userInfo.memberCode != 'BF66886688'" /> <!-- <RegionSelect v-if="userInfo.memberCode != 'BF66886688'" /> -->
<!-- 直推排行弹窗 <!-- 直推排行弹窗
<directrank-popup <directrank-popup
@callznMethodTrigger="callznMethod" @callznMethodTrigger="callznMethod"

View File

@ -22,9 +22,8 @@
<text class="svip-text">{{ userInfo.pkGradeVal || '-' }}</text> <text class="svip-text">{{ userInfo.pkGradeVal || '-' }}</text>
</view> </view>
</view> </view>
<view class="awards-container"> <!-- <view class="awards-container">
<view class="award-tag"> <view class="award-tag">
<!-- <u-icon name="star-fill" color="#FAD65A" size="14"></u-icon> -->
<text class="award-label">荣誉奖衔:</text> <text class="award-label">荣誉奖衔:</text>
<text class="award-value">{{ <text class="award-value">{{
userInfo.pkMaxAwardsVal || userInfo.pkAwardsVal || '无' userInfo.pkMaxAwardsVal || userInfo.pkAwardsVal || '无'
@ -32,7 +31,6 @@
</view> </view>
<view style="display: flex; gap: 10rpx"> <view style="display: flex; gap: 10rpx">
<view class="award-tag"> <view class="award-tag">
<!-- <u-icon name="star-fill" color="#FAD65A" size="14"></u-icon> -->
<text class="award-label">当月奖衔:</text> <text class="award-label">当月奖衔:</text>
<text class="award-value">{{ <text class="award-value">{{
userInfo.pkAwardsVal || '无' userInfo.pkAwardsVal || '无'
@ -43,7 +41,7 @@
<text class="award-value">{{ userInfo.pkRangeAwardsVal }}</text> <text class="award-value">{{ userInfo.pkRangeAwardsVal }}</text>
</view> </view>
</view> </view>
</view> </view> -->
</view> </view>
</view> </view>
<view <view
@ -338,11 +336,11 @@
</u-button> </u-button>
</view> </view>
</u-popup> </u-popup>
<RegionSelect <!-- <RegionSelect
v-if="isNormal" v-if="isNormal"
ref="regionSelect" ref="regionSelect"
@success="getRegionSelect" @success="getRegionSelect"
/> /> -->
<!-- <talentList :drShow="drShow" @closeShow="closeShow"></talentList> --> <!-- <talentList :drShow="drShow" @closeShow="closeShow"></talentList> -->
</view> </view>
</template> </template>
@ -480,7 +478,7 @@ export default {
return return
} }
this.isNormal = isNormal this.isNormal = isNormal
this.getRegionSelect() // this.getRegionSelect()
this.getMemberBoxCount() this.getMemberBoxCount()
this.getMarketDynamicBoxCount() this.getMarketDynamicBoxCount()
// this.getUserAwardss() // this.getUserAwardss()

View File

@ -104,6 +104,15 @@
:text="'查看物流'" :text="'查看物流'"
color="#005BAC" color="#005BAC"
></u-button> ></u-button>
<u-button
type="primary"
v-if="item.orderStatus == 3"
@click="confirmReceipt(item)"
shape="circle"
style="margin-left: 10px"
:text="'确认收货'"
color="#005BAC"
></u-button>
</view> </view>
</view> </view>
</view> </view>
@ -493,6 +502,34 @@ export default {
this.cancelCode = val.orderCode this.cancelCode = val.orderCode
this.cancleOrder = true this.cancleOrder = true
}, },
confirmReceipt(item) {
uni.showModal({
title: '提示',
content: '确认收货?',
success: res => {
if (res.confirm) {
api.confirmReceipt(item.orderCode).then(res => {
if (res.code == 200) {
uni.showToast({
title: '确认收货成功',
icon: 'none',
duration: 1500,
})
this.queryParams.pageNum = 1
this.orderLists = []
this.getDataList()
} else {
uni.showToast({
title: res.msg,
icon: 'none',
duration: 1500,
})
}
})
}
},
})
},
getDetails(item) { getDetails(item) {
uni.showLoading({ uni.showLoading({
title: '加载中', title: '加载中',