Commit 33ab06b0 authored by 石建新(贵阳日报)'s avatar 石建新(贵阳日报)
parents a4034d75 58cc4489
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
"sdkConfigs": { "sdkConfigs": {
"maps": { "maps": {
"qqmap": { "qqmap": {
"key": "MN4BZ-7JXKW-2RYRD-32QGF-AHONV-PAFUN" "key": "B7VBZ-PT5RB-WRHUT-J2EEQ-3WTUE-APFX4"
} }
} }
} }
......
...@@ -145,7 +145,7 @@ async function changeLocation() { ...@@ -145,7 +145,7 @@ async function changeLocation() {
uni.request({ uni.request({
url: '/ws/geocoder/v1/', url: '/ws/geocoder/v1/',
data: { data: {
key: 'MN4BZ-7JXKW-2RYRD-32QGF-AHONV-PAFUN', key: 'B7VBZ-PT5RB-WRHUT-J2EEQ-3WTUE-APFX4',
location: `${res.latitude},${res.longitude}`, location: `${res.latitude},${res.longitude}`,
}, },
success: function (res) { success: function (res) {
......
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
iconSrc="/static/assistingAgriculture/assets/left.png" iconSrc="/static/assistingAgriculture/assets/left.png"
placeholderText="请输入要搜索的关键词" placeholderText="请输入要搜索的关键词"
@search="toSearch" @search="toSearch"
v-model="keyword"
></Search> ></Search>
</view> </view>
<view class="bac-img"> <view class="bac-img">
...@@ -301,9 +300,9 @@ const screenParams = (selectedItems, type) => { ...@@ -301,9 +300,9 @@ const screenParams = (selectedItems, type) => {
} }
}; };
// 搜索 // 搜索
const toSearch = (data) => { // 搜索
keyword.value = data.detail.value; const toSearch = () => {
getProd(keyword.value); xma.navigateTo({ url: '/pages/assistingAgriculture/searchPage/searchPage?prodType=10' });
}; };
// 查询列表 // 查询列表
......
...@@ -176,7 +176,7 @@ onMounted(async () => { ...@@ -176,7 +176,7 @@ onMounted(async () => {
// 搜索 // 搜索
const toSearch = () => { const toSearch = () => {
xma.navigateTo({ url: '/pages/assistingAgriculture/searchPage/searchPage' }); xma.navigateTo({ url: '/pages/assistingAgriculture/searchPage/searchPage?prodType=7' });
}; };
// 获取购物车列表 // 获取购物车列表
const getshoppingCartListFn = () => { const getshoppingCartListFn = () => {
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
backIcon="black" backIcon="black"
iconSrc="/static/assistingAgriculture/assets/return.png" iconSrc="/static/assistingAgriculture/assets/return.png"
placeholderText="请输入要搜索的内容" placeholderText="请输入要搜索的内容"
@search="toSearch"
></Search> ></Search>
<view> <view>
<wd-swiper <wd-swiper
...@@ -117,7 +118,10 @@ const getPresale = () => { ...@@ -117,7 +118,10 @@ const getPresale = () => {
}); });
}); });
}; };
// 搜索
const toSearch = () => {
xma.navigateTo({ url: '/pages/assistingAgriculture/searchPage/searchPage?prodType=[7,10]' });
};
const onChange = (e) => { const onChange = (e) => {
// console.log(e); // console.log(e);
}; };
......
...@@ -161,7 +161,7 @@ onMounted(async () => { ...@@ -161,7 +161,7 @@ onMounted(async () => {
}); });
// 搜索 // 搜索
const toSearch = () => { const toSearch = () => {
xma.navigateTo({ url: '/pages/assistingAgriculture/searchPage/searchPage' }); xma.navigateTo({ url: '/pages/assistingAgriculture/searchPage/searchPage?prodType=7' });
}; };
// 获取购物车列表 // 获取购物车列表
const getshoppingCartListFn = () => { const getshoppingCartListFn = () => {
......
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