Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-weapp-smartshop
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 6c9cacb8
authored
Apr 01, 2023
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'develop' into 'master'
Develop See merge request
!14
2 parents
cba93ad0
54e59e93
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
36 additions
and
27 deletions
components/authSetting/authSetting.js
components/authSetting/authSetting.wxml
packagesPayment/pages/payment/index.js
project.private.config.json
utils/restapi.js
components/authSetting/authSetting.js
View file @
6c9cacb
...
@@ -54,21 +54,29 @@ Component({
...
@@ -54,21 +54,29 @@ Component({
},
},
jump
(
e
)
{
jump
(
e
)
{
console
.
log
(
e
)
console
.
log
(
e
)
var
globalData
=
appInstance
.
globalData
.
extConfig
let
{
let
{
url
url
}
=
e
.
currentTarget
.
dataset
}
=
e
.
currentTarget
.
dataset
restapi
.
getMerchantBussiness
(
globalData
.
merchantId
,
function
(
res
)
{
const
baseUrl
=
'https://img02.glsx.com.cn/weapp/resource/saas/scrm/html/'
// console.log(res);
const
path
=
`
${
baseUrl
}${
url
}
.html`
if
(
res
.
returnCode
==
'0'
)
{
// private user
let
path
=
`https://dj.glsx.com.cn/agreement/djUserPolicy.html?merchantName=
${
globalData
.
merchantName
}
&phone=
${
res
.
data
.
phone
}
`
wx
.
navigateTo
({
wx
.
navigateTo
({
url
:
`/pages/webpage/webpage?path=
${
encodeURIComponent
(
path
)}
`
url
:
`/pages/webpage/webpage?path=
${
encodeURIComponent
(
path
)}
`
})
})
// var globalData = appInstance.globalData.extConfig
}
},
function
(
res
)
{
console
.
log
(
res
);
// 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
()
{
getHeadImage
()
{
...
...
components/authSetting/authSetting.wxml
View file @
6c9cacb
...
@@ -24,7 +24,8 @@
...
@@ -24,7 +24,8 @@
</view>
</view>
阅读并同意以下协议
阅读并同意以下协议
<!-- <text catchtap="jump" data-url="agree">《服务协议》</text> -->
<!-- <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>
</view>
</view>
...
...
packagesPayment/pages/payment/index.js
View file @
6c9cacb
// packagesPayment/pages/payment/index.js
// packagesPayment/pages/payment/index.js
const
filter
=
require
(
'../../../utils/filter.js'
)
//
const filter = require('../../../utils/filter.js')
var
app
=
getApp
()
var
app
=
getApp
()
import
api
from
'../../restapi'
import
api
from
'../../restapi'
import
util
from
'../../../utils/util.js'
import
util
from
'../../../utils/util.js'
Page
(
// filter.identityFilter({
// {
Page
({
filter
.
identityFilter
({
/**
/**
* 页面的初始数据
* 页面的初始数据
*/
*/
...
@@ -30,11 +29,12 @@ Page(
...
@@ -30,11 +29,12 @@ Page(
* 生命周期函数--监听页面加载
* 生命周期函数--监听页面加载
*/
*/
onLoad
:
function
(
options
)
{
onLoad
:
function
(
options
)
{
// options. scene= 'sceneId=10683
'
options
.
scene
=
'sceneId=10689
'
// let options = {
// let options = {
// scene: 'sceneId=6783'
// scene: 'sceneId=6783'
// }
// }
// console.log(options, 'options')
wx
.
hideHomeButton
({
wx
.
hideHomeButton
({
success
:
function
()
{
success
:
function
()
{
console
.
log
(
'隐藏成功!'
)
console
.
log
(
'隐藏成功!'
)
...
@@ -105,8 +105,8 @@ Page(
...
@@ -105,8 +105,8 @@ Page(
dataTime
:
new
Date
().
format
(
'yyyy/MM/dd hh:mm'
)
dataTime
:
new
Date
().
format
(
'yyyy/MM/dd hh:mm'
)
})
})
wx
.
setNavigationBarTitle
({
wx
.
setNavigationBarTitle
({
title
:
'支付成功'
,
title
:
'支付成功'
})
})
// wx.redirectTo({
// wx.redirectTo({
// url: '/packagePersonal/pages/boutiqueList/boutiqueList'
// url: '/packagePersonal/pages/boutiqueList/boutiqueList'
// })
// })
...
@@ -163,6 +163,5 @@ Page(
...
@@ -163,6 +163,5 @@ Page(
)
)
}
}
}
}
})
})
// }
// })
)
project.private.config.json
View file @
6c9cacb
{
{
"setting"
:
{
"setting"
:
{
"compileHotReLoad"
:
true
,
"compileHotReLoad"
:
true
,
"urlCheck"
:
fals
e
"urlCheck"
:
tru
e
},
},
"condition"
:
{
"condition"
:
{
"miniprogram"
:
{
"miniprogram"
:
{
...
@@ -279,5 +279,6 @@
...
@@ -279,5 +279,6 @@
}
}
},
},
"description"
:
"项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html"
,
"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
\ No newline at end of file
utils/restapi.js
View file @
6c9cacb
...
@@ -14,7 +14,7 @@ const systemInfo = wx.getSystemInfoSync()
...
@@ -14,7 +14,7 @@ const systemInfo = wx.getSystemInfoSync()
const
manual
=
false
const
manual
=
false
const
release
=
false
const
release
=
false
let
index
=
3
let
index
=
2
// 判断小程序环境
// 判断小程序环境
// develop:开发版(正常开发工具,测试时)
// develop:开发版(正常开发工具,测试时)
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment