用的wpy框架,有this,原声小程序就按照你们的调方法就行了
//打开相机
openCream() {
const _this = this;
wx.showActionSheet({
itemList: ["拍照"],//['拍照','相册']
itemColor: "",
//成功时回调
success: function(res) {
if (!res.cancel) {
/* res.tapIndex返回用户点击的按钮序号