Commit 6c9cacb8 by 张立顺

Merge branch 'develop' into 'master'

Develop

See merge request !14
2 parents cba93ad0 54e59e93
......@@ -54,21 +54,29 @@ Component({
},
jump(e) {
console.log(e)
var globalData = appInstance.globalData.extConfig
let {
url
} = e.currentTarget.dataset
restapi.getMerchantBussiness(globalData.merchantId, function (res) {
// console.log(res);
if (res.returnCode == '0') {
let path = `https://dj.glsx.com.cn/agreement/djUserPolicy.html?merchantName=${globalData.merchantName}&phone=${res.data.phone}`
wx.navigateTo({
url: `/pages/webpage/webpage?path=${encodeURIComponent(path)}`
})
}
}, function (res) {
console.log(res);
})
} = e.currentTarget.dataset
const baseUrl = 'https://img02.glsx.com.cn/weapp/resource/saas/scrm/html/'
const path = `${baseUrl}${url}.html`
// private user
wx.navigateTo({
url: `/pages/webpage/webpage?path=${encodeURIComponent(path)}`
})
// var globalData = appInstance.globalData.extConfig
// restapi.getMerchantBussiness(globalData.merchantId, function (res) {
// console.log(res);
// if (res.returnCode == '0') {
// let path = `https://dj.glsx.com.cn/agreement/djUserPolicy.html?merchantName=${globalData.merchantName}&phone=${res.data.phone}`
// wx.navigateTo({
// url: `/pages/webpage/webpage?path=${encodeURIComponent(path)}`
// })
// }
// }, function (res) {
// console.log(res);
// })
},
// 获取小程序头像
getHeadImage() {
......
......@@ -24,7 +24,8 @@
</view>
阅读并同意以下协议
<!-- <text catchtap="jump" data-url="agree">《服务协议》</text> -->
<text catchtap="jump" data-url="private">《隐私政策》</text>
<text catchtap="jump" data-url="privacy">《隐私协议》</text>
<text catchtap="jump" data-url="agreement">《用户协议》</text>
</view>
</view>
......
// packagesPayment/pages/payment/index.js
const filter = require('../../../utils/filter.js')
// const filter = require('../../../utils/filter.js')
var app = getApp()
import api from '../../restapi'
import util from '../../../utils/util.js'
Page(
// {
filter.identityFilter({
// filter.identityFilter({
Page({
/**
* 页面的初始数据
*/
......@@ -30,11 +29,12 @@ Page(
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
// options. scene= 'sceneId=10683'
options.scene = 'sceneId=10689'
// let options = {
// scene: 'sceneId=6783'
// }
// console.log(options, 'options')
wx.hideHomeButton({
success: function () {
console.log('隐藏成功!')
......@@ -105,8 +105,8 @@ Page(
dataTime: new Date().format('yyyy/MM/dd hh:mm')
})
wx.setNavigationBarTitle({
title: '支付成功',
})
title: '支付成功'
})
// wx.redirectTo({
// url: '/packagePersonal/pages/boutiqueList/boutiqueList'
// })
......@@ -163,6 +163,5 @@ Page(
)
}
}
})
// }
)
})
// })
{
"setting": {
"compileHotReLoad": true,
"urlCheck": false
"urlCheck": true
},
"condition": {
"miniprogram": {
......@@ -279,5 +279,6 @@
}
},
"description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
"projectname": "dj-car-weapp-smartshop"
"projectname": "dj-car-weapp-smartshop",
"libVersion": "2.10.4"
}
\ No newline at end of file
......@@ -14,7 +14,7 @@ const systemInfo = wx.getSystemInfoSync()
const manual = false
const release = false
let index =3
let index =2
// 判断小程序环境
// develop:开发版(正常开发工具,测试时)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!