Commit c2120915 authored by mengcuiguang's avatar mengcuiguang

new pro

parent 809e16d7
...@@ -17,7 +17,7 @@ var systemInfoMixin = { ...@@ -17,7 +17,7 @@ var systemInfoMixin = {
} }
}, },
mounted() { mounted() {
const systemInfo = tt.getSystemInfoSync(); const systemInfo = com.mingce.wxhelibookgetSystemInfoSync();
this.sdkVersion = systemInfo.hostSDKVersion; this.sdkVersion = systemInfo.hostSDKVersion;
this.windowWidth = this.dataCheck(systemInfo.windowWidth); this.windowWidth = this.dataCheck(systemInfo.windowWidth);
this.windowHeight = this.dataCheck(systemInfo.windowHeight); this.windowHeight = this.dataCheck(systemInfo.windowHeight);
...@@ -29,7 +29,7 @@ var systemInfoMixin = { ...@@ -29,7 +29,7 @@ var systemInfoMixin = {
this.bottomSafeHeight = BOTTOM_SAFE_HEIGHT; this.bottomSafeHeight = BOTTOM_SAFE_HEIGHT;
if (!NAVI_BAR_HEIGHT || !NAVI_HEIGHT) { if (!NAVI_BAR_HEIGHT || !NAVI_HEIGHT) {
const custom = tt.getMenuButtonBoundingClientRect(); const custom = wx.getMenuButtonBoundingClientRect();
NAVI_BAR_HEIGHT = custom.height + (custom.top - this.statusBarHeight) * 2; NAVI_BAR_HEIGHT = custom.height + (custom.top - this.statusBarHeight) * 2;
NAVI_HEIGHT = NAVI_BAR_HEIGHT + this.statusBarHeight; NAVI_HEIGHT = NAVI_BAR_HEIGHT + this.statusBarHeight;
......
...@@ -116,7 +116,7 @@ ...@@ -116,7 +116,7 @@
}, },
ttLoging() { ttLoging() {
var that = this; var that = this;
var obj = tt.getLaunchOptionsSync() var obj = wx.getLaunchOptionsSync()
var bookId = ''; var bookId = '';
var thirdParam = ''; var thirdParam = '';
var tips2 = ''; var tips2 = '';
...@@ -132,7 +132,7 @@ ...@@ -132,7 +132,7 @@
this.$refs.select.open('center'); this.$refs.select.open('center');
} }
tt.login({ wx.login({
force: true, force: true,
success(res) { success(res) {
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
props: { props: {
title: { title: {
type: String, type: String,
default: "幻墨小说阁" default: "河狸小故事"
} }
}, },
data() { data() {
......
...@@ -115,7 +115,7 @@ ...@@ -115,7 +115,7 @@
let that = this; let that = this;
this.$refs.coinPop.open('bottom'); this.$refs.coinPop.open('bottom');
if (tt.getSystemInfoSync().platform === 'ios') { if (wx.getSystemInfoSync().platform === 'ios') {
this.os = 'ios'; this.os = 'ios';
} }
......
This diff is collapsed.
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
}, },
tapMakePhoneCall() { tapMakePhoneCall() {
let that=this let that=this
tt.makePhoneCall({ wx.makePhoneCall({
phoneNumber: "4000969950", phoneNumber: "4000969950",
success(res) { success(res) {
// 调用成功 makePhoneCall:ok // 调用成功 makePhoneCall:ok
......
...@@ -131,7 +131,7 @@ ...@@ -131,7 +131,7 @@
"quickapp" : {}, "quickapp" : {},
/* 小程序特有相关 */ /* 小程序特有相关 */
"mp-weixin" : { "mp-weixin" : {
"appid" : "wx5407709f87db948b", "appid" : "wx17fe9416bd3f1244",
"setting" : { "setting" : {
"urlCheck" : false, "urlCheck" : false,
"es6" : false, "es6" : false,
...@@ -164,7 +164,7 @@ ...@@ -164,7 +164,7 @@
"uniStatistics" : { "uniStatistics" : {
"enable" : false "enable" : false
}, },
"appid" : "tt8038f6851f0e1a7001" "appid" : ""
}, },
"uniStatistics" : { "uniStatistics" : {
"enable" : false, "enable" : false,
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
return { return {
tips1: '', tips1: '',
slotParam: '', slotParam: '',
appName: '幻墨小说阁' appName: '河狸小故事'
} }
}, },
onLoad(options) { onLoad(options) {
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
methods: { methods: {
ttLoging() { ttLoging() {
var that = this; var that = this;
var obj = tt.getLaunchOptionsSync() var obj = wx.getLaunchOptionsSync()
var tips2 = ''; // 投放测试 var tips2 = ''; // 投放测试
var thirdParam = ""; var thirdParam = "";
...@@ -71,36 +71,37 @@ ...@@ -71,36 +71,37 @@
key: 'firstBookId', key: 'firstBookId',
data: bookId data: bookId
}); });
} }
tt.login({ uni.login({
force: true, provider: 'weixin',
success(res) { success: function(loginRes) {
that.post({ that.post({
url: '/user/ttLogin', url: '/user/wechatlogin',
data: { data: {
vedioId: bookId, vedioId: bookId,
code: res.code, code: loginRes.code,
anonymousCode: res.anonymousCode, thirdParam: thirdParam
thirdParam: thirdParam },
}, showLoading: false,
showLoading: false, success: ({
success: ({ data
data }) => {
}) => { app.globalData.userId = data.idcode;
app.globalData.userId = data.idcode; saveToken(data.token)
saveToken(data.token) setTimeout(() => {
setTimeout(() => { redirectTo('home');
redirectTo('home'); }, 1000);
}, 1000); }
} });
}); },
}, fail: function(err) {
fail(res) { // 登录授权失败
console.log(`login 调用失败`); uni.navigateTo({
}, url: `/pages/warehouse/warehousetemp`,
})
}
}); });
} }
} }
}; };
......
vedio/static/logo-about.png

19.4 KB | W: | H:

vedio/static/logo-about.png

13.9 KB | W: | H:

vedio/static/logo-about.png
vedio/static/logo-about.png
vedio/static/logo-about.png
vedio/static/logo-about.png
  • 2-up
  • Swipe
  • Onion skin
export const PAKEAGE_NAME = 'com.duben.dybookhm' export const PAKEAGE_NAME = 'com.mingce.wxhelibook'
export const VERSION_CODE = '1.0.2' export const VERSION_CODE = '1.0.2'
// export const PAKEAGE_NAME = 'com.test.test' // export const PAKEAGE_NAME = 'com.test.test'
......
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