Commit adafdd4b by sunerhu

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

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