|
@@ -14,11 +14,11 @@
|
|
</u-grid-item>
|
|
</u-grid-item>
|
|
<u-grid-item :index="2">
|
|
<u-grid-item :index="2">
|
|
<u-image width="90rpx" height="90rpx" src="/static/shouyi.png"></u-image>
|
|
<u-image width="90rpx" height="90rpx" src="/static/shouyi.png"></u-image>
|
|
- <view class="grid-text">乐豆收益</view>
|
|
|
|
|
|
+ <view class="grid-text">我的投递码</view>
|
|
</u-grid-item>
|
|
</u-grid-item>
|
|
<u-grid-item :index="3">
|
|
<u-grid-item :index="3">
|
|
<u-image width="90rpx" height="90rpx" src="/static/hexiao.png"></u-image>
|
|
<u-image width="90rpx" height="90rpx" src="/static/hexiao.png"></u-image>
|
|
- <view class="grid-text">扫码核销</view>
|
|
|
|
|
|
+ <view class="grid-text">扫一扫</view>
|
|
</u-grid-item>
|
|
</u-grid-item>
|
|
</u-grid>
|
|
</u-grid>
|
|
</view>
|
|
</view>
|
|
@@ -67,9 +67,10 @@
|
|
updateGoodsBuyQty
|
|
updateGoodsBuyQty
|
|
} from '@/api/shoppingCart.js'
|
|
} from '@/api/shoppingCart.js'
|
|
import {bannerList} from '@/api/banner.js'
|
|
import {bannerList} from '@/api/banner.js'
|
|
- import {getLookUpDatas} from '@/api/data.js'
|
|
|
|
|
|
+ import {getLookUpDatas,openDevice} from '@/api/data.js'
|
|
import {stationList} from '@/api/station.js'
|
|
import {stationList} from '@/api/station.js'
|
|
- import { checkLogin } from '@/api/login.js'
|
|
|
|
|
|
+ import {checkLogin} from '@/api/login.js'
|
|
|
|
+ import {getQueryString} from '@/libs/tools.js'
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
@@ -221,7 +222,7 @@
|
|
let path=[
|
|
let path=[
|
|
'/pages/userCenter/zhinan',
|
|
'/pages/userCenter/zhinan',
|
|
'/pages/userCenter/liucheng',
|
|
'/pages/userCenter/liucheng',
|
|
- '/pages/userCenter/ldDetailed',
|
|
|
|
|
|
+ '/pages/userCenter/myCode/myCode',
|
|
''
|
|
''
|
|
]
|
|
]
|
|
|
|
|
|
@@ -247,19 +248,38 @@
|
|
},
|
|
},
|
|
// 扫码核销
|
|
// 扫码核销
|
|
smHx(){
|
|
smHx(){
|
|
- uni.navigateTo({
|
|
|
|
- url: '/pages/checkOut/checkOut'
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
|
|
+ const _this = this
|
|
|
|
+ // uni.navigateTo({
|
|
|
|
+ // url: '/pages/checkOut/checkOut'
|
|
|
|
+ // })
|
|
|
|
+ // return
|
|
uni.scanCode({
|
|
uni.scanCode({
|
|
success(e) {
|
|
success(e) {
|
|
console.log(e)
|
|
console.log(e)
|
|
|
|
+ // 普通二维码,用户扫箱体的二维码开箱
|
|
|
|
+ if(e.scanType == 'QR_CODE'){
|
|
|
|
+ console.log(e.result)
|
|
|
|
+ _this.openDevice(e.result)
|
|
|
|
+ }
|
|
|
|
+ // 小程序码,用户核销
|
|
|
|
+ if(e.scanType == 'WX_CODE'){
|
|
|
|
+
|
|
|
|
+ }
|
|
},
|
|
},
|
|
fail(err) {
|
|
fail(err) {
|
|
console.log(err)
|
|
console.log(err)
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ // 开箱
|
|
|
|
+ openDevice(data){
|
|
|
|
+ openDevice({
|
|
|
|
+ id: getQueryString(data,"id"),
|
|
|
|
+ type: getQueryString(data,"type")
|
|
|
|
+ }).then(res => {
|
|
|
|
+ console.log(res)
|
|
|
|
+ })
|
|
|
|
+ },
|
|
// 查看网点
|
|
// 查看网点
|
|
viewStore(item){
|
|
viewStore(item){
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|