buy.js 838 B

1234567891011121314151617181920212223242526272829
  1. var app = getApp();
  2. var that;
  3. import 'dingtalk-jsapi/entry/mobile';
  4. import openLink from 'dingtalk-jsapi/api/biz/util/openLink';
  5. Page({
  6. data: {
  7. imgs:[
  8. 'https://img.zcool.cn/community/0109d161691b1311013f22cf803ae0.jpg@1280w_1l_2o_100sh.jpg',
  9. 'https://img.zcool.cn/community/0109d161691b1311013f22cf803ae0.jpg@1280w_1l_2o_100sh.jpg',
  10. 'https://img.zcool.cn/community/0109d161691b1311013f22cf803ae0.jpg@1280w_1l_2o_100sh.jpg'
  11. ]
  12. },
  13. onLoad() {
  14. that = this;
  15. dd.setNavigationBar({ title: "vip" });
  16. dd.setStorage({
  17. key: 'isShowNew',
  18. data: true,
  19. });
  20. },
  21. //跳转
  22. openView(e) {
  23. app.$get("api/order/goods/sku", { callback: "pages/deploy/sku/sku", goods_code: 'DT_GOODS_881634105565156' }).then((res) => {
  24. openLink({
  25. url: res.data.data.url
  26. })
  27. })
  28. },
  29. });