Commit e36104c6 authored by zhengke's avatar zhengke

no message

parent e9971d05
......@@ -43,7 +43,7 @@
:action="action"
:file-list="fileList"
max-count="1" :custom-btn="true"
@on-success="uploadSuccessHandler">
@on-success="uploadSuccessHandlerA">
<view slot="addBtn" class="slot-btn">
<u-icon name="photograph" size="40" color="#ffffff"></u-icon>
</view>
......@@ -58,7 +58,7 @@
:action="action"
:file-list="fileList"
max-count="1" :custom-btn="true"
@on-success="uploadSuccessHandler">
@on-success="uploadSuccessHandlerB">
<view slot="addBtn" class="slot-btn">
<u-icon name="photograph" size="40" color="#ffffff"></u-icon>
</view>
......@@ -73,7 +73,7 @@
:action="action"
:file-list="fileList"
max-count="1" :custom-btn="true"
@on-success="uploadSuccessHandler">
@on-success="uploadSuccessHandlerC">
<view slot="addBtn" class="slot-btn">
<u-icon name="photograph" size="40" color="#ffffff"></u-icon>
</view>
......@@ -100,8 +100,8 @@
class="uploadImg"
:action="action"
:file-list="fileList"
max-count="1" :custom-btn="true"
@on-success="uploadSuccessHandler">
max-count="9" :custom-btn="true"
@on-success="uploadSuccessHandlerD">
<view slot="addBtn" class="slot-btn">
<u-icon name="photograph" size="40" color="#ffffff"></u-icon>
</view>
......@@ -146,6 +146,7 @@
navHeight: 0,
contentHeight: 0,
fileList:[],
action:'',
msg:{
Content:''
}
......@@ -158,6 +159,11 @@
},
onLoad(option) {
this.navHeight = this.$navHeight - 2;
let MallBaseId = uni.getStorageSync("mall_UserInfo").MallBaseId
? uni.getStorageSync("mall_UserInfo").MallBaseId
: 1;
this.action =
this.host2 + "/api/File/UploadTencent?MallBaseId=" + MallBaseId;
},
mounted() {
let currentPages = getCurrentPages();
......@@ -178,9 +184,19 @@
});
},
methods: {
uploadSuccessHandler(){
}
uploadSuccessHandlerA(data, index, lists) {
let r = JSON.parse(data);
// this.data.Photo = r.data;
},
uploadSuccessHandlerB(data, index, lists) {
let r = JSON.parse(data);
},
uploadSuccessHandlerC(data, index, lists) {
let r = JSON.parse(data);
},
uploadSuccessHandlerD(data, index, lists) {
let r = JSON.parse(data);
},
},
};
</script>
......
......@@ -67,8 +67,8 @@
<u-button shape="circle" size="medium" :custom-style="customStyle" v-on:click.stop="cancel()">取消订单</u-button>
</view>
<u-button shape="circle" size="medium" :custom-style="themCustomStyle" v-on:click.stop="payment()">立即支付</u-button>
<u-button shape="circle" size="medium" :custom-style=" payBtn ?customStyle : themCustomStyle" @click.stop="buy()">再次购买</u-button>
<u-button shape="circle" size="medium" :custom-style="customStyle" @click="shouhuoHandler()">确认收货</u-button>
<!-- <u-button shape="circle" size="medium" :custom-style=" payBtn ?customStyle : themCustomStyle" @click.stop="buy()">再次购买</u-button>
<u-button shape="circle" size="medium" :custom-style="customStyle" @click="shouhuoHandler()">确认收货</u-button> -->
</view>
</view>
</view>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment