Commit adafdd4b by sunerhu

1.修复分享重复登录--待测试

2.修复销售课程--分享课程订单详情传参错误
parent 7b9ea575
......@@ -13,6 +13,7 @@
<link rel="stylesheet" href="./static/font/iconfont.css">
<!--preload-links-->
<!--app-context-->
<script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
</head>
<body>
<div id="app"><!--app-html--></div>
......
......@@ -248,7 +248,7 @@
url: '/components/login/login'
})
} else {
if (this.coursesharing == 1) {
if (this.coursesharing == 1 && this.userId == '') {
this.sharelogin = true
} else {
this.jumppurchase()
......@@ -480,6 +480,7 @@
onLoad(option) {
this.fileId = option.fileId;
if (option.coursesharing) {
this.userId = ''
this.coursesharing = option.coursesharing
this.serialsNo = option.serialsNo
this.shareCode = option.shareCode
......
......@@ -55,7 +55,8 @@
const param = {
userId:this.userId,
orderId:this.orderId,
commissionType:this.commissionType
queryType: '2',
commissionType:this.commissionType,
}
api.userCourseInfo(param).then(res=>{
if(res['success']){
......@@ -81,7 +82,9 @@
this.userCourseInfo();
},
onLoad(option) {
console.log(option, 15215)
this.orderId = option.id;
console.log(this.orderId, 2222)
this.type = option.type;
this.commissionType = option.commissionType;
}
......
......@@ -65,7 +65,7 @@
<view><text>购买人</text><text>{{item.userName}}</text></view>
<view class="orderDetailLine">
<text></text>
<text @click="viewDetail(item.orderId)">订单详情></text>
<text @click="viewDetail(item)">订单详情></text>
</view>
</view>
</template>
......@@ -101,8 +101,9 @@
},
// 查看订单详情
viewDetail(item){
console.log(item, 1515)
uni.navigateTo({
url:`/pages/orderDetail/orderDetail?id=${item}&type=drop`
url:`/pages/orderDetail/orderDetail?id=${item.orderId}&type=drop`
})
},
bindDateChange: function(e) {
......
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