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 =>
|
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}`)
|
||||||
|
|
|
@ -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
|
||||||
|
|
120
manifest.json
120
manifest.json
|
@ -1,34 +1,34 @@
|
||||||
{
|
{
|
||||||
"name": "retail-h5",
|
"name" : "retail-store-h5",
|
||||||
"appid": "__UNI__31B4587",
|
"appid" : "__UNI__31B4587",
|
||||||
"description": "",
|
"description" : "",
|
||||||
"versionName": "1.0.0",
|
"versionName" : "1.0.0",
|
||||||
"versionCode": "100",
|
"versionCode" : "100",
|
||||||
"transformPx": false,
|
"transformPx" : false,
|
||||||
/* 5+App特有相关 */
|
/* 5+App特有相关 */
|
||||||
"app-plus": {
|
"app-plus" : {
|
||||||
"usingComponents": true,
|
"usingComponents" : true,
|
||||||
"nvueStyleCompiler": "uni-app",
|
"nvueStyleCompiler" : "uni-app",
|
||||||
"compilerVersion": 3,
|
"compilerVersion" : 3,
|
||||||
"splashscreen": {
|
"splashscreen" : {
|
||||||
"alwaysShowBeforeRender": true,
|
"alwaysShowBeforeRender" : true,
|
||||||
"waiting": true,
|
"waiting" : true,
|
||||||
"autoclose": true,
|
"autoclose" : true,
|
||||||
"delay": 0
|
"delay" : 0
|
||||||
},
|
},
|
||||||
/* 模块配置 */
|
/* 模块配置 */
|
||||||
"modules": {
|
"modules" : {
|
||||||
"Bluetooth": {},
|
"Bluetooth" : {},
|
||||||
"Barcode": {},
|
"Barcode" : {},
|
||||||
"Camera": {},
|
"Camera" : {},
|
||||||
"Fingerprint": {},
|
"Fingerprint" : {},
|
||||||
"FaceID": {}
|
"FaceID" : {}
|
||||||
},
|
},
|
||||||
/* 应用发布信息 */
|
/* 应用发布信息 */
|
||||||
"distribute": {
|
"distribute" : {
|
||||||
/* android打包配置 */
|
/* android打包配置 */
|
||||||
"android": {
|
"android" : {
|
||||||
"permissions": [
|
"permissions" : [
|
||||||
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
|
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
|
||||||
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
|
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
|
||||||
"<uses-permission android:name=\"android.permission.VIBRATE\"/>",
|
"<uses-permission android:name=\"android.permission.VIBRATE\"/>",
|
||||||
|
@ -45,62 +45,58 @@
|
||||||
"<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" : {
|
||||||
"dSYMs": false
|
"dSYMs" : false
|
||||||
},
|
},
|
||||||
/* SDK配置 */
|
/* SDK配置 */
|
||||||
"sdkConfigs": {
|
"sdkConfigs" : {
|
||||||
"push": {}
|
"push" : {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
/* 快应用特有相关 */
|
/* 快应用特有相关 */
|
||||||
"quickapp": {},
|
"quickapp" : {},
|
||||||
/* 小程序特有相关 */
|
/* 小程序特有相关 */
|
||||||
"mp-weixin": {
|
"mp-weixin" : {
|
||||||
"appid": "wxe26d23c09932e93b",
|
"appid" : "wxe26d23c09932e93b",
|
||||||
"setting": {
|
"setting" : {
|
||||||
"urlCheck": false,
|
"urlCheck" : false,
|
||||||
"es6": false,
|
"es6" : false,
|
||||||
"minified": false
|
"minified" : false
|
||||||
},
|
},
|
||||||
"usingComponents": true
|
"usingComponents" : true
|
||||||
},
|
},
|
||||||
"mp-alipay": {
|
"mp-alipay" : {
|
||||||
"usingComponents": true
|
"usingComponents" : true
|
||||||
},
|
},
|
||||||
"mp-baidu": {
|
"mp-baidu" : {
|
||||||
"usingComponents": true
|
"usingComponents" : true
|
||||||
},
|
},
|
||||||
"mp-toutiao": {
|
"mp-toutiao" : {
|
||||||
"usingComponents": true
|
"usingComponents" : true
|
||||||
},
|
},
|
||||||
"uniStatistics": {
|
"uniStatistics" : {
|
||||||
"enable": false
|
"enable" : false
|
||||||
},
|
},
|
||||||
"vueVersion": "2",
|
"vueVersion" : "2",
|
||||||
"h5": {
|
"h5" : {
|
||||||
"template": "index.html",
|
"template" : "index.html",
|
||||||
"router": {
|
"router" : {
|
||||||
"mode": "hash"
|
"mode" : "hash"
|
||||||
},
|
},
|
||||||
"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",
|
||||||
"changeOrigin": true
|
"changeOrigin" : true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"fallbackLocale": "zh-Hans"
|
"fallbackLocale" : "zh-Hans"
|
||||||
}
|
}
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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()
|
||||||
|
|
|
@ -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: '加载中',
|
||||||
|
|
Loading…
Reference in New Issue