...
|
...
|
@@ -7,7 +7,7 @@ import { |
|
|
openAuthorizeSettings,
|
|
|
} from '../../utils/login';
|
|
|
import { getQRCodeSource } from '../../libs/miniQRCodeRoute';
|
|
|
import { Actionsheet, Toast } from '../../vendors/zanui/index';
|
|
|
import { Toast } from '../../vendors/zanui/index';
|
|
|
import router from './router/router';
|
|
|
import { wrapperName } from './helper';
|
|
|
import { formatImageUrl } from '../../utils/util';
|
...
|
...
|
@@ -73,30 +73,6 @@ Page( |
|
|
loading: false,
|
|
|
page: 1,
|
|
|
codeList: [],
|
|
|
actionsheet: {
|
|
|
componentId: 'shareActionSheet',
|
|
|
show: false,
|
|
|
closeOnClickOverlay: true,
|
|
|
cancelText: '取消',
|
|
|
isNewShareStyle: true,
|
|
|
// unionUserImageUrl: 'http://img12.static.yhbimg.com/sns/2018/08/02/15/029b6acc4f8bc0620ecd7ec2133fcf900c.png',
|
|
|
unionUserImageUrl: './images/share_tip@2x.png',
|
|
|
actions: [
|
|
|
{
|
|
|
name: '分享给好友',
|
|
|
className: 'action-class',
|
|
|
loading: false,
|
|
|
openType: 'share',
|
|
|
image_src: '../../images/share_wechat@2x.png',
|
|
|
},
|
|
|
{
|
|
|
name: '生成海报分享',
|
|
|
className: 'action-class',
|
|
|
loading: false,
|
|
|
image_src: '../../images/share_wxpeng@2x.png',
|
|
|
},
|
|
|
],
|
|
|
},
|
|
|
animation: null,
|
|
|
shareFlag: false,
|
|
|
notice: {},
|
...
|
...
|
@@ -337,19 +313,10 @@ Page( |
|
|
|
|
|
this._getMineCode(product.id);
|
|
|
|
|
|
let snapData = {
|
|
|
product_name: product.name,
|
|
|
default_image: product.cover_img,
|
|
|
product_price: product.price,
|
|
|
product_qrCode: qrcode,
|
|
|
};
|
|
|
|
|
|
this.setData({
|
|
|
product: product,
|
|
|
actPrizeId: this.data.actPrizeId || product.id || '',
|
|
|
|
|
|
myPrizeCount: r1.code === 200 ? r1.data.myCodeNum : 0,
|
|
|
snapData,
|
|
|
notice: JSON.parse(product.notice || '{}'),
|
|
|
lottery: JSON.parse(product.lottery_info || '{}'),
|
|
|
});
|
...
|
...
|
@@ -675,7 +642,6 @@ Page( |
|
|
}
|
|
|
},
|
|
|
},
|
|
|
Actionsheet,
|
|
|
Toast,
|
|
|
),
|
|
|
); |
...
|
...
|
|