Browse Source

no message

featrue/v4.5
xpz2018 4 years ago
parent
commit
c71889f5be
4 changed files with 7 additions and 10 deletions
  1. 3
      components/popup/index.wxss
  2. 4
      pages/home/index/index.js
  3. 1
      pages/home/index/index.wxml
  4. 9
      pages/index/index.js

3
components/popup/index.wxss

@ -1,8 +1,7 @@
.wux-popup { .wux-popup {
position: fixed; position: fixed;
z-index: 1000;
width: 100%; width: 100%;
max-width: 680rpx
max-width: 640rpx
} }
.wux-popup-position.wux-popup-position--center .wux-popup { .wux-popup-position.wux-popup-position--center .wux-popup {
top: 50%; top: 50%;

4
pages/home/index/index.js

@ -199,14 +199,14 @@ Component({
onShareAppMessage: function () { onShareAppMessage: function () {
return { return {
title: '纸通宝--废纸交易、最新情报、最优资讯', title: '纸通宝--废纸交易、最新情报、最优资讯',
path: '/pages/home/index'
path: '/pages/index/index'
} }
}, },
// 分享至朋友圈 // 分享至朋友圈
onShareTimeline() { onShareTimeline() {
return { return {
title: '纸通宝--废纸交易、最新情报、最优资讯', title: '纸通宝--废纸交易、最新情报、最优资讯',
path: '/pages/home/index'
path: '/pages/index/index'
} }
}, },
} }

1
pages/home/index/index.wxml

@ -160,6 +160,7 @@
<view style="font-size: 26rpx;margin-top: 8rpx;">千鸟物流</view> <view style="font-size: 26rpx;margin-top: 8rpx;">千鸟物流</view>
</wux-grid> </wux-grid>
<wux-grid hover-class="none"> <wux-grid hover-class="none">
<!-- <button></button> -->
<image style="height: 68rpx;width: 68rpx;margin-top: 18rpx;" src="/assets/myinfo/fxztb.png"></image> <image style="height: 68rpx;width: 68rpx;margin-top: 18rpx;" src="/assets/myinfo/fxztb.png"></image>
<view style="font-size: 26rpx;margin-top: 8rpx;">分享纸通宝</view> <view style="font-size: 26rpx;margin-top: 8rpx;">分享纸通宝</view>
</wux-grid> </wux-grid>

9
pages/index/index.js

@ -7,10 +7,7 @@ const wxqqmap = require('../../libs/qqmap-wx-jssdk.min')
const event = require('../../utils/event') const event = require('../../utils/event')
const storage = require('../../utils/storage') const storage = require('../../utils/storage')
const app = getApp() const app = getApp()
const qqwxmap = new wxqqmap({
key: 'GAMBZ-CBGCK-GB6J3-A6PJX-F6ZHH-IWFUD' // 必填,这里最好填自己申请的的
// key: 'NGOBZ-UL7ED-WJ34D-PMWW7-LBDI2-J5FYK'
})
const qqwxmap = new wxqqmap({ key: 'GAMBZ-CBGCK-GB6J3-A6PJX-F6ZHH-IWFUD'})
var fragments = [] var fragments = []
Page({ Page({
@ -87,7 +84,7 @@ Page({
defaultIndex: function () { defaultIndex: function () {
this.locationing() this.locationing()
this.onResume() this.onResume()
if (this.data.path) {
if (this.data.path && '/pages/index/index' != this.data.path) {
util.navigateTo(this.data.path) util.navigateTo(this.data.path)
} }
getPopupInfo().then(result => { getPopupInfo().then(result => {
@ -106,7 +103,7 @@ Page({
location: res, location: res,
success: function (res) { success: function (res) {
app.nowLocation.cityName = res.result.address_component.city.replace('市', '') app.nowLocation.cityName = res.result.address_component.city.replace('市', '')
app.nowLocation.cityCode = res.result.ad_info.city_code
app.nowLocation.cityCode = res.result.ad_info.city_code.replace('156', '')
if(!app.nowCity){ if(!app.nowCity){
app.nowCity = { cityName: app.nowLocation.cityName, cityCode: app.nowLocation.cityCode } app.nowCity = { cityName: app.nowLocation.cityName, cityCode: app.nowLocation.cityCode }
that.setData({ cityName: app.nowLocation.cityName }) that.setData({ cityName: app.nowLocation.cityName })

Loading…
Cancel
Save