|
|
@@ -6,11 +6,11 @@
|
|
|
</view>
|
|
|
<view class="address-des_bx content-box" @click="goToSettle(detailInfo)">
|
|
|
<view>
|
|
|
- <view> {{ detailInfo.ghsName }} {{ ghsInfo.telephone||'' }} </view>
|
|
|
+ <view> {{ detailInfo.ghsName }} {{ detailInfo.ghsMobile||'' }} </view>
|
|
|
<view>{{ detailInfo.ghsFullAddress}}</view>
|
|
|
</view>
|
|
|
<view>
|
|
|
- <i @click.stop="callUp(ghsInfo.telephone)" class="iconfont icondianhua1" style="margin-right:25upx;"></i>
|
|
|
+ <i @click.stop="callUp(detailInfo.ghsMobile)" class="iconfont icondianhua1" style="margin-right:25upx;"></i>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
@@ -302,7 +302,6 @@ export default {
|
|
|
form: {
|
|
|
name: ""
|
|
|
},
|
|
|
- ghsInfo:{},
|
|
|
detailInfo: {
|
|
|
ghsShopAdminId:0,
|
|
|
status:0,
|
|
|
@@ -445,19 +444,11 @@ export default {
|
|
|
initData (id) {
|
|
|
let that = this
|
|
|
return purchaseDetail({ id: id }).then(res => {
|
|
|
- this.detailInfo = res.data
|
|
|
- this.settlePrice = Number(this.detailInfo.bookPrice) - Number(this.detailInfo.orderPrice)
|
|
|
- this.settlePrice = parseFloat(this.settlePrice.toFixed(2))
|
|
|
- this.$forceUpdate()
|
|
|
-
|
|
|
- let ghsId = res.data.ghsId ? res.data.ghsId : 0
|
|
|
- getGhsDataApi({id: ghsId}).then(res => {
|
|
|
- if(res.code == 1){
|
|
|
- that.ghsInfo = res.data
|
|
|
- that.afterSale = res.data.afterSale
|
|
|
- }
|
|
|
- })
|
|
|
-
|
|
|
+ that.detailInfo = res.data
|
|
|
+ that.settlePrice = Number(that.detailInfo.bookPrice) - Number(that.detailInfo.orderPrice)
|
|
|
+ that.settlePrice = parseFloat(that.settlePrice.toFixed(2))
|
|
|
+ that.afterSale = res.data.afterSale
|
|
|
+ that.$forceUpdate()
|
|
|
})
|
|
|
},
|
|
|
toPay () {
|