|
|
// page/subPackage/pages/zeroSell/detail.js
|
|
|
|
|
|
import ZeroSellService from './service/zero-sell'
|
|
|
import CommonService from './service/common'
|
|
|
import {
|
|
|
decodePhoneNumber,
|
|
|
getUnionID,
|
...
|
...
|
@@ -16,6 +17,8 @@ import { |
|
|
} from '../../vendors/zanui/index';
|
|
|
import router from './router/router'
|
|
|
import {wrapperName} from './helper'
|
|
|
import { formatImageUrl } from '../../utils/util'
|
|
|
import { jumpByUrl } from '../../libs/urlRoute';
|
|
|
|
|
|
const ACTIVITY = {
|
|
|
UNKNOWN: 0,
|
...
|
...
|
@@ -68,6 +71,8 @@ Page(Object.assign({ |
|
|
hasUnionID: false,
|
|
|
uid: 0,
|
|
|
isLogin: false,
|
|
|
bannerSrc:null,
|
|
|
bannerUrl: null,
|
|
|
|
|
|
actionsheet: {
|
|
|
componentId: 'shareActionSheet',
|
...
|
...
|
@@ -120,6 +125,8 @@ Page(Object.assign({ |
|
|
this.setData(data);
|
|
|
|
|
|
new app.WeToast();
|
|
|
|
|
|
this._getDetailBanner()
|
|
|
},
|
|
|
|
|
|
/**
|
...
|
...
|
@@ -358,6 +365,26 @@ Page(Object.assign({ |
|
|
showAuth: true
|
|
|
})
|
|
|
},
|
|
|
_jumpBanner() {
|
|
|
if (this.data.bannerUrl == null) {
|
|
|
return;
|
|
|
}
|
|
|
jumpByUrl(that.data.bannerUrl);
|
|
|
},
|
|
|
_getDetailBanner() {
|
|
|
let commonService = new CommonService()
|
|
|
commonService.getResourceCode('ccc32dbedf164a52b4efa34383878860')
|
|
|
.then(data => {
|
|
|
// console.log(data)
|
|
|
this.setData({
|
|
|
bannerSrc: formatImageUrl(data.src, 340 * app.globalData.systemInfo.pixelRatio, 340 * app.globalData.systemInfo.pixelRatio, 2),
|
|
|
bannerUrl: data.url
|
|
|
})
|
|
|
})
|
|
|
.catch(error => {
|
|
|
console.log(error)
|
|
|
})
|
|
|
},
|
|
|
|
|
|
_getUser() {
|
|
|
const userInfo = app.getUserInfo();
|
...
|
...
|
|