|
@@ -5,79 +5,37 @@
|
|
|
<view class="content">
|
|
|
<view class="orderStatus">
|
|
|
<image :src="
|
|
|
- info.order_status == 1
|
|
|
- ? 'https://ymyun-oss.oss-cn-hangzhou.aliyuncs.com/yidu_tc/public/upload/12/8/f05de1ad262ae8a303f5b38ca2419eae.png'
|
|
|
- : info.order_status == 2
|
|
|
- ? 'https://ymyun-oss.oss-cn-hangzhou.aliyuncs.com/yidu_tc/public/upload/12/8/f05de1ad262ae8a303f5b38ca2419eae.png'
|
|
|
- : info.order_status == 3
|
|
|
+ info.state == 2
|
|
|
? 'https://ymyun-oss.oss-cn-hangzhou.aliyuncs.com/yidu_tc/public/upload/12/8/74354f7d56ad4043e279760e09307bef.png'
|
|
|
- : info.order_status == 4
|
|
|
- ? 'https://ymyun-oss.oss-cn-hangzhou.aliyuncs.com/yidu_tc/public/upload/12/8/f05de1ad262ae8a303f5b38ca2419eae.png'
|
|
|
- : info.order_status == 5
|
|
|
+ : info.state == 3
|
|
|
? 'https://ymyun-oss.oss-cn-hangzhou.aliyuncs.com/yidu_tc/public/upload/12/8/cb6d9cec19387616fa955f95d8470bc5.png'
|
|
|
- : info.order_status == 6
|
|
|
- ? 'https://ymyun-oss.oss-cn-hangzhou.aliyuncs.com/yidu_tc/public/upload/12/8/f05de1ad262ae8a303f5b38ca2419eae.png'
|
|
|
- : info.order_status == 0 && info.receive_type == 2
|
|
|
- ? 'https://ymyun-oss.oss-cn-hangzhou.aliyuncs.com/yidu_tc/public/upload/12/8/74354f7d56ad4043e279760e09307bef.png'
|
|
|
- : info.order_status == 0 && info.receive_type == 1
|
|
|
- ? 'https://ymyun-oss.oss-cn-hangzhou.aliyuncs.com/yidu_tc/public/upload/12/8/74354f7d56ad4043e279760e09307bef.png'
|
|
|
+ : info.state == 5
|
|
|
+ ? 'https://ymyun-oss.oss-cn-hangzhou.aliyuncs.com/yidu_tc/public/upload/12/8/f05de1ad262ae8a303f5b38ca2419eae.png'
|
|
|
: ''
|
|
|
"></image>
|
|
|
<view>
|
|
|
{{
|
|
|
- info.order_status == 1
|
|
|
- ? '审核通过'
|
|
|
- : info.order_status == 2
|
|
|
- ? '已退款'
|
|
|
- : info.order_status == 3
|
|
|
- ? '拒绝退款'
|
|
|
- : info.order_status == 4
|
|
|
- ? '已核销'
|
|
|
- : info.order_status == 5
|
|
|
- ? '已发货'
|
|
|
- : info.order_status == 6
|
|
|
- ? '已完成'
|
|
|
- : info.order_status == 0 && info.receive_type == 2
|
|
|
+ info.state == 2
|
|
|
? '待发货'
|
|
|
- : info.order_status == 0 && info.receive_type == 1
|
|
|
- ? '待核销'
|
|
|
+ : info.state == 3
|
|
|
+ ? '待收货'
|
|
|
+ : info.state == 5
|
|
|
+ ? '已完成'
|
|
|
: ''
|
|
|
}}
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
- <!-- <view class="p-common iflexC">
|
|
|
- <text>订单号:{{info.order_no}}</text>
|
|
|
-
|
|
|
- <text class="p-con" wx:if="{{info.order_status==0&&info.receive_type==2}}">待发货</text>
|
|
|
- <text class="p-con" wx:if="{{info.order_status==0&&info.receive_type==1}}">待核销</text>
|
|
|
- <text class="p-con" wx:elif="{{info.order_status==1}}">审核通过</text>
|
|
|
- <text class="p-con" wx:elif="{{info.order_status== 2}}">已退款</text>
|
|
|
- <text class="p-con" wx:elif="{{info.order_status== 3}}">拒绝退款</text>
|
|
|
- <text class="p-con" wx:elif="{{info.order_status== 4}}">已核销</text>
|
|
|
- <text class="p-con" wx:elif="{{info.order_status== 5}}">已发货</text>
|
|
|
- <text class="p-con" wx:elif="{{info.order_status== 6}}">已完成</text>
|
|
|
-
|
|
|
-</view> -->
|
|
|
-
|
|
|
- <view class="p-common ibetween" v-if="info.receive_type == 1">
|
|
|
- <text>手机号码 : {{ info.receiver_mobile }}</text>
|
|
|
- <view class="hxCode" @tap="showHxcode">
|
|
|
- <image mode="widthFix"
|
|
|
- src="https://ymyun-oss.oss-cn-hangzhou.aliyuncs.com/yidu_tc/public/upload/12/8/6c8fc754eba8870fb95b18baaedff277.png">
|
|
|
- </image>
|
|
|
- <view>核销码</view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
|
|
|
- <view class="p-common" v-if="info.receive_type == 2">
|
|
|
+
|
|
|
+ <view class="p-common">
|
|
|
<view class="p-list icenterY">
|
|
|
<text>手机号码</text>
|
|
|
- <text class="cPhone">{{ info.receiver_mobile }}</text>
|
|
|
+ <text class="cPhone">{{ info.delivery.username }}{{ info.delivery.mobile }}</text>
|
|
|
</view>
|
|
|
<view class="p-list">
|
|
|
<text>收货地址</text>
|
|
|
- <text class="cArea">{{ info.receiver_area }}</text>
|
|
|
+ <text class="cArea">{{ info.delivery.address }}</text>
|
|
|
<view class="cDetailAddress">{{ info.receiver_address }}</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -90,44 +48,16 @@
|
|
|
</view>
|
|
|
</view> -->
|
|
|
|
|
|
- <view class="shopInfo bgfff" v-if="info.hexiao_center">
|
|
|
- <view class="ibetween">
|
|
|
- <view class="shopTop-name over_2">{{ info.hexiao_center.name }}</view>
|
|
|
- </view>
|
|
|
|
|
|
- <!-- <view class="shopBot ifend">
|
|
|
- <view class="flex1 iflexC">
|
|
|
- <view class="l-shopTime">时间:{{ info.hexiao_center.job_time }}</view>
|
|
|
- <view class="l-shopAddress over_1">地址:{{ info.hexiao_center.address }}</view>
|
|
|
- </view>
|
|
|
-
|
|
|
- <view class="iflex">
|
|
|
- <view
|
|
|
- class="shoploc iflexC aliCen"
|
|
|
- :data-address="info.hexiao_center.address"
|
|
|
- @tap="toPage"
|
|
|
- :data-url="'location:' + info.hexiao_center.lat + ', ' + info.hexiao_center.lng + ', ' + info.hexiao_center.name"
|
|
|
- >
|
|
|
- <image src="https://ymyun-oss.oss-cn-hangzhou.aliyuncs.com/yidu_tc/public/upload/12/8/b5d708429fd9e35f4d1c164d1147a7fb.png" mode="widthFix"></image>
|
|
|
- </view>
|
|
|
- <view class="shopSu"></view>
|
|
|
- <view class="shoploc iflexC aliCen" @tap="toPage" :data-url="'tel:' + info.hexiao_center.phone">
|
|
|
- <image src="https://ymyun-oss.oss-cn-hangzhou.aliyuncs.com/yidu_tc/public/upload/12/8/05d336706e46151d602e4287863b9d3a.png" mode="widthFix"></image>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view> -->
|
|
|
- </view>
|
|
|
-
|
|
|
- <!-- <msg status="99" xmdata="{{info.hexiao_center}}" wx:if="{{info.hexiao_center.id}}" styles='margin:0rpx 0px 20rpx 0px;background:#fff;' /> -->
|
|
|
|
|
|
<view class="p-common iflex radiuBot">
|
|
|
- <image class="p-goodsImg" :src="info.goods_pic"></image>
|
|
|
+ <image class="p-goodsImg" :src="info.products[0].image"></image>
|
|
|
<view class="p-goods">
|
|
|
- <text class="p-goodsName bold">{{ info.goods_name }}</text>
|
|
|
- <text class="p-goodsTips">{{ info.good_info ? info.good_info : '' }}</text>
|
|
|
+ <text class="p-goodsName bold">{{ info.products[0].title }}</text>
|
|
|
+ <!-- <text class="p-goodsTips">{{ info.good_info ? info.good_info : '' }}</text> -->
|
|
|
<view class="p-sku ibetween">
|
|
|
<!-- <text class="p-red"><text wx:if="{{info.pay_money}}">¥{{info.pay_money}} +</text> {{info.integral}}{{unit}}</text> -->
|
|
|
- <text class="p-con">×1</text>
|
|
|
+ <text class="p-con">×{{ info.products[0].number }}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -135,36 +65,35 @@
|
|
|
<view class="p-common radiuTop">
|
|
|
<view class="ibetween p-list icenterY">
|
|
|
<text>商品价格:</text>
|
|
|
- <text class="p-con">¥{{ info.pay_money ? info.pay_money : 0 }}</text>
|
|
|
+ <text class="p-con">¥{{ info.products[0].price }}</text>
|
|
|
</view>
|
|
|
<view class="ibetween p-list">
|
|
|
- <text>商品{{ unit }}:</text>
|
|
|
- <text class="p-con">{{ info.integral }} {{ unit }}</text>
|
|
|
+ <text>商品积分:</text>
|
|
|
+ <text class="p-con">{{ info.products[0].price }}积分</text>
|
|
|
</view>
|
|
|
<view class="ibetween p-list">
|
|
|
<text>运费:</text>
|
|
|
- <text class="p-con">¥{{ info.freight ? info.freight : 0 }}</text>
|
|
|
+ <text class="p-con">¥{{ info.delivery_price }}</text>
|
|
|
</view>
|
|
|
<view class="ibetween p-list icenterY">
|
|
|
<text>支付方式:</text>
|
|
|
<text class="p-con">
|
|
|
- <text v-if="info.freight || info.pay_money">现金+</text>
|
|
|
- {{ unit }}支付
|
|
|
+ {{ info.remark }}
|
|
|
</text>
|
|
|
</view>
|
|
|
<view class="ibetween p-list">
|
|
|
<text>实际支付:</text>
|
|
|
<text class="p-con colorActive">
|
|
|
<text class="p-red">
|
|
|
- <text v-if="info.pay_money">¥{{ info.pay_money }}+</text>
|
|
|
- {{ info.integral }}
|
|
|
+ <text v-if="info.delivery_price!='0.00'">¥{{ info.delivery_price }}+</text>
|
|
|
+ {{ info.products[0].price}}
|
|
|
</text>
|
|
|
- {{ unit }}
|
|
|
+ 积分
|
|
|
</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
- <view class="p-common iflex">
|
|
|
+ <!-- <view class="p-common iflex">
|
|
|
<text class="message">买家留言:</text>
|
|
|
<text>{{ info.user_mark ? info.user_mark : '暂无留言' }}</text>
|
|
|
</view>
|
|
@@ -173,92 +102,51 @@
|
|
|
<view class="p-list icenterY">
|
|
|
<text>买家评价:</text>
|
|
|
<text class="p-con">{{ info.inorder_comment ? info.inorder_comment.content : '暂无评价' }}</text>
|
|
|
- </view>
|
|
|
- <!-- <view class="p-list icenterY">
|
|
|
+ </view> -->
|
|
|
+ <!-- <view class="p-list icenterY">
|
|
|
<text>商家回复:</text>
|
|
|
<text class="p-con">{{info.reply ? info.reply : '暂无回复'}}</text>
|
|
|
</view> -->
|
|
|
- </view>
|
|
|
+
|
|
|
+
|
|
|
+ <view class="orderInfo">
|
|
|
+ <view class="orderInfoTip">订单信息</view>
|
|
|
+
|
|
|
+ <view class="orderItem">
|
|
|
+ <view>下单编号:</view>
|
|
|
+ <view>{{ info.out_trade_no }}</view>
|
|
|
+ <view @tap="copy" :data-on="info.out_trade_no">复制</view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view class="orderItem">
|
|
|
+ <view>下单时间:</view>
|
|
|
+ <view>{{ info.createtime }}</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
|
|
|
- <view class="orderInfo">
|
|
|
- <view class="orderInfoTip">订单信息</view>
|
|
|
+
|
|
|
|
|
|
- <view class="orderItem">
|
|
|
- <view>下单编号:</view>
|
|
|
- <view>{{ info.order_no }}</view>
|
|
|
- <view @tap="copy" :data-on="info.order_no">复制</view>
|
|
|
- </view>
|
|
|
|
|
|
- <view class="orderItem">
|
|
|
- <view>下单时间:</view>
|
|
|
- <view>{{ info.create_time }}</view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
|
|
|
<view class="p-footer iflex isFixed icenterY"
|
|
|
- v-if="info.order_status == 0 || info.order_status == 4 || info.order_status == 6 || info.order_status == 5">
|
|
|
+ v-if="info.state == 3 || info.state == 5">
|
|
|
<!-- <button wx:if="{{info.integral_money}}" bindtap="backMoney">申请退款</button> -->
|
|
|
- <button @tap="toPage" data-url="/yidu_tc/pages/comment/index?itype=1" :data-order_id="info.order_no"
|
|
|
- class="activeBtn1" v-if="(info.order_status == 6 || info.order_status == 4) && info.is_comment == 0">
|
|
|
- 去评论
|
|
|
- </button>
|
|
|
- <!-- <button class="p-btn1" wx:if="{{!info.integral_money && info.is_deliver == 3 && info.is_comment == 1}}" style="opacity: 0.5">订单已完成</button> -->
|
|
|
- <button @tap="confirm" v-if="info.receive_type == 2 && info.order_status == 5"
|
|
|
- class="activeBtn1">确认收货</button>
|
|
|
+
|
|
|
+
|
|
|
|
|
|
- <button @tap="lookOrder" v-if="info.receive_type == 2 && info.order_status == 5"
|
|
|
- class="activeBtn2">查看物流</button>
|
|
|
+ <button @tap="confirm(id)" v-if="info.state == 3" class="activeBtn1">确认收货</button>
|
|
|
|
|
|
- <button @tap="hx_btn" v-if="info.receive_type == 1 && info.order_status == 0 && info.is_hexiao"
|
|
|
- class="activeBtn1">确认核销</button>
|
|
|
+ <button @click.stop="buyNext(info.products[0].id)" v-if="info.state == 5" class="activeBtn2">再次购买</button>
|
|
|
|
|
|
- <button @tap="getMovie" v-if="info.order_status == 0 && info.is_film == 1" class="activeBtn1">立即领取</button>
|
|
|
|
|
|
- <button v-if="info.order_status == 0 && info.receive_type == 2" class="activeBtn2">待发货</button>
|
|
|
|
|
|
- <button v-if="info.order_status == 0 && info.receive_type == 1 && !info.is_hexiao"
|
|
|
- class="activeBtn1">待核销</button>
|
|
|
|
|
|
- <button v-if="info.order_status == 2">已退款</button>
|
|
|
- </view>
|
|
|
|
|
|
-<!-- <imask :show="showCode" :zindex="30"> -->
|
|
|
- <view class="mengban" v-if="showCode">
|
|
|
- <view class="allBox">
|
|
|
- <view class="boxWrap">
|
|
|
- <view class="codeInfo">
|
|
|
- <image :src="info.goods_pic"></image>
|
|
|
- <view class="goodBoxInfo">
|
|
|
- <view>{{ info.hexiao_center.name }}</view>
|
|
|
- <view>{{ info.goods_name }}</view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
-
|
|
|
- <view class="codeWrap">
|
|
|
- <view class="code1">
|
|
|
- <view></view>
|
|
|
- <view>核销码</view>
|
|
|
- <view></view>
|
|
|
- </view>
|
|
|
- <image :src="hxcode" class="hxcodeImg"></image>
|
|
|
- <view class="codeTip">请把核销码出示给商家</view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
|
|
|
- <view class="download" @tap="download">
|
|
|
- <view>下载保存图片</view>
|
|
|
- <image
|
|
|
- src="https://ymyun-oss.oss-cn-hangzhou.aliyuncs.com/yidu_tc/public/upload/12/8/fb053b002967d127bde32a542c5a9794.png">
|
|
|
- </image>
|
|
|
- </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
|
|
|
- <image @tap="closeBox" class="closeBox"
|
|
|
- src="https://ymyun-oss.oss-cn-hangzhou.aliyuncs.com/yidu_tc/public/upload/12/8/b9fd3c42c6e5116ecced6ed92864221a.png">
|
|
|
- </image>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <!-- </imask> -->
|
|
|
</block>
|
|
|
</template>
|
|
|
|
|
@@ -270,48 +158,9 @@
|
|
|
data() {
|
|
|
return {
|
|
|
info: {
|
|
|
- admin_id: 0,
|
|
|
- create_time: "2022-03-26 15:45:59",
|
|
|
- deliver_no: "",
|
|
|
- deliver_time: null,
|
|
|
- freight: "0.00",
|
|
|
- goods_id: 1520,
|
|
|
- goods_name: "寒铁10件套美容工具IRON-0100 IRON-0100",
|
|
|
- goods_pic: "https://ymyun-oss.oss-cn-hangzhou.aliyuncs.com/yidu_tc/public/upload/12/2487/f04456f1d7360742a070f36b0901e0a7.png",
|
|
|
- hexiao_center: [],
|
|
|
- id: 1182,
|
|
|
- inorder_comment: null,
|
|
|
- integral: "0.00",
|
|
|
- is_comment: 0,
|
|
|
- is_deliver: 0,
|
|
|
- is_film: 0,
|
|
|
- is_hexiao: false,
|
|
|
- order_no: "31038957705405027625933",
|
|
|
- order_status: 0,
|
|
|
- pay_money: "0.00",
|
|
|
- pay_time: "2022-03-26 15:45:59",
|
|
|
- receive_type: 2,
|
|
|
- receiver_address: "水南镇长征大道赣州商会大厦(章贡区长征大道31号)27楼",
|
|
|
- receiver_area: "江西省赣州市章贡区",
|
|
|
- receiver_mobile: "18779615160",
|
|
|
- receiver_name: "李路根",
|
|
|
- region_id: 159,
|
|
|
- send_comp: "",
|
|
|
- sku: "中号型",
|
|
|
- ssq_code: "360702",
|
|
|
- user_mark: "",
|
|
|
- showCode:true
|
|
|
- },
|
|
|
-
|
|
|
- // 订单详情
|
|
|
- unit: '积分',
|
|
|
|
|
|
- inorder_comment: '',
|
|
|
- showCode: false,
|
|
|
- hxcode: '',
|
|
|
- order_id: '',
|
|
|
- uid: '',
|
|
|
- show_login: false
|
|
|
+ },
|
|
|
+ id: '',
|
|
|
};
|
|
|
}
|
|
|
/**
|
|
@@ -319,50 +168,15 @@
|
|
|
*/
|
|
|
,
|
|
|
onLoad: function(options) {
|
|
|
- // if (options.scene) {
|
|
|
- // this.setData({
|
|
|
- // order_id: options.scene
|
|
|
- // });
|
|
|
- // } else {
|
|
|
- // this.setData({
|
|
|
- // order_id: options.order_id
|
|
|
- // });
|
|
|
- // }
|
|
|
-
|
|
|
- // let that = this;
|
|
|
- // let td = that;
|
|
|
- // let u = app.globalData.getCache('userinfo').uid;
|
|
|
- // if (u) {
|
|
|
- // console.log('有uid');
|
|
|
- // that.setData({
|
|
|
- // uid: u
|
|
|
- // });
|
|
|
- // that.getInfo();
|
|
|
- // } else {
|
|
|
- // that.setData({
|
|
|
- // show_login: true
|
|
|
- // });
|
|
|
- // }
|
|
|
+
|
|
|
+ this.id = options.id;
|
|
|
+
|
|
|
+ this.getInfo()
|
|
|
+
|
|
|
},
|
|
|
- /**
|
|
|
- * 生命周期函数--监听页面初次渲染完成
|
|
|
- */
|
|
|
- onReady: function() {},
|
|
|
- /**
|
|
|
- * 生命周期函数--监听页面显示
|
|
|
- */
|
|
|
+
|
|
|
onShow: function() {},
|
|
|
- /**
|
|
|
- * 生命周期函数--监听页面隐藏
|
|
|
- */
|
|
|
- onHide: function() {},
|
|
|
- /**
|
|
|
- * 生命周期函数--监听页面卸载
|
|
|
- */
|
|
|
- onUnload: function() {},
|
|
|
- /**
|
|
|
- * 页面相关事件处理函数--监听用户下拉动作
|
|
|
- */
|
|
|
+
|
|
|
onPullDownRefresh: function() {
|
|
|
this.getInfo();
|
|
|
},
|
|
@@ -375,18 +189,44 @@
|
|
|
*/
|
|
|
onShareAppMessage: function() {},
|
|
|
methods: {
|
|
|
- download() {
|
|
|
- saveImgs(this.hxcode, function() {
|
|
|
- console.log('保存成功');
|
|
|
+
|
|
|
+ async confirm(id) {
|
|
|
+ // 确认收货
|
|
|
+
|
|
|
+ let that = this;
|
|
|
+ let [error, res] = await uni.showModal({
|
|
|
+ title: '确认收货?'
|
|
|
});
|
|
|
+ if (res.confirm == true) {
|
|
|
+ let res = await that.$api.request('/order/received', 'GET', {
|
|
|
+ order_id: id,
|
|
|
+ type:1
|
|
|
+ });
|
|
|
+ if (res) {
|
|
|
+ that.getInfo()
|
|
|
+
|
|
|
+ }
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ this.$api.msg('收货失败');
|
|
|
+ return false;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
},
|
|
|
+
|
|
|
|
|
|
- closeBox() {
|
|
|
- this.setData({
|
|
|
- showCode: false
|
|
|
+ buyNext(id) {
|
|
|
+
|
|
|
+ uni.navigateTo({
|
|
|
+ url: `/pages/intergalShop/goodsDetail?id=${id}`
|
|
|
});
|
|
|
},
|
|
|
|
|
|
+
|
|
|
+
|
|
|
copy(e) {
|
|
|
uni.setClipboardData({
|
|
|
data: e.currentTarget.dataset.on,
|
|
@@ -405,155 +245,29 @@
|
|
|
});
|
|
|
},
|
|
|
|
|
|
- onLoginBack: function(e) {
|
|
|
- var u = app.globalData.getCache('userinfo').uid;
|
|
|
|
|
|
- if (u && this.show_login) {
|
|
|
- this.setData({
|
|
|
- uid: u,
|
|
|
- show_login: false
|
|
|
- });
|
|
|
- this.getInfo();
|
|
|
- }
|
|
|
- },
|
|
|
|
|
|
- getMovie() {
|
|
|
- uni.navigateTo({
|
|
|
- url: `/pages/movie/pages/receive/index?id=${this.order_id}&channel=integral`
|
|
|
- });
|
|
|
- },
|
|
|
|
|
|
- hx_btn() {
|
|
|
- var that = this;
|
|
|
- uni.showModal({
|
|
|
- title: '提示',
|
|
|
- content: '确认核销?',
|
|
|
-
|
|
|
- success(res) {
|
|
|
- if (res.confirm) {
|
|
|
- console.log('用户点击确定');
|
|
|
- a.get(
|
|
|
- 'regionintegral/hexiao', {
|
|
|
- uid: app.globalData.getCache('userinfo').uid,
|
|
|
- order_id: that.order_id
|
|
|
- },
|
|
|
- function(r) {
|
|
|
- if (r.code) {
|
|
|
- a.alert(r.msg);
|
|
|
- } else {
|
|
|
- uni.showToast({
|
|
|
- title: '核销成功'
|
|
|
- });
|
|
|
- setTimeout(function() {
|
|
|
- uni.redirectTo({
|
|
|
- url: '/pages/operate/logs/logs'
|
|
|
- });
|
|
|
- }, 1500);
|
|
|
- }
|
|
|
- }
|
|
|
- );
|
|
|
- } else {
|
|
|
- if (res.cancel) {
|
|
|
- console.log('用户点击取消');
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
- },
|
|
|
|
|
|
- confirm() {
|
|
|
- // 确认收货
|
|
|
- const that = this;
|
|
|
- a.get(
|
|
|
- 'Integral/confirm_order', {
|
|
|
- uid: app.globalData.getCache('userinfo').uid,
|
|
|
- order_id: this.order_id
|
|
|
- },
|
|
|
- function(res) {
|
|
|
- if (res.code == 0) {
|
|
|
- uni.showToast({
|
|
|
- title: '确认成功'
|
|
|
- });
|
|
|
- setTimeout(function() {
|
|
|
- uni.redirectTo({
|
|
|
- url: '/pages/operate/logs/logs'
|
|
|
- });
|
|
|
- }, 1500);
|
|
|
- } else {
|
|
|
- a.alert(res.msg);
|
|
|
- }
|
|
|
- }
|
|
|
- );
|
|
|
- },
|
|
|
|
|
|
- backMoney() {
|
|
|
- // 申请退款
|
|
|
- var that = this;
|
|
|
- a.confirm('是否确定申请退款?', function(res) {
|
|
|
- a.get(
|
|
|
- '', {
|
|
|
- uid: app.globalData.getCache('userinfo').uid,
|
|
|
- id: this.order_id
|
|
|
- },
|
|
|
- function(res) {
|
|
|
- console.log(12122);
|
|
|
- }
|
|
|
- );
|
|
|
- });
|
|
|
- },
|
|
|
+ async getInfo() {
|
|
|
+
|
|
|
+
|
|
|
|
|
|
- showHxcode() {
|
|
|
- uni.showLoading({
|
|
|
- title: '正在加载'
|
|
|
+ let data = await this.$api.request('/order/detail', 'GET', {
|
|
|
+ type: 1,
|
|
|
+ order_id: this.id
|
|
|
});
|
|
|
- const that = this;
|
|
|
- a.get(
|
|
|
- 'regionintegral/qrcode', {
|
|
|
- uid: app.globalData.getCache('userinfo').uid,
|
|
|
- order_id: this.order_id
|
|
|
- },
|
|
|
- function(res) {
|
|
|
- uni.hideLoading();
|
|
|
- that.setData({
|
|
|
- hxcode: res.info,
|
|
|
- showCode: true
|
|
|
- });
|
|
|
- }
|
|
|
- );
|
|
|
- },
|
|
|
|
|
|
- getInfo() {
|
|
|
- const that = this;
|
|
|
- a.get(
|
|
|
- 'regionintegral/orderDetail', {
|
|
|
- uid: app.globalData.getCache('userinfo').uid,
|
|
|
- order_id: this.order_id
|
|
|
- },
|
|
|
- function(res) {
|
|
|
- let data = res.info.data;
|
|
|
- uni.stopPullDownRefresh();
|
|
|
- console.log(data);
|
|
|
- data.freight = Number(data.freight);
|
|
|
- data.integral_money = Number(data.integral_money);
|
|
|
- data.pay_money = Number(data.pay_money);
|
|
|
- that.setData({
|
|
|
- info: data
|
|
|
- }); // that.getComment(data.goods_id)
|
|
|
- }
|
|
|
- );
|
|
|
+
|
|
|
+ console.log(data)
|
|
|
+
|
|
|
+ this.info = data;
|
|
|
+
|
|
|
+
|
|
|
},
|
|
|
|
|
|
- // getComment(goods_id){
|
|
|
- // const that = this
|
|
|
- // a.get('regionintegral/comment', {
|
|
|
- // uid: app.getCache('userinfo').uid,
|
|
|
- // goods_id: goods_id
|
|
|
- // }, function (res) {
|
|
|
- // that.setData({
|
|
|
- // inorder_comment: res.info
|
|
|
- // })
|
|
|
- // })
|
|
|
- // },
|
|
|
+
|
|
|
toPage(e) {
|
|
|
app.globalData.toPage(e);
|
|
|
}
|
|
@@ -669,7 +383,7 @@
|
|
|
|
|
|
.p-common:last-child {
|
|
|
padding: 0;
|
|
|
- width: calc(100% - 72rpx);
|
|
|
+ /* width: calc(100% - 72rpx); */
|
|
|
margin-bottom: 0;
|
|
|
}
|
|
|
|
|
@@ -726,7 +440,7 @@
|
|
|
|
|
|
.p-common:last-child {
|
|
|
padding: 26rpx 30rpx !important;
|
|
|
- width: calc(100% - 60rpx);
|
|
|
+ /* width: calc(100% - 60rpx); */
|
|
|
margin-bottom: 0;
|
|
|
}
|
|
|
|
|
@@ -918,14 +632,15 @@
|
|
|
}
|
|
|
|
|
|
.activeBtn1 {
|
|
|
- background: linear-gradient(to right, #fda401, #fe6b05);
|
|
|
+ background:#FB4C6F;
|
|
|
color: #fff !important;
|
|
|
border: none;
|
|
|
}
|
|
|
|
|
|
.activeBtn2 {
|
|
|
- color: #fe6b00 !important;
|
|
|
- border: 1px solid #fe6b00;
|
|
|
+background:#FB4C6F;
|
|
|
+ color: #fff !important;
|
|
|
+ border: none;
|
|
|
}
|
|
|
|
|
|
.boxWrap {
|
|
@@ -1037,8 +752,8 @@
|
|
|
position: absolute;
|
|
|
top: 50%;
|
|
|
left: 50%;
|
|
|
- transform: translate(-50%,-50%);
|
|
|
- }
|
|
|
+ transform: translate(-50%, -50%);
|
|
|
+ }
|
|
|
|
|
|
.closeBox {
|
|
|
width: 50rpx;
|
|
@@ -1061,13 +776,13 @@
|
|
|
display: flex;
|
|
|
justify-content: space-between
|
|
|
}
|
|
|
-
|
|
|
- .mengban{
|
|
|
+
|
|
|
+ .mengban {
|
|
|
position: fixed;
|
|
|
top: 0;
|
|
|
left: 0;
|
|
|
right: 0;
|
|
|
bottom: 0;
|
|
|
- background: rgba(0,0,0,0.7);
|
|
|
+ background: rgba(0, 0, 0, 0.7);
|
|
|
}
|
|
|
</style>
|