半完成
This commit is contained in:
@@ -5,13 +5,22 @@ Component({
|
||||
cprice: String,
|
||||
freight: String,
|
||||
goods: Array,
|
||||
gid: String
|
||||
gid: String,
|
||||
type:String
|
||||
},
|
||||
data: {},
|
||||
methods: {
|
||||
todetail() {
|
||||
wx.navigateTo({
|
||||
url: "/pages/undetermined/undetermined"
|
||||
shouhuo(){
|
||||
bin.getuserid().then((id)=>{
|
||||
bin.request({
|
||||
url:"User/orderConfirm",
|
||||
urldata:{
|
||||
user_id:id,
|
||||
order_id:this.data.gid
|
||||
}
|
||||
}).then((res)=>{
|
||||
console.log(res)
|
||||
})
|
||||
})
|
||||
},
|
||||
cancel() {
|
||||
|
||||
@@ -1,12 +1,16 @@
|
||||
<view class="commodity" bindtap="todetail">
|
||||
<view class="commodity">
|
||||
<message wx:for="{{goods}}" title="{{item.goods_name}}" spec="{{item.spec_key_name}}" price="{{item.goods_price}}" num="{{item.goods_num}}" image="{{item.image}}"></message>
|
||||
<view class="aggregate">
|
||||
共计{{num}}件商品 合计:
|
||||
<text>¥{{cprice}}</text>
|
||||
(含运费¥{{freight}})
|
||||
</view>
|
||||
<view class="operation">
|
||||
<view class="operation" wx:if="{{type == 1}}">
|
||||
<view class="button" catch:tap="cancel">取消订单</view>
|
||||
<view class="button hlight" catch:tap="pay">立即付款</view>
|
||||
</view>
|
||||
<view class="operation" wx:if="{{type == 3}}">
|
||||
<!-- <view class="button" catch:tap="cancel">取消订单</view> -->
|
||||
<view class="button hlight" catch:tap="shouhuo">确认收货</view>
|
||||
</view>
|
||||
</view>
|
||||
Reference in New Issue
Block a user