@ -2,7 +2,8 @@
< view >
< view >
< view class = "order_nav" >
< view class = "order_nav" >
< scroll -view class = "scroll-view_H" scroll -x = " true " :show-scrollbar ="false" >
< scroll -view class = "scroll-view_H" scroll -x = " true " :show-scrollbar ="false" >
< view :class ="scroll_active==index?'scroll_active':''" v-for ="(item,index) in scrollList" @click="scrollChange(index)" :key ="index" > {{ item.text }} < / view >
< view :class ="scroll_active==index?'scroll_active':''" v -for = " ( item , index ) in scrollList "
@ click = "scrollChange(index)" : key = "index" > { { item . text } } < / view >
< / s c r o l l - v i e w >
< / s c r o l l - v i e w >
< / view >
< / view >
@ -18,9 +19,11 @@
<!-- 已取消订单 -- >
<!-- 已取消订单 -- >
< text v -else -if = " item.order_status_code = = 2 " > cancelled < / text >
< text v -else -if = " item.order_status_code = = 2 " > cancelled < / text >
<!-- 待发货订单 -- >
<!-- 待发货订单 -- >
< text v -else -if = " item.pay_status_code = = 2 & & item.shipping_status_code = = 0 " > To be shipped < / text >
< text v -else -if = " item.pay_status_code = = 2 & & item.shipping_status_code = = 0 " > To be
shipped < / text >
<!-- 运输中订单 -- >
<!-- 运输中订单 -- >
< text v -else -if = " item.pay_status_code = = 2 & & item.shipping_status_code = = 1 | | item.shipping_status_code = = 4 " > Shipped < / text >
< text
v - else - if = "item.pay_status_code==2 && item.shipping_status_code==1 || item.shipping_status_code==4" > Shipped < / text >
<!-- 已完成订单 -- >
<!-- 已完成订单 -- >
< text v -else -if = " item.pay_status_code = = 2 & & item.shipping_status_code = = 2 " > Completed < / text >
< text v -else -if = " item.pay_status_code = = 2 & & item.shipping_status_code = = 2 " > Completed < / text >
@ -31,7 +34,8 @@
< / view >
< / view >
< view class = "order_content" >
< view class = "order_content" >
< template v-if ="item.order_goods.length==1" >
< template v-if ="item.order_goods.length==1" >
< view class = "good_info" v-for ="(item1,index1) in item.order_goods" :key="index1" @click.stop="goGoodsDetails(item1.goods_id)" >
< view class = "good_info" v -for = " ( item1 , index1 ) in item.order_goods " :key ="index1"
@ click . stop = "goGoodsDetails(item1.goods_id)" >
< view class = "good_info_left " >
< view class = "good_info_left " >
< view class = "good_info_image" >
< view class = "good_info_image" >
< image :src ="item1.goods_img" mode = "" > < / image >
< image :src ="item1.goods_img" mode = "" > < / image >
@ -52,7 +56,8 @@
< template v-else >
< template v-else >
< view class = "good_info" @click.stop ="showGoods(item.order_goods,1)" >
< view class = "good_info" @click.stop ="showGoods(item.order_goods,1)" >
< view class = "good_info_left" >
< view class = "good_info_left" >
< view class = "good_info_image" v-for ="(item1,index1) in item.order_goods" :key ="index1" >
< view class = "good_info_image" v -for = " ( item1 , index1 ) in item.order_goods "
: key = "index1" >
< image :src ="item1.goods_img" mode = "" > < / image >
< image :src ="item1.goods_img" mode = "" > < / image >
< / view >
< / view >
< / view >
< / view >
@ -76,9 +81,11 @@
< button class = "pay" @click.stop ="payNow(item.order_id,0)" > PAY NOW < / button >
< button class = "pay" @click.stop ="payNow(item.order_id,0)" > PAY NOW < / button >
< / template >
< / template >
<!-- 已取消订单 -- >
<!-- 已取消订单 -- >
< button v-if ="item.order_status_code==2" class="cancel" @click.stop="openTips(item.order_id,1)" > DELETE ORDER < / button >
< button v -if = " item.order_status_code = = 2 " class = "cancel"
@ click . stop = "openTips(item.order_id,1)" > DELETE ORDER < / button >
<!-- 待发货订单 -- >
<!-- 待发货订单 -- >
< template v-if ="item.pay_status_code==2 && item.shipping_status_code==1 || item.shipping_status_code==4" >
< template
v - if = "item.pay_status_code==2 && item.shipping_status_code==1 || item.shipping_status_code==4" >
< button class = "cancel" @click.stop ="goLogistics(item.order_id)" > LOGISTICS < / button >
< button class = "cancel" @click.stop ="goLogistics(item.order_id)" > LOGISTICS < / button >
< button class = "pay" @click.stop ="openTips(item.order_id,2)" > CONFIRM RECEIPT < / button >
< button class = "pay" @click.stop ="openTips(item.order_id,2)" > CONFIRM RECEIPT < / button >
< / template >
< / template >
@ -86,7 +93,8 @@
< template v-if ="item.pay_status_code==2 && item.shipping_status_code==2" >
< template v-if ="item.pay_status_code==2 && item.shipping_status_code==2" >
< button class = "cancel" @click.stop ="goLogistics(item.order_id)" > LOGISTICS < / button >
< button class = "cancel" @click.stop ="goLogistics(item.order_id)" > LOGISTICS < / button >
< button class = "cancel" @click.stop ="openTips(item.order_id,1)" > DELETE ORDER < / button >
< button class = "cancel" @click.stop ="openTips(item.order_id,1)" > DELETE ORDER < / button >
< button class = "pay" @click.stop ="goComment(item)" v-if ="item.comment_status_code==0" > COMMENT < / button >
< button class = "pay" @click.stop ="goComment(item)"
v - if = "item.comment_status_code==0" > COMMENT < / button >
< / template >
< / template >
< / view >
< / view >
< / view >
< / view >
@ -98,7 +106,8 @@
<!-- 待支付订单 -- >
<!-- 待支付订单 -- >
< template v-if ="isList==true && scroll_active==1" >
< template v-if ="isList==true && scroll_active==1" >
< view class = "" v-for ="(item,idnex) in orderList" :key="item.order_id" >
< view class = "" v-for ="(item,idnex) in orderList" :key="item.order_id" >
< view class = "order" @click ="goDetails(item,item.order_id)" v-if ="item.pay_status_code==0 && item.order_status_code==0" >
< view class = "order" @click ="goDetails(item,item.order_id)"
v - if = "item.pay_status_code==0 && item.order_status_code==0" >
< view class = "order_title" >
< view class = "order_title" >
< text > Waiting for payment < / text >
< text > Waiting for payment < / text >
< view class = "order_title_right" >
< view class = "order_title_right" >
@ -108,7 +117,8 @@
< / view >
< / view >
< view class = "order_content" >
< view class = "order_content" >
< template v-if ="item.order_goods.length==1" >
< template v-if ="item.order_goods.length==1" >
< view class = "good_info" v-for ="(item1,index1) in item.order_goods" :key="index1" @click.stop="goGoodsDetails(item1.goods_id)" >
< view class = "good_info" v -for = " ( item1 , index1 ) in item.order_goods " :key ="index1"
@ click . stop = "goGoodsDetails(item1.goods_id)" >
< view class = "good_info_left " >
< view class = "good_info_left " >
< view class = "good_info_image" >
< view class = "good_info_image" >
< image :src ="item1.goods_img" mode = "" > < / image >
< image :src ="item1.goods_img" mode = "" > < / image >
@ -129,7 +139,8 @@
< template v-else >
< template v-else >
< view class = "good_info" @click.stop ="showGoods(item.order_goods,1)" >
< view class = "good_info" @click.stop ="showGoods(item.order_goods,1)" >
< view class = "good_info_left" >
< view class = "good_info_left" >
< view class = "good_info_image" v-for ="(item1,index1) in item.order_goods" :key ="index1" >
< view class = "good_info_image" v -for = " ( item1 , index1 ) in item.order_goods "
: key = "index1" >
< image :src ="item1.goods_img" mode = "" > < / image >
< image :src ="item1.goods_img" mode = "" > < / image >
< / view >
< / view >
< / view >
< / view >
@ -159,7 +170,8 @@
<!-- 待发货订单 -- >
<!-- 待发货订单 -- >
< template v-if ="isList==true && scroll_active==2" >
< template v-if ="isList==true && scroll_active==2" >
< view v-for ="(item,idnex) in orderList" :key="item.order_id" >
< view v-for ="(item,idnex) in orderList" :key="item.order_id" >
< view class = "order" v-if ="item.pay_status_code==2 && item.shipping_status_code==0" @click="goDetails(item,item.order_id)" >
< view class = "order" v -if = " item.pay_status_code = = 2 & & item.shipping_status_code = = 0 "
@ click = "goDetails(item,item.order_id)" >
< view class = "order_title" >
< view class = "order_title" >
< text > To be shipped < / text >
< text > To be shipped < / text >
< view class = "order_title_right" >
< view class = "order_title_right" >
@ -169,7 +181,8 @@
< / view >
< / view >
< view class = "order_content" >
< view class = "order_content" >
< template v-if ="item.order_goods.length==1" >
< template v-if ="item.order_goods.length==1" >
< view class = "good_info" v-for ="(item1,index1) in item.order_goods" :key="index1" @click.stop="goGoodsDetails(item1.goods_id)" >
< view class = "good_info" v -for = " ( item1 , index1 ) in item.order_goods " :key ="index1"
@ click . stop = "goGoodsDetails(item1.goods_id)" >
< view class = "good_info_left " >
< view class = "good_info_left " >
< view class = "good_info_image" >
< view class = "good_info_image" >
< image :src ="item1.goods_img" mode = "" > < / image >
< image :src ="item1.goods_img" mode = "" > < / image >
@ -190,7 +203,8 @@
< template v-else >
< template v-else >
< view class = "good_info" @click.stop ="showGoods(item.order_goods,1)" >
< view class = "good_info" @click.stop ="showGoods(item.order_goods,1)" >
< view class = "good_info_left" >
< view class = "good_info_left" >
< view class = "good_info_image" v-for ="(item1,index1) in item.order_goods" :key ="index1" >
< view class = "good_info_image" v -for = " ( item1 , index1 ) in item.order_goods "
: key = "index1" >
< image :src ="item1.goods_img" mode = "" > < / image >
< image :src ="item1.goods_img" mode = "" > < / image >
< / view >
< / view >
< / view >
< / view >
@ -210,7 +224,9 @@
<!-- 运输中订单 -- >
<!-- 运输中订单 -- >
< template v-if ="isList==true && scroll_active==3" >
< template v-if ="isList==true && scroll_active==3" >
< view v-for ="(item,idnex) in orderList" :key="item.order_id" >
< view v-for ="(item,idnex) in orderList" :key="item.order_id" >
< view class = "order" v-if ="item.pay_status_code==2 && item.shipping_status_code==1 || item.shipping_status_code==4" @click="goDetails(item,item.order_id)" >
< view class = "order"
v - if = "item.pay_status_code==2 && item.shipping_status_code==1 || item.shipping_status_code==4"
@ click = "goDetails(item,item.order_id)" >
< view class = "order_title" >
< view class = "order_title" >
< text > Shipped < / text >
< text > Shipped < / text >
< view class = "order_title_right" >
< view class = "order_title_right" >
@ -220,7 +236,8 @@
< / view >
< / view >
< view class = "order_content" >
< view class = "order_content" >
< template v-if ="item.order_goods.length==1" >
< template v-if ="item.order_goods.length==1" >
< view class = "good_info" v-for ="(item1,index1) in item.order_goods" :key="index1" @click.stop="goGoodsDetails(item1.goods_id)" >
< view class = "good_info" v -for = " ( item1 , index1 ) in item.order_goods " :key ="index1"
@ click . stop = "goGoodsDetails(item1.goods_id)" >
< view class = "good_info_left " >
< view class = "good_info_left " >
< view class = "good_info_image" >
< view class = "good_info_image" >
< image :src ="item1.goods_img" mode = "" > < / image >
< image :src ="item1.goods_img" mode = "" > < / image >
@ -241,7 +258,8 @@
< template v-else >
< template v-else >
< view class = "good_info" @click.stop ="showGoods(item.order_goods,1)" >
< view class = "good_info" @click.stop ="showGoods(item.order_goods,1)" >
< view class = "good_info_left" >
< view class = "good_info_left" >
< view class = "good_info_image" v-for ="(item1,index1) in item.order_goods" :key ="index1" >
< view class = "good_info_image" v -for = " ( item1 , index1 ) in item.order_goods "
: key = "index1" >
< image :src ="item1.goods_img" mode = "" > < / image >
< image :src ="item1.goods_img" mode = "" > < / image >
< / view >
< / view >
< / view >
< / view >
@ -265,7 +283,8 @@
<!-- 已完成订单 -- >
<!-- 已完成订单 -- >
< template v-if ="isList==true && scroll_active==5" >
< template v-if ="isList==true && scroll_active==5" >
< view class = "" v-for ="(item,idnex) in orderList" :key="item.order_id" >
< view class = "" v-for ="(item,idnex) in orderList" :key="item.order_id" >
< view class = "order " v-if ="item.pay_status_code==2 && item.shipping_status_code==2" @click="goDetails(item,item.order_id)" >
< view class = "order " v -if = " item.pay_status_code = = 2 & & item.shipping_status_code = = 2 "
@ click = "goDetails(item,item.order_id)" >
< view class = "order_title" >
< view class = "order_title" >
< text > Completed < / text >
< text > Completed < / text >
< view class = "order_title_right" >
< view class = "order_title_right" >
@ -275,7 +294,8 @@
< / view >
< / view >
< view class = "order_content" >
< view class = "order_content" >
< template v-if ="item.order_goods.length==1" >
< template v-if ="item.order_goods.length==1" >
< view class = "good_info" v-for ="(item1,index1) in item.order_goods" :key="index1" @click.stop="goGoodsDetails(item1.goods_id)" >
< view class = "good_info" v -for = " ( item1 , index1 ) in item.order_goods " :key ="index1"
@ click . stop = "goGoodsDetails(item1.goods_id)" >
< view class = "good_info_left " >
< view class = "good_info_left " >
< view class = "good_info_image" >
< view class = "good_info_image" >
< image :src ="item1.goods_img" mode = "" > < / image >
< image :src ="item1.goods_img" mode = "" > < / image >
@ -296,7 +316,8 @@
< template v-else >
< template v-else >
< view class = "good_info" @click.stop ="showGoods(item.order_goods,1)" >
< view class = "good_info" @click.stop ="showGoods(item.order_goods,1)" >
< view class = "good_info_left" >
< view class = "good_info_left" >
< view class = "good_info_image" v-for ="(item1,index1) in item.order_goods" :key ="index1" >
< view class = "good_info_image" v -for = " ( item1 , index1 ) in item.order_goods "
: key = "index1" >
< image :src ="item1.goods_img" mode = "" > < / image >
< image :src ="item1.goods_img" mode = "" > < / image >
< / view >
< / view >
< / view >
< / view >
@ -310,7 +331,8 @@
< view class = "order_button" >
< view class = "order_button" >
< button class = "cancel" @click.stop ="goLogistics(item.order_id)" > LOGISTICS < / button >
< button class = "cancel" @click.stop ="goLogistics(item.order_id)" > LOGISTICS < / button >
< button class = "cancel" @click.stop ="openTips(item.order_id,1)" > DELETE ORDER < / button >
< button class = "cancel" @click.stop ="openTips(item.order_id,1)" > DELETE ORDER < / button >
< button class = "pay" @click.stop ="goComment(item)" v-if ="item.comment_status_code==0" > COMMENT < / button >
< button class = "pay" @click.stop ="goComment(item)"
v - if = "item.comment_status_code==0" > COMMENT < / button >
< / view >
< / view >
< / view >
< / view >
< / view >
< / view >
@ -331,7 +353,8 @@
< / view >
< / view >
< view class = "order_content" >
< view class = "order_content" >
< template v-if ="item.order_goods.length==1" >
< template v-if ="item.order_goods.length==1" >
< view class = "good_info" v-for ="(item1,index1) in item.order_goods" :key="index1" @click.stop="goGoodsDetails(item1.goods_id)" >
< view class = "good_info" v -for = " ( item1 , index1 ) in item.order_goods " :key ="index1"
@ click . stop = "goGoodsDetails(item1.goods_id)" >
< view class = "good_info_left " >
< view class = "good_info_left " >
< view class = "good_info_image" >
< view class = "good_info_image" >
< image :src ="item1.goods_img" mode = "" > < / image >
< image :src ="item1.goods_img" mode = "" > < / image >
@ -352,7 +375,8 @@
< template v-else >
< template v-else >
< view class = "good_info" @click.stop ="showGoods(item.order_goods,1)" >
< view class = "good_info" @click.stop ="showGoods(item.order_goods,1)" >
< view class = "good_info_left" >
< view class = "good_info_left" >
< view class = "good_info_image" v-for ="(item1,index1) in item.order_goods" :key ="index1" >
< view class = "good_info_image" v -for = " ( item1 , index1 ) in item.order_goods "
: key = "index1" >
< image :src ="item1.goods_img" mode = "" > < / image >
< image :src ="item1.goods_img" mode = "" > < / image >
< / view >
< / view >
< / view >
< / view >
@ -385,7 +409,8 @@
< / view >
< / view >
< view class = "order_content" >
< view class = "order_content" >
< template v-if ="item.order_goods.length==1" >
< template v-if ="item.order_goods.length==1" >
< view class = "good_info" v-for ="(item1,index1) in item.order_goods" :key="index1" @click.stop="goGoodsDetails(item1.goods_id)" >
< view class = "good_info" v -for = " ( item1 , index1 ) in item.order_goods " :key ="index1"
@ click . stop = "goGoodsDetails(item1.goods_id)" >
< view class = "good_info_left " >
< view class = "good_info_left " >
< view class = "good_info_image" >
< view class = "good_info_image" >
< image :src ="item1.goods_img" mode = "" > < / image >
< image :src ="item1.goods_img" mode = "" > < / image >
@ -406,7 +431,8 @@
< template v-else >
< template v-else >
< view class = "good_info" @click.stop ="showGoods(item.order_goods,1)" >
< view class = "good_info" @click.stop ="showGoods(item.order_goods,1)" >
< view class = "good_info_left" >
< view class = "good_info_left" >
< view class = "good_info_image" v-for ="(item1,index1) in item.order_goods" :key ="index1" >
< view class = "good_info_image" v -for = " ( item1 , index1 ) in item.order_goods "
: key = "index1" >
< image :src ="item1.goods_img" mode = "" > < / image >
< image :src ="item1.goods_img" mode = "" > < / image >
< / view >
< / view >
< / view >
< / view >
@ -449,22 +475,24 @@
< / view >
< / view >
< view class = "order_popup_pay" >
< view class = "order_popup_pay" >
< view class = "pay_item" @click ="selectPay(0)" >
< view class = "pay_item" @click ="selectPay(0)" >
< image src = "../../static/img/select1.png" mode = "" class = "pay_item_select" v-if ="pay_index==0" > < / image >
< image src = "../../static/img/select1.png" mode = "" class = "pay_item_select" v-if ="pay_index==0" >
< / image >
< image src = "../../static/img/select2.png" mode = "" class = "pay_item_select" v-else > < / image >
< image src = "../../static/img/select2.png" mode = "" class = "pay_item_select" v-else > < / image >
< view class = "pay_item_right" >
< view class = "pay_item_right" >
< image src = "../../static/img/pay_pal.png" mode = "" > < / image >
< image src = "../../static/img/pay_pal.png" mode = "" > < / image >
< text > Pay Pal < / text >
< text > Pay Pal < / text >
< / view >
< / view >
< / view >
< / view >
<!-- < view class = "pay_item" @click ="selectPay(1)" >
< view class = "pay_item" @click ="selectPay(1)" >
< image src = "../../static/img/select1.png" mode = "" class = "pay_item_select" v-if ="pay_index==1" > < / image >
< image src = "../../static/img/select1.png" mode = "" class = "pay_item_select" v-if ="pay_index==1" >
< / image >
< image src = "../../static/img/select2.png" mode = "" class = "pay_item_select" v-else > < / image >
< image src = "../../static/img/select2.png" mode = "" class = "pay_item_select" v-else > < / image >
< view class = "pay_item_right" >
< view class = "pay_item_right" >
< image src = "../../static/img/card.png" mode = "" > < / image >
< image src = "../../static/img/card.png" mode = "" > < / image >
< text > Credit / Debit Card < / text >
< text > Credit / Debit Card < / text >
< / view >
< / view >
< / view >
< / view >
< view class = "pay_item" @click ="selectPay(2)" >
<!-- < view class = "pay_item" @click ="selectPay(2)" >
< image src = "../../static/img/select1.png" mode = "" class = "pay_item_select" v-if ="pay_index==2" > < / image >
< image src = "../../static/img/select1.png" mode = "" class = "pay_item_select" v-if ="pay_index==2" > < / image >
< image src = "../../static/img/select2.png" mode = "" class = "pay_item_select" v-else > < / image >
< image src = "../../static/img/select2.png" mode = "" class = "pay_item_select" v-else > < / image >
< view class = "pay_item_right" >
< view class = "pay_item_right" >
@ -491,7 +519,8 @@
< image src = "../../static/img/close1.png" mode = "" @click ="isShow=false" > < / image >
< image src = "../../static/img/close1.png" mode = "" @click ="isShow=false" > < / image >
< / view >
< / view >
< view class = "order_popup_commodity" >
< view class = "order_popup_commodity" >
< view class = "good_info padding_left " v-for ="(item,index) in goods_list " :key="index" @click.stop="goGoodsDetails(item.goods_id)" >
< view class = "good_info padding_left " v -for = " ( item , index ) in goods_list " :key ="index"
@ click . stop = "goGoodsDetails(item.goods_id)" >
< view class = "good_info_left " >
< view class = "good_info_left " >
< view class = "good_info_image img_border" >
< view class = "good_info_image img_border" >
< image :src ="item.goods_img" mode = "" class = "img_border" > < / image >
< image :src ="item.goods_img" mode = "" class = "img_border" > < / image >
@ -514,18 +543,33 @@
< / view >
< / view >
<!-- 删除 、 取消弹框 -- >
<!-- 删除 、 取消弹框 -- >
< uni -popup ref = "alertDialog" type = "dialog" >
< uni -popup ref = "alertDialog" type = "dialog" >
< uni -popup -dialog type = "error" cancelText = "Close" :confirmText ="tipsBut" title = "Tips" :content ="tipsInfo" @confirm ="dialogConfirm" > < / u n i - p o p u p - d i a l o g >
< uni -popup -dialog type = "error" cancelText = "Close" :confirmText ="tipsBut" title = "Tips" :content ="tipsInfo"
@ confirm = "dialogConfirm" > < / u n i - p o p u p - d i a l o g >
< / u n i - p o p u p >
< / u n i - p o p u p >
< / view >
< / view >
< / template >
< / template >
< script >
< script >
import { defaultRequest2 } from '../../api/index.js'
import {
defaultRequest2
} from '../../api/index.js'
export default {
export default {
data ( ) {
data ( ) {
return {
return {
scrollList : [ { text : 'All' } , { text : 'Unpaid' } , { text : 'Processing' } , { text : 'Shipped' } , { text : 'Completed' } , { text : 'Closed' } ] ,
scrollList : [ {
text : 'All'
} , {
text : 'Unpaid'
} , {
text : 'Processing'
} , {
text : 'Shipped'
} , {
text : 'Completed'
} , {
text : 'Closed'
} ] ,
scroll_active : 0 ,
scroll_active : 0 ,
isList : true ,
isList : true ,
orderList : [ ] ,
orderList : [ ] ,
@ -548,7 +592,14 @@
tipsInfo : '' ,
tipsInfo : '' ,
tipsBut : '' ,
tipsBut : '' ,
goods_list : [ ] ,
goods_list : [ ] ,
query : { _action : 'getuserorders' , page_index : 1 , page_size : 10 , payingstatus : '' , status : '' , shippingstatus : '' }
query : {
_action : 'getuserorders' ,
page_index : 1 ,
page_size : 10 ,
payingstatus : '' ,
status : '' ,
shippingstatus : ''
}
}
}
} ,
} ,
methods : {
methods : {
@ -610,7 +661,30 @@
/ / 获 取 调 用 支 付 信 息 数 据
/ / 获 取 调 用 支 付 信 息 数 据
getPayDate ( ) {
getPayDate ( ) {
if ( this . pay_index == 0 ) {
if ( this . pay_index == 0 ) {
let data = { _action : 'payorder' , order_id : this . payQuery . order_id , order_type : 'GOODSBUY' , payment_method : 'paypal' }
let data = {
_action : 'payorder' ,
order_id : this . payQuery . order_id ,
order_type : 'GOODSBUY' ,
payment_method : 'paypal'
}
defaultRequest2 ( data ) . then ( res => {
console . info ( res , '支付' )
if ( res . error == 0 ) {
let url = res . data . prepay_data . checkoutnow_url
console . log ( url )
/ / p l u s . r u n t i m e . o p e n U R L ( r e s . d a t a . p r e p a y _ d a t a . c h e c k o u t n o w _ u r l )
uni . navigateTo ( {
url : '../order/paypalWebview?src=' + url
} )
}
} )
} else if ( this . pay_index == 1 ) {
let data = {
_action : 'payorder' ,
order_id : this . payQuery . order_id ,
order_type : 'GOODSBUY' ,
payment_method : 'oceanpay'
}
defaultRequest2 ( data ) . then ( res => {
defaultRequest2 ( data ) . then ( res => {
console . info ( res , '支付' )
console . info ( res , '支付' )
if ( res . error == 0 ) {
if ( res . error == 0 ) {
@ -635,7 +709,8 @@
console . log ( 'success:' + JSON . stringify ( res ) ) ;
console . log ( 'success:' + JSON . stringify ( res ) ) ;
this . isShow = false
this . isShow = false
uni . navigateTo ( {
uni . navigateTo ( {
url : '../order/paySuccess?order_id=' + this . payQuery . order_id
url : '../order/paySuccess?order_id=' + this . payQuery
. order_id
} ) ;
} ) ;
} ,
} ,
fail : function ( err ) {
fail : function ( err ) {
@ -659,7 +734,8 @@
openTips ( id , type ) {
openTips ( id , type ) {
this . tipsType = type
this . tipsType = type
if ( type == 0 ) {
if ( type == 0 ) {
this . tipsInfo = 'Are you sure you want to cancel this order? This order will be regarded as invalid after cancellation'
this . tipsInfo =
'Are you sure you want to cancel this order? This order will be regarded as invalid after cancellation'
this . tipsBut = 'CancelOrder'
this . tipsBut = 'CancelOrder'
this . cancelQuery . _action = 'cancelorder'
this . cancelQuery . _action = 'cancelorder'
} else if ( type == 1 ) {
} else if ( type == 1 ) {
@ -733,9 +809,11 @@
. body {
. body {
padding - top : 100 rpx ;
padding - top : 100 rpx ;
}
}
. padding_left {
. padding_left {
padding - left : 20 rpx ;
padding - left : 20 rpx ;
}
}
. order_nav {
. order_nav {
padding : 0 38.67 rpx ;
padding : 0 38.67 rpx ;
border - bottom : 13.33 rpx # F7F7F7 solid ;
border - bottom : 13.33 rpx # F7F7F7 solid ;
@ -744,6 +822,7 @@
box - sizing : border - box ;
box - sizing : border - box ;
z - index : 99 ;
z - index : 99 ;
background - color : white ;
background - color : white ;
. scroll - view_H {
. scroll - view_H {
white - space : nowrap ;
white - space : nowrap ;
font - size : 28 rpx ;
font - size : 28 rpx ;
@ -755,14 +834,17 @@
height : 0 ;
height : 0 ;
background - color : transparent ;
background - color : transparent ;
}
}
view {
view {
margin - left : 37.33 rpx ;
margin - left : 37.33 rpx ;
display : inline - block ;
display : inline - block ;
padding : 25.33 rpx 0 ;
padding : 25.33 rpx 0 ;
}
}
view : first - child {
view : first - child {
margin - left : 0 ;
margin - left : 0 ;
}
}
. scroll_active {
. scroll_active {
color : # 000000 ;
color : # 000000 ;
font - size : 28 rpx ;
font - size : 28 rpx ;
@ -771,9 +853,11 @@
}
}
}
}
}
}
. order {
. order {
border - bottom : 13.33 rpx # F7F7F7 solid ;
border - bottom : 13.33 rpx # F7F7F7 solid ;
padding - bottom : 26.67 rpx ;
padding - bottom : 26.67 rpx ;
. order_title {
. order_title {
display : flex ;
display : flex ;
align - items : center ;
align - items : center ;
@ -797,11 +881,13 @@
}
}
}
}
}
}
. order_content {
. order_content {
padding - left : 32 rpx ;
padding - left : 32 rpx ;
padding - right : 26.67 rpx ;
padding - right : 26.67 rpx ;
/ / b a c k g r o u n d - c o l o r : # B 2 2 2 3 4 ;
/ / b a c k g r o u n d - c o l o r : # B 2 2 2 3 4 ;
margin - top : - 30 rpx ;
margin - top : - 30 rpx ;
. good_info {
. good_info {
padding - top : 60 rpx ;
padding - top : 60 rpx ;
display : flex ;
display : flex ;
@ -811,6 +897,7 @@
color : # 666666 ;
color : # 666666 ;
font - weight : bold ;
font - weight : bold ;
border - bottom : 1 px solid # F1F1F1 ;
border - bottom : 1 px solid # F1F1F1 ;
. good_info_left {
. good_info_left {
display : flex ;
display : flex ;
align - items : center ;
align - items : center ;
@ -822,12 +909,14 @@
margin - right : 8 rpx ;
margin - right : 8 rpx ;
border - radius : 10 rpx ! important ;
border - radius : 10 rpx ! important ;
image {
image {
width : 100 % ;
width : 100 % ;
height : 100 % ;
height : 100 % ;
border - radius : 10 rpx ;
border - radius : 10 rpx ;
}
}
}
}
. left_info {
. left_info {
margin - left : 24 rpx ;
margin - left : 24 rpx ;
@ -836,6 +925,7 @@
font - weight : 400 ;
font - weight : 400 ;
width : 477.33 rpx ;
width : 477.33 rpx ;
}
}
. left_info_bottom {
. left_info_bottom {
width : 533.33 rpx ! important ;
width : 533.33 rpx ! important ;
display : flex ;
display : flex ;
@ -845,9 +935,11 @@
color : # 909090 ;
color : # 909090 ;
width : 100 % ;
width : 100 % ;
margin - top : 24 rpx ;
margin - top : 24 rpx ;
. info_lable {
. info_lable {
padding : 5.33 rpx 20 rpx ;
padding : 5.33 rpx 20 rpx ;
font - size : 22.67 rpx ;
font - size : 22.67 rpx ;
/ / b o r d e r - r a d i u s : 3 3 . 3 3 r p x ;
/ / b o r d e r - r a d i u s : 3 3 . 3 3 r p x ;
/ / b o r d e r : 1 p x s o l i d # D 3 D 3 D 3 ;
/ / b o r d e r : 1 p x s o l i d # D 3 D 3 D 3 ;
image {
image {
@ -859,9 +951,11 @@
}
}
}
}
}
}
. good_info_right {
. good_info_right {
display : flex ;
display : flex ;
align - items : center ;
align - items : center ;
image {
image {
width : 16 rpx ;
width : 16 rpx ;
height : 16 rpx ;
height : 16 rpx ;
@ -869,11 +963,13 @@
}
}
}
}
}
}
. good_price {
. good_price {
font - size : 28 rpx ;
font - size : 28 rpx ;
text - align : right ;
text - align : right ;
margin : 24 rpx 0 ;
margin : 24 rpx 0 ;
}
}
. good_points {
. good_points {
display : flex ;
display : flex ;
align - items : center ;
align - items : center ;
@ -887,12 +983,14 @@
margin - right : 13.33 rpx ;
margin - right : 13.33 rpx ;
}
}
}
}
. order_button {
. order_button {
margin - top : 33.33 rpx ;
margin - top : 33.33 rpx ;
display : flex ;
display : flex ;
justify - content : flex - end ;
justify - content : flex - end ;
background - color : # FFF ;
background - color : # FFF ;
button {
button {
height : 57.33 rpx ;
height : 57.33 rpx ;
line - height : 57.33 rpx ;
line - height : 57.33 rpx ;
@ -902,13 +1000,17 @@
background - color : # fff ;
background - color : # fff ;
margin : 0 ;
margin : 0 ;
border - radius : 0 rpx ;
border - radius : 0 rpx ;
/ / b o r d e r : g r e e n s o l i d 4 r p x ;
/ / b o r d e r : g r e e n s o l i d 4 r p x ;
& : last - child {
& : last - child {
margin - right : 0 ! important ;
margin - right : 0 ! important ;
}
}
}
}
button : after {
button : after {
border : none ; }
border : none ;
}
. cancel {
. cancel {
color : # 666666 ;
color : # 666666 ;
border : black solid 1 rpx ;
border : black solid 1 rpx ;
@ -918,6 +1020,7 @@
background - color : # fff ;
background - color : # fff ;
}
}
. pay {
. pay {
color : white ;
color : white ;
border - radius : 0 ;
border - radius : 0 ;
@ -927,6 +1030,7 @@
}
}
}
}
}
}
. order1 {
. order1 {
padding - top : 90.67 rpx ;
padding - top : 90.67 rpx ;
font - size : 24 rpx ;
font - size : 24 rpx ;
@ -935,11 +1039,13 @@
flex - direction : column ;
flex - direction : column ;
justify - content : center ;
justify - content : center ;
align - items : center ;
align - items : center ;
image {
image {
width : 146.67 rpx ;
width : 146.67 rpx ;
height : 146.67 rpx ;
height : 146.67 rpx ;
margin - bottom : 36 rpx ;
margin - bottom : 36 rpx ;
}
}
button {
button {
background - color : # 000000 ;
background - color : # 000000 ;
font - size : 24 rpx ;
font - size : 24 rpx ;