diff --git a/pages/pbService/appreciate/index.js b/pages/pbService/appreciate/index.js
index 8a45494..5f5d0fb 100644
--- a/pages/pbService/appreciate/index.js
+++ b/pages/pbService/appreciate/index.js
@@ -6,6 +6,7 @@ Page({
* 页面的初始数据
*/
data: {
+ imgInfo:null,
videoTags:[],
type:2,
picTags:[],
@@ -14,13 +15,20 @@ Page({
page_no:1,
total:1,
list:[],
- isTest:true
+ isTest:true,
+ isIos:false
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
+ console.log()
+ if(wx.getSystemInfoSync().system.indexOf('iOS')!=-1){
+ this.setData({
+ isIos:true
+ })
+ }
commonApi._post("pbservice/Other/getClientConfig",{
unique_key:"wechatxcx"
}).then(res=>{
@@ -103,15 +111,17 @@ Page({
gotoDetail:function(e){
let info = e.currentTarget.dataset.info;
if(this.data.type==2) {
- commonApi.user_post("pbservice/Other/autoupload",{
- url:info.Pic
- }).then(res=>{
- console.log(res)
+ if(this.data.isIos==false){
+ this.setData({
+ imgInfo:info
+ })
+ }
+ else {
wx.previewImage({
- urls: [res.data.url],
- current:res.data.url
+ urls: [info.Pic],
+ current:info.pic
})
- })
+ }
return;
}
info = JSON.stringify(info);
@@ -120,6 +130,14 @@ Page({
url: 'info/index?info='+info,
})
},
+ closeImg:function(){
+ this.setData({
+ imgInfo:null
+ })
+ },
+ preventTouchMove:function(){
+
+ },
/**
* 生命周期函数--监听页面初次渲染完成
diff --git a/pages/pbService/appreciate/index.wxml b/pages/pbService/appreciate/index.wxml
index 40053a9..18cbea0 100644
--- a/pages/pbService/appreciate/index.wxml
+++ b/pages/pbService/appreciate/index.wxml
@@ -18,4 +18,8 @@
{{item.Name}}
{{item.CatalogName || item.Tag}}
+
+
+
+
\ No newline at end of file