forked from angelo/web-retail-h5
feat(order): 移除奖衔展示,添加确认收货按钮
This commit is contained in:
parent
3e3399c1ed
commit
41e3f87453
|
@ -50,3 +50,7 @@ export const validRelation = params =>
|
|||
// 升级订单
|
||||
export const upgradeOrder = data =>
|
||||
http.post('/sale/api/retail-order/confirm-upg-order', data)
|
||||
|
||||
// 确认收货
|
||||
export const confirmReceipt = orderCode =>
|
||||
http.put(`/sale/api/my-order/confirm/${orderCode}`)
|
||||
|
|
|
@ -20,7 +20,7 @@ module.exports = vm => {
|
|||
|
||||
//#ifdef DEV_SERVER
|
||||
console.log('DEV_SERVER')
|
||||
config.baseURL = 'http://t-app.beida777.com/prod-api'
|
||||
config.baseURL = 'http://192.168.0.104:8080'
|
||||
//#endif
|
||||
|
||||
//#ifdef QA_SERVER
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"name": "retail-h5",
|
||||
"name" : "retail-store-h5",
|
||||
"appid" : "__UNI__31B4587",
|
||||
"description" : "",
|
||||
"versionName" : "1.0.0",
|
||||
|
@ -45,11 +45,7 @@
|
|||
"<uses-feature android:name=\"android.hardware.camera\"/>",
|
||||
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
|
||||
],
|
||||
"abiFilters": [
|
||||
"armeabi-v7a",
|
||||
"arm64-v8a",
|
||||
"x86"
|
||||
]
|
||||
"abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ]
|
||||
},
|
||||
/* ios打包配置 */
|
||||
"ios" : {
|
||||
|
@ -93,7 +89,7 @@
|
|||
},
|
||||
"devServer" : {
|
||||
"https" : false,
|
||||
"port": 8899,
|
||||
"port" : 8999,
|
||||
"proxy" : {
|
||||
"/prod-api" : {
|
||||
"target" : "http://t-mana.beida777.com",
|
||||
|
|
|
@ -98,7 +98,7 @@
|
|||
ref="child2"
|
||||
@childMethodTrigger="callChildMethod"
|
||||
></znNewsPopup>
|
||||
<RegionSelect v-if="userInfo.memberCode != 'BF66886688'" />
|
||||
<!-- <RegionSelect v-if="userInfo.memberCode != 'BF66886688'" /> -->
|
||||
<!-- 直推排行弹窗
|
||||
<directrank-popup
|
||||
@callznMethodTrigger="callznMethod"
|
||||
|
|
|
@ -22,9 +22,8 @@
|
|||
<text class="svip-text">{{ userInfo.pkGradeVal || '-' }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="awards-container">
|
||||
<!-- <view class="awards-container">
|
||||
<view class="award-tag">
|
||||
<!-- <u-icon name="star-fill" color="#FAD65A" size="14"></u-icon> -->
|
||||
<text class="award-label">荣誉奖衔:</text>
|
||||
<text class="award-value">{{
|
||||
userInfo.pkMaxAwardsVal || userInfo.pkAwardsVal || '无'
|
||||
|
@ -32,7 +31,6 @@
|
|||
</view>
|
||||
<view style="display: flex; gap: 10rpx">
|
||||
<view class="award-tag">
|
||||
<!-- <u-icon name="star-fill" color="#FAD65A" size="14"></u-icon> -->
|
||||
<text class="award-label">当月奖衔:</text>
|
||||
<text class="award-value">{{
|
||||
userInfo.pkAwardsVal || '无'
|
||||
|
@ -43,7 +41,7 @@
|
|||
<text class="award-value">{{ userInfo.pkRangeAwardsVal }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view> -->
|
||||
</view>
|
||||
</view>
|
||||
<view
|
||||
|
@ -338,11 +336,11 @@
|
|||
</u-button>
|
||||
</view>
|
||||
</u-popup>
|
||||
<RegionSelect
|
||||
<!-- <RegionSelect
|
||||
v-if="isNormal"
|
||||
ref="regionSelect"
|
||||
@success="getRegionSelect"
|
||||
/>
|
||||
/> -->
|
||||
<!-- <talentList :drShow="drShow" @closeShow="closeShow"></talentList> -->
|
||||
</view>
|
||||
</template>
|
||||
|
@ -480,7 +478,7 @@ export default {
|
|||
return
|
||||
}
|
||||
this.isNormal = isNormal
|
||||
this.getRegionSelect()
|
||||
// this.getRegionSelect()
|
||||
this.getMemberBoxCount()
|
||||
this.getMarketDynamicBoxCount()
|
||||
// this.getUserAwardss()
|
||||
|
|
|
@ -104,6 +104,15 @@
|
|||
:text="'查看物流'"
|
||||
color="#005BAC"
|
||||
></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>
|
||||
|
@ -493,6 +502,34 @@ export default {
|
|||
this.cancelCode = val.orderCode
|
||||
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) {
|
||||
uni.showLoading({
|
||||
title: '加载中',
|
||||
|
|
Loading…
Reference in New Issue