Commit e36104c6 authored by zhengke's avatar zhengke

no message

parent e9971d05
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
:action="action" :action="action"
:file-list="fileList" :file-list="fileList"
max-count="1" :custom-btn="true" max-count="1" :custom-btn="true"
@on-success="uploadSuccessHandler"> @on-success="uploadSuccessHandlerA">
<view slot="addBtn" class="slot-btn"> <view slot="addBtn" class="slot-btn">
<u-icon name="photograph" size="40" color="#ffffff"></u-icon> <u-icon name="photograph" size="40" color="#ffffff"></u-icon>
</view> </view>
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
:action="action" :action="action"
:file-list="fileList" :file-list="fileList"
max-count="1" :custom-btn="true" max-count="1" :custom-btn="true"
@on-success="uploadSuccessHandler"> @on-success="uploadSuccessHandlerB">
<view slot="addBtn" class="slot-btn"> <view slot="addBtn" class="slot-btn">
<u-icon name="photograph" size="40" color="#ffffff"></u-icon> <u-icon name="photograph" size="40" color="#ffffff"></u-icon>
</view> </view>
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
:action="action" :action="action"
:file-list="fileList" :file-list="fileList"
max-count="1" :custom-btn="true" max-count="1" :custom-btn="true"
@on-success="uploadSuccessHandler"> @on-success="uploadSuccessHandlerC">
<view slot="addBtn" class="slot-btn"> <view slot="addBtn" class="slot-btn">
<u-icon name="photograph" size="40" color="#ffffff"></u-icon> <u-icon name="photograph" size="40" color="#ffffff"></u-icon>
</view> </view>
...@@ -100,8 +100,8 @@ ...@@ -100,8 +100,8 @@
class="uploadImg" class="uploadImg"
:action="action" :action="action"
:file-list="fileList" :file-list="fileList"
max-count="1" :custom-btn="true" max-count="9" :custom-btn="true"
@on-success="uploadSuccessHandler"> @on-success="uploadSuccessHandlerD">
<view slot="addBtn" class="slot-btn"> <view slot="addBtn" class="slot-btn">
<u-icon name="photograph" size="40" color="#ffffff"></u-icon> <u-icon name="photograph" size="40" color="#ffffff"></u-icon>
</view> </view>
...@@ -146,6 +146,7 @@ ...@@ -146,6 +146,7 @@
navHeight: 0, navHeight: 0,
contentHeight: 0, contentHeight: 0,
fileList:[], fileList:[],
action:'',
msg:{ msg:{
Content:'' Content:''
} }
...@@ -158,6 +159,11 @@ ...@@ -158,6 +159,11 @@
}, },
onLoad(option) { onLoad(option) {
this.navHeight = this.$navHeight - 2; 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() { mounted() {
let currentPages = getCurrentPages(); let currentPages = getCurrentPages();
...@@ -178,9 +184,19 @@ ...@@ -178,9 +184,19 @@
}); });
}, },
methods: { 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> </script>
......
...@@ -67,8 +67,8 @@ ...@@ -67,8 +67,8 @@
<u-button shape="circle" size="medium" :custom-style="customStyle" v-on:click.stop="cancel()">取消订单</u-button> <u-button shape="circle" size="medium" :custom-style="customStyle" v-on:click.stop="cancel()">取消订单</u-button>
</view> </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="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=" 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="customStyle" @click="shouhuoHandler()">确认收货</u-button> -->
</view> </view>
</view> </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