zhengshuiqi 3 years ago
parent
commit
d879561383
  1. 2
      main.js
  2. 5
      package-lock.json
  3. 1
      package.json
  4. 23
      pages/productDetails/index.vue

2
main.js

@ -2,7 +2,6 @@ import App from './App'
import store from '@/store/store.js'
import ios from '@/ios/index.js'
import lib from "./common/lib.js"
// Vue.use(fb);
// #ifndef VUE3
import Vue from 'vue'
// Vue.prototype.$onLaunched = new Promise(resolve => {
@ -11,6 +10,7 @@ import Vue from 'vue'
Vue.config.productionTip = false
// Vue.prototype.lib=lib
// Vue.use(fb);
App.mpType = 'app'
const app = new Vue({
...App,

5
package-lock.json

@ -289,6 +289,11 @@
}
}
},
"facebook-node-sdk": {
"version": "0.2.0",
"resolved": "https://registry.npmjs.org/facebook-node-sdk/-/facebook-node-sdk-0.2.0.tgz",
"integrity": "sha512-ffq9v5+gWLr/5PZ83COdBayRzdWCUJXBPmzBtnSGZrdXYzvOSSlRnxybSNmD8gqqVN4EnVyFyWvHtk4oBLnYaQ=="
},
"fast-deep-equal": {
"version": "3.1.3",
"resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",

1
package.json

@ -3,6 +3,7 @@
"base-64": "^1.0.0",
"crypto-js": "^4.1.1",
"facebook-js-sdk": "^0.3.4",
"facebook-node-sdk": "^0.2.0",
"fb": "^2.0.0",
"googleapis": "^27.0.0",
"jpush-sdk": "^3.5.0",

23
pages/productDetails/index.vue

@ -470,7 +470,7 @@
defaultRequest2,
defaultRequest4
} from '../../api/index.js'
const fb = require('facebook-node-sdk');
const app = getApp()
export default {
data() {
@ -1109,11 +1109,12 @@
// });
// Facebook App
// var urlStr = encodeURI("https://apps.apple.com/cn/app/facebook/id284882215?target=encodeURIComponent('https://www.facebook.com/')")
// var urlStr = encodeURI('https://www.dopeplus.com/facebookShare.html?utm_source=Facebook')
// uni.navigateTo({
// url: '../order/paypalWebview?src=' + urlStr
// })
// plus.runtime.openURL("urlStr")
plus.runtime.openURL('https://www.dopeplus.com/facebookShare.html?utm_source=Facebook')
// plus.runtime.openURL('https://www.dopeplus.com/facebookShare.html?utm_source=Facebook')
// console.log(id);
// fb.share({
// method: 'share',
@ -1123,21 +1124,7 @@
// }, function(response){
// console.log(response);
// });
// uni.share({
// provider: "facebook",
// type: 0,
// title: '',
// summary: this.shareText,
// imageUrl: '',
// href: this.sharePath,
// success: (res) => {
// console.log("success:" + JSON.stringify(res));
// },
// fail: (err) => {
// console.log("fail:" + JSON.stringify(err));
// }
// })
},
// 1
Copylink() {
@ -1283,7 +1270,7 @@
},
onPullDownRefresh() {
uni.stopPullDownRefresh()
}
},
}
</script>

Loading…
Cancel
Save