This commit is contained in:
Gdpao 2020-09-21 15:03:27 +08:00
parent 2f1b89c6a6
commit e2e5cf8b42
4 changed files with 16 additions and 7 deletions

View File

@ -14,7 +14,7 @@
<view class="status" v-else-if="info.view_type==5">已退款订单</view> <view class="status" v-else-if="info.view_type==5">已退款订单</view>
<view class="status" v-else-if="info.view_type==6">商家同意</view> <view class="status" v-else-if="info.view_type==6">商家同意</view>
<view class="status" v-else-if="info.view_type==7">商家拒绝</view> <view class="status" v-else-if="info.view_type==7">商家拒绝</view>
<view class="status" v-else-if="info.view_type==10">待支付</view> <view class="status" v-else-if="info.view_type==10">待支付订单</view>
</view> </view>
<view class="name u-line-1">{{info.extend_order_goods[0].goods_name}}</view> <view class="name u-line-1">{{info.extend_order_goods[0].goods_name}}</view>
<view class="info"> <view class="info">

View File

@ -23,7 +23,7 @@
<view class="info"> <view class="info">
<view class="num">{{ list.goods_num }}件商品</view> <view class="num">{{ list.goods_num }}件商品</view>
<view class="price"> <view class="price">
实付 {{ type == 10 ? "待支付" : "实付" }}
<span>{{ list.goods_pay_price }}</span> <span>{{ list.goods_pay_price }}</span>
</view> </view>
</view> </view>

View File

@ -61,7 +61,6 @@ export default {
}, },
onLoad() { onLoad() {
this.getCache(); this.getCache();
console.log(222);
}, },
onShow() { onShow() {
this.getmyinfo() this.getmyinfo()

View File

@ -87,7 +87,13 @@ export default {
}, },
// , // ,
chooseImage(sourceType) { chooseImage(sourceType) {
let that = this let that = this;
let photo_type = "";
if (this.role == 2) {
photo_type = "store_avatar"
} else {
photo_type = "avatar"
}
const token = uni.getStorageSync('token'); const token = uni.getStorageSync('token');
uni.chooseImage({ uni.chooseImage({
count: 1, count: 1,
@ -98,9 +104,10 @@ export default {
uni.uploadFile({ uni.uploadFile({
url: 'https://mall.dmygkeji.com/storeapi/Upload/uploadFile', url: 'https://mall.dmygkeji.com/storeapi/Upload/uploadFile',
filePath: tempFilePaths[0], filePath: tempFilePaths[0],
name: 'avatar', name: photo_type,
formData:{ formData:{
name:"avatar" name: photo_type,
store_id: that.info.store_id
}, },
header:{ header:{
Authorization:'Bearer' + " " + token Authorization:'Bearer' + " " + token
@ -111,7 +118,10 @@ export default {
that.filename = obj.data.file_name that.filename = obj.data.file_name
that.num++ that.num++
console.log(that.fileurl,that.filename) console.log(that.fileurl,that.filename)
} },
fail: (res) => {
console.log(res);
}
}); });
} }
}); });