Commit 74940ffe by 李静静

有赞商城跳转

parent a09ab2cb
......@@ -3,7 +3,8 @@
"pages/freeCourse/index",
"pages/joinGroup/index",
"pages/weibanzhushou/index",
"pages/yinliu/externalLink"
"pages/yinliu/externalLink",
"pages/youzan/index"
],
"plugins": {
"chatGroupPlugin": {
......
import {request} from "../../utils/request";
Page({
data: {
path: "",
picture_list:[]
},
onLoad(pageParams){
this.path=pageParams.yz_url;
this.loadImgs(pageParams.pic_id)
},
loadImgs(id){
if(!id){
return
}
request({
url:"/xcx/picture?ids="+id,
success:(res)=>{
console.log(res.data)
if(res.data&&res.data.code===0){
// console.log(res.data.data.list)
this.setData({
picture_list:res.data.data,
})
}
}
})
},
gotomini(){
wx.navigateToMiniProgram({
path:this.path,
appId:'wxb600f58eba6a3af9',
success(res){
console.log(res)
},
fail(err){
console.log(err)
},
complete(){
console.log('complete')
}
})
}
})
{
"usingComponents": {}
}
\ No newline at end of file
page{
background: none;
}
.img_list{
width: 100%;
padding-bottom: 176rpx;
}
.img_item{
display: block;
width: 100%;
}
.join-btn{
position: fixed;
left:0;
bottom:0;
width: 100%;
height:176rpx;
line-height: 176rpx;
text-align: center;
color:#fff;
font-size: 30rpx;
font-weight: 600;
z-index: 5;
background: #fff;
}
.join-btn-text{
position: relative;
width:85%;
left:50%;
top:50%;
transform:translate(-50%,-50%);
height:110rpx;
line-height:110rpx;
border-radius:110rpx;
z-index: 1;
background: linear-gradient(180deg, rgba(245, 110, 81, 1) 0%, rgba(234, 62, 102, 1) 100%);
}
......@@ -19,20 +19,21 @@
"compileHotReLoad": false,
"useMultiFrameRuntime": true,
"useApiHook": true,
"useApiHostProcess": true,
"babelSetting": {
"ignore": [],
"disablePlugins": [],
"outputPath": ""
},
"enableEngineNative": false,
"bundle": false,
"useIsolateContext": true,
"useCompilerModule": true,
"userConfirmedUseCompilerModuleSwitch": false,
"userConfirmedBundleSwitch": false,
"packNpmManually": false,
"packNpmRelationList": [],
"minifyWXSS": true,
"bundle": false,
"useApiHostProcess": true
"minifyWXSS": true
},
"appid": "wxc2a5e8782fb56ad9",
"projectname": "fk_xcx",
......@@ -60,7 +61,31 @@
{
"name": "pages/joinGroup/index",
"pathName": "pages/joinGroup/index",
"query": "gId=https://work.weixin.qq.com/gm/24e84fe11d990cd99fa67ccd99f1aa4b",
"query": "gId=https://work.weixin.qq.com/gm/392681dd4ee5031d28f1136841fbd76e",
"scene": null
},
{
"name": "pages/weibanzhushou/index",
"pathName": "pages/weibanzhushou/index",
"query": "",
"scene": null
},
{
"name": "引流链接",
"pathName": "pages/yinliu/externalLink",
"query": "",
"scene": null
},
{
"name": "pages/yinliu/externalLink",
"pathName": "pages/yinliu/externalLink",
"query": "",
"scene": null
},
{
"name": "pages/youzan/index",
"pathName": "pages/youzan/index",
"query": "pic_id=2192&yz_url=packages/goods/detail/index?alias=1y91ryy7uj35ure",
"scene": null
}
]
......
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